/*
 * HH Connect Consult — theme stylesheet.
 * Ported 1:1 from the approved Astro prototype (src/astro-site/pages/index.astro
 * and projects.astro). Class names are intentionally unchanged so this file is
 * a drop-in match for the original design — patterns/*.php apply these same
 * class names as "Additional CSS Class(es)" on core blocks.
 */

*,*::before,*::after{box-sizing:border-box}
/* scroll-padding-top keeps anchor jumps (#about, #contact…) clear of the fixed 76px header. */
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{font-family:'Fira Sans',sans-serif;color:var(--wp--preset--color--text,#333);background:#fff}

/* ── NAV ── */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:var(--wp--preset--color--red,#e81d2a);height:76px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 48px;box-shadow:0 2px 24px rgba(0,0,0,.25)
}
/* margin-right/left:auto keep the logo hard left and the menu hard right even
   if one of the two is missing (e.g. before a logo has been uploaded). */
.nav-logo{text-decoration:none;display:flex;align-items:center;margin-right:auto}
.nav-logo img{height:40px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none;margin:0 0 0 auto;padding:0}
.nav-links a{
  color:rgba(255,255,255,.88);text-decoration:none;
  font-size:14.5px;font-weight:500;padding:8px 14px;border-radius:4px;
  transition:background .18s,color .18s;white-space:nowrap
}
.nav-links a:hover,.nav-links a.active-page{background:rgba(255,255,255,.15);color:#fff}
/* Core's navigation block forces its links to `color:inherit` with a
   doubled-class selector that outranks `.nav-links a`, so they were picking up
   the dark body text colour. Give them a white parent to inherit from, and
   match core's specificity for the hover state. */
.nav-links{color:rgba(255,255,255,.88)}
.nav-links .wp-block-navigation-item__content.wp-block-navigation-item__content:hover{color:#fff}
.nav-contact{font-weight:700}
.nav-drop{position:relative}
.nav-drop>a::after{content:' ▾';font-size:10px;transition:transform .2s;display:inline-block}
.nav-drop:hover>a::after{transform:rotate(180deg)}
.nav-drop-menu{
  position:absolute;top:100%;left:0;
  background:var(--wp--preset--color--red-light,#ef6069);min-width:220px;border-radius:0 0 8px 8px;
  box-shadow:0 12px 32px rgba(0,0,0,.2);
  padding-top:8px;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s,transform .18s,visibility .18s;
  pointer-events:none
}
.nav-drop:hover .nav-drop-menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.nav-drop-menu a{
  display:flex;align-items:center;justify-content:space-between;
  color:#fff!important;padding:13px 20px!important;
  font-size:13.5px;font-weight:500;
  border-bottom:1px solid rgba(255,255,255,.15);border-radius:0!important;
  background:transparent!important
}
.nav-drop-menu a:last-child{border-bottom:none}
.nav-drop-menu a:hover{background:rgba(255,255,255,.15)!important;color:#fff!important}
.nav-drop-menu a::after{content:'→';opacity:.6;font-size:12px}
.nav-toggle{display:none;flex-direction:column;justify-content:space-around;width:26px;height:20px;background:none;border:none;cursor:pointer;padding:0;flex-shrink:0}
.nav-toggle span{display:block;width:100%;height:2px;background:#fff;border-radius:2px;transition:transform .25s,opacity .25s}
.nav-toggle.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.nav-drop.open .nav-drop-menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}

/* ── HERO ── */
#hero{padding-top:76px;min-height:100vh;display:flex;align-items:center;background:#fff;overflow:hidden}
.hero-inner{max-width:1220px;margin:0 auto;padding:72px 48px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:56px}
.hero-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--wp--preset--color--red,#e81d2a);margin-bottom:18px}
.hero-h1{font-size:62px;font-weight:700;line-height:1.08;color:var(--wp--preset--color--dark,#111);margin-bottom:18px}
.hero-h1 em{font-style:normal;color:var(--wp--preset--color--red,#e81d2a)}
.hero-sub{font-size:20px;color:#555;line-height:1.65;font-weight:300;margin-bottom:32px}
.wp-block-button.btn-red .wp-block-button__link,.wp-block-button.btn-outline .wp-block-button__link{display:inline-block;font-family:'Fira Sans',sans-serif;font-weight:600;font-size:15px;letter-spacing:.4px;padding:15px 34px;border-radius:4px;text-decoration:none;border:none;cursor:pointer;transition:all .18s;line-height:normal}
.wp-block-button.btn-red .wp-block-button__link{background:var(--wp--preset--color--red,#e81d2a);color:#fff}
.wp-block-button.btn-red:hover .wp-block-button__link{background:var(--wp--preset--color--red-dark,#c72527);color:#fff;transform:translateY(-1px)}
.wp-block-button.btn-outline{margin-left:14px}
.wp-block-button.btn-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--red,#e81d2a);border:2px solid var(--wp--preset--color--red,#e81d2a)}
.wp-block-button.btn-outline:hover .wp-block-button__link{background:var(--wp--preset--color--red,#e81d2a);color:#fff}
.hero-right{position:relative}
.hero-right img{width:100%;max-width:520px;display:block;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,.12)}
.hero-badge{position:absolute;bottom:28px;left:-24px;background:var(--wp--preset--color--red,#e81d2a);color:#fff;padding:18px 24px;border-radius:8px;box-shadow:0 10px 28px rgba(232,29,42,.4)}
.hero-badge p:first-child{font-size:30px;font-weight:700;line-height:1;margin:0 0 4px}
.hero-badge p:last-child{font-size:12px;opacity:.85;line-height:1.4;margin:0}

/* pillars */
.pillars{background:var(--wp--preset--color--dark,#111);padding:64px 48px}
.pillars-inner{max-width:1220px;margin:0 auto}
.pillars-head{text-align:center;margin-bottom:40px}
.pillars-tag{font-size:12px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--wp--preset--color--red,#e81d2a);margin-bottom:10px}
.pillars-title{font-size:34px;font-weight:700;color:#fff;line-height:1.2}
.pillars-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.pillar{border-left:3px solid var(--wp--preset--color--red,#e81d2a);padding-left:20px}
.pillar h3{font-size:17px;font-weight:700;color:#fff;margin-bottom:8px}
.pillar p{font-size:15px;color:rgba(255,255,255,.6);line-height:1.65}

/* ── LOGOS ── */
#logos{background:var(--wp--preset--color--off-white,#f7f7f7);padding:36px 48px;border-top:1px solid var(--wp--preset--color--gray,#e5e5e5);border-bottom:1px solid var(--wp--preset--color--gray,#e5e5e5)}
.logos-label{text-align:center;font-size:11px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:#aaa;margin-bottom:28px}
.logos-carousel{display:flex;align-items:center;gap:16px;max-width:1220px;margin:0 auto}
.logos-arrow{flex-shrink:0;width:36px;height:36px;border-radius:50%;border:1px solid var(--wp--preset--color--gray,#e5e5e5);background:#fff;cursor:pointer;font-size:16px;color:#777;display:flex;align-items:center;justify-content:center;transition:all .18s}
.logos-arrow:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.logos-track-wrap{flex:1;overflow:hidden}
.logos-track{display:flex;align-items:center;gap:44px;width:max-content;will-change:transform}
.logos-item{display:flex;align-items:center;flex-shrink:0}
.logos-item img{height:34px;object-fit:contain;filter:grayscale(1) opacity(.55);transition:filter .3s}
.logos-item:hover img{filter:grayscale(0) opacity(1)}

/* ── SECTION BASE ── */
.section{padding:120px 48px}
.si{max-width:1220px;margin:0 auto}
.stag{font-size:12px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--wp--preset--color--red,#e81d2a);margin-bottom:12px}
.stitle{font-size:48px;font-weight:700;color:var(--wp--preset--color--dark,#111);line-height:1.12;margin-bottom:20px}
.stitle em{font-style:normal;color:var(--wp--preset--color--red,#e81d2a)}
.ssub{font-size:18px;color:#666;line-height:1.7;font-weight:300;max-width:640px}

/* ── ABOUT ── */
.about-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:48px}
.about-intro-card{background:var(--wp--preset--color--off-white,#f7f7f7);border-radius:10px;padding:30px 28px;border-top:4px solid var(--wp--preset--color--red,#e81d2a)}
.about-intro-card h3{font-size:19px;font-weight:700;color:var(--wp--preset--color--dark,#111);line-height:1.3;margin-bottom:12px}
.about-intro-card p{font-size:15px;color:#666;line-height:1.7}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:72px;margin-top:56px}
.about-col h3{font-size:22px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin-bottom:24px}
.tick-list{list-style:none;display:flex;flex-direction:column;gap:15px;margin:0;padding:0}
.tick-list li{display:flex;align-items:flex-start;gap:12px;font-size:17px;color:#444;line-height:1.5}
.tick-list li::before{content:'✓';color:var(--wp--preset--color--red,#e81d2a);font-size:15px;font-weight:700;flex-shrink:0;margin-top:2px;width:18px}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:56px}
.metric{background:var(--wp--preset--color--off-white,#f7f7f7);border-radius:8px;padding:26px;border-left:3px solid var(--wp--preset--color--red,#e81d2a)}
.metric p:first-child{font-size:38px;font-weight:700;color:var(--wp--preset--color--red,#e81d2a);line-height:1;margin:0 0 4px}
.metric p:last-child{font-size:13px;color:#888;margin:0}

/* ── ACCELERATE ── */
#accelerate{background:#fff}
.accel-layout{display:flex;gap:40px;align-items:center;margin-top:48px}
.accel-side{width:220px;flex-shrink:0;display:flex;flex-direction:column}
.accel-graph{flex:1;text-align:center}
.accel-graph svg{width:100%;max-width:480px}
.seg-btn{background:#fff;border:2px solid var(--wp--preset--color--gray,#e5e5e5);border-left:4px solid var(--seg-color, var(--wp--preset--color--red,#e81d2a));border-radius:8px;padding:16px 18px;margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.06);transition:box-shadow .22s,transform .22s,background .22s;text-align:left;width:100%;cursor:pointer}
.seg-btn:hover,.seg-btn:focus-visible{box-shadow:0 4px 18px rgba(232,29,42,.14)}
.seg-btn.active{background:color-mix(in srgb, var(--seg-color, var(--wp--preset--color--red,#e81d2a)) 8%, #fff);border-left-width:6px;box-shadow:0 8px 24px rgba(0,0,0,.12);transform:translateX(4px)}
.seg-btn-1{--seg-color:var(--wp--preset--color--red-light,#ef6069)}
.seg-btn-2{--seg-color:var(--wp--preset--color--red,#e81d2a)}
.seg-btn-3{--seg-color:var(--wp--preset--color--red-dark,#c72527)}
.seg-btn-4{--seg-color:var(--wp--preset--color--red-deep,#8b1119)}
.seg-time{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--seg-color, var(--wp--preset--color--red,#e81d2a));margin-bottom:5px}
.seg-name{font-size:16px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin-bottom:7px}
.seg-desc{font-size:14px;color:#666;line-height:1.6;margin:0}
.accel-graph svg path{cursor:pointer;transition:opacity .25s,filter .25s;outline:none}
.accel-graph svg.has-active path{opacity:.45}
.accel-graph svg.has-active path.active{opacity:1;filter:drop-shadow(0 0 6px rgba(0,0,0,.25))}
.accel-graph svg path:focus-visible{opacity:1;filter:drop-shadow(0 0 0 2px #2872fa)}

/* ── SERVICES / TABS ── */
.svc-head-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.svc-nav{display:flex;gap:10px;flex-shrink:0}
.svc-arrow{width:40px;height:40px;border-radius:50%;border:1px solid var(--wp--preset--color--gray,#e5e5e5);background:#fff;cursor:pointer;font-size:18px;color:#777;display:flex;align-items:center;justify-content:center;transition:all .18s}
.svc-arrow:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.svc-dots{display:flex;justify-content:center;gap:8px;margin-top:8px}
.svc-dot{width:9px;height:9px;border-radius:50%;background:var(--wp--preset--color--gray,#e5e5e5);border:none;cursor:pointer;padding:0}
.svc-dot.active{background:var(--wp--preset--color--red,#e81d2a)}
.svc-row{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:20px;margin-bottom:28px}
.svc-card{background:var(--wp--preset--color--off-white,#f7f7f7);border-radius:10px;padding:40px 32px;border-top:4px solid transparent;transition:all .22s}
.svc-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(0,0,0,.09);border-top-color:var(--wp--preset--color--red,#e81d2a)}
.svc-card img{width:68px;height:68px;object-fit:contain;margin-bottom:22px}
.svc-card h3{font-size:20px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin-bottom:12px}
.svc-card p{font-size:15px;color:#666;line-height:1.7}
.svc-badge{display:inline-block;background:var(--wp--preset--color--red,#e81d2a);color:#fff;font-size:12px;font-weight:700;letter-spacing:.4px;padding:4px 12px;border-radius:20px;margin-top:12px}
/* HH Tabs block reuses .svc-* classes so "Services" is just one configuration of the generic tabs block */
.hh-tabs-page[hidden]{display:none}

/* ── TESTIMONIALS / CAROUSEL ── */
#testimonials{background:var(--wp--preset--color--off-white,#f7f7f7)}
.testi-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.testi-nav{display:flex;gap:10px;flex-shrink:0;margin-bottom:8px}
.testi-arrow{width:40px;height:40px;border-radius:50%;border:1px solid var(--wp--preset--color--gray,#e5e5e5);background:#fff;cursor:pointer;font-size:18px;color:#777;display:flex;align-items:center;justify-content:center;transition:all .18s}
.testi-arrow:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.testi-viewport{overflow:hidden;margin-top:52px}
.testi-track{display:flex;align-items:stretch;gap:24px;transition:transform .45s ease}
@media (prefers-reduced-motion:reduce){.testi-track{transition:none}}
.testi-card{background:#fff;border-radius:10px;padding:36px;border-left:4px solid var(--wp--preset--color--red,#e81d2a);box-shadow:0 2px 14px rgba(0,0,0,.05);transition:box-shadow .2s;flex:0 0 calc((100% - 48px) / 3);min-height:360px;display:flex;flex-direction:column;align-self:stretch;scroll-margin-top:44px}
.testi-card:hover{box-shadow:0 8px 32px rgba(0,0,0,.1)}
.testi-quote{font-size:15px;line-height:1.75;color:#444;font-style:italic;margin-bottom:24px;position:relative;padding-left:18px;flex:1}
.testi-quote::before{content:'"';font-size:52px;line-height:0;vertical-align:-20px;color:var(--wp--preset--color--red,#e81d2a);font-style:normal;font-weight:700;position:absolute;left:-4px;top:14px}
.testi-footer{display:flex;align-items:center;gap:16px;border-top:1px solid var(--wp--preset--color--gray,#e5e5e5);padding-top:20px}
.testi-logo{height:36px;object-fit:contain;filter:grayscale(1) opacity(.65)}
.testi-author p:first-child{font-size:15px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin:0 0 2px}
.testi-author p:last-child{font-size:13px;color:#999;margin:0}

/* ── SIGN UP / LET'S TALK ── */
.signup{display:grid;grid-template-columns:1.1fr .9fr;align-items:stretch;background:var(--wp--preset--color--red-deep,#8b1119)}
.signup-left{
  display:flex;align-items:center;padding:88px 56px;color:#fff;
  background:linear-gradient(rgba(232,29,42,.72),rgba(199,37,39,.72)),url('../images/signup-bg.jpg') center/cover no-repeat
}
.signup-left-inner{max-width:540px;margin-left:auto}
.signup-left h2{font-size:38px;font-weight:700;line-height:1.15;margin-bottom:20px;color:#fff}
.signup-left p{font-size:17px;line-height:1.75;font-weight:300;margin-bottom:32px}
.wp-block-button.signup-cta .wp-block-button__link{display:inline-block;border:1.5px solid #fff;border-radius:30px;color:#fff;text-decoration:none;font-size:15px;font-weight:600;padding:13px 30px;transition:background .18s,color .18s}
.wp-block-button.signup-cta:hover .wp-block-button__link{background:#fff;color:var(--wp--preset--color--red,#e81d2a)}
.signup-right{padding:64px 56px;color:#fff}
.signup-title{font-size:30px;font-weight:700;text-align:center;margin-bottom:30px;color:#fff}
.signup-right .form-group label{color:#fff}
.signup-right .form-group input,.signup-right .form-group textarea{border:none;border-radius:2px}
.signup-right .form-group textarea{height:96px}
.signup-check{display:flex;align-items:center;gap:10px;font-size:13.5px;color:#fff;margin-bottom:26px;cursor:pointer}
.signup-check input{width:15px;height:15px;flex-shrink:0;accent-color:#fff}
.signup-submit{display:block;width:100%;max-width:300px;margin:0 auto;background:var(--wp--preset--color--red,#e81d2a);color:#fff;border:none;border-radius:30px;padding:14px 20px;font-family:'Fira Sans',sans-serif;font-size:16px;font-weight:700;cursor:pointer;transition:background .18s}
.signup-submit:hover{background:#f23744}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:13px;font-weight:600;color:#555;margin-bottom:6px}
.form-group input,.form-group textarea{width:100%;padding:13px 16px;border:1.5px solid var(--wp--preset--color--gray,#e5e5e5);border-radius:5px;font-family:'Fira Sans',sans-serif;font-size:15px;color:var(--wp--preset--color--text,#333);background:#fff;outline:none;transition:border-color .18s}
.form-group input:focus,.form-group textarea:focus{border-color:var(--wp--preset--color--red,#e81d2a)}
.form-group textarea{height:112px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-note{font-size:13px;margin-top:10px}
.form-note.is-success{color:#2a8a4a}
.form-note.is-error{color:var(--wp--preset--color--red,#e81d2a)}
/* On the dark-red "Let's talk" panel green/red text is unreadable (red on red
   is invisible), so the status message becomes a solid, high-contrast pill. */
.signup-right .form-note{padding:10px 14px;border-radius:4px;font-size:14px;line-height:1.5;margin:0 0 18px}
.signup-right .form-note.is-success{background:#1f6f3a;color:#fff}
.signup-right .form-note.is-error{background:#fff;color:var(--wp--preset--color--red-deep,#8b1119)}

/* ── FLUENT FORMS inside the hh/contact-form block (inc/fluent-forms.php) ──
   Restyles the plugin's default skin to match the theme's own form: white
   labels, white fields with dark text, red pill submit. Fluent Forms writes
   the submit button's colours inline from its form settings, hence the
   !important on those two properties only. */
.is-fluent-form .fluentform{--fluentform-primary:var(--wp--preset--color--red,#e81d2a);font-family:'Fira Sans',sans-serif}
.is-fluent-form .fluentform .ff-el-group{margin-bottom:20px}
.is-fluent-form .fluentform .ff-t-container{gap:14px}
.is-fluent-form .fluentform .ff-el-input--label label{font-size:13px;font-weight:600;color:#555}
.is-fluent-form .fluentform .ff-el-form-control{
  width:100%;padding:13px 16px;border:1.5px solid var(--wp--preset--color--gray,#e5e5e5);border-radius:5px;
  font-family:'Fira Sans',sans-serif;font-size:15px;line-height:1.4;color:var(--wp--preset--color--text,#333);background:#fff;box-shadow:none
}
.is-fluent-form .fluentform .ff-el-form-control:focus{border-color:var(--wp--preset--color--red,#e81d2a);outline:none}
.is-fluent-form .fluentform textarea.ff-el-form-control{height:112px;resize:vertical}
.is-fluent-form .fluentform .ff-el-form-check-label{display:flex;align-items:center;gap:10px;font-size:13.5px;cursor:pointer}
.is-fluent-form .fluentform .ff-el-form-check-input{width:15px;height:15px;flex-shrink:0;margin:0}
.is-fluent-form .fluentform .ff-btn-submit{
  display:block;width:100%;max-width:300px;margin:0 auto;border:none;border-radius:30px;padding:14px 20px;
  font-family:'Fira Sans',sans-serif;font-size:16px;font-weight:700;cursor:pointer;transition:background .18s;
  background:var(--wp--preset--color--red,#e81d2a)!important;color:#fff!important
}
.is-fluent-form .fluentform .ff-btn-submit:hover{background:#f23744!important;opacity:1}
.is-fluent-form .fluentform .text-danger{font-size:12.5px;margin-top:4px}
.is-fluent-form .ff-message-success{padding:10px 14px;border:none;border-radius:4px;box-shadow:none;font-size:14px;line-height:1.5;background:#1f6f3a;color:#fff}
/* On the dark-red "Let's talk" panel: white labels and checkbox text, and
   error text on a white pill (red-on-red is invisible). */
.signup-right .is-fluent-form .ff-el-input--label label,
.signup-right .is-fluent-form .ff-el-form-check-label,
.signup-right .is-fluent-form .ff-el-is-required.asterisk-right label::after{color:#fff}
.signup-right .is-fluent-form .ff-el-form-check-input{accent-color:#fff}
.signup-right .is-fluent-form .ff-el-form-control{border:none;border-radius:2px}
.signup-right .is-fluent-form textarea.ff-el-form-control{height:96px}
/* The form's own "Let's talk" section break repeats the panel heading above it. */
.signup-right .is-fluent-form .ff-el-section-break{display:none}
.signup-right .is-fluent-form .text-danger{display:inline-block;background:#fff;color:var(--wp--preset--color--red-deep,#8b1119);padding:2px 8px;border-radius:3px}
/* Newsletter (dark band): translucent fields, as in the built-in variant. */
.newsletter-section .is-fluent-form .ff-el-input--label label,
.newsletter-section .is-fluent-form .ff-el-form-check-label{color:rgba(255,255,255,.7)}
.newsletter-section .is-fluent-form .ff-el-form-control{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff}
.newsletter-section .is-fluent-form .ff-btn-submit{max-width:none;border-radius:4px;font-size:15px;font-weight:600;letter-spacing:.4px}
.newsletter-section .is-fluent-form .ff-btn-submit:hover{background:var(--wp--preset--color--red-dark,#c72527)!important}

/* ── NEWSLETTER (prepared, hidden until launch — see docs) ── */
.is-hidden-until-launch{display:none}
.newsletter-section{background:var(--wp--preset--color--dark,#111)}
.newsletter-section .stitle,.newsletter-section .stitle em{color:#fff}
.newsletter-section .ssub{color:rgba(255,255,255,.6)}
.newsletter-inner{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.newsletter-form .form-group label{color:rgba(255,255,255,.7)}
.newsletter-form .form-group input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff}
.newsletter-submit{
  width:100%;background:var(--wp--preset--color--red,#e81d2a);color:#fff;border:none;border-radius:4px;
  padding:15px 20px;font-family:'Fira Sans',sans-serif;font-size:15px;font-weight:600;letter-spacing:.4px;
  cursor:pointer;transition:background .18s
}
.newsletter-submit:hover{background:var(--wp--preset--color--red-dark,#c72527)}

/* ── FOOTER ── */
.site-footer{background:#0e0e0e;color:rgba(255,255,255,.6);padding:56px 48px 28px}
.footer-inner{max-width:1220px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:44px;margin-bottom:44px}
.footer-brand img{height:34px;width:auto;margin-bottom:18px;display:block}
.footer-brand p{font-size:14px;line-height:1.7;margin-bottom:18px}
.footer-col h4{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#fff;margin-bottom:18px}
.footer-col a{display:block;color:rgba(255,255,255,.55);text-decoration:none;font-size:13.5px;margin-bottom:9px;transition:color .18s}
.footer-col a:hover{color:var(--wp--preset--color--red,#e81d2a)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding-top:22px;display:flex;justify-content:space-between;align-items:center;font-size:12px;flex-wrap:wrap;gap:10px}
.footer-social{display:flex;gap:10px;margin-bottom:24px}
.footer-social a{width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:50%;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);text-decoration:none;font-size:13px;font-weight:700;transition:all .18s}
.footer-social a:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.footer-card{display:flex;flex-direction:column;gap:4px;border-top:1px solid rgba(255,255,255,.1);padding-top:20px;max-width:260px}
.footer-card strong{color:#fff;font-size:13.5px;letter-spacing:.5px;margin-bottom:4px}
.footer-card span{font-size:13px;color:rgba(255,255,255,.55)}

/* ── STICKY SIDE ACTIONS ──
   The two quick-contact pills pinned to the right edge on every page, ported
   from the current live site. Markup lives in parts/header.html so the
   buttons follow the header onto every template. */
.sticky-actions{position:fixed;top:50%;right:0;transform:translateY(-50%);z-index:900;display:flex;flex-direction:column;gap:10px}
.sticky-action{
  display:flex;align-items:center;gap:0;
  background:var(--wp--preset--color--red,#e81d2a);color:#fff;text-decoration:none;
  height:48px;padding:0 14px;border-radius:26px 0 0 26px;
  box-shadow:0 6px 20px rgba(0,0,0,.22);
  transition:background .18s,padding .18s
}
.sticky-action:hover,.sticky-action:focus-visible{background:var(--wp--preset--color--red-dark,#c72527);color:#fff;gap:10px;padding-right:20px}
.sticky-action svg{width:22px;height:22px;flex-shrink:0;fill:currentColor;display:block}
.sticky-action span{
  max-width:0;overflow:hidden;white-space:nowrap;
  font-size:13.5px;font-weight:600;line-height:1;
  transition:max-width .22s
}
.sticky-action:hover span,.sticky-action:focus-visible span{max-width:180px}

/* ── COOKIE ── */
.cookie-bar{position:fixed;bottom:0;left:0;right:0;z-index:9999;background:#1a1a1a;padding:18px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:0 -4px 24px rgba(0,0,0,.35)}
.cookie-bar p{font-size:13.5px;color:rgba(255,255,255,.75);line-height:1.5;margin:0}
.cookie-bar a{color:var(--wp--preset--color--red,#e81d2a)}
.cookie-btns{display:flex;gap:10px;flex-shrink:0}
.cookie-accept{background:var(--wp--preset--color--red,#e81d2a);color:#fff;border:none;padding:10px 22px;border-radius:4px;font-family:'Fira Sans',sans-serif;font-weight:600;font-size:13.5px;cursor:pointer}
.cookie-decline{background:transparent;color:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.25);padding:10px 22px;border-radius:4px;font-family:'Fira Sans',sans-serif;font-size:13.5px;cursor:pointer}

/* ── PROJECTS PAGE ── */
#pageHeader{padding-top:calc(76px + 64px);padding-bottom:32px;background:#fff}
.page-header-inner{max-width:1220px;margin:0 auto;padding:0 48px}
.page-header-inner .wp-block-buttons{margin-top:28px}
.proj-section{padding:56px 48px 88px}
.proj-section.is-alt{background:var(--wp--preset--color--off-white,#f7f7f7)}
.proj-si{max-width:1220px;margin:0 auto}
.proj-head-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:36px}
.proj-nav{display:flex;gap:10px;flex-shrink:0;margin-bottom:6px}
.proj-arrow{width:40px;height:40px;border-radius:50%;border:1px solid var(--wp--preset--color--gray,#e5e5e5);background:#fff;cursor:pointer;font-size:18px;color:#777;display:flex;align-items:center;justify-content:center;transition:all .18s}
.proj-arrow:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.proj-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.proj-track::-webkit-scrollbar{display:none}
.proj-card{scroll-snap-align:start;flex:0 0 300px;background:#fff;border-radius:10px;overflow:hidden;border:1px solid var(--wp--preset--color--gray,#e5e5e5);box-shadow:0 2px 10px rgba(0,0,0,.04);cursor:pointer;transition:all .2s}
.proj-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.proj-media{height:170px;width:100%;object-fit:cover;display:block}
.proj-media-ph{height:170px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7a8ba0,#4d5f74)}
.proj-body{padding:20px}
.proj-tag{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--wp--preset--color--red,#e81d2a);margin-bottom:8px}
.proj-body h3{font-size:17px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin-bottom:10px;line-height:1.3}
.proj-body p{font-size:14px;color:#666;line-height:1.6;margin-bottom:14px}
.proj-readmore{background:none;border:none;padding:0;color:var(--wp--preset--color--red,#e81d2a);font-weight:700;font-size:13.5px;cursor:pointer;font-family:'Fira Sans',sans-serif}
.proj-readmore:hover{text-decoration:underline}
.proj-detail{margin-top:28px;background:#fff;border-radius:12px;border:1px solid var(--wp--preset--color--gray,#e5e5e5);box-shadow:0 12px 40px rgba(0,0,0,.08);padding:36px;position:relative}
.proj-detail[hidden]{display:none}
.proj-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.proj-detail-media{width:100%;border-radius:8px;display:block;max-height:340px;object-fit:cover}
.proj-detail-media-ph{width:100%;height:280px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7a8ba0,#4d5f74)}
.proj-detail-body .proj-tag{margin-bottom:10px}
.proj-detail-body h3{font-size:26px;font-weight:700;color:var(--wp--preset--color--dark,#111);margin-bottom:16px;line-height:1.25}
.proj-detail-desc{font-size:16px;color:#555;line-height:1.75}
.proj-detail-desc p{margin-bottom:14px}
.proj-detail-desc p:last-child{margin-bottom:0}
.proj-detail-close{position:absolute;top:18px;right:18px;width:32px;height:32px;border-radius:50%;border:1px solid var(--wp--preset--color--gray,#e5e5e5);background:#fff;cursor:pointer;font-size:14px;color:#888;display:flex;align-items:center;justify-content:center}
.proj-detail-close:hover{border-color:var(--wp--preset--color--red,#e81d2a);color:var(--wp--preset--color--red,#e81d2a)}
.proj-detail-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:28px}
.proj-dots{display:flex;gap:8px}
.proj-dot{width:8px;height:8px;border-radius:50%;background:var(--wp--preset--color--gray,#e5e5e5);border:none;cursor:pointer;padding:0}
.proj-dot.active{background:var(--wp--preset--color--red,#e81d2a)}
/* Source card body carries the "full" case text — hidden on the card, read by JS for the detail panel */
.proj-card-full{display:none}

/* ── WordPress core compatibility ──
   Reset default block-library spacing so patterns line up exactly like the
   original static markup; theme.json + the classes above do the real styling. */

/* Every grid/flex row above is a core Group block, which core marks
   "is-layout-flow" and gives each child except the first a
   margin-block-start of --wp--style--block-gap (24px by default). Inside a
   grid that staggers the cards downward one by one and makes them different
   heights — the "boxes are not uniform" report. Core's own selector is
   wrapped in :where() (specificity 0), so plain classes win here without
   !important. New grid/flex sections must be added to this list too. */
.hero-inner > *,.pillars-grid > *,.about-intro > *,.about-grid > *,
.metrics > *,.svc-row > *,.logos-carousel > *,.signup > *,
.newsletter-inner > *,.accel-layout > *,.footer-grid > *,
.footer-bottom > *,.footer-social > *,.svc-head-row > *,
.testi-head-row > *,.proj-head-row > *{margin-block-start:0;margin-block-end:0}
/* The logo strip sits directly under its label, whose own margin-bottom is
   the intended gap — drop the block-gap core would add on top of it. */
.logos-carousel{margin-block-start:0}

/* Cards fill the full row height and stack their content from the top. */
.about-intro,.metrics,.svc-row,.pillars-grid{align-items:stretch}
.about-intro-card,.metric,.svc-card{display:flex;flex-direction:column}

/* The page is a stack of full-bleed colour bands, each with its own padding.
   Core puts a 24px block gap between top-level blocks, which showed up as
   white strips above the non-alignfull sections and the footer. */
.wp-site-blocks > *{margin-block-start:0}
/* NB: a `.wp-block-group.section,…{padding:inherit}` rule used to sit here to
   "keep" the theme's section padding. `inherit` takes the *parent's* computed
   padding, not the other declaration, so — being more specific than
   `.section` — it silently zeroed the padding on every section, the dark
   pillars band and the footer. Core puts no padding on .wp-block-group, so
   there is nothing to defend against; the classes above are enough. */
.wp-block-buttons{gap:0}
ul.tick-list,ul.wp-block-list.tick-list{padding-left:0}
/* Only the top margin: that's the block gap core adds between siblings. The
   bottom margins these elements set above (.testi-quote 24px, .proj-body p
   14px, .seg-name 7px) are part of the design and must survive. */
.footer-card p,.pillar p,.svc-card p,.about-intro-card p,.proj-body p,
.testi-quote,.seg-desc,.seg-name{margin-top:0}

/* ── RESPONSIVE ── */
@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:36px;padding:56px 32px}
  .hero-h1{font-size:44px}
  .hero-badge{left:12px}
  .pillars-grid{grid-template-columns:1fr;gap:24px}
  .about-grid{grid-template-columns:1fr;gap:40px}
  .about-intro{grid-template-columns:1fr;gap:20px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .newsletter-inner{grid-template-columns:1fr;gap:40px}
  .signup{grid-template-columns:1fr}
  .signup-left,.signup-right{padding:56px 32px}
  .signup-left-inner{margin-left:0}
  .svc-row{grid-template-columns:repeat(2,1fr)}
  .testi-card{flex-basis:calc((100% - 24px) / 2)}
  .proj-detail-grid{grid-template-columns:1fr;gap:24px}
}

@media (max-width:768px){
  .section{padding:72px 24px}
  .stitle{font-size:32px}
  .pillars-title{font-size:26px}
  .nav{padding:0 20px}
  .nav-toggle{display:flex}
  .nav-links{display:none;flex-direction:column;align-items:flex-start;position:absolute;top:100%;left:0;right:0;background:var(--wp--preset--color--red,#e81d2a);padding:8px 20px 20px;gap:0;box-shadow:0 12px 24px rgba(0,0,0,.2);max-height:calc(100vh - 76px);overflow-y:auto}
  .nav-links.open{display:flex}
  /* Core copies the block's className onto its inner <ul> as well, so that list
     also matched the hidden absolutely-positioned panel rule above. Undo the
     panel styling on the inner copy and show it whenever the panel is open. */
  .nav-links .nav-links{position:static;padding:0;margin:0;box-shadow:none;background:transparent;max-height:none;overflow:visible;width:100%}
  .nav-links.open .nav-links{display:flex}
  .nav-links li{width:100%}
  .nav-links a{display:block;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.12);border-radius:0;width:100%}
  .nav-drop-menu{position:static;opacity:1;visibility:visible;pointer-events:auto;transform:none;box-shadow:none;background:transparent;padding-top:0;display:none}
  .nav-drop.open .nav-drop-menu{display:block}
  .nav-drop-menu a{color:rgba(255,255,255,.8)!important}
  .hero-h1{font-size:34px}
  .hero-sub{font-size:17px}
  .metrics{grid-template-columns:1fr 1fr}
  .accel-layout{flex-direction:column}
  .accel-side{width:100%;flex-direction:row;gap:12px}
  .seg-btn{flex:1}
  .svc-row{grid-template-columns:1fr}
  .svc-head-row{align-items:flex-start}
  .testi-head-row{flex-direction:column;align-items:flex-start}
  .testi-card{flex-basis:100%}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:10px;text-align:center}
  .cookie-bar{flex-direction:column;align-items:flex-start;padding:16px 20px}
  /* Bottom-right on phones: vertically centred they sat on top of body text. */
  .sticky-actions{gap:8px;top:auto;bottom:24px;transform:none}
  .sticky-action{height:42px;padding:0 11px;border-radius:22px 0 0 22px}
  .sticky-action svg{width:19px;height:19px}
  /* No hover on touch, so never reveal the label — keep the icons compact. */
  .sticky-action:hover,.sticky-action:focus-visible{gap:0;padding-right:11px}
  .sticky-action:hover span,.sticky-action:focus-visible span{max-width:0}
  .page-header-inner{padding:0 24px}
  .proj-section{padding:40px 24px 64px}
  .proj-detail{padding:24px}
}

/* ── Block-editor-only helper styles (never rendered on the front end) ── */
.hh-tabs-editor-hint{font-size:12px;color:#777;font-style:italic;margin:0 0 10px}
.hh-tab-editor,.hh-tabs-editor,.hh-carousel-editor,.hh-logos-editor,.hh-project-showcase-editor,
.hh-contact-form-editor{
  border:1px dashed var(--wp--preset--color--gray,#e5e5e5);border-radius:6px;padding:14px;margin-bottom:10px
}
.hh-contact-form-editor-fields{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hh-contact-form-editor-fields li{
  background:var(--wp--preset--color--off-white,#f7f7f7);border-radius:4px;
  padding:8px 12px;font-size:13px;color:#555
}
.hh-tab-editor-label{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:13px}
.hh-tab-editor-label label{font-weight:600}
.hh-project-card-editor strong{display:block;font-size:12px;color:#777;margin:14px 0 6px}
.hh-logo-item-editor{display:inline-flex;align-items:center;padding:6px}

@media (max-width:480px){
  .hero-inner{padding:48px 20px}
  .wp-block-button.btn-outline{margin-left:0;margin-top:10px}
  .wp-block-button.btn-outline .wp-block-button__link{display:block;text-align:center}
  .metrics{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .logos-track{gap:28px}
  .logos-item img{height:26px}
  .about-grid,.svc-row,.testi-track{gap:16px}
  .signup-left,.signup-right{padding:44px 20px}
  .signup-left h2{font-size:30px}
}
