/* ===================================================
   GLAVIA AGENCY — shared stylesheet
   Used by: index.html, about.html, services.html, contacts.html
   =================================================== */

:root{
  --ink:#0E0E0E;
  --paper:#FFFFFF;
  --mint:#31EE90;
  --mint-deep:#1FC274;
  --blue:#2A30FF;
  --blue-light:#E8E9FF;
  --yellow:#F5F23A;
  --gray-text:#55554F;
  --line-soft:#E5E3DC;
  --radius-card:28px;
  --radius-pill:999px;
  --maxw:1180px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}

body{
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 32px;
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:2px solid var(--ink);
  border-radius:var(--radius-pill);
  padding:16px 32px;
  font-weight:700;
  font-size:16px;
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-primary{ background:var(--mint); color:var(--ink); }
.btn-primary:hover{ transform:translate(-2px,-2px); box-shadow:4px 4px 0 var(--ink); }
.btn-dark{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn-dark:hover{ transform:translate(-2px,-2px); box-shadow:4px 4px 0 var(--mint); }
.btn-block{ width:100%; }
.btn:active{ transform:translate(0,0); box-shadow:none; }
.btn-sm{ padding:11px 22px; font-size:14px; }

/* ============ HEADER ============ */
header{
  position:sticky;
  top:0;
  background:var(--paper);
  z-index:100;
  border-bottom:2px solid var(--ink);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 32px;
  max-width:var(--maxw);
  margin:0 auto;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:19px;
}
.logo img{
  height:34px;
  width:auto;
  flex-shrink:0;
}
nav{ display:flex; align-items:center; gap:36px; }
.nav-links{ display:flex; gap:32px; }
nav a{ font-weight:600; font-size:15px; color:var(--ink); }
nav a.active{ border-bottom:2px solid var(--blue); padding-bottom:4px; }
.header-cta{ display:flex; }
.mobile-toggle{ display:none; background:none; border:none; padding:6px; }
.mobile-toggle svg{ width:24px; height:24px; }

@media (max-width:980px){
  .nav-links{
    position:fixed;
    top:64px; left:0; right:0;
    background:var(--paper);
    border-bottom:2px solid var(--ink);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 16px;
    transform:translateY(-130%);
    transition:transform .2s ease;
    z-index:99;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--line-soft); }
  .mobile-toggle{ display:block; }
}

/* ============ BREADCRUMB / PAGE HERO (inner pages) ============ */
.page-hero{
  padding:56px 0 64px;
  border-bottom:2px solid var(--ink);
}
.page-eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--blue);
  margin-bottom:14px;
}
.page-hero h1{
  font-size:48px;
  font-weight:800;
  letter-spacing:-1.2px;
  line-height:1.08;
  margin-bottom:18px;
  max-width:780px;
}
.page-hero p{
  font-size:18px;
  color:var(--gray-text);
  max-width:600px;
}

/* ============ SECTION GENERICS ============ */
.section{ padding:88px 0; border-bottom:2px solid var(--ink); }
.section:last-of-type{ border-bottom:none; }
.section-tight{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-tag{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--blue);
  margin-bottom:14px;
}
.section-head h2{
  font-size:36px;
  font-weight:800;
  letter-spacing:-1px;
  line-height:1.15;
  margin-bottom:16px;
}
.section-head p{ font-size:17px; color:var(--gray-text); }

/* ============ FORM CARD (shared by hero + contacts + final CTA) ============ */
.form-card{
  background:var(--blue);
  border:2px solid var(--ink);
  border-radius:var(--radius-card);
  padding:36px;
  color:var(--paper);
  box-shadow:8px 8px 0 var(--ink);
}
.form-card.light{
  background:var(--paper);
  color:var(--ink);
  box-shadow:8px 8px 0 var(--ink);
}
.form-card h3{ font-size:24px; font-weight:800; margin-bottom:6px; color:inherit; }
.form-card p.form-intro{ font-size:14px; opacity:.85; margin-bottom:24px; }
.form-field{ margin-bottom:14px; }
.form-field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; opacity:.9; }
.form-field input,
.form-field textarea,
.form-field select{
  width:100%;
  padding:13px 16px;
  border-radius:14px;
  border:none;
  font-family:inherit;
  font-size:15px;
  background:var(--paper);
  color:var(--ink);
}
.form-card.light .form-field input,
.form-card.light .form-field textarea,
.form-card.light .form-field select{
  background:#F7F7F2;
  border:2px solid transparent;
}
.form-card.light .form-field input:focus,
.form-card.light .form-field textarea:focus{
  outline:none; border-color:var(--ink);
}
.form-field input:focus, .form-field textarea:focus{ outline:3px solid var(--mint); }
.form-field textarea{ resize:vertical; min-height:80px; }
.form-consent{
  display:flex; align-items:flex-start; gap:10px;
  margin-bottom:16px; font-size:12.5px; line-height:1.5;
}
.form-consent input[type="checkbox"]{
  width:17px; height:17px; flex-shrink:0; margin-top:2px;
  accent-color:var(--mint);
  cursor:pointer;
}
.form-consent label{ cursor:pointer; opacity:.9; }
.form-card.light .form-consent label{ color:var(--gray-text); opacity:1; }
.form-consent a{ text-decoration:underline; font-weight:600; }
.form-disclaimer{ font-size:12px; opacity:.75; margin-top:14px; text-align:center; line-height:1.5; }
.more-toggle{
  background:none; border:none; color:var(--mint-deep); font-weight:700; font-size:13px;
  padding:0; margin-bottom:14px; display:inline-flex; align-items:center; gap:4px;
}
.form-card:not(.light) .more-toggle{ color:var(--mint); }
.more-fields{ display:none; }
.more-fields.open{ display:block; }
.success-msg{
  display:none;
  background:var(--mint);
  border:2px solid var(--ink);
  border-radius:14px;
  padding:16px;
  font-weight:700;
  font-size:14px;
  text-align:center;
  color:var(--ink);
}
.success-msg.show{ display:block; }
.form-card form.hidden{ display:none; }

/* ============ WHY / SPLIT LAYOUT GRID (used on Home + About) ============ */
.why-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center; }
.why-grid.office-grid{ grid-template-columns:1fr 0.85fr; }
@media (max-width:980px){
  .why-grid, .why-grid.office-grid{ grid-template-columns:1fr; }
}

/* ============ SUBHEAD utility (in-page H2 not using section-head) ============ */
.subhead{ font-size:30px; font-weight:800; letter-spacing:-0.8px; margin-bottom:24px; line-height:1.2; }
.subhead-tight{ margin-bottom:20px; }
.subhead-compact{ font-size:28px; letter-spacing:-0.6px; margin-bottom:8px; }
@media (max-width:620px){
  .subhead{ font-size:25px; }
}

/* ============ LOGO STRIP ============ */
.logo-strip{ padding:36px 0; border-bottom:2px solid var(--ink); }
.logo-strip-label{
  text-align:center; font-size:13px; font-weight:700; color:var(--gray-text);
  text-transform:uppercase; letter-spacing:1px; margin-bottom:26px;
}
.logo-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:28px; }
.logo-row span{ font-weight:800; font-size:18px; color:var(--ink); opacity:.42; }

/* ============ SERVICES GRID (used on Home + Services) ============ */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.service-card{
  border:2px solid var(--ink);
  border-radius:var(--radius-card);
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.service-card:hover{ transform:translate(-3px,-3px); box-shadow:6px 6px 0 var(--ink); }
.service-card.mint{ background:var(--mint); }
.service-card.blue{ background:var(--blue); color:var(--paper); }
.service-card.yellow{ background:var(--yellow); }
.service-card.paper{ background:var(--paper); }
.service-icon{
  width:48px; height:48px; border-radius:14px; background:var(--ink); color:var(--paper);
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800;
}
.service-icon svg{ display:block; }
.service-card.blue .service-icon{ background:var(--paper); color:var(--blue); }
.service-card h3{ font-size:21px; font-weight:800; }
.service-card p{ font-size:14.5px; line-height:1.55; }
.service-card.blue p{ color:#D6D7FF; }
.service-card:not(.blue) p{ color:var(--ink); opacity:.78; }
.service-link{ margin-top:auto; font-weight:700; font-size:14px; display:inline-flex; align-items:center; gap:6px; }

/* ============ STATS PANEL ============ */
.stat-panel{
  background:var(--ink); color:var(--paper); border-radius:var(--radius-card);
  padding:40px; display:grid; grid-template-columns:1fr 1fr; gap:32px;
}
.stat-num{ font-size:42px; font-weight:800; color:var(--mint); letter-spacing:-1px; margin-bottom:6px; }
.stat-label{ font-size:14px; color:#C9C9C4; }

/* ============ TESTIMONIALS ============ */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{
  border:2px solid var(--ink); border-radius:var(--radius-card); padding:28px;
  display:flex; flex-direction:column; gap:18px; background:var(--paper);
}
.testi-stars{ font-size:14px; color:var(--ink); letter-spacing:2px; }
.testi-quote{ font-size:15px; line-height:1.65; color:var(--ink); flex-grow:1; }
.testi-author{ display:flex; align-items:center; gap:12px; border-top:1px solid var(--line-soft); padding-top:16px; }
.testi-avatar{
  width:40px; height:40px; border-radius:50%; background:var(--blue-light); color:var(--blue);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; flex-shrink:0;
}
.testi-author-name{ font-size:14px; font-weight:700; }
.testi-author-role{ font-size:12.5px; color:var(--gray-text); }
.testi-source{ font-size:11.5px; color:var(--gray-text); opacity:.7; margin-top:-10px; }

/* ============ PROCESS ============ */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.process-card{ padding:28px 24px; border:2px solid var(--ink); border-radius:var(--radius-card); background:var(--paper); }
.process-step{ font-size:13px; font-weight:800; color:var(--blue); margin-bottom:14px; }
.process-card h4{ font-size:17px; font-weight:800; margin-bottom:8px; }
.process-card p{ font-size:14px; color:var(--gray-text); line-height:1.55; }

/* ============ FINAL CTA BAND ============ */
.final-cta{ background:var(--mint); border-bottom:2px solid var(--ink); }
.final-cta-inner{
  padding:88px 0; display:grid; grid-template-columns:1fr 0.85fr; gap:56px; align-items:center;
}
.final-cta h2{ font-size:40px; font-weight:800; letter-spacing:-1px; line-height:1.12; margin-bottom:18px; }
.final-cta p{ font-size:17px; color:var(--ink); opacity:.8; max-width:440px; }

/* ============ FOOTER ============ */
footer{ padding:56px 0 32px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:32px; margin-bottom:48px;
}
.footer-logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; margin-bottom:12px; }
.footer-logo img{ height:28px; width:auto; }
.footer-tagline{ font-size:14px; color:var(--gray-text); max-width:260px; }
.footer-col h5{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-text); margin-bottom:14px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14.5px; font-weight:600; }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-bottom{
  border-top:2px solid var(--ink); padding-top:24px; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--gray-text);
}
.footer-bottom a{ color:var(--gray-text); text-decoration:underline; }
.footer-bottom a:hover{ color:var(--ink); }
.footer-link-btn{
  background:none; border:none; padding:0; margin:0;
  font:inherit; font-size:13px; color:var(--gray-text);
  text-decoration:underline; cursor:pointer;
}
.footer-link-btn:hover{ color:var(--ink); }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:34px; height:34px; border:2px solid var(--ink); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800;
}

/* ============ ABOUT PAGE SPECIFIC ============ */
.about-story{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.about-story p{ font-size:16.5px; color:var(--gray-text); line-height:1.75; margin-bottom:18px; }
.about-story p strong{ color:var(--ink); }

.values-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.value-card{ border:2px solid var(--ink); border-radius:var(--radius-card); padding:28px; }
.value-card .num{ font-size:13px; font-weight:800; color:var(--blue); margin-bottom:12px; }
.value-card h4{ font-size:18px; font-weight:800; margin-bottom:8px; }
.value-card p{ font-size:14.5px; color:var(--gray-text); line-height:1.6; }

.office-card{
  border:2px solid var(--ink); border-radius:var(--radius-card); padding:32px;
  background:var(--yellow); display:flex; flex-direction:column; gap:16px;
}
.office-card h4{ font-size:19px; font-weight:800; }
.office-row{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; line-height:1.5; }
.office-row .ic{ width:22px; height:22px; flex-shrink:0; display:flex; align-items:center; }
.office-row .ic svg{ display:block; }

.timeline{ display:flex; flex-direction:column; gap:0; }
.timeline-item{ display:grid; grid-template-columns:90px 1fr; gap:24px; padding:22px 0; border-top:1px solid var(--line-soft); }
.timeline-item:first-child{ border-top:none; }
.timeline-year{ font-weight:800; font-size:16px; }
.timeline-item h4{ font-size:16.5px; font-weight:800; margin-bottom:6px; }
.timeline-item p{ font-size:14.5px; color:var(--gray-text); line-height:1.6; }

/* ============ SERVICES PAGE SPECIFIC ============ */
.service-detail{
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start;
  padding:64px 0; border-bottom:2px solid var(--ink);
}
.service-detail:last-of-type{ border-bottom:none; }
.service-detail.reverse{ direction:rtl; }
.service-detail.reverse > *{ direction:ltr; }
.service-detail-tag{
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:700;
  text-transform:uppercase; letter-spacing:1px; color:var(--blue); margin-bottom:14px;
}
.service-detail h3{ font-size:28px; font-weight:800; letter-spacing:-0.5px; margin-bottom:14px; }
.service-detail > div > p{ font-size:16px; color:var(--gray-text); line-height:1.7; margin-bottom:20px; }
.service-detail-panel{
  border:2px solid var(--ink); border-radius:var(--radius-card); padding:28px;
}
.service-detail-panel ul{ display:flex; flex-direction:column; gap:12px; }
.service-detail-panel li{ display:flex; gap:10px; font-size:14.5px; font-weight:600; align-items:flex-start; }
.service-detail-panel .check{
  width:20px; height:20px; border-radius:50%; background:var(--ink); color:var(--paper);
  display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; margin-top:1px;
}

/* ============ CONTACTS PAGE SPECIFIC ============ */
.contact-layout{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start; }
.contact-info-list{ display:flex; flex-direction:column; gap:24px; margin-top:32px; }
.contact-info-item{ display:flex; gap:16px; }
.contact-info-icon{
  width:44px; height:44px; border-radius:14px; border:2px solid var(--ink);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px;
}
.contact-info-icon svg{ display:block; }
.contact-info-item h4{ font-size:15px; font-weight:800; margin-bottom:4px; }
.contact-info-item p{ font-size:14.5px; color:var(--gray-text); line-height:1.5; }
.map-frame{
  border:2px solid var(--ink); border-radius:var(--radius-card); overflow:hidden; margin-top:28px;
  height:240px;
}
.map-frame iframe{ width:100%; height:100%; border:none; display:block; }

/* ============ FAQ ============ */
.faq-list{ display:flex; flex-direction:column; gap:0; }
.faq-item{ border-bottom:1px solid var(--line-soft); padding:22px 0; }
.faq-item:first-child{ padding-top:0; }
.faq-q{
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
  font-size:16.5px; font-weight:700; gap:16px;
}
.faq-q .plus{ font-size:20px; font-weight:400; flex-shrink:0; transition:transform .2s ease; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ display:none; font-size:15px; color:var(--gray-text); line-height:1.65; padding-top:12px; max-width:680px; }
.faq-item.open .faq-a{ display:block; }

/* ============ MISC ============ */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .hero-grid, .why-grid, .final-cta-inner, .about-story, .contact-layout{ grid-template-columns:1fr; }
  .services-grid, .testi-grid, .values-grid{ grid-template-columns:repeat(2,1fr); }
  .process-grid{ grid-template-columns:repeat(2,1fr); }
  .page-hero h1{ font-size:38px; }
  .section-head h2{ font-size:28px; }
  .final-cta h2{ font-size:30px; }
  .stat-panel{ grid-template-columns:1fr 1fr; }
  .service-detail{ grid-template-columns:1fr; }
  .service-detail.reverse{ direction:ltr; }
  .timeline-item{ grid-template-columns:70px 1fr; }
}
@media (max-width: 620px){
  .wrap{ padding:0 20px; }
  .header-inner{ padding:14px 20px; }
  .page-hero{ padding:40px 0 48px; }
  .page-hero h1{ font-size:30px; }
  .page-hero p{ font-size:16px; }
  .services-grid, .testi-grid, .process-grid, .values-grid{ grid-template-columns:1fr; }
  .section{ padding:56px 0; }
  .section-tight{ padding:44px 0; }
  .stat-panel{ grid-template-columns:1fr; padding:28px; }
  .footer-cols{ gap:32px; }
  .header-cta .btn{ padding:10px 16px; font-size:13px; }
  .form-card{ padding:22px; }
  .final-cta h2{ font-size:26px; }
  .about-story{ gap:32px; }
  .service-detail{ padding:44px 0; gap:28px; }
  .timeline-item{ grid-template-columns:1fr; gap:6px; }
}

/* ============ COOKIE CONSENT BANNER ============ */
.consent-overlay{
  position:fixed; inset:0; z-index:998;
  background:rgba(14,14,14,0.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.consent-overlay.show{ opacity:1; pointer-events:auto; }

.consent-banner{
  position:fixed; left:50%; bottom:24px;
  transform:translate(-50%, 20px);
  width:calc(100% - 32px); max-width:680px;
  z-index:999;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
}
.consent-banner.show{
  opacity:1; pointer-events:auto;
  transform:translate(-50%, 0);
}

.consent-card{
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:var(--radius-card);
  box-shadow:8px 8px 0 var(--ink);
  padding:32px;
  max-height:85vh;
  overflow-y:auto;
}
.consent-card h2{ font-size:21px; font-weight:800; margin-bottom:12px; letter-spacing:-0.4px; }
.consent-card p{ font-size:14.5px; color:var(--gray-text); line-height:1.6; margin-bottom:10px; }
.consent-policy-link{ font-size:13px; margin-bottom:0; }
.consent-policy-link a{ color:var(--blue); font-weight:700; text-decoration:underline; }
.consent-sub{ margin-bottom:20px; }

.consent-actions{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:20px;
}
.btn-consent{
  flex:1 1 auto;
  border-radius:var(--radius-pill);
  padding:13px 18px;
  font-weight:700;
  font-size:13.5px;
  border:2px solid var(--ink);
  cursor:pointer;
  white-space:nowrap;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn-consent-solid{ background:var(--mint); color:var(--ink); }
.btn-consent-solid:hover{ transform:translate(-2px,-2px); box-shadow:3px 3px 0 var(--ink); }
.btn-consent-outline{ background:var(--paper); color:var(--ink); }
.btn-consent-outline:hover{ background:#F7F7F2; }

.consent-category{
  border-top:1px solid var(--line-soft);
  padding:16px 0;
}
.consent-category:first-of-type{ border-top:none; padding-top:0; }
.consent-category-head{
  display:flex; align-items:center; justify-content:space-between;
  font-size:15px; font-weight:800; margin-bottom:6px;
}
.consent-category p{ font-size:13.5px; margin-bottom:0; }

.consent-toggle-locked{
  font-size:12px; font-weight:700; color:var(--mint-deep);
  background:#E8FBF0; border:1px solid var(--mint-deep);
  border-radius:var(--radius-pill); padding:4px 10px;
}

.consent-switch{ position:relative; display:inline-block; width:42px; height:24px; flex-shrink:0; }
.consent-switch input{ opacity:0; width:0; height:0; }
.consent-switch-track{
  position:absolute; cursor:pointer; inset:0;
  background:#D8D6CC; border-radius:999px;
  transition:.2s;
}
.consent-switch-track::before{
  content:""; position:absolute; height:18px; width:18px;
  left:3px; bottom:3px; background:var(--paper);
  border-radius:50%; transition:.2s;
  box-shadow:0 1px 2px rgba(0,0,0,0.3);
}
.consent-switch input:checked + .consent-switch-track{ background:var(--blue); }
.consent-switch input:checked + .consent-switch-track::before{ transform:translateX(18px); }

@media (max-width:620px){
  .consent-card{ padding:24px; }
  .consent-actions{ flex-direction:column; }
  .btn-consent{ width:100%; }
}

/* ============ BLOG ============ */
.blog-index-list{ list-style:none; padding:0; margin:0; max-width:760px; }
.blog-index-item{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding:18px 0; border-bottom:1px solid var(--line-soft);
}
.blog-index-item a{ font-size:18px; font-weight:700; }
.blog-index-date{ font-size:13px; color:var(--gray-text); white-space:nowrap; }
.blog-post{ max-width:720px; }
.blog-post-date{ font-size:13px; color:var(--gray-text); margin-bottom:8px; }
.blog-post h1{ font-size:36px; font-weight:800; letter-spacing:-0.8px; margin-bottom:24px; }
.blog-post p{ font-size:17px; line-height:1.7; margin-bottom:18px; }
.blog-post h2{ font-size:24px; font-weight:800; margin:36px 0 14px; }

/* ===== Careers (listing + job posting + application form) ===== */
.placeholder-card{
  border:2px solid var(--ink); border-radius:var(--radius-card); padding:48px 32px;
  text-align:center; max-width:640px; margin:0 auto;
}
.placeholder-card h2{ font-size:24px; font-weight:800; margin-bottom:12px; letter-spacing:-0.4px; }
.placeholder-card p{ color:var(--gray-text); margin-bottom:24px; }

.job-list{ display:grid; gap:20px; max-width:760px; }
.job-card{
  display:block; border:1px solid var(--line-soft); border-radius:var(--radius-card);
  padding:28px 28px; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s;
}
.job-card:hover{ border-color:var(--ink); transform:translateY(-2px); }
.job-card h2{ font-size:22px; font-weight:800; letter-spacing:-0.4px; margin-bottom:6px; }
.job-card-meta{ font-size:14px; color:var(--gray-text); margin-bottom:12px; }
.job-card-blurb{ color:var(--gray-text); line-height:1.6; margin-bottom:16px; }
.job-card-link{ font-weight:700; color:var(--ink); }

.job-facts{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.job-fact{
  display:inline-block; padding:6px 14px; border:1px solid var(--line-soft);
  border-radius:var(--radius-pill); font-size:14px; font-weight:600; color:var(--ink);
}
.job-body{ max-width:720px; }
.job-body h2{ font-size:22px; font-weight:800; letter-spacing:-0.4px; margin:36px 0 14px; }
.job-body h2:first-child{ margin-top:0; }
.job-body p{ color:var(--gray-text); margin-bottom:14px; line-height:1.7; }
.job-body ul{ margin:0 0 14px; padding-left:22px; }
.job-body li{ color:var(--gray-text); margin-bottom:10px; line-height:1.7; }
.job-body strong{ color:var(--ink); }

#apply{ max-width:640px; margin:0 auto; scroll-margin-top:96px; }
.form-hint{ font-weight:400; color:var(--gray-text); font-size:13px; }
#careers-form input[type="file"]{
  width:100%; padding:10px 12px; border:1px solid var(--line-soft);
  border-radius:var(--radius-card); background:#fff; font-size:15px; cursor:pointer;
}

/* ===== Case studies ===== */
/* Index gallery */
.cs-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.cs-card{
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
  border:1px solid var(--line-soft); border-radius:var(--radius-card);
  padding:32px 30px; transition:border-color .15s, transform .15s, box-shadow .15s;
}
.cs-card:hover{ border-color:var(--ink); transform:translateY(-3px); box-shadow:0 12px 32px rgba(14,14,14,.08); }
.cs-card-tag{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--blue); }
.cs-card-metric{ display:block; margin-top:18px; font-size:60px; font-weight:800; line-height:1; letter-spacing:-2.5px; color:var(--mint-deep); }
.cs-card-metric-label{ display:block; margin-top:8px; font-size:13px; color:var(--gray-text); }
.cs-card h2{ font-size:22px; font-weight:800; letter-spacing:-0.4px; margin:22px 0 10px; }
.cs-card p{ color:var(--gray-text); line-height:1.6; flex-grow:1; margin-bottom:18px; }
.cs-card-link{ font-weight:700; color:var(--blue); }

/* Detail hero meta chips reuse .job-facts/.job-fact */

/* Stat band */
.cs-stats-band .wrap{ }
.cs-stats{
  display:grid; grid-template-columns:repeat(3,1fr);
  background:var(--ink); border-radius:var(--radius-card); overflow:hidden;
}
.cs-stat{ padding:40px 28px; text-align:center; border-right:1px solid rgba(255,255,255,.10); }
.cs-stat:last-child{ border-right:none; }
.cs-stat-value{ display:block; font-size:50px; font-weight:800; line-height:1; letter-spacing:-1.5px; color:var(--mint); }
.cs-stat-label{ display:block; margin-top:12px; font-size:14px; color:#C9C9C4; }

/* Narrative body */
.cs-body{ max-width:760px; }
.cs-body h2{ font-size:26px; font-weight:800; letter-spacing:-0.5px; margin:40px 0 14px; }
.cs-body h2:first-child{ margin-top:0; }
.cs-body h3{ font-size:18px; font-weight:700; margin:28px 0 10px; color:var(--ink); }
.cs-body p{ color:var(--gray-text); line-height:1.75; margin-bottom:16px; font-size:16.5px; }
.cs-body ul{ margin:0 0 16px; padding-left:22px; }
.cs-body li{ color:var(--gray-text); line-height:1.7; margin-bottom:10px; }
.cs-body strong{ color:var(--ink); }

/* Screenshot frames */
.cs-figure{
  margin:26px 0; padding:14px; background:var(--paper);
  border:1px solid var(--line-soft); border-radius:16px;
  box-shadow:0 6px 24px rgba(14,14,14,.06);
}
.cs-figure img{ width:100%; height:auto; display:block; border-radius:8px; border:1px solid var(--line-soft); }
.cs-figure figcaption{ margin-top:12px; font-size:13px; color:var(--gray-text); text-align:center; }

/* Closing CTA */
.cs-cta-card{
  background:var(--blue-light); border-radius:var(--radius-card);
  padding:52px 40px; text-align:center; max-width:760px; margin:0 auto;
}
.cs-cta-card h2{ font-size:28px; font-weight:800; letter-spacing:-0.6px; margin-bottom:12px; }
.cs-cta-card p{ color:var(--gray-text); line-height:1.6; max-width:520px; margin:0 auto 24px; }

@media (max-width:880px){
  .cs-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .cs-stats{ grid-template-columns:1fr; }
  .cs-stat{ border-right:none; border-bottom:1px solid rgba(255,255,255,.10); }
  .cs-stat:last-child{ border-bottom:none; }
  .cs-card-metric{ font-size:52px; }
}

/* ===== Blog article (prose components + language switcher) ===== */
.lang-switch{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 18px; }
.lang-switch-label{ font-size:13px; color:var(--gray-text); }
.lang-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 14px; border:1px solid var(--line-soft);
  border-radius:var(--radius-pill); font-size:13px; font-weight:700;
  text-decoration:none; color:var(--ink); line-height:1.4; white-space:nowrap;
}
a.lang-pill:hover{ border-color:var(--ink); }
.lang-pill.is-active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.post-dek{ font-size:20px; line-height:1.5; color:var(--gray-text); margin:-8px 0 28px; max-width:720px; }

.post-tldr{
  background:var(--blue-light); border-radius:var(--radius-card);
  padding:28px 30px; margin:0 0 36px; max-width:760px;
}
.post-tldr h2{ font-size:15px !important; text-transform:uppercase; letter-spacing:1px; margin:0 0 14px !important; color:var(--blue); }
.post-tldr ul{ margin:0; padding-left:20px; }
.post-tldr li{ margin-bottom:10px; line-height:1.6; color:var(--ink); }

.post-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:30px 0; }
.post-stat{ border:1px solid var(--line-soft); border-radius:var(--radius-card); padding:24px 20px; text-align:center; }
.post-stat-value{ display:block; font-size:40px; font-weight:800; line-height:1; letter-spacing:-1.5px; color:var(--mint-deep); }
.post-stat-label{ display:block; margin-top:10px; font-size:13px; color:var(--gray-text); line-height:1.4; }

.post-chart{ margin:32px 0; padding:20px; border:1px solid var(--line-soft); border-radius:var(--radius-card); background:#fff; max-width:560px; }
.post-chart svg{ width:100%; height:auto; }
.chart-axis{ stroke:var(--line-soft); stroke-width:1.5; }
.chart-bar-muted{ fill:var(--line-soft); }
.chart-bar-key{ fill:var(--mint); }
.chart-val{ font-size:18px; font-weight:800; fill:var(--ink); text-anchor:middle; }
.chart-cap{ font-size:12px; fill:var(--gray-text); text-anchor:middle; }
.post-chart figcaption{ margin-top:12px; font-size:13px; color:var(--gray-text); }

.post-quote{
  border-left:4px solid var(--mint); margin:32px 0; padding:6px 0 6px 24px;
  font-size:22px; font-weight:700; line-height:1.45; letter-spacing:-0.4px; color:var(--ink);
}

.post-table-wrap{ overflow-x:auto; margin:28px 0; }
.post-table{ width:100%; border-collapse:collapse; font-size:16px; }
.post-table th, .post-table td{ text-align:left; padding:12px 16px; border-bottom:1px solid var(--line-soft); }
.post-table thead th{ font-size:13px; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-text); }
.post-table td.pos{ font-weight:800; color:var(--mint-deep); text-align:right; }
.post-table th:last-child{ text-align:right; }

.post-actions{ counter-reset:none; margin:18px 0; padding-left:22px; }
.post-actions li{ margin-bottom:14px; line-height:1.7; color:var(--gray-text); }
.post-actions strong{ color:var(--ink); }

.post-note{
  background:#FBFBF8; border:1px solid var(--line-soft); border-radius:var(--radius-card);
  padding:20px 24px; font-size:15px; line-height:1.65; color:var(--gray-text); margin:32px 0;
}
.post-sources{ font-size:14.5px; line-height:1.7; color:var(--gray-text); padding-left:22px; }
.post-sources li{ margin-bottom:8px; scroll-margin-top:90px; }
.post-sources li:target{ background:var(--blue-light); border-radius:6px; box-shadow:0 0 0 6px var(--blue-light); }
.post-sources a{ color:var(--blue); }
sup.ref{ font-size:0.7em; line-height:0; margin-left:1px; }
sup.ref a{ color:var(--blue); font-weight:700; text-decoration:none; }
sup.ref a:hover{ text-decoration:underline; }
.post-highlight{ background:linear-gradient(transparent 55%, var(--blue-light) 55%); padding:0 2px; font-weight:600; }

/* interactive article widget (blog-designer; inline JS per article) — only when
   it genuinely helps the reader compute a decision. Styled to /roi-calculator/ quality. */
.post-widget{ border:2px solid var(--ink); border-radius:var(--radius-card); padding:26px 28px; margin:32px 0; background:var(--paper); }
.post-widget h4{ font-size:19px; font-weight:800; margin:0 0 5px; letter-spacing:-0.4px; }
.post-widget .pw-sub{ font-size:14px; color:var(--gray-text); margin:0 0 20px; line-height:1.55; }
.post-widget .pw-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px 22px; }
.post-widget .pw-field{ margin:0; }
.post-widget .pw-label-row{ display:flex; align-items:center; gap:7px; margin-bottom:8px; }
.post-widget .pw-label{ font-size:14px; font-weight:700; color:var(--ink); }
.post-widget .pw-tip{ width:17px; height:17px; border-radius:50%; border:1.5px solid var(--line-soft); color:var(--gray-text); font-size:11px; font-weight:800; line-height:15px; text-align:center; cursor:help; position:relative; flex:0 0 auto; }
.post-widget .pw-tip .pw-bubble{ visibility:hidden; opacity:0; position:absolute; bottom:135%; left:50%; transform:translateX(-50%); width:210px; background:var(--ink); color:var(--paper); font-size:12px; font-weight:500; line-height:1.5; text-align:left; border-radius:10px; padding:10px 12px; z-index:5; transition:opacity .15s; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.post-widget .pw-tip:hover .pw-bubble, .post-widget .pw-tip:focus .pw-bubble{ visibility:visible; opacity:1; }
.post-widget label{ display:block; font-size:14px; font-weight:700; margin-bottom:8px; }
.post-widget input[type="number"], .post-widget input[type="range"]{ width:100%; }
.post-widget input[type="number"]{ padding:13px 15px; border:1.5px solid var(--line-soft); border-radius:12px; font-size:16px; font-weight:600; font-family:inherit; background:#fff; box-sizing:border-box; }
.post-widget input:focus{ outline:none; border-color:var(--ink); box-shadow:0 0 0 3px var(--blue-light); }
.post-widget .pw-hint{ font-size:12px; color:var(--gray-text); margin:6px 0 0; line-height:1.4; }
.post-widget .pw-out{ margin-top:22px; background:var(--ink); color:var(--paper); border-radius:14px; padding:20px 22px; }
.post-widget .pw-out .pw-big{ font-size:30px; font-weight:800; letter-spacing:-0.8px; line-height:1.1; }
.post-widget .pw-out .pw-cap{ font-size:13px; color:#C9C9C3; margin-top:3px; line-height:1.45; }
.post-widget .pw-out .pw-divider{ border-top:1px solid rgba(255,255,255,.16); margin:16px 0; }
.post-widget .pw-note{ font-size:12px; color:var(--gray-text); margin-top:14px; line-height:1.55; }
.post-widget .pw-checks{ display:flex; flex-direction:column; gap:10px; }
.post-widget .pw-check{ display:flex; gap:11px; align-items:flex-start; font-size:14.5px; line-height:1.5; cursor:pointer; padding:12px 14px; border:1.5px solid var(--line-soft); border-radius:12px; background:#fff; transition:border-color .12s; }
.post-widget .pw-check:hover{ border-color:var(--ink); }
.post-widget .pw-check input{ margin:2px 0 0; flex:0 0 auto; width:18px; height:18px; accent-color:var(--ink); cursor:pointer; }
.post-widget .pw-check b{ font-weight:700; }
@media (max-width:600px){ .post-widget{ padding:20px 18px; } .post-widget .pw-grid{ grid-template-columns:1fr; gap:16px; } }
.blog-back{ margin-top:40px; padding-top:24px; border-top:1px solid var(--line-soft); }

@media (max-width:680px){
  .post-stats{ grid-template-columns:1fr; }
  .post-quote{ font-size:19px; }
  .post-dek{ font-size:18px; }
}

/* ===== Blog article — rich data visuals ===== */
.fig-cap{ margin-top:12px; font-size:13px; color:var(--gray-text); }
.fig-cap a{ color:var(--blue); }

/* AI surfaces infographic */
.ai-surfaces{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:30px 0; }
.ai-surface{ border:1px solid var(--line-soft); border-radius:var(--radius-card); padding:22px 20px; }
.ai-surface h4{ font-size:15px; font-weight:800; margin:0 0 10px; }
.ai-surface .big{ display:block; font-size:30px; font-weight:800; color:var(--mint-deep); letter-spacing:-1px; line-height:1; }
.ai-surface p{ font-size:13px; color:var(--gray-text); margin:8px 0 0; line-height:1.45; }

/* donut */
.donut-wrap{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; margin:6px 0; }
.donut{ width:150px; height:150px; flex:0 0 auto; }
.donut .track{ fill:none; stroke:var(--line-soft); stroke-width:13; }
.donut .val{ fill:none; stroke:var(--mint); stroke-width:13; stroke-linecap:round; }
.donut .donut-num{ fill:var(--ink); font-size:30px; font-weight:800; }
.donut-label{ font-size:15.5px; color:var(--gray-text); max-width:360px; line-height:1.5; }
.donut-label b{ color:var(--ink); }

/* horizontal metric bars */
.metric-bars{ margin:26px 0; display:grid; gap:13px; max-width:620px; }
.metric-bar{ display:grid; grid-template-columns:148px 1fr 52px; align-items:center; gap:12px; }
.metric-bar .mb-label{ font-size:14px; color:var(--ink); }
.metric-bar .mb-track{ background:var(--line-soft); border-radius:var(--radius-pill); height:13px; }
.metric-bar .mb-fill{ height:100%; background:var(--mint); border-radius:var(--radius-pill); }
.metric-bar .mb-val{ font-size:15px; font-weight:800; color:var(--mint-deep); text-align:right; }

/* funnel compression */
.funnelflow{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:30px 0; }
.ff-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-text); margin:0 0 12px; }
.ff-steps{ display:flex; flex-direction:column; gap:7px; }
.ff-step{ border:1px solid var(--line-soft); border-radius:12px; padding:9px 14px; font-size:13.5px; font-weight:600; }
.ff-step.muted{ color:var(--gray-text); }
.ff-step.key{ background:var(--mint); border-color:var(--mint); color:var(--ink); }
.ff-note{ font-size:12.5px; color:var(--gray-text); margin-top:10px; }

/* SEO -> GEO compare */
.geo-compare{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:28px 0; }
.geo-card{ border:1px solid var(--line-soft); border-radius:var(--radius-card); padding:22px; }
.geo-card.old{ background:#FBFBF8; }
.geo-card.new{ background:var(--blue-light); border-color:transparent; }
.geo-card .tag{ font-size:12px; text-transform:uppercase; letter-spacing:1px; font-weight:700; }
.geo-card.old .tag{ color:var(--gray-text); }
.geo-card.new .tag{ color:var(--blue); }
.geo-card h4{ font-size:18px; font-weight:800; margin:8px 0 6px; letter-spacing:-0.3px; }
.geo-card p{ font-size:14px; color:var(--gray-text); line-height:1.5; margin:0; }

/* timeline */
.timeline{ margin:30px 0; border-left:2px solid var(--line-soft); padding-left:24px; display:grid; gap:22px; }
.timeline-item{ position:relative; }
.timeline-item::before{ content:''; position:absolute; left:-31px; top:3px; width:11px; height:11px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 3px #fff, 0 0 0 4px var(--mint); }
.timeline-date{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--blue); }
.timeline-item h4{ font-size:16px; font-weight:700; margin:3px 0 4px; }
.timeline-item p{ font-size:14px; color:var(--gray-text); line-height:1.55; margin:0; }

@media (max-width:680px){
  .ai-surfaces{ grid-template-columns:1fr; }
  .funnelflow, .geo-compare{ grid-template-columns:1fr; }
  .metric-bar{ grid-template-columns:104px 1fr 46px; }
}

/* ===== Blog index — cards ===== */
.blog-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.blog-card{
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
  border:1px solid var(--line-soft); border-radius:var(--radius-card);
  padding:30px 28px; transition:border-color .15s, transform .15s, box-shadow .15s;
}
.blog-card:hover{ border-color:var(--ink); transform:translateY(-3px); box-shadow:0 12px 32px rgba(14,14,14,.08); }
.blog-card-date{ font-size:13px; color:var(--gray-text); }
.blog-card h2{ font-size:23px; font-weight:800; letter-spacing:-0.5px; line-height:1.25; margin:10px 0 12px; }
.blog-card p{ color:var(--gray-text); line-height:1.6; flex-grow:1; margin-bottom:18px; }
.blog-card-link{ font-weight:700; color:var(--blue); }
@media (max-width:760px){ .blog-grid{ grid-template-columns:1fr; } }

/* ===== Blog index — featured card + toggle polish ===== */
.page-hero .lang-switch{ margin-top:22px; }
.blog-featured{
  display:block; text-decoration:none; color:inherit;
  border:2px solid var(--ink); border-radius:var(--radius-card);
  padding:40px; margin-bottom:24px; transition:transform .15s, box-shadow .15s;
}
.blog-featured:hover{ transform:translateY(-3px); box-shadow:0 16px 40px rgba(14,14,14,.10); }
.blog-featured-tag{
  display:inline-block; font-size:12px; font-weight:800; text-transform:uppercase;
  letter-spacing:1px; color:#fff; background:var(--ink); padding:5px 13px; border-radius:var(--radius-pill);
}
.blog-featured h2{ font-size:34px; font-weight:800; letter-spacing:-1px; line-height:1.15; margin:18px 0 14px; max-width:780px; }
.blog-featured p{ color:var(--gray-text); font-size:18px; line-height:1.6; max-width:720px; margin-bottom:24px; }
.blog-featured-foot{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.blog-featured .blog-card-link{ color:var(--blue); font-weight:700; }
.blog-empty{ color:var(--gray-text); }
@media (max-width:680px){
  .blog-featured{ padding:28px 24px; }
  .blog-featured h2{ font-size:26px; }
  .blog-featured p{ font-size:16px; }
}

/* ===== Blog index — uniform cards (all posts same size/style) ===== */
.blog-list{ display:flex; flex-direction:column; gap:20px; }
.blog-list .blog-card{
  display:block; width:auto; flex:none;
  border:2px solid var(--ink); border-radius:var(--radius-card);
  padding:36px 38px; transition:transform .15s, box-shadow .15s;
}
.blog-list .blog-card:hover{ transform:translateY(-3px); box-shadow:0 16px 40px rgba(14,14,14,.10); }
.blog-list .blog-card .blog-card-date{ font-size:13px; color:var(--gray-text); }
.blog-list .blog-card h2{ font-size:30px; font-weight:800; letter-spacing:-0.8px; line-height:1.18; margin:10px 0 12px; max-width:780px; }
.blog-list .blog-card p{ color:var(--gray-text); font-size:17px; line-height:1.6; max-width:720px; margin-bottom:20px; }
.blog-list .blog-card .blog-card-link{ font-weight:700; color:var(--blue); }
.blog-pager{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin-top:40px; }
.blog-pager .pager-num,.blog-pager .pager-step{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px; border:2px solid var(--ink); border-radius:10px; font-weight:700; color:var(--ink); text-decoration:none; }
.blog-pager .pager-num:hover,.blog-pager .pager-step:hover{ background:var(--ink); color:#fff; }
.blog-pager .pager-num.is-active{ background:var(--ink); color:#fff; cursor:default; }
@media (max-width:680px){
  .blog-list .blog-card{ padding:26px 22px; }
  .blog-list .blog-card h2{ font-size:24px; }
  .blog-list .blog-card p{ font-size:16px; }
}
