/* Harbor & Pine – Home page only (uses tokens from style.css) */

/* industries */
.industries-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:40px}
.industry-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:26px 22px;text-align:left;position:relative;overflow:hidden;transition:background .4s}
.industry-card{transition:border-color .4s,box-shadow .4s}.industry-card:hover{border-color:var(--brand);box-shadow:0 16px 36px -22px rgba(11,122,117,.35)}
.industry-card .ind-icon{font-size:1.7rem;margin-bottom:16px;filter:grayscale(1);opacity:.75}
.industry-card h4{font-size:1.15rem;margin-bottom:8px}
.industry-card p{font-size:.88rem}
@media(max-width:960px){.industries-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.industries-grid{grid-template-columns:1fr 1fr}}

/* lead magnet */
.lead-magnet-card{background:var(--deep);color:var(--deep-ink);border-radius:28px;padding:clamp(36px,6vw,72px);display:grid;grid-template-columns:1.2fr .8fr;gap:48px;align-items:center}
.lead-magnet-card h2{color:var(--ink);margin-bottom:14px}
.lead-magnet-card p{color:var(--deep-mute);margin-bottom:28px}
.lead-magnet-card>div:last-child{border-radius:20px!important;background:var(--surface)!important;border:1px solid var(--deep-line)!important}
.newsletter-form{display:flex;gap:10px}
.newsletter-input{flex:1;min-width:0;padding:14px 20px;border-radius:99px;border:1px solid var(--deep-line);background:var(--surface);color:var(--ink);font:400 .98rem var(--body)}
.newsletter-input::placeholder{color:var(--mute)}
.newsletter-input:focus{outline:none;border-color:var(--brand)}
@media(max-width:860px){.lead-magnet-card{grid-template-columns:1fr}.newsletter-form{flex-direction:column}}

/* sticky bar */
.sticky-bar{position:fixed;bottom:0;left:0;right:0;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:12px var(--pad) calc(12px + env(safe-area-inset-bottom,0px));z-index:80;transform:translateY(110%);transition:transform .5s var(--ease)}
.sticky-bar.visible{transform:none}
.sticky-bar-inner{max-width:1240px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:16px}
.sticky-bar-info{display:flex;align-items:center;gap:14px}
.sticky-bar-text{font-size:.92rem;font-weight:500;color:var(--ink)}
.sticky-bar-close{background:none;border:none;color:var(--mute);cursor:pointer;font-size:1.1rem;padding:4px;margin-left:8px}
@media(max-width:640px){.sticky-bar-text{display:none}.sticky-bar-inner{justify-content:center}}

/* chat */
.chat-launcher{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:var(--brand);color:var(--brand-ink);border:none;display:grid;place-items:center;cursor:pointer;z-index:85;box-shadow:0 10px 30px -8px rgba(14,38,34,.5);transition:transform .3s var(--ease),bottom .4s var(--ease)}
.chat-launcher:hover{transform:scale(1.06)}
.chat-launcher svg{width:26px;height:26px;fill:currentColor}
.chat-drawer{position:fixed;bottom:92px;right:24px;width:min(350px,90vw);background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 56px -16px rgba(15,35,48,.3);z-index:85;display:none;overflow:hidden;transition:bottom .4s var(--ease)}
.chat-drawer.open{display:block;animation:slideUp .4s var(--ease)}
@keyframes slideUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.chat-drawer-header{background:var(--brand);color:var(--brand-ink);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;font-family:var(--display)}
.chat-drawer-body{padding:20px;max-height:260px;overflow-y:auto}
.chat-bubble{background:var(--bg);border-radius:14px;padding:12px 16px;font-size:.92rem;margin-bottom:14px;color:var(--ink);animation:slideUp .4s var(--ease)}
.chat-drawer-input{width:100%;padding:10px 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:400 .92rem var(--body);margin-bottom:10px}
body.bar-on .chat-launcher{bottom:92px}
body.bar-on .chat-drawer{bottom:160px}

/* video modal */
.video-modal-backdrop{position:fixed;inset:0;background:rgba(8,20,17,.88);backdrop-filter:blur(8px);z-index:100;display:none;place-items:center;padding:24px}
.video-modal-backdrop.open{display:grid}
.video-modal-backdrop.open .video-modal-box{animation:pop .5s var(--ease)}
@keyframes pop{from{opacity:0;transform:scale(.96) translateY(16px)}}
.video-modal-box{background:var(--surface);border-radius:22px;max-width:840px;width:100%;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.45)}
.video-player-mock{width:100%;height:clamp(260px,45vw,440px);background:#000;position:relative;display:flex;align-items:center;justify-content:center}
.video-controls{position:absolute;bottom:0;left:0;right:0;padding:16px 24px;background:rgba(0,0,0,.55);display:flex;align-items:center;gap:16px;color:#fff}
.video-play-btn{width:60px;height:60px;border-radius:50%;background:var(--sun);border:none;color:var(--sun-ink);display:grid;place-items:center;font-size:1.3rem;cursor:pointer;transition:transform .3s var(--ease)}
.video-play-btn:hover{transform:scale(1.08)}
.video-progress-bar{flex:1;height:4px;border-radius:99px;background:rgba(255,255,255,.3);position:relative;overflow:hidden;cursor:pointer}
.video-progress-fill{width:0;height:100%;background:var(--sun);transition:width .25s linear}
.modal-close-btn{position:absolute;top:16px;right:16px;background:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.3);color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;display:grid;place-items:center;font-size:1.1rem}

/* ---- modern layer (home) ---- */
.industry-card{border-radius:var(--r)}
.industry-card .ind-icon{width:52px;height:52px;border-radius:14px;background:var(--deep);display:grid;place-items:center;filter:none;opacity:1;font-size:1.5rem}
.industry-card:hover .ind-icon{background:var(--brand)}
.lead-magnet-card{border-radius:var(--r-lg)}
.newsletter-form{background:var(--surface);border:1px solid var(--deep-line);border-radius:99px;padding:6px}
.newsletter-input{border:0;background:transparent;padding:10px 16px}
.newsletter-input:focus{outline:none}

/* floating sticky bar */
.sticky-bar{left:50%;right:auto;width:min(980px,calc(100% - 24px));bottom:14px;padding:10px 12px 10px 20px;border:1px solid var(--line);border-radius:99px;transform:translate(-50%,160%);box-shadow:0 22px 50px -18px rgba(15,35,48,.4)}
.sticky-bar.visible{transform:translate(-50%,0)}
.sticky-bar-inner{max-width:none}
.chat-launcher{box-shadow:0 14px 34px -10px rgba(11,122,117,.6)}
body.bar-on .chat-launcher{bottom:96px}body.bar-on .chat-drawer{bottom:164px}
@media(max-width:640px){.sticky-bar{padding:10px 14px}}

/* ==========================================================================
   INDUSTRIES v3 – colour-block mosaic (wide tile + five varied tiles)
   ========================================================================== */
.industries .head p{max-width:40ch}
.industries-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:0;background:none;border:0}
.industries-grid .industry-card{grid-column:span 2;position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:270px;padding:clamp(24px,2.6vw,34px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:none;text-align:left;overflow:hidden;transition:border-color .35s,background .35s,box-shadow .35s}
.industries-grid .industry-card:nth-child(1){grid-column:span 4;background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.industries-grid .industry-card:nth-child(2){background:color-mix(in srgb,var(--sun) 30%,var(--surface));border-color:transparent}
.industries-grid .industry-card:nth-child(3){background:var(--surface)}
.industries-grid .industry-card:nth-child(4){background:var(--deep);border-color:transparent}
.industries-grid .industry-card:nth-child(5){background:color-mix(in srgb,var(--brand) 9%,var(--surface))}
.industries-grid .industry-card:hover{box-shadow:0 22px 44px -28px rgba(11,122,117,.55);border-color:var(--brand)}

.industries-grid .industry-card .ind-icon{position:absolute;left:clamp(24px,2.6vw,34px);top:clamp(24px,2.6vw,34px);width:68px;height:68px;margin:0;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-size:1.9rem;filter:none;opacity:1}
.industries-grid .industry-card h4{margin:0 0 8px;font-size:clamp(1.3rem,2vw,1.7rem)}
.industries-grid .industry-card p{margin:0;font-size:.95rem;max-width:34ch}
.industries-grid .industry-card:nth-child(1) h4{font-size:clamp(1.8rem,3.2vw,2.8rem)}
.industries-grid .industry-card:nth-child(1) h4,.industries-grid .industry-card:nth-child(1) p{color:var(--brand-ink)}
.industries-grid .industry-card:nth-child(1) p{max-width:44ch;opacity:.9}
.industries-grid .industry-card:nth-child(1) .ind-icon{background:rgba(255,255,255,.2)}

/* corner arrow */
.industries-grid .industry-card::after{content:"↗";position:absolute;right:clamp(20px,2.4vw,30px);top:clamp(20px,2.4vw,30px);width:44px;height:44px;border-radius:50%;border:1px solid currentColor;display:grid;place-items:center;font-size:1.1rem;color:var(--ink);opacity:.55;transition:background .35s,color .35s,border-color .35s,opacity .35s}
.industries-grid .industry-card:nth-child(1)::after{color:var(--brand-ink)}
.industries-grid .industry-card:hover::after{opacity:1;background:var(--ink);border-color:var(--ink);color:var(--bg)}
.industries-grid .industry-card:nth-child(1):hover::after{background:var(--brand-ink);border-color:var(--brand-ink);color:var(--brand)}

:root[data-theme="dark"] .industries-grid .industry-card:nth-child(1) .ind-icon{background:rgba(8,38,42,.14)}
:root[data-theme="dark"] .industries-grid .industry-card:nth-child(2){color:var(--ink)}

@media(max-width:960px){
  .industries-grid{grid-template-columns:1fr 1fr}
  .industries-grid .industry-card,.industries-grid .industry-card:nth-child(1){grid-column:auto;min-height:240px}
  .industries-grid .industry-card:nth-child(1){grid-column:span 2}
}
@media(max-width:560px){
  .industries-grid{grid-template-columns:1fr}
  .industries-grid .industry-card:nth-child(1){grid-column:auto}
}

/* ==========================================================================
   TESTIMONIALS v3 – one small card, auto-sliding, with dots
   ========================================================================== */
#voices .wrap{display:grid;grid-template-columns:1fr minmax(0,500px);gap:clamp(32px,7vw,110px);align-items:center}
#voices .head{display:block;margin:0}
#voices .head h2{max-width:14ch}
.quote-slider{min-width:0}
.quotes{position:relative;display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0}
.quotes::-webkit-scrollbar{display:none}
.quotes .quote{flex:0 0 100%;scroll-snap-align:start;position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:26px;min-height:270px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:clamp(24px,3vw,34px);box-shadow:0 24px 50px -34px rgba(11,122,117,.5)}
.quotes .quote::before{content:"★★★★★";font-size:1rem;letter-spacing:.2em;color:#e9a43a}
.quotes .quote blockquote{font:500 1.12rem/1.55 var(--display);letter-spacing:-.02em;margin:0;color:var(--ink)}
.quotes .quote .who{gap:12px;padding-top:18px;border-top:1px solid var(--line)}
.quotes .quote .av{width:44px;height:44px;background:var(--deep);color:var(--brand)}
.quote-dots{display:flex;gap:8px;margin-top:20px;padding-left:6px}
.quote-dots button{width:8px;height:8px;padding:0;border:0;border-radius:99px;background:var(--line);cursor:pointer;transition:width .35s var(--ease),background .35s}
.quote-dots button:hover{background:var(--mute)}
.quote-dots button.on{width:30px;background:var(--brand)}
@media(max-width:900px){#voices .wrap{grid-template-columns:1fr}#voices .head h2{max-width:none}}
/* all slides look identical (cancel the old "featured first card" colours) */
.quotes .quote:first-child{background:var(--surface);border-color:var(--line)}
.quotes .quote:first-child .who{color:var(--ink)}
.quotes .quote:first-child .who small,.quotes .quote .who small{color:var(--mute)}
.quotes .quote:first-child .av{background:var(--deep);color:var(--brand)}
:root[data-theme="dark"] .quotes .quote:first-child .who small{color:var(--mute)}
:root[data-theme="dark"] .quotes .quote:first-child .av{background:var(--deep);color:var(--brand)}

/* ==========================================================================
   PROCESS v2 – colour-coded staircase (numbers come from CSS counters)
   ========================================================================== */
.steps{counter-reset:stp;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:start;padding-bottom:clamp(0px,6vw,110px)}
.steps .step{counter-increment:stp;display:flex;flex-direction:column;justify-content:flex-end;min-height:300px;padding:clamp(24px,2.6vw,34px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);transition:border-color .35s,box-shadow .35s}
.steps .step::after{display:none}
.steps .step::before{content:"0" counter(stp);margin-bottom:auto;padding-bottom:36px;font:600 clamp(3.4rem,5.5vw,5rem)/1 var(--display);letter-spacing:-.06em;color:var(--brand)}
.steps .step h3{font-size:clamp(1.3rem,2vw,1.6rem);margin-bottom:8px}
.steps .step p{font-size:.96rem}
.steps .step:hover{border-color:var(--brand);box-shadow:0 22px 44px -30px rgba(11,122,117,.55)}

/* staircase + colour build-up */
.steps .step:nth-child(2){margin-top:clamp(0px,3vw,48px);background:var(--deep);border-color:transparent}
.steps .step:nth-child(3){margin-top:clamp(0px,6vw,96px);background:color-mix(in srgb,var(--sun) 30%,var(--surface));border-color:transparent}
.steps .step:nth-child(4){margin-top:clamp(0px,9vw,144px);background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.steps .step:nth-child(4)::before,.steps .step:nth-child(4) h3,.steps .step:nth-child(4) p{color:var(--brand-ink)}
.steps .step:nth-child(4) p{opacity:.9}
.steps .step:nth-child(3)::before{color:var(--ink)}

@media(max-width:960px){
  .steps{grid-template-columns:1fr 1fr;padding-bottom:0}
  .steps .step:nth-child(n){margin-top:0;min-height:250px}
}
@media(max-width:560px){.steps{grid-template-columns:1fr}.steps .step:nth-child(n){min-height:0}}

/* ==========================================================================
   SERVICES (home) – four service panels with what's included
   ========================================================================== */
#services .svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.svc{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:48px;min-height:380px;padding:clamp(26px,3vw,40px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);transition:border-color .35s,box-shadow .35s}
.svc:hover{border-color:var(--brand);box-shadow:0 24px 48px -30px rgba(11,122,117,.55)}
.svc-top{display:flex;justify-content:space-between;align-items:center}
.svc-ic{width:60px;height:60px;display:grid;place-items:center;border-radius:50%;background:var(--bg);font-size:1.5rem;color:var(--ink)}
.svc-arrow{width:48px;height:48px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;font-size:1.15rem;opacity:.6;transition:background .35s,color .35s,opacity .35s,border-color .35s}
.svc:hover .svc-arrow{opacity:1;background:var(--ink);border-color:var(--ink);color:var(--bg)}
.svc h3{font-size:clamp(1.6rem,2.6vw,2.2rem);margin-bottom:12px}
.svc p{max-width:46ch}
.svc-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.svc-list li{padding:.4rem .95rem;border:1px solid var(--line);border-radius:99px;font-size:.88rem;font-weight:500;color:var(--ink);background:color-mix(in srgb,var(--surface) 70%,transparent)}
.svc-list li::before{content:"✓";margin-right:.5rem;color:var(--brand);font-weight:700}

/* colour coding */
.svc-1{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.svc-1 h3,.svc-1 p{color:var(--brand-ink)}
.svc-1 p{opacity:.9}
.svc-1 .svc-ic{background:rgba(255,255,255,.2);color:#fff}
.svc-1 .svc-list li{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:var(--brand-ink)}
.svc-1 .svc-list li::before{color:var(--brand-ink)}
.svc-1:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.svc-1:hover .svc-arrow{background:var(--brand-ink);border-color:var(--brand-ink);color:var(--brand)}
.svc-2{background:var(--deep);border-color:transparent}
.svc-2 .svc-ic{background:var(--surface)}
.svc-3{background:color-mix(in srgb,var(--sun) 30%,var(--surface));border-color:transparent}
.svc-3 .svc-ic{background:var(--surface)}
:root[data-theme="dark"] .svc-1 .svc-ic{background:rgba(8,38,42,.14);color:var(--brand-ink)}

/* "not sure" strip */
.svc-note{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-top:16px;padding:clamp(20px,2.4vw,28px) clamp(22px,3vw,36px);border:1px dashed var(--mute);border-radius:var(--r-lg)}
.svc-note p{color:var(--ink);max-width:56ch}
.svc-note-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:860px){#services .svc-grid{grid-template-columns:1fr}.svc{min-height:0}}

/* ---- smaller type (home) ---- */
.svc h3{font-size:clamp(1.3rem,2vw,1.7rem)}
.svc-list li{font-size:.82rem}
.industries-grid .industry-card h4{font-size:clamp(1.1rem,1.5vw,1.3rem)}
.industries-grid .industry-card:nth-child(1) h4{font-size:clamp(1.5rem,2.4vw,2rem)}
.industries-grid .industry-card p{font-size:.9rem}
.steps .step::before{font-size:clamp(2.4rem,4vw,3.4rem)}
.steps .step h3{font-size:clamp(1.15rem,1.5vw,1.35rem)}
.quotes .quote blockquote{font-size:1.02rem}
.sticky-bar-text{font-size:.88rem}

/* ---- tighter spacing (home) ---- */
.industries-grid{margin-top:0}
.steps{padding-bottom:clamp(0px,4vw,72px)}