/*
Theme Name: Green Roots Recycle India (Live)
Theme URI: https://greenrootsrecycleindia.example
Author: Green Roots Recycle India
Description: WordPress theme reproducing the live Green Roots Recycle India website — image-rich e-waste recycling & EPR compliance site. Same layout, content, and images.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenroots-live
*/

/* =========================================
   GREEN ROOTS RECYCLE INDIA — STYLESHEET
   Brand: Forest Green #1A5C3A / #2D8653
   Accent: Sage #E8F5EE / #c8f7d8
   Type: Outfit (display/UI) + Lora (editorial accent)
   ========================================= */

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

:root {
  --green-deep:    #1A5C3A;
  --green-mid:     #2D8653;
  --green-light:   #4caf7d;
  --green-pale:    #E8F5EE;
  --green-mist:    #F2FAF5;
  --green-sage:    #c8f7d8;
  --cream:         #FAFCFA;
  --white:         #ffffff;
  --text-primary:  #0e2b1a;
  --text-mid:      #2f5942;
  --text-body:     #4a6658;
  --text-light:    #7aab8e;
  --warm-alert:    #e05a2b;
  --border:        #d4eadb;
  --shadow-sm:     0 2px 8px rgba(29,92,58,.08);
  --shadow-md:     0 8px 32px rgba(29,92,58,.12);
  --shadow-lg:     0 20px 60px rgba(29,92,58,.18);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;
  --transition:    0.25s cubic-bezier(.4,0,.2,1);
  --font-display:  'Outfit', sans-serif;
  --font-body:     'Outfit', sans-serif;
  --font-serif:    'Lora', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-pale);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-heading em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--green-mid);
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.section-header.centered { text-align: center; margin-bottom: 56px; }

.section { padding: 96px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,92,58,.28); }

.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-outline:hover { background: var(--green-pale); transform: translateY(-1px); }

.btn-white { background: var(--white); color: var(--green-deep); border-color: var(--white); }
.btn-white:hover { background: var(--green-pale); border-color: var(--green-pale); transform: translateY(-1px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-nav { background: var(--green-deep); color: var(--white); padding: 10px 20px; font-size: 0.875rem; }
.btn-nav:hover { background: var(--green-mid); transform: none; }

/* ---- NAVIGATION ---- */
.nav-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav-wrapper.scrolled { box-shadow: var(--shadow-md); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--green-deep); letter-spacing: 0.04em; }
.logo-sub { font-family: var(--font-display); font-size: 0.65rem; font-weight: 500; color: var(--text-body); letter-spacing: 0.1em; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--green-deep); background: var(--green-pale); }

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown li a { display: block; padding: 10px 14px; font-size: 0.875rem; color: var(--text-body); border-radius: var(--radius-sm); transition: all var(--transition); }
.dropdown li a:hover { background: var(--green-pale); color: var(--green-deep); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: all var(--transition); }

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

  /* A backdrop-filter / filter / transform ancestor becomes the containing
     block for position:fixed children — which traps the slide-in menu inside
     the 70px bar. Removing it on mobile lets the menu fix to the viewport. */
  .nav-wrapper {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.open { transform: translateX(0); }
}

/* ---- HERO ---- */
.hero { padding: 150px 0 100px; position: relative; overflow: hidden; background: var(--green-mist); }

.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(242,250,245,.97) 0%, rgba(242,250,245,.86) 48%, rgba(26,92,58,.30) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot { width: 8px; height: 8px; background: var(--green-mid); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45,134,83,.4); } 50% { box-shadow: 0 0 0 6px rgba(45,134,83,0); } }

.hero-headline { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; color: var(--text-primary); margin-bottom: 24px; }
.hero-headline em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--green-mid); }

.hero-sub { font-size: 1.15rem; color: var(--text-body); line-height: 1.75; max-width: 600px; margin-bottom: 36px; }

.hero-ctas { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.stat-pill { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--green-deep); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-body); max-width: 140px; line-height: 1.4; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- URGENCY STRIP ---- */
.urgency-strip { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.urgency-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.urgency-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.urgency-items { display: flex; gap: 32px; flex-wrap: wrap; flex: 1; }
.urgency-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-body); }
.u-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- WHO WE ARE ---- */
.who-section { background: var(--white); }
.who-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.who-visual { position: relative; }
.who-visual-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.who-visual-main img { width: 100%; height: 360px; object-fit: cover; }
.who-visual-sub { position: absolute; right: -18px; bottom: -30px; width: 200px; border-radius: var(--radius-md); overflow: hidden; border: 5px solid var(--white); box-shadow: var(--shadow-md); }
.who-visual-sub img { width: 100%; height: 150px; object-fit: cover; }
.who-badge { position: absolute; left: -18px; top: -18px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow-md); }
.who-badge .wb-icon { font-size: 1.5rem; line-height: 1; }
.who-badge .wb-main { font-weight: 800; color: var(--green-deep); font-size: 0.85rem; }
.who-badge .wb-sub { font-size: 0.68rem; color: var(--text-body); }

.who-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--green-deep); background: var(--green-pale); border: 1px solid var(--border); padding: 8px 14px; border-radius: 100px; }

/* ---- SERVICES GRID (image cards) ---- */
.services-section { background: var(--green-mist); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-light); }

.service-card-img { height: 160px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.service-number { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-light); text-transform: uppercase; }
.service-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.service-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; flex: 1; }
.service-link { font-size: 0.875rem; font-weight: 600; color: var(--green-mid); margin-top: auto; }

/* ---- REALITY STRIP (photo) ---- */
.reality-section { position: relative; overflow: hidden; padding: 130px 0; }
.reality-bg { position: absolute; inset: 0; z-index: 0; }
.reality-bg img { width: 100%; height: 100%; object-fit: cover; }
.reality-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,32,21,.90) 0%, rgba(10,32,21,.62) 55%, rgba(10,32,21,.30) 100%); }
.reality-inner { position: relative; z-index: 2; max-width: 640px; }
.reality-inner .section-eyebrow { background: rgba(255,255,255,.14); color: var(--green-sage); }
.reality-inner h2 { color: var(--white); }
.reality-inner h2 em { color: var(--green-sage); }
.reality-inner p { color: rgba(255,255,255,.85); }

/* ---- PROCESS ---- */
.process-section { background: var(--white); }
.process-media { max-width: 760px; margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.process-media img { width: 100%; height: 300px; object-fit: cover; }
.process-steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; flex: 1; min-width: 140px; max-width: 180px; padding: 0 8px; }
.step-bubble { width: 64px; height: 64px; background: var(--green-pale); border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-bubble svg { width: 32px; height: 32px; }
.step-num { width: 64px; height: 64px; background: var(--green-deep); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; flex-shrink: 0; }
.process-step h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.process-step p { font-size: 0.8rem; color: var(--text-body); line-height: 1.5; }
.process-arrow { font-size: 1.4rem; color: var(--green-light); padding-top: 20px; flex-shrink: 0; }
.process-cta { text-align: center; }

/* ---- SERVE SECTION (image cards) ---- */
.serve-section { background: var(--green-mist); }
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.serve-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.serve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-light); }
.serve-card-img { height: 160px; overflow: hidden; }
.serve-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.serve-card:hover .serve-card-img img { transform: scale(1.06); }
.serve-card-body { padding: 26px 24px; }
.serve-icon { font-size: 2rem; margin-bottom: 12px; }
.serve-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.serve-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; }

/* ---- WHY US ---- */
.why-section { background: var(--white); }
.why-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.why-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 28px; }
.why-image img { width: 100%; height: 300px; object-fit: cover; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon-wrap { width: 40px; height: 40px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-icon-wrap svg { width: 20px; height: 20px; }
.why-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.why-item p { font-size: 0.82rem; color: var(--text-body); line-height: 1.5; }

/* ---- CTA BANNER (photo) ---- */
.cta-banner { position: relative; overflow: hidden; padding: 90px 0; background: var(--green-deep); }
.cta-photo { position: absolute; inset: 0; z-index: 0; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,92,58,.94) 0%, rgba(15,61,37,.88) 100%); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cta-text p { font-size: 1rem; color: rgba(255,255,255,0.8); }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { background: #0a2015; padding: 80px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .footer-tagline { font-family: var(--font-serif); font-style: italic; color: var(--green-sage); font-size: 1rem; margin-bottom: 16px; }
.footer-brand .footer-desc { font-size: 0.875rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--green-sage); }
.footer-bottom { padding: 24px 0; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.35); text-align: center; }

/* =============================================================
   INNER PAGE HERO (photo)
   ============================================================= */
.page-hero { padding: 150px 0 80px; background: var(--green-mist); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero-photo { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(242,250,245,.96) 0%, rgba(242,250,245,.82) 55%, rgba(26,92,58,.30) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-badge { margin-bottom: 20px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--text-primary); line-height: 1.15; margin-bottom: 20px; max-width: 680px; }
.page-hero h1 em { font-style: italic; font-family: var(--font-serif); color: var(--green-mid); }
.page-hero p { font-size: 1.1rem; color: var(--text-body); max-width: 600px; line-height: 1.75; }

/* ---- ABOUT: quote + values + gallery + facility ---- */
.mission-section { background: var(--white); }
.about-quote { max-width: 820px; margin: 0 auto 8px; background: var(--green-deep); border-radius: var(--radius-lg); padding: 48px; position: relative; }
.about-quote::before { content: '"'; position: absolute; top: 20px; left: 32px; font-family: var(--font-serif); font-size: 6rem; color: rgba(255,255,255,.1); line-height: 1; pointer-events: none; }
.about-quote blockquote { font-family: var(--font-serif); font-size: 1.4rem; color: var(--white); line-height: 1.65; font-style: italic; margin-bottom: 24px; position: relative; }
.quote-author { font-size: 0.875rem; color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.value-card { background: var(--green-pale); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.value-card h4 { font-weight: 700; color: var(--text-primary); margin-bottom: 6px; font-size: 0.95rem; }
.value-card p { font-size: 0.82rem; color: var(--text-body); line-height: 1.6; }

.about-gallery { display: grid; gap: 16px; max-width: 1000px; margin: 0 auto; }
.about-gallery-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-gallery-main img { width: 100%; height: 380px; object-fit: cover; }
.about-gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-gallery-row figure { border-radius: var(--radius-md); overflow: hidden; }
.about-gallery-row img { width: 100%; height: 220px; object-fit: cover; }

.facility-section { background: var(--green-mist); }
.facility-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.facility-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.facility-visual img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.facility-details { display: flex; flex-direction: column; gap: 24px; }
.facility-detail { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); }
.fd-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.facility-detail h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.facility-detail p { font-size: 0.85rem; color: var(--text-body); line-height: 1.5; }

/* =============================================================
   SERVICES PAGE
   ============================================================= */
.service-detail { padding: 96px 0; border-bottom: 1px solid var(--border); }
.service-detail:nth-child(even) { background: var(--green-mist); }
.service-detail:nth-child(odd) { background: var(--white); }
.service-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.service-detail:nth-child(even) .service-detail-inner { direction: rtl; }
.service-detail:nth-child(even) .service-detail-inner > * { direction: ltr; }

.service-visual-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.service-visual-img img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.svc-num { position: absolute; top: 18px; left: 18px; width: 46px; height: 46px; background: var(--green-deep); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.svc-label { position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,.92); color: var(--green-deep); font-weight: 700; padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; }

.service-detail-content { display: flex; flex-direction: column; gap: 18px; }
.service-features { display: flex; flex-direction: column; gap: 12px; }
.feature-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--green-pale); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-body); }
.service-detail:nth-child(even) .feature-row { background: var(--white); }
.feature-check { width: 20px; height: 20px; background: var(--green-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-check::after { content: '✓'; color: white; font-size: 11px; font-weight: 700; }

/* =============================================================
   EPR PAGE
   ============================================================= */
.epr-explainer { background: var(--white); }
.epr-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.epr-explainer-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.epr-explainer-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.epr-media-badge { position: absolute; bottom: 16px; left: 16px; background: var(--white); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8rem; font-weight: 700; color: var(--green-deep); box-shadow: var(--shadow-md); line-height: 1.3; }

.epr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.epr-card { background: var(--green-pale); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; }
.epr-card-num { font-size: 2.5rem; font-weight: 800; color: var(--green-light); line-height: 1; margin-bottom: 12px; }
.epr-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.epr-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; }

.mandate-section { background: var(--green-mist); }
.mandate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.mandate-table th { background: var(--green-deep); color: var(--white); padding: 16px 20px; text-align: left; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.mandate-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-body); vertical-align: top; }
.mandate-table tr:last-child td { border-bottom: none; }
.mandate-table tr:hover td { background: var(--green-mist); }
.mandate-table td:first-child { font-weight: 600; color: var(--text-primary); }

.epr-why-image { max-width: 900px; margin: 48px auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.epr-why-image img { width: 100%; height: 300px; object-fit: cover; }

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-section { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.95rem; color: var(--text-primary); line-height: 1.6; text-decoration: none; }
.contact-item a:hover { color: var(--green-mid); }

.contact-facility-img { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.contact-facility-img img { width: 100%; height: 200px; object-fit: cover; }
.contact-facility-img .cfi-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,32,21,.78), transparent 70%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.contact-facility-img .cfi-overlay span { color: var(--green-sage); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-facility-img .cfi-overlay strong { color: #fff; font-size: 1.05rem; }

.contact-form { background: var(--green-mist); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; }
.contact-form h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.contact-form .form-sub { font-size: 0.9rem; color: var(--text-body); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); letter-spacing: 0.04em; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; color: var(--text-primary); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); width: 100%; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,134,83,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

.map-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 360px; }
.map-media img { width: 100%; height: 100%; object-fit: cover; }
.map-media .map-overlay { position: absolute; inset: 0; background: rgba(10,32,21,.5); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.map-media .map-overlay > div { color: #fff; }
.map-media .map-overlay strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.map-media .map-overlay p { color: rgba(255,255,255,.85); font-size: 0.9rem; line-height: 1.7; }
.map-media .map-overlay a { display: inline-block; margin-top: 14px; color: var(--green-sage); font-weight: 600; font-size: 0.9rem; }

.inner-page-header { padding-top: 70px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .who-inner { grid-template-columns: 1fr; gap: 72px; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .facility-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .service-detail-inner { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-inner { direction: ltr; }
  .epr-grid { grid-template-columns: 1fr 1fr; }
  .epr-intro { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 24px; gap: 4px; transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; z-index: 999; }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; padding: 14px 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--green-mist); border-radius: var(--radius-sm); margin-top: 8px; }
  .hero { padding: 120px 0 72px; }
  .hero-stats { gap: 16px; align-items: flex-start; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .epr-grid { grid-template-columns: 1fr; }
  .about-gallery-row { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-arrow { transform: rotate(90deg); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .urgency-items { gap: 16px; }
  .urgency-item { font-size: 0.8rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .mandate-table { font-size: 0.8rem; }
  .mandate-table td, .mandate-table th { padding: 12px 14px; }
  .who-visual-sub { width: 150px; }
}

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

  /* A backdrop-filter / filter / transform ancestor becomes the containing
     block for position:fixed children — which traps the slide-in menu inside
     the 70px bar. Removing it on mobile lets the menu fix to the viewport. */
  .nav-wrapper {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--cream);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.open { transform: translateX(0); }

.process-arrow {
    padding-top: 0;
}
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 2rem; }
  .footer-links { grid-template-columns: 1fr; }
  .about-quote { padding: 32px 24px; }
}

/* ---- SCROLL ANIMATIONS (JS-guarded) ---- */
.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children > *:nth-child(4) { transition-delay: 300ms; }

.nav-link.active { color: var(--green-deep); background: var(--green-pale); }
