/* ==========================================================================
   Van Laeren Planning - Main Stylesheet
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500&family=Young+Serif&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Colors */
  --color-accent: #CC5500;
  --color-text: #1D1D1D;
  /* Used for body text on light backgrounds */
  --color-text-orange: #CC5500;
  /* New token for orange body text */
  --color-bg-light: #FDFDFD;
  --color-bg-dark: #273239;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Young Serif', serif;
  --font-body: 'Bitter', serif;

  /* Font Sizes */
  --fs-h1: 136px;
  --fs-h2: 45px;
  --fs-h3: 28px;
  --fs-body: 22px;
  --fs-body-large: 26px;
  /* For hero intro */
  --fs-small: 16px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 100px;
  --spacing-section: 120px;

  /* Layout */
  --max-width: 1400px;
  --content-padding: 60px;

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.6s ease-out;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.0;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

section {
  padding: var(--spacing-section) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: var(--spacing-md);
}

.header__logo {
  width: 160px;
  /* 2X size */
  height: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* ==========================================================================
   Hero Section (Refactored Overlapping Layout)
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 180px;
  /* Space for larger header */
  padding-bottom: var(--spacing-xl);
  overflow: visible;
  /* Allow overlap */
  background-color: #F2F2F2;
  /* Grey background to match target */
}

.hero__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* Two main columns */
  grid-template-rows: auto auto auto;
  /* Title row, Intro/Image row, Mission row */
  gap: 0;
  position: relative;
}

/* 1. Title over Image */
.hero__text {
  grid-column: 1 / -1;
  /* Span full width initially */
  grid-row: 1;
  z-index: 2;
  pointer-events: none;
  /* Let clicks pass through to image if needed */
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 0.85;
  margin-bottom: 0;
  position: relative;
  left: -10px;
  /* Slight optical alignment */
  width: 130%;
  /* Allow it to extend over the image column */
}

/* 2. Intro Text next to Image */
.hero__intro {
  grid-column: 1 / 2;
  grid-row: 2;
  max-width: 600px;
  padding-right: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  color: var(--color-text-orange);
  /* Orange text */
}

.hero__intro p {
  color: var(--color-text-orange);
  font-size: var(--fs-body);
}

.hero__intro ul p {
  /* If p is inside ul for some reason, though logic is list items */
  margin: 0;
}

.hero__list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-orange);
}

.hero__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* 3. Image Layout */
.hero__image-container {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  /* Span multiple rows */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.hero__image {
  width: 100%;
  max-width: 680px;
  /* Increased size to match title width approx */
  filter: grayscale(100%);
  margin-left: auto;
  display: block;
}

/* 4. Mission Statement (About Title) Overlapping Bottom of Image */
.about-overlay {
  grid-column: 1 / 3;
  /* Span across both columns */
  grid-row: 3;
  /* Bottom area */
  z-index: 3;
  margin-top: 20px;
  /* More space above the mission statement */
  padding-left: 0;
  pointer-events: none;
}

.about-overlay h2 {
  font-size: 42px;
  color: var(--color-accent);
  line-height: 1.1;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  max-width: 90%;
}



/* ==========================================================================
   About Section
   ========================================================================== */

/* ==========================================================================
   About Section (Body Text)
   ========================================================================== */

.about {
  background-color: var(--color-bg-dark);
  /* Dark background as requested */
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

/* User requested single column for "Over the past 30 years" */
.about__content {
  display: block;
  /* Single column */
  max-width: 900px;
  /* Optimal reading width */
}

.about__content p {
  font-size: var(--fs-body);
  margin-bottom: var(--spacing-md);
  color: var(--color-accent);
  /* Orange text on dark background */
}

/* ==========================================================================
   Services Section
   ========================================================================== */

/* ==========================================================================
   Services Section (3-Column Layout: Header | Col 1 | Col 2)
   ========================================================================== */

.services {
  padding: var(--spacing-section) 0;
  background-color: var(--color-white);
  /* White background as requested */
}

.services .container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* Title column | Content area */
  gap: var(--spacing-lg);
}

.services__title {
  margin-bottom: 0;
  font-size: var(--fs-h2);
  color: var(--color-accent);
  /* Orange title */
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Split content area into 2 columns */
  gap: var(--spacing-sm) var(--spacing-lg);
}

.services__item {
  position: relative;
  padding-left: 0;
  color: var(--color-accent);
  /* Orange text */
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
}

.services__item::before {
  content: '';
}

/* ==========================================================================
   Experience Section (Dark Theme)
   ========================================================================== */

/* ==========================================================================
   Experience Section
   ========================================================================== */

.experience {
  background-color: var(--color-bg-dark);
  padding: var(--spacing-section) 0;
}

.experience h2,
.experience h3,
.experience h4 {
  color: var(--color-accent);
}

.experience p,
.experience li {
  color: var(--color-accent);
  /* "All the text in orange" */
  font-size: 18px;
  /* "Text should be smaller" (was 22px) */
  line-height: 1.6;
}

.experience__title {
  margin-bottom: var(--spacing-lg);
}

.experience__role {
  margin-bottom: var(--spacing-lg);
}

.experience__role-title {
  margin-bottom: var(--spacing-md);
}

.experience__subrole {
  margin-bottom: var(--spacing-md);
}

.experience__subrole h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-accent);
  font-size: 24px;
  margin-bottom: var(--spacing-sm);
}

.experience__list {
  margin-top: var(--spacing-sm);
}

.experience__list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.experience__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2em;
}

/* ==========================================================================
   Contact / Footer
   ========================================================================== */

.contact {
  padding: var(--spacing-section) 0;
  background-color: #F2F2F2;
  /* Grey background to match target */
}

.contact__title {
  margin-bottom: var(--spacing-md);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact__link {
  font-size: 35px;
  color: var(--color-accent);
  font-weight: 500;
}

.contact__logo {
  max-width: 700px;
  height: auto;
  margin-top: var(--spacing-md);
  display: block;
}

.footer {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: #F2F2F2;
  /* Grey background to match target */
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer__logos img {
  max-width: 350px;
  height: auto;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Staggered delay classes for cascading effect */
.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
  transition-delay: 0.5s;
}

/* Fallback: Show content immediately if JS doesn't load (noscript behavior) */
@media (scripting: none) {
  .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Also provide a timeout fallback via CSS animation */
.animate-on-scroll {
  animation: fadeInFallback 0s 3s forwards;
}

@keyframes fadeInFallback {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet (≤992px) */
@media (max-width: 992px) {
  :root {
    --fs-h1: 80px;
    --fs-h2: 36px;
    --fs-h3: 24px;
    --fs-body: 20px;
    --content-padding: 40px;
    --spacing-section: 80px;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__image {
    max-width: 400px;
    justify-self: center;
    order: -1;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  :root {
    --fs-h1: 48px;
    --fs-h2: 28px;
    --fs-h3: 22px;
    --fs-body: 18px;
    --content-padding: 24px;
    --spacing-section: 60px;
    --spacing-lg: 40px;
  }

  .header {
    padding: var(--spacing-sm);
  }

  .header__logo {
    width: 60px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
  }

  .hero__text {
    order: 1;
  }

  .hero__image-container {
    order: 2;
    margin: var(--spacing-md) 0;
  }

  .hero__image {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__intro {
    order: 3;
    padding-right: 0;
  }

  .about-overlay {
    order: 4;
    margin-top: var(--spacing-md);
  }

  .hero__title {
    width: 100%;
    left: 0;
  }

  .about-overlay h2 {
    font-size: 24px;
  }

  .services .container {
    grid-template-columns: 1fr;
  }

  .contact__link {
    font-size: 18px;
    word-break: break-word;
  }

  .contact__logo {
    max-width: 100%;
  }
}