/* ========================
   CSS VARIABLES (BRAND)
======================== */
:root {
  --brand-primary: #5E3018;
  --brand-primary-dark: #3A1C0E;
  --brand-primary-light: #9B6A54;
  --brand-bg-light: #EFE7E2;
  --brand-accent: #C6A15B;

  --text-dark: #1E1E1E;
  --text-muted: #777;
}

/* ========================
   Base Styles
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--brand-bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 35px 20px;
}

/* ========================
   Header & Navigation
======================== */
.site-header {
  background-color: #fff;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px;
  transition: height 0.3s ease;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--brand-primary-dark);
  transition: font-size 0.3s ease;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  padding: 0.5rem 1rem;
  display: block;
  font-weight: 500;
  color: var(--brand-primary);
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--brand-primary-dark);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  display: none;
  list-style: none;
  min-width: 200px;
  z-index: 99;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1f1f1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: 2px;
  transition: 0.3s;
}


/* ========================
   Header Scroll Effect
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95); /* ✅ slight transparency */
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.site-header.shrink .logo-img {
  height: 45px;  /* ✅ smaller logo */
}

.site-header.shrink .logo-text {
  font-size: 1.1rem;
}


/* ========================
   Hero
======================== */
.header-hero {
  margin-top: 90px;      /* offset fixed header */
  text-align: center;
  padding: 40px 20px;
}

.header-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.header-hero p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.header-hero h1 {
  color: var(--brand-primary-dark); /* #3A1C0E */
}

.header-hero p {
  color: var(--text-muted);
}


/* ========================
   Timeline
======================== */
.story-section {
  padding: 60px 20px;
  background: rgba(249, 249, 249, 0.0); /* semi-transparent */
  position: relative;
}

.story-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.3); /* white at 50% opacity */
  transform: translateX(-50%);
  z-index: 0;
}


.story-block {
  display: flex;
  width: 100%;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  position: relative;
}

.story-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.story-inner {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 42%;
  position: relative;
  z-index: 1;
}

/* Left items */
.story-block:nth-child(odd) {
  justify-content: flex-end; /* Push content to the left of the line */
}
.story-block:nth-child(odd) .story-inner::before {
  right: -54px;
}

/* Right items */
.story-block:nth-child(even) {
  justify-content: flex-start; /* Push content to the right of the line */
}
.story-block:nth-child(even) .story-inner {
  margin-left: 0;
}
.story-block:nth-child(even) .story-inner::before {
  left: -54px;
}

/* Dots 
.story-inner::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #f1c40f;
  border: 4px solid #0b9444;
  border-radius: 50%;
}
*/


/* Images */
.story-image img {
  width: 140px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* Text */
.story-text h2 {
  font-size: 1.4rem;
  color: #0b9444;
  margin-bottom: 12px;
}

.story-text p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}


/* Background that starts below navbar */
:root {
  --header-height: 90px; /* default */
}

body.shrink-header {
  --header-height: 60px; /* smaller when scrolled */
}

.story-bg {
  position: fixed;
  top: 0; /* always start at very top */
  left: 0;
  width: 100%;
  height: 100%; /* cover entire viewport */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}




.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35); /* dark overlay */
}


/* Keep content above */
.header-hero,
.story-section,
.site-footer {
  position: relative;
  z-index: 1;
}



/* ========================
   Header Scroll Effect
======================== */
.site-header.shrink {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.site-header.shrink .logo-img {
  height: 45px;
}

.site-header.shrink .logo-text {
  font-size: 1.1rem;
}



/* ========================
   Footer
======================== */
.site-footer {
  background: var(--brand-primary-dark);
  color: #E6D8CF;
  padding: 60px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 50px;
}


.footer-left,
.footer-right {
  flex: 1;
  min-width: 220px;
}



.footer-logo {
  width: 80px;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-right h4 {
  color: var(--brand-accent);
  margin-bottom: 15px;
}

.footer-links ul,
.footer-right ul {
  list-style: none;
}

.footer-links ul li,
.footer-right ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-right ul li a {
  color: #E6D8CF;
  transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-right ul li a:hover {
  color: #fff;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-links > div {
  min-width: 160px;
}


.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.15);
}
/* ========================
   Responsive
======================== */
@media (max-width: 1024px) {
  .header-hero h1 { font-size: 2.2rem; }
  .story-text h2 { font-size: 1.3rem; }
  .story-text p { font-size: 0.95rem; }
  .story-image img { width: 120px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.active {
    display: block;
    width: 100%;
    background: #fff;
    margin-top: 15px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li { border-bottom: 1px solid #eee; }
  .nav-menu a { padding: 1rem; display: block; }

  .story-container::before { left: 20px; }

  .story-inner {
    width: 100%;
    margin-left: 50px;
  }

  .story-inner::before {
    left: -38px;
    right: auto;
  }

  .header-hero h1 { font-size: 1.8rem; }
  .header-hero p { font-size: 1rem; }

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

@media (max-width: 480px) {
  body { font-size: 14px; }
  .header-hero h1 { font-size: 1.5rem; }
  .story-image img { width: 100px; }
  .story-inner { padding: 15px; margin-left: 40px; }
  .story-text h2 { font-size: 1.2rem; }
}



/* ========================
   MOBILE RESPONSIVE
======================== */
@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .main-nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-menu li {
    border-bottom: 1px solid #eee;
  }

  .nav-menu a {
    padding: 1rem;
    display: block;
  }
}