/* ===========================================================
   ELLTRIX — Shared Stylesheet
   Aesthetic: refined, organic-editorial. Green-forward palette.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Hanken+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette (from supplied swatches) */
  --green:        #55883B;   /* primary */
  --green-light:  #C1E899;   /* soft accent */
  --cream:        #E6F0DC;   /* light wash */
  --brown:        #9A6735;   /* warm accent */

  /* Derived tones */
  --green-deep:   #2E4A21;   /* deep foliage — headings on light */
  --green-ink:    #222018;   /* warm near-black — body text */
  --green-glow:   #6FA84E;
  --brown-soft:   #B98A5C;
  --paper:        #FBFCF8;   /* warm off-white */
  --paper-dim:    #F4F4F0;   /* neutral warm, less green-tinted */
  --line:         #DDD9D2;   /* neutral warm line */
  --charcoal:     #252320;   /* warm near-black for dark sections */

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Hanken Grotesk', -apple-system, system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--body);
  color: var(--green-ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--green-deep); }

::selection { background: var(--green-light); color: var(--green-deep); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brown); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 100px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary { background: var(--green); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(46,74,33,.6); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--paper); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--green-deep); }
.btn-light:hover { background: var(--green-light); transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,248,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--green-deep); letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-glow) 100%);
  position: relative; flex-shrink: 0;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 7px 7px auto auto;
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-light);
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 0.28rem;
  padding: 0.5rem 0.6rem; font-size: 0.85rem; font-weight: 500; border-radius: 10px;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav-links > li > a:hover { background: var(--paper-dim); color: var(--green-deep); }
.nav-links > li > a.active { color: var(--green); }
.caret { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .3s; }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 230px;
  max-width: calc(100vw - 2rem);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.5rem; box-shadow: 0 24px 48px -20px rgba(46,74,33,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  list-style: none;
}
/* Right-align dropdowns for items near the right edge to prevent viewport overflow */
.nav-links > li:last-child .dropdown,
.nav-links > li:nth-last-child(3) .dropdown { left: auto; right: 0; }
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links > li:hover .caret { transform: rotate(45deg) translateY(0); opacity: 1; }
.dropdown li a { display: block; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.9rem; font-weight: 500; transition: background .2s, color .2s, padding-left .2s; }
.dropdown li a:hover { background: var(--cream); color: var(--green-deep); padding-left: 1.1rem; }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav-cta .btn { padding: 0.68rem 1.15rem; font-size: 0.88rem; }
/* push the nav to the right of the brand (header CTA button removed) */
.nav > nav { margin-left: auto; margin-right: 0.5rem; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--green-deep); transition: .3s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 400px at 90% -5%, rgba(193,232,153,0.28) 0%, transparent 52%),
    radial-gradient(400px 300px at -5% 110%, rgba(230,240,220,0.3) 0%, transparent 55%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 1.2rem 0 1.4rem; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36ch; color: #3c5230; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/4.2;
  background: linear-gradient(160deg, #4a7a38 0%, #233618 100%);
  box-shadow: 0 40px 80px -40px rgba(46,74,33,.4); position: relative;
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .85; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.25); display: flex; align-items: center; gap: 0.9rem;
}
.hero-badge .num { font-family: var(--display); font-size: 2rem; color: var(--green); line-height: 1; }
.hero-badge .lbl { font-size: 0.8rem; color: #4a6138; max-width: 13ch; }

.trust-row { margin-top: 3.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stars { color: var(--brown); letter-spacing: 2px; font-size: 1.1rem; }
.trust-row span { font-size: 0.9rem; color: #4a6138; }

/* ---------- Section headers ---------- */
.sec-head { max-width: 60ch; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.8rem 0 0.9rem; }
.sec-head p { color: #4a6138; font-size: 1.08rem; line-height: 1.75; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Service cards ---------- */
.services { background: var(--paper-dim); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 2rem; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--green-light); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(46,74,33,.45); border-color: var(--green-light); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--display); font-size: 0.9rem; color: var(--brown); margin-bottom: 1.2rem; letter-spacing: 0.1em; }
.svc-card h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.svc-card h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--green); margin-bottom: 0.9rem; }
.svc-card p { font-size: 0.96rem; color: #4a6138; margin-bottom: 1.5rem; flex-grow: 1; }
.svc-link { font-weight: 600; color: var(--green-deep); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; }
.svc-link .arr { transition: transform .3s var(--ease); }
.svc-card:hover .svc-link .arr { transform: translateX(5px); }

/* ---------- Why / values ---------- */
.why { background: var(--cream); color: var(--green-ink); position: relative; overflow: hidden; }
.why::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 400px at 100% 50%, rgba(85,136,59,.07), transparent 60%); pointer-events:none;}
.why h2, .why h3 { color: var(--green-deep); }
.why .eyebrow { color: var(--brown); }
.why .eyebrow::before { background: var(--brown); }
.why .sec-head p { color: #4a6138; }
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1rem; }
.val { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: box-shadow .35s, transform .35s, border-color .35s; }
.val:hover { box-shadow: 0 16px 40px -20px rgba(46,74,33,.2); transform: translateY(-4px); border-color: var(--green-light); }
.val .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--green); }
.val h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--green-deep); }
.val p { font-size: 0.92rem; color: #4a6138; }

/* ---------- Testimonials ---------- */
.quotes { background: var(--cream); }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote {
  background: var(--paper); border-radius: var(--radius-lg); padding: 2.2rem;
  border: 1px solid var(--line); position: relative;
}
.quote .mark { font-family: var(--display); font-size: 4rem; line-height: 0.6; color: var(--green-light); position: absolute; top: 1.6rem; right: 1.8rem; }
.quote p { font-size: 1.05rem; color: var(--green-ink); margin-bottom: 1.4rem; position: relative; z-index: 1; }
.quote .who { font-weight: 600; color: var(--green-deep); font-size: 0.95rem; }
.quote .role { font-size: 0.85rem; color: var(--brown); }
.quote.feature { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); }
.quote.feature p, .quote.feature .who { color: var(--green-ink); }
.quote.feature .role { color: var(--brown); }
.quote.feature .mark { color: var(--green-light); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--green); color: var(--paper); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 400px at 15% 120%, var(--green-deep), transparent 55%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { color: #e8f3dc; margin-top: 0.8rem; font-size: 1.08rem; max-width: 46ch; }
.cta-actions { display:flex; justify-content: flex-end; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ind {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  background: var(--paper); transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.ind:hover { transform: translateY(-5px); border-color: var(--green-light); background: var(--paper-dim); }
.ind .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); color: var(--green); display: grid; place-items: center; margin-bottom: 1.2rem; }
.ind h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.ind p { font-size: 0.94rem; color: #4a6138; }
.ind.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.ind.wide:hover { background: var(--paper-dim); transform: translateY(-5px); }
.ind.wide h3 { color: var(--green-ink); }
.ind.wide p { color: #4a6138; max-width: 76ch; line-height: 1.75; }
.ind.wide .ico { background: var(--cream); color: var(--green); }

/* ---------- Insights ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ins { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); transition: transform .35s var(--ease), box-shadow .35s; }
.ins:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -32px rgba(46,74,33,.4); }
.ins .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green-light), var(--green)); position: relative; }
.ins .thumb span { position: absolute; bottom: 12px; left: 14px; background: var(--paper); color: var(--green-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 100px; }
.ins .body { padding: 1.5rem 1.5rem 1.8rem; }
.ins h3 { font-size: 1.18rem; line-height: 1.25; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(900px 500px at 80% -20%, var(--green-light), transparent 55%), var(--cream); }
.page-hero .crumb { font-size: 0.82rem; color: var(--brown); font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; }
.page-hero .crumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 18ch; margin-bottom: 1.2rem; }
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero p { font-size: 1.15rem; color: #3c5230; max-width: 54ch; }

/* ---------- Feature rows (service detail) ---------- */
.feature-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-row.flip { grid-template-columns: 1.1fr 0.9fr; }
.feature-row.flip .fr-text { order: 2; }
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.fr-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0.7rem 0 1rem; }
.fr-text p { color: #4a6138; font-size: 1.05rem; margin-bottom: 1.2rem; }
.fr-list { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.fr-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.98rem; color: var(--green-ink); }
.fr-list li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 6px; background: var(--green-light); position: relative; }
.fr-list li::after { content: ""; }
.fr-visual { border-radius: var(--radius-lg); aspect-ratio: 5/4; background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%); position: relative; overflow: hidden; box-shadow: 0 36px 72px -40px rgba(46,74,33,.5); display: grid; place-items: center; }
.fr-visual .glyph { font-family: var(--display); font-size: clamp(5rem, 12vw, 9rem); color: rgba(193,232,153,.28); line-height: 1; }
.fr-visual .tag { position: absolute; bottom: 1.4rem; left: 1.4rem; right: 1.4rem; background: rgba(251,252,248,.92); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: 0.9rem; color: var(--green-deep); backdrop-filter: blur(4px); }
.fr-visual .tag strong { font-family: var(--display); font-weight: 600; }

/* sub-service tiles */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; background: var(--paper); transition: transform .35s var(--ease), border-color .35s; }
.tile:hover { transform: translateY(-4px); border-color: var(--green-light); }
.tile .n { font-family: var(--display); color: var(--brown); font-size: 0.95rem; letter-spacing: .1em; }
.tile h3 { font-size: 1.35rem; margin: 0.6rem 0 0.7rem; }
.tile p { color: #4a6138; font-size: 0.96rem; }

/* metric strip */
.metrics { background: var(--charcoal); color: #c8c4bc; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.metric .big { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--green-light); line-height: 1; }
.metric p { color: #a8a49c; font-size: 0.92rem; margin-top: 0.6rem; }

/* ---------- Forms (contact) ---------- */
.form-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--green-deep); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--green-ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(85,136,59,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-aside { background: var(--charcoal); color: #c8c4bc; border-radius: var(--radius-lg); padding: 2.4rem; }
.contact-aside h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-aside p { color: #a8a49c; margin-bottom: 1.6rem; }
.contact-aside .row { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.1rem; font-size: 0.95rem; }
.contact-aside .row .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--green-light); display: grid; place-items: center; flex-shrink: 0; }

/* Form submission status message */
.form-status { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; padding: 0.85rem 1.1rem; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--cream); color: var(--green-deep); border: 1px solid var(--green-light); }
.form-status.err { background: #fbeaea; color: #9a2828; border: 1px solid #e7b9b9; }

/* ---------- Footer ---------- */
.site-footer { background: #3b3936; color: #c4c0b8; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--paper); margin-bottom: 1rem; }
.foot-about p { font-size: 0.92rem; max-width: 34ch; margin-bottom: 1.3rem; }
.foot-contact { font-size: 0.92rem; line-height: 1.9; }
.foot-contact a:hover { color: var(--green-light); }
.foot-col h4 { font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-light); margin-bottom: 1rem; }
.foot-col ul { list-style: none; display: grid; gap: 0.6rem; }
.foot-col a { font-size: 0.92rem; transition: color .2s, padding-left .2s; }
.foot-col a:hover { color: var(--paper); padding-left: 4px; }
/* footer submenu (CX Execution sub-links) */
.foot-sub { list-style: none; margin: 0.5rem 0 0.2rem; padding-left: 0.9rem; border-left: 1px solid rgba(255,255,255,.14); display: grid; gap: 0.45rem; }
.foot-sub a { font-size: 0.82rem; color: #97938b; }
.foot-sub a:hover { color: var(--green-light); padding-left: 3px; }
.foot-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; }
.soc { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,.07); padding: 0.5rem 0.9rem; border-radius: 100px; }
.soc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }
/* footer designer credit */
.credit { font-size: 0.84rem; color: #97938b; }
.credit a { color: #b0aca4; transition: color .2s; }
.credit a:hover { color: var(--green-light); text-decoration: underline; }

/* Back-to-top floating button */
.to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--paper); border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(46,74,33,.6); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s, background .25s; z-index: 200; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-deep); }
.to-top svg { width: 22px; height: 22px; }

/* Coming soon (open roles) */
.coming-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); }
.cs-badge { display: inline-block; background: var(--cream); color: var(--green-deep); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 1.2rem; }
.coming-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.coming-card p { color: #4a6138; line-height: 1.75; margin-bottom: 1.8rem; }
.cs-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Without JS, content is fully visible. Only when <html class="js"> is set do we hide-then-reveal. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Section overflow safety (kept as a guard against any stray wide child) */
.has-doodles { position: relative; overflow: hidden; }
.has-doodles > .wrap { position: relative; z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  /* Keep badge inside the card — reset negative positioning at tablet */
  .hero-badge { left: 1rem; bottom: -1.2rem; }
  .svc-grid, .ind-grid, .ins-grid { grid-template-columns: 1fr 1fr; }
  /* ind.wide already uses 1/-1 so it spans both columns automatically */
  .ind.wide { grid-template-columns: auto 1fr; }
  .val-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .fr-text { order: 0; }
  .feature-row.flip .fr-visual { order: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .quote.feature { grid-column: span 1; }
}
/* Nav collapses to hamburger below 1100px (long labels + brand need the room) */
@media (max-width: 1100px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gut) 2rem; border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(46,74,33,.4); transform: translateY(-120%); transition: transform .4s var(--ease); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 0.9rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .caret { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0.6rem 0.8rem; min-width: 0; max-width: none; }
  .nav-links > li:last-child .dropdown, .nav-links > li:nth-last-child(3) .dropdown { right: auto; }
  .dropdown li a { font-size: 0.9rem; color: #4a6138; }
  .hamburger { display: flex; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 760px) {
  .svc-grid, .ind-grid, .ins-grid, .val-grid, .metric-grid, .quote-grid, .tile-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  /* ind.wide: already full-width via 1/-1; stack internal layout vertically */
  .ind.wide { grid-template-columns: 1fr; }
  /* hero-badge: keep well inside bounds on all mobile sizes */
  .hero-badge { position: static; margin-top: 1.2rem; display: inline-flex; }
  .hero-visual { max-width: 100%; }
  .hero-visual .photo { aspect-ratio: 16/10; }
  /* feature row: reduce oversized glyph on narrow screens */
  .fr-visual .glyph { font-size: 5rem; }
  /* page hero: reduce background radial that can bleed */
  .page-hero::before { background: var(--cream); }
}
