/* ============================================================
   Goldline Web LLC — styles.css
   Cactus green + white, mobile-first, no dependencies.
   ------------------------------------------------------------
   NOTE: the token names below (--navy, --gold) are kept from the
   original theme to avoid churn, but they now hold GREEN values:
     --navy*  = cactus / desert green shades (was navy)
     --gold*  = sage / mint accent shades   (was gold)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #4a6b5a;   /* primary cactus green (bg blocks, primary btn) */
  --navy-deep:   #2e4339;   /* darkest green (footer, dark section, headings) */
  --navy-soft:   #587a67;   /* lighter green for cards on green sections */
  --gold:        #8bbe9f;   /* sage/mint accent (CTA, highlights, badges) */
  --gold-bright: #a6d3b7;   /* accent hover / highlight */
  --gold-soft:   #e4f0e9;   /* pale mint tint */
  --ink:         #26312b;   /* body text on light (near-black green) */
  --ink-soft:    #5b6a61;   /* muted text */
  --paper:       #ffffff;
  --paper-alt:   #f3f8f4;   /* off-white green-tinted alt section bg */
  --line:        #dde7e0;   /* borders */

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 10px 30px rgba(46, 67, 57, 0.10);
  --shadow-lg:   0 18px 50px rgba(46, 67, 57, 0.18);
  --container:   1120px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-deep); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Icons (inline Lucide SVGs) ---------- */
svg.icon {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  width: 24px;
  height: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease-out, background 0.22s ease-out, box-shadow 0.22s ease-out,
              border-color 0.22s ease-out, color 0.22s ease-out;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-lg    { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(74, 107, 90, 0.28);
}
.btn-gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 12px 28px rgba(74, 107, 90, 0.40);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(46, 67, 57, 0.30);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border-color: rgba(46, 67, 57, 0.22);
}
.btn-ghost:hover {
  border-color: var(--navy-deep);
  background: rgba(46, 67, 57, 0.04);
  transform: translateY(-2px);
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6rem;
}
.eyebrow--gold { color: var(--gold-bright); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt  { background: var(--paper-alt); }
.section-navy { background: var(--navy-deep); color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-head .section-lede { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light .section-lede { color: rgba(255,255,255,0.78); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(46, 67, 57, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(139, 190, 159, 0.28);
}
.brand-text { letter-spacing: -0.01em; }
.brand-accent { color: var(--gold-bright); }

@media (max-width: 760px) {
  .brand-logo { height: 34px; }
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.2s ease-out;
}
.nav-links a:hover { color: #fff; }

/* animated underline on the text nav links (not the CTA pill) */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease-out;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.nav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 190, 159, 0.35);
}

/* hamburger button — hidden on desktop, shown below the breakpoint */
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease-out;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Mobile nav (slide-down panel) ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  /* swap hamburger -> X while open */
  .site-header.nav-open .nav-toggle .icon-menu  { display: none; }
  .site-header.nav-open .nav-toggle .icon-close { display: inline-block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 1rem;
    background: rgba(46, 67, 57, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);

    /* closed state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out,
                visibility 0s linear 0.25s;
  }
  .site-header.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out,
                visibility 0s;
  }

  .nav-links a {
    padding: 0.95rem clamp(1.1rem, 4vw, 2rem);
    font-size: 1.05rem;
  }
  /* the desktop hover-underline doesn't belong in the stacked panel */
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a:not(.nav-cta):active { background: rgba(255, 255, 255, 0.06); }

  .nav-cta {
    margin: 0.7rem clamp(1.1rem, 4vw, 2rem) 0;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(139, 190, 159, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--gold-bright); }
.hero-headline { color: #fff; max-width: 16ch; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.2rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero-actions .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Cards (services) ---------- */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); margin: 0; }
.card-price {
  margin: 0.9rem 0 0;
  font-weight: 700;
  color: var(--navy);
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 820px;
  margin-inline: auto;
}
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.price-card--feature {
  border-color: var(--gold);
  box-shadow: 0 18px 50px rgba(74, 107, 90, 0.20);
}
.price-card--feature:hover {
  transform: translateY(-9px);
  box-shadow: 0 26px 60px rgba(74, 107, 90, 0.30);
}
.ribbon {
  position: absolute;
  top: -13px; left: 1.8rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.2rem 0 0.4rem; }
.price-num { font-size: 2.6rem; font-weight: 800; color: var(--navy-deep); }
.price-term { color: var(--ink-soft); font-weight: 500; }
.price-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.2rem; }
.price-list { list-style: none; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.price-list li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }
.pricing-fineprint {
  position: relative;   /* lift above the position:relative price-cards... */
  z-index: 1;           /* ...so their drop-shadow never paints over this text */
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 3.25rem auto 0;  /* ~52px clearance from the cards' shadows */
  max-width: 60ch;
}

/* ---------- Steps (how it works) ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Why / trust ---------- */
.why-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-item {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}
.why-item h3 { color: #fff; }
.why-item p { color: rgba(255,255,255,0.82); margin: 0; }

/* ---------- Contact / form ---------- */
.contact-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}
.contact-copy { position: sticky; top: 90px; }
.contact-copy .section-lede { color: var(--ink-soft); font-size: 1.08rem; }
.contact-points { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.contact-points li { position: relative; padding-left: 1.7rem; font-weight: 500; }
.contact-points li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}

.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 1.1rem; }
.form-grid-2 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.quote-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}
.req { color: var(--navy); }
.opt { color: var(--ink-soft); font-weight: 400; }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(139, 190, 159, 0.30);
}
.quote-form textarea { resize: vertical; }
.quote-form input.invalid,
.quote-form select.invalid {
  border-color: #d8503f;
  box-shadow: 0 0 0 3px rgba(216, 80, 63, 0.14);
}
.quote-form .btn { margin-top: 0.4rem; }

.form-error {
  color: #c33a29;
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
  text-align: center;
}

/* ---------- Form success state ---------- */
.form-success {
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.6rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp 0.4s ease both;
}
.success-check {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  color: var(--navy);
}
.success-check svg { width: 64px; height: 64px; stroke-width: 1.75; }
.form-success p { color: var(--ink-soft); margin: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.80); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  padding-block: 2.5rem;
}
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 0.85rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; font-weight: 800; }
.footer-brand .brand-accent { color: var(--gold-bright); }
.footer-brand p { margin: 0.5rem 0 0; color: rgba(255,255,255,0.62); max-width: 32ch; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
}
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-bright); flex-shrink: 0; }
.footer-contact a:hover { color: var(--gold-bright); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.58);
}
.footer-bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
}
@media (max-width: 520px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
