/* ============================================================
   Real Home Service Solutions — Main Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green-deep:    #162e18;
  --green-primary: #2c5f2e;
  --green-medium:  #3d7a40;
  --green-muted:   #4a7c59;
  --brown-dark:    #4a2e12;
  --brown-medium:  #7d5a30;
  --brown-light:   #c4a264;
  --gold:          #c9a84c;
  --gold-dark:     #a8883a;
  --cream:         #faf8f3;
  --cream-mid:     #f2ecdf;
  --cream-dark:    #e8dfc8;
  --text:          #1e2520;
  --text-muted:    #5a6b5c;
  --white:         #ffffff;
  --border:        #d4e4d5;
  --nav-height:    72px;
  --max-w:         1100px;
  --radius:        6px;
  --radius-lg:     12px;
  --shadow-sm:     0 2px 8px rgba(26,58,28,.10);
  --shadow-md:     0 6px 24px rgba(26,58,28,.16);
  --shadow-lg:     0 14px 48px rgba(26,58,28,.22);
  --ease:          cubic-bezier(.4,0,.2,1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-h:        'Playfair Display', Georgia, serif;
  --font-b:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition:    0.3s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--green-primary);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  color: var(--green-deep);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1.1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

.text-center { text-align: center; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-medium);
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

.bg-green   { background: var(--green-primary); }
.bg-dark    { background: var(--green-deep); }
.bg-cream   { background: var(--cream); }
.bg-cream-mid { background: var(--cream-mid); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--green-primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream-mid);
  border-color: var(--cream-mid);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.main-nav.scrolled,
.main-nav.nav-solid {
  background: var(--green-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* On inner pages nav is always solid */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: .01em;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.nav-cta {
  background: var(--gold);
  color: var(--green-deep) !important;
  font-weight: 600;
  padding: .55rem 1.25rem;
  margin-left: .5rem;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: var(--green-deep) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-overlay.open {
  display: flex;
  opacity: 1;
}
.nav-overlay .nav-link {
  font-size: 1.4rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  color: var(--white);
}
.nav-overlay .nav-cta {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ============================================================
   HERO — HOMEPAGE TREE ANIMATION
   ============================================================ */
.hero-tree-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  background: linear-gradient(180deg, #87ceab 0%, #b8dfc0 40%, #d6ead8 70%, #3d5a2a 70%, #2c3e20 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#hero-tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 2s ease-in-out;
}

.hero-tagline {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-tagline h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  margin-bottom: .5rem;
}
.hero-tagline p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  max-width: 480px;
  margin: 0 auto;
}

/* Skip animation button */
.skip-anim-btn {
  position: absolute;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  z-index: 20;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .8rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-b);
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.skip-anim-btn:hover {
  background: rgba(255,255,255,.25);
  color: var(--white);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease;
}
.scroll-indicator.visible { opacity: 1; }
.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: bounceDown 1.5s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   TREE SVG ANIMATION ELEMENTS
   ============================================================ */

/* Path drawing animation — JS sets actual lengths */
.draw-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-trunk   { stroke: #4a2e12; stroke-width: 22; }
.tree-branch  { stroke: #5c3d1e; }
.tree-subbranch { stroke: #6b4c2a; }
.tree-twig    { stroke: #7d5a30; }

.tree-root      { stroke: #4a2e12; fill: none; stroke-linecap: round; }
.tree-root-sub  { stroke: #5c3d1e; fill: none; stroke-linecap: round; }

/* Leaf clusters */
.leaf-cluster {
  opacity: 0;
  transition: none;
}
.leaf-cluster.bloomed { opacity: 1; }

/* Nav labels from roots */
.hero-nav-labels {
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-nav-labels.visible { opacity: 1; }

/* ============================================================
   INNER PAGE HERO BANNER
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 60%, #3d7a40 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin-bottom: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ============================================================
   HOME INTRO SECTION
   ============================================================ */
.home-intro {
  padding: 5rem 0;
  background: var(--cream);
}
.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-intro-text .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-medium);
  margin-bottom: 1rem;
}
.home-intro-text h2 { margin-bottom: 1.25rem; }
.home-intro-text p { font-size: 1.05rem; }
.home-intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.oak-icon {
  width: 240px;
  height: 240px;
  opacity: .85;
}

/* ============================================================
   HOW IT WORKS — 4 STEPS
   ============================================================ */
.how-it-works {
  background: var(--cream-mid);
  padding: 5rem 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-medium));
  opacity: .3;
}

.step-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--green-primary);
  color: var(--white);
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(44,95,46,.3);
}
.step-card h4 {
  color: var(--green-deep);
  margin-bottom: .6rem;
  font-size: 1.05rem;
}
.step-card p {
  font-size: .9rem;
  margin: 0;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  padding: 5rem 0;
  background: var(--green-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(201,168,76,.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(255,255,255,.04) 0%, transparent 45%);
}
.cta-section .container { position: relative; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   CONTENT SECTIONS — LONG FORM PAGES
   ============================================================ */
.content-section { padding: 4.5rem 0; }
.content-section:nth-child(even) { background: var(--cream-mid); }
.content-section:nth-child(odd) { background: var(--cream); }

.content-section h2 { margin-bottom: 1.25rem; }
.content-section h3 { margin-bottom: 1rem; margin-top: 2rem; color: var(--green-primary); }
.content-section h3:first-child { margin-top: 0; }
.content-section p { font-size: 1.02rem; }

.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.25rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.feature-text h4 { font-size: 1rem; color: var(--text); margin-bottom: .2rem; }
.feature-text p  { font-size: .9rem; margin: 0; }

/* Bullet list styled */
.styled-list {
  margin: 1rem 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.styled-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: 1rem;
  color: var(--text-muted);
  padding-left: .25rem;
}
.styled-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  margin-top: .4rem;
}

/* ============================================================
   INFO CARDS — USED ACROSS PAGES
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-medium));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: var(--white);
}
.info-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.info-card p  { font-size: .94rem; margin: 0; }

/* Highlight card */
.highlight-card {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.highlight-card .card-icon { background: rgba(255,255,255,.15); }
.highlight-card h3 { color: var(--white); }
.highlight-card p  { color: rgba(255,255,255,.85); }

/* ============================================================
   PROCESS STEPS — SOLUTIONS PAGE
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green-primary), var(--green-medium));
  opacity: .3;
}
.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(44,95,46,.3);
  position: relative;
  z-index: 1;
}
.process-step-content h3 { margin-bottom: .5rem; padding-top: .5rem; }
.process-step-content p { margin: 0; }

/* Guarantee badge */
.guarantee-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: var(--green-primary);
  border-radius: 50%;
  text-align: center;
  color: var(--white);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  float: right;
  margin: 0 0 1.5rem 2rem;
}
.guarantee-badge .days {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.guarantee-badge .label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-top: .25rem;
}

/* ============================================================
   APPLY FORM
   ============================================================ */
.form-section { padding: 5rem 0; background: var(--cream); }

.apply-form-wrap {
  max-width: 740px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-group .required { color: #c0392b; }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  font-family: var(--font-b);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(44,95,46,.12);
  background: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control { cursor: pointer; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  cursor: pointer;
  accent-color: var(--green-primary);
}
.form-check label {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check a { color: var(--green-primary); text-decoration: underline; }

/* Honeypot (hidden from humans, visible to bots) */
.hp-field { display: none !important; }

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.alert-error {
  background: #fce4e4;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* ============================================================
   LEGAL PAGES (TERMS & PRIVACY)
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.legal-content h1 { margin-bottom: .5rem; }
.legal-content .last-updated {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: block;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; }
.legal-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.legal-content p  { font-size: .97rem; }
.legal-content ul {
  margin: .75rem 0 1rem 1.5rem;
  list-style: disc;
}
.legal-content ul li { font-size: .97rem; color: var(--text-muted); margin-bottom: .4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin: 0;
}

.footer-col h5 {
  font-family: var(--font-b);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.9); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   MEDIA QUERIES — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .home-intro-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-intro-visual { display: none; }
  .steps-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .cards-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .content-two-col  { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   MEDIA QUERIES — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .main-nav   { background: rgba(22,46,24,.95); backdrop-filter: blur(8px); }

  /* Hero */
  .hero-tagline h1 { font-size: 1.75rem; }
  .hero-tagline p  { font-size: .95rem; }

  /* Sections */
  .section-pad    { padding: 3.5rem 0; }
  .section-pad-sm { padding: 2.5rem 0; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Cards */
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .apply-form-wrap { padding: 2rem 1.25rem; }

  /* Process */
  .process-steps::before { display: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Guarantee badge */
  .guarantee-badge { float: none; margin: 0 auto 1.5rem; }

  /* Page hero */
  .page-hero { padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .draw-path, .leaf-cluster, .reveal,
  .hero-tagline, .scroll-indicator,
  .hero-nav-labels { animation: none !important; transition: none !important; }
  .draw-path       { stroke-dashoffset: 0 !important; }
  .leaf-cluster    { opacity: 1 !important; transform: scale(1) !important; }
  .reveal          { opacity: 1 !important; transform: none !important; }
  .hero-tagline    { opacity: 1 !important; transform: none !important; }
  .scroll-indicator { opacity: 1 !important; }
  .hero-nav-labels  { opacity: 1 !important; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .main-nav, .skip-link, .skip-anim-btn,
  .scroll-indicator, .cta-section { display: none; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; }
}
