/*
Theme Name: Terraverte Solutions
Theme URI: https://terravertesolutions.com
Author: Terraverte Solutions
Description: Custom theme for Terraverte Solutions — sustainability consultancy
Version: 1.1.0
License: Private
Text Domain: terravert
*/

/* ============ DESIGN TOKENS ============ */
:root {
  --gd: #1E3A5F; --gm: #33658A; --gk: #0E1F33; --gf: #F4F6F8;
  --go: #B8922F; --w: #FFFFFF; --gr: #55677A;
  --f: 'DM Sans', system-ui, -apple-system, sans-serif;
  --fh: clamp(38px, 5.5vw, 72px); --f2: clamp(28px, 3.8vw, 48px); --f3: clamp(19px, 2.2vw, 24px);
  --sp: clamp(72px, 9vw, 112px); --mx: 1160px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f); font-size: 18px; color: var(--gk); background: var(--w); line-height: 1.72; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--mx); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ============ TOP BAR ============ */
.topbar { background: var(--gm); color: #fff; font-size: 14px; font-weight: 500; text-align: center; padding: 10px 20px; letter-spacing: .01em; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ============ HEADER ============ */
.hdr { background: var(--gd); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.07); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.logo-name { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.25; letter-spacing: -.01em; }
.logo-name small { display: block; font-size: 10px; font-weight: 500; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 15px; color: rgba(255,255,255,.68); font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: #fff; }
.nav-cta { background: var(--go) !important; color: var(--gk) !important; padding: 9px 20px !important; border-radius: 3px; font-weight: 600 !important; font-size: 14px !important; letter-spacing: .01em; transition: filter .15s !important; }
.nav-cta:hover { filter: brightness(1.1) !important; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ============ HERO ============ */
.hero { background: var(--gd); color: #fff; padding: clamp(68px, 9.5vw, 128px) 0; position: relative; overflow: hidden; }
.hero-wm { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-size: clamp(240px, 34vw, 490px); font-weight: 800; color: rgba(255,255,255,.033); line-height: 1; user-select: none; pointer-events: none; letter-spacing: -.04em; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--go); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--go); flex-shrink: 0; }
.hero h1 { font-size: var(--fh); font-weight: 800; line-height: 1.06; letter-spacing: -.028em; max-width: 680px; margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.68; color: rgba(255,255,255,.66); max-width: 540px; margin-bottom: 42px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 14px 28px; font-family: var(--f); font-size: 15px; font-weight: 600; border-radius: 3px; cursor: pointer; border: none; transition: all .18s; letter-spacing: .01em; }
.btn-gold { background: var(--go); color: var(--gk); }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--gk); color: #fff; padding: 16px 32px; white-space: nowrap; font-size: 16px; }
.btn-dark:hover { background: var(--gd); }
.btn-outline-dk { border: 1.5px solid var(--gd); color: var(--gd); background: transparent; padding: 11px 22px; font-size: 15px; font-weight: 600; border-radius: 3px; }
.btn-outline-dk:hover { background: var(--gd); color: #fff; }

/* ============ STATS ============ */
.stats { padding: 60px 0; background: var(--gf); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; }
.stat { text-align: center; padding: 0 16px; }
.stat-n { font-size: clamp(40px, 5vw, 60px); font-weight: 800; color: var(--gd); line-height: 1; margin-bottom: 10px; letter-spacing: -.02em; }
.stat-l { font-size: 15px; color: var(--gr); line-height: 1.55; max-width: 196px; margin: 0 auto; }

/* ============ SECTIONS / SERVICES ============ */
.svc-sec { padding: var(--sp) 0; }
.sec-h { margin-bottom: 56px; }
.sec-ey { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--gm); margin-bottom: 14px; }
.sec-h h2 { font-size: var(--f2); font-weight: 800; color: var(--gk); line-height: 1.1; letter-spacing: -.022em; max-width: 560px; }
.sec-h p { margin-top: 16px; color: var(--gr); font-size: 18px; max-width: 520px; line-height: 1.7; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: #C7D2DD; }
.svc { background: var(--w); padding: 38px 30px; border-left: 4px solid var(--go); }
.svc-num { font-size: 11px; font-weight: 700; color: var(--go); letter-spacing: .11em; margin-bottom: 16px; }
.svc h3 { font-size: var(--f3); font-weight: 700; color: var(--gd); line-height: 1.22; margin-bottom: 13px; letter-spacing: -.012em; }
.svc p { font-size: 16px; line-height: 1.75; color: var(--gr); margin-bottom: 22px; }
.svc ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.svc ul li { font-size: 15px; color: var(--gk); display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.svc ul li::before { content: '\2192'; color: var(--go); font-size: 13px; flex-shrink: 0; margin-top: 2px; }

/* ============ ABOUT BAND ============ */
.about { background: var(--gd); color: #fff; padding: var(--sp) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: start; }
.quote { font-size: clamp(21px, 2.6vw, 32px); font-weight: 700; line-height: 1.34; letter-spacing: -.016em; color: #fff; border-left: 4px solid var(--go); padding-left: 24px; margin-top: 6px; }
.quote cite { display: block; margin-top: 20px; font-size: 13px; font-style: normal; font-weight: 500; color: rgba(255,255,255,.36); letter-spacing: .03em; text-transform: uppercase; }
.about-r .sec-ey { color: var(--go); }
.about-r .sec-h h2 { color: #fff; }
.about-r .sec-h p { color: rgba(255,255,255,.6); }
.about-r .sec-h { margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n { font-size: 24px; font-weight: 800; color: var(--go); line-height: 1; flex-shrink: 0; width: 32px; letter-spacing: -.02em; }
.step h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.step p { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ============ DIGEST BAND ============ */
.digest-sec { padding: var(--sp) 0; background: var(--gf); }
.digest-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.digest-in .sec-h { margin-bottom: 0; }

/* ============ CTA BAND ============ */
.cta-sec { background: var(--go); padding: 76px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-sec h2 { font-size: clamp(26px, 3.8vw, 44px); font-weight: 800; color: var(--gk); line-height: 1.12; letter-spacing: -.022em; max-width: 480px; }
.cta-sec p { margin-top: 12px; font-size: 17px; color: rgba(12,34,25,.65); }

/* ============ INNER PAGES ============ */
.page-hero { background: var(--gd); color: #fff; padding: clamp(56px, 7vw, 90px) 0; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 640px; margin-bottom: 16px; }
.page-hero p { font-size: clamp(17px, 1.9vw, 20px); color: rgba(255,255,255,.66); max-width: 560px; line-height: 1.68; }
.section { padding: var(--sp) 0; }
.section-alt { background: var(--gf); }
.prose { max-width: 720px; }
.prose p { font-size: 18px; line-height: 1.8; color: var(--gk); margin-bottom: 22px; }
.prose h2 { font-size: var(--f2); font-weight: 800; color: var(--gk); letter-spacing: -.02em; line-height: 1.15; margin: 40px 0 18px; }
.prose h3 { font-size: var(--f3); font-weight: 700; color: var(--gd); margin: 30px 0 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: start; }
.contact-info h3 { font-size: 22px; font-weight: 700; color: var(--gd); margin-bottom: 14px; }
.contact-info p { font-size: 16px; color: var(--gr); line-height: 1.7; margin-bottom: 24px; }
.contact-link { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 16px; color: var(--gk); font-weight: 500; }
.contact-link a:hover { color: var(--gm); }
.form-wrap { background: var(--w); border: 1px solid #DEE5EB; border-radius: 4px; padding: clamp(24px, 3vw, 40px); }
.form-wrap .wpforms-container input[type=text], .form-wrap .wpforms-container input[type=email],
.form-wrap .wpforms-container textarea, .form-wrap input[type=text], .form-wrap input[type=email], .form-wrap textarea {
  width: 100%; font-family: var(--f); font-size: 16px; color: var(--gk);
  border: 1.5px solid #C7D2DD; border-radius: 3px; padding: 12px 14px; background: #fff;
}
.form-wrap input:focus, .form-wrap textarea:focus { outline: 2px solid var(--gm); outline-offset: 1px; border-color: var(--gm); }
.form-wrap label { font-size: 14px; font-weight: 600; color: var(--gd); }
.form-wrap button[type=submit], .form-wrap .wpforms-submit {
  background: var(--gd) !important; color: #fff !important; font-family: var(--f) !important; font-size: 16px !important;
  font-weight: 600 !important; padding: 14px 30px !important; border: 0 !important; border-radius: 3px !important; cursor: pointer;
}
.form-wrap button[type=submit]:hover, .form-wrap .wpforms-submit:hover { background: var(--gm) !important; }

/* ============ FOOTER ============ */
.ft { background: var(--gk); color: rgba(255,255,255,.6); padding: 64px 0 34px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 52px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ft-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ft-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.ft-logo span { font-size: 15px; font-weight: 700; color: #fff; }
.ft-brand p { font-size: 15px; line-height: 1.75; max-width: 280px; }
.ft-carbon { margin-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.26); line-height: 1.65; }
.ft-col h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col ul li a { font-size: 15px; color: rgba(255,255,255,.56); transition: color .15s; }
.ft-col ul li a:hover { color: #fff; }
.ft-btm { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.26); flex-wrap: wrap; gap: 10px; }

/* ============ A11Y + MOTION ============ */
a:focus-visible, button:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .stats-grid, .svc-grid { grid-template-columns: 1fr; }
  .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cta-in, .digest-in { flex-direction: column; align-items: flex-start; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--gd); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px clamp(20px,5vw,64px); font-size: 17px; }
  .site-nav .nav-cta { margin: 10px clamp(20px,5vw,64px) 0; text-align: center; justify-content: center; display: inline-flex; }
}

/* contact form (legacy class) */
.contact-form { background: var(--w); border: 1px solid #DEE5EB; border-radius: 4px; padding: clamp(24px, 3vw, 40px); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea, .contact-form select { width: 100%; font-family: var(--f); font-size: 16px; color: var(--gk); border: 1.5px solid #C7D2DD; border-radius: 3px; padding: 12px 14px; background: #fff; margin-bottom: 16px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gm); outline-offset: 1px; border-color: var(--gm); }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--gd); display: block; margin-bottom: 6px; }
.contact-form button[type=submit], .contact-form input[type=submit] { background: var(--gd); color: #fff; font-family: var(--f); font-size: 16px; font-weight: 600; padding: 14px 30px; border: 0; border-radius: 3px; cursor: pointer; }
.contact-form button[type=submit]:hover, .contact-form input[type=submit]:hover { background: var(--gm); }
