/*
Theme Name: SHH Leads
Theme URI: https://github.com/canbaso/Shhleads
Author: SHH Leads
Description: Editable four-page WordPress theme for SHH Leads.
Version: 1.5.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: shhleads
*/

:root{--shh-ink:#27343c;--shh-blue:#146ef5;--shh-deep:#152a61;--shh-purple:#623689;--shh-lavender:#e8def4;--shh-pale-blue:#d9e1f4;--shh-teal:#daf0ef;--shh-cream:#faf3e9;--shh-line:#e1e5e9;--shh-sans:"Akkurat","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--shh-ink);font-family:var(--shh-sans);font-size:16px;line-height:1.6;background:#fff;-webkit-font-smoothing:antialiased}
a{color:var(--shh-blue);text-decoration:underline;text-underline-offset:3px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--shh-blue);outline-offset:3px}
.shh-skip-link{position:absolute;z-index:1000;top:-80px;left:12px;background:#fff;padding:10px 16px}
.shh-skip-link:focus{top:12px}
.shh-site-header{background:#fff;position:relative;z-index:100;border-bottom:1px solid #f0f1f3}
.shh-header-inner{max-width:1440px;min-height:82px;margin:auto;padding:0 4.6%;display:flex;align-items:center;gap:34px}
.shh-brand{flex:none}
.shh-brand-link,.shh-footer-brand{display:inline-flex;align-items:center;gap:9px;color:#242830;text-decoration:none;font-weight:700;letter-spacing:-.055em;font-size:29px;line-height:1}
.shh-brand-link strong{font-weight:400}
.shh-brand-symbol{width:32px;height:32px;position:relative;display:inline-block}
.shh-brand-symbol i{position:absolute;display:block;width:14px;height:22px;border:4px solid var(--shh-ink);border-radius:12px;transform:rotate(-30deg)}
.shh-brand-symbol i:nth-child(1){left:1px;top:5px}.shh-brand-symbol i:nth-child(2){left:9px;top:2px}.shh-brand-symbol i:nth-child(3){left:17px;top:5px}
.custom-logo{max-width:220px;max-height:58px;width:auto}
.shh-primary-nav{margin-left:auto}.shh-menu{display:flex;align-items:center;gap:35px;list-style:none;padding:0;margin:0}.shh-menu li{margin:0}.shh-menu a{color:#222a30;font-weight:700;font-size:15px;text-decoration:none}.shh-menu a:hover,.shh-menu .current-menu-item>a{color:var(--shh-blue)}
.shh-header-cta,.shh-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 26px;min-height:48px;color:#fff;background:var(--shh-blue);border:2px solid var(--shh-blue);border-radius:999px;font-weight:700;text-decoration:none;line-height:1.2;box-shadow:0 5px 15px rgba(20,110,245,.12);transition:transform .2s,background .2s,box-shadow .2s}
.shh-header-cta{white-space:nowrap}.shh-header-cta:hover,.shh-button:hover{background:#075ed9;color:#fff;transform:translateY(-2px);box-shadow:0 10px 22px rgba(20,110,245,.2)}
.shh-menu-toggle{display:none}
.shh-page{overflow:hidden}.shh-page>.wp-block-group{margin-left:auto;margin-right:auto}
.shh-hero{position:relative;max-width:calc(100% - 32px);min-height:610px;margin:18px auto 0;padding:90px 5% 78px;display:flex;justify-content:center;align-items:center;text-align:center;border-radius:20px;overflow:hidden;background:radial-gradient(circle at 12% 76%,rgba(211,190,234,.75),transparent 29%),radial-gradient(circle at 91% 24%,rgba(217,225,244,.92),transparent 35%),linear-gradient(116deg,#f8f5fb 10%,#eff2ff 83%)}
.shh-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 48% 74%,rgba(255,255,255,.7),transparent 45%);pointer-events:none}
.shh-hero-content{position:relative;z-index:2;max-width:760px;margin:auto}
.shh-hero-title{max-width:850px;margin:0 auto 25px;font-family:var(--shh-sans);font-size:clamp(42px,5vw,72px);font-weight:500;letter-spacing:-.06em;line-height:1.07;color:#22252d}
.shh-hero-copy{max-width:680px;margin:0 auto;color:#414952;font-size:clamp(17px,1.5vw,20px);line-height:1.55}
.shh-hero-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:32px}.shh-button-wrap{margin:0}.shh-button-secondary{background:transparent;color:var(--shh-blue);box-shadow:none}.shh-button-secondary:hover{background:#fff;color:var(--shh-blue)}
.shh-hero-art{position:absolute;inset:0;z-index:1;pointer-events:none}.shh-orb{position:absolute;width:172px;height:172px;border-radius:50%;border:21px solid rgba(137,143,244,.19);filter:blur(.5px)}.shh-orb-one{left:6%;top:12%}.shh-orb-two{right:7%;bottom:10%;border-color:rgba(163,101,206,.18)}
.shh-art-card{position:absolute;display:flex;align-items:center;gap:9px;padding:13px 16px;background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.95);box-shadow:0 17px 45px rgba(70,65,114,.12);border-radius:14px;color:#4b5260;font-size:12px;font-weight:700;white-space:nowrap;backdrop-filter:blur(10px)}
.shh-art-card-one{left:7%;bottom:19%;transform:rotate(-7deg)}.shh-art-card-two{right:8%;top:20%;transform:rotate(6deg)}.shh-art-card-three{right:10%;bottom:13%;transform:rotate(-5deg)}.shh-art-dot{width:15px;height:15px;border-radius:50%;background:linear-gradient(135deg,#a776d1,#777cf2)}.shh-art-bars{display:flex;align-items:end;gap:2px;height:17px}.shh-art-bars i{display:block;background:#8f89ed;width:4px;border-radius:3px}.shh-art-bars i:nth-child(1){height:7px}.shh-art-bars i:nth-child(2){height:12px}.shh-art-bars i:nth-child(3){height:17px}.shh-art-check{display:grid;place-items:center;border-radius:50%;background:#d7f0e8;color:#267b62;width:18px;height:18px}
.shh-section{max-width:1240px;padding:105px 30px;margin:0 auto}.shh-section h2{max-width:820px;color:#222a32;font-size:clamp(32px,3.7vw,54px);letter-spacing:-.055em;line-height:1.14;font-weight:600;margin:0 0 25px}.shh-section h3{font-size:24px;letter-spacing:-.04em;line-height:1.25;margin:0 0 17px;color:#26323b}.shh-section p{margin-top:0}.shh-intro{display:grid;grid-template-columns:1fr 1.12fr;column-gap:8%;align-items:start}.shh-intro>h2{grid-column:1}.shh-intro>p{grid-column:2;max-width:520px;font-size:20px;line-height:1.6;color:#4c5963;padding-top:4px}
.shh-card-section{padding-top:95px;padding-bottom:105px}.shh-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:42px}.shh-card{padding:42px 35px 38px;border-radius:20px;background:var(--shh-cream);min-height:255px}.shh-card:nth-child(2){background:#edf1fb}.shh-card:nth-child(3){background:#e6f4f2}.shh-card::before{content:"";display:block;width:40px;height:40px;margin-bottom:42px;border-radius:12px;background:#ddc3ef}.shh-card:nth-child(2)::before{background:#b5c5ea}.shh-card:nth-child(3)::before{background:#b7e2e0}.shh-card p{color:#51606b;margin:0;line-height:1.55}
.shh-sites-section{max-width:none;background:#f6f7fb;padding-left:max(30px,calc((100% - 1180px)/2));padding-right:max(30px,calc((100% - 1180px)/2))}.shh-sites-section>p{font-size:19px;max-width:630px;color:#52606a}.shh-sites-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:38px}.shh-site-card{padding:28px 28px 25px;border-radius:16px;background:#fff;border:1px solid #e7e9ef;min-height:148px;transition:transform .2s,box-shadow .2s}.shh-site-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(44,56,80,.08)}.shh-site-card h3{font-size:21px;margin:0 0 11px}.shh-site-card h3 a{display:flex;align-items:start;justify-content:space-between;gap:12px;color:var(--shh-ink);text-decoration:none}.shh-site-card h3 a:hover{color:var(--shh-blue)}.shh-site-card h3 span{color:var(--shh-blue)}.shh-site-card p{color:#5b6871;font-size:15px;margin:0}
.shh-split{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:10%;align-items:center}.shh-split-main>p{max-width:680px;color:#54616b;font-size:19px}.shh-split-main ul{padding-left:22px;margin:22px 0 0}.shh-split-main li{padding-left:7px;margin:0 0 12px}.shh-split-aside{padding:45px;border-radius:22px;background:linear-gradient(135deg,#ede7f7,#e9f0ff);box-shadow:0 16px 32px rgba(60,70,120,.06)}.shh-split-aside p{margin-bottom:0;color:#4e5a65}.shh-split-aside .shh-button-wrap{margin-top:24px}
.shh-cta{max-width:calc(100% - 32px);margin:15px auto 16px;padding:88px 6%;border-radius:20px;text-align:center;background:linear-gradient(115deg,#e9e0f5,#e9f2fd 75%,#e3f4ef)}.shh-cta h2{margin-left:auto;margin-right:auto}.shh-cta>p:not(.shh-button-wrap){font-size:19px;max-width:650px;margin:0 auto 28px;color:#4c5963}.shh-cta .shh-button-wrap{margin-top:25px}
.shh-contact-section{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr);gap:9%;align-items:start}.shh-contact-copy>p{font-size:18px;color:#53616c}.shh-contact-panel{padding:38px;border-radius:20px;background:#f8f9fc;border:1px solid #e8eaf1}.shh-contact-form label{display:block;margin-bottom:8px;font-size:14px;font-weight:700}.shh-contact-form p{margin:0 0 21px}.shh-contact-form input,.shh-contact-form select,.shh-contact-form textarea{display:block;width:100%;min-height:48px;border:1px solid #cbd4de;border-radius:9px;background:#fff;padding:11px 13px;color:var(--shh-ink)}.shh-contact-form textarea{resize:vertical}.shh-form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.shh-form-row p{min-width:0}.shh-contact-form .shh-form-help{font-size:13px;color:#57636c;line-height:1.45;margin:0 0 20px}.shh-contact-form button{font-weight:700}.shh-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.shh-form-message{padding:13px 15px;background:#def3e8;border-radius:9px;color:#174e37}.shh-form-error{background:#f9e7e7;color:#8e2929}
.shh-footer{background:#182630;color:#e9f0f5;padding:74px 5% 24px}.shh-footer-inner{max-width:1240px;margin:auto}.shh-footer-top{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8%;padding-bottom:64px}.shh-footer-brand{color:#fff;font-size:30px}.shh-footer-top p{max-width:320px;color:#b8c5cf;margin-top:18px}.shh-footer h2{font:700 13px var(--shh-sans);letter-spacing:.12em;text-transform:uppercase;color:#fff;margin:2px 0 23px}.shh-footer-top a:not(.shh-footer-brand){display:block;color:#c1cbd3;text-decoration:none;margin:0 0 12px}.shh-footer-top a:hover{text-decoration:underline;color:#fff}.shh-footer-bottom{display:flex;justify-content:space-between;gap:24px;border-top:1px solid #41505a;padding-top:21px;color:#a9bac5;font-size:13px}
.shh-custom-page-title,.shh-archive,.shh-empty{max-width:1100px;margin:80px auto;padding:0 25px}.shh-custom-page-title h1,.shh-archive h1,.shh-empty h1{font-size:52px;letter-spacing:-.05em}.shh-archive article{border-top:1px solid var(--shh-line);padding:25px 0}.shh-archive article a{color:var(--shh-ink)}
@media(max-width:1080px){.shh-header-inner{gap:20px}.shh-menu{gap:20px}.shh-header-cta{padding:12px 18px}.shh-art-card-one{left:3%}.shh-art-card-two{right:3%}.shh-art-card-three{right:4%}}
@media(max-width:800px){.shh-header-inner{min-height:70px;padding:0 20px}.shh-brand-link{font-size:25px}.shh-menu-toggle{display:flex;margin-left:auto;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent}.shh-menu-toggle span{display:block;width:23px;height:2px;background:var(--shh-ink)}.shh-primary-nav{display:none;position:absolute;left:0;right:0;top:70px;background:#fff;box-shadow:0 15px 20px rgba(0,0,0,.08);padding:14px 25px 25px}.shh-primary-nav.is-open{display:block}.shh-menu{display:block}.shh-menu li{padding:9px 0}.shh-header-cta{display:none}.shh-hero{min-height:570px;padding:90px 30px}.shh-hero-title{font-size:clamp(42px,8vw,60px)}.shh-hero-art{opacity:.5}.shh-art-card{display:none}.shh-section{padding:75px 25px}.shh-intro{display:block}.shh-intro>p{font-size:18px;max-width:690px}.shh-card-grid,.shh-sites-grid{grid-template-columns:repeat(2,1fr)}.shh-split,.shh-contact-section{grid-template-columns:1fr;gap:30px}.shh-footer-top{grid-template-columns:1.5fr 1fr 1fr;gap:25px}}
@media(max-width:580px){.shh-hero{max-width:calc(100% - 16px);min-height:560px;margin-top:8px;padding:70px 20px;border-radius:15px}.shh-hero-title{font-size:43px}.shh-hero-copy{font-size:17px}.shh-hero-actions{gap:10px}.shh-hero-actions .shh-button-wrap{width:100%}.shh-hero-actions .shh-button{width:100%}.shh-section{padding:66px 20px}.shh-section h2{font-size:35px}.shh-card-grid,.shh-sites-grid{grid-template-columns:1fr}.shh-card{min-height:0;padding:32px}.shh-card::before{margin-bottom:27px}.shh-sites-section{padding-left:20px;padding-right:20px}.shh-cta{max-width:calc(100% - 16px);padding:68px 24px;margin:8px auto}.shh-split-aside,.shh-contact-panel{padding:26px}.shh-form-row{grid-template-columns:1fr;gap:0}.shh-footer{padding:60px 24px 25px}.shh-footer-top{grid-template-columns:1fr 1fr;gap:34px}.shh-footer-top>div:first-child{grid-column:1/-1}.shh-footer-bottom{display:block}.shh-footer-bottom span{display:block;margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.shh-button,.shh-header-cta,.shh-site-card{transition:none}}

/* 1.1 design audit: recognizable icons and layouts that keep their structure on narrow screens. */
.shh-card-grid>*{margin-block-start:0!important}
.shh-card{display:flex;flex-direction:column}
.shh-card::before{flex:none;width:62px;height:62px;margin-bottom:34px;border-radius:17px;background-color:#eadcf4;background-image:url("assets/icons/search.svg");background-position:center;background-repeat:no-repeat;background-size:39px}
.shh-card:nth-child(2)::before{background-color:#dce5f7;background-image:url("assets/icons/book.svg")}
.shh-card:nth-child(3)::before{background-color:#d7efeb;background-image:url("assets/icons/route.svg")}
.shh-card h3{margin-top:auto}
.shh-site-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-content:start}
.shh-site-card::before{content:"";display:block;grid-column:1;grid-row:1/3;width:44px;height:44px;border-radius:12px;background:#e7efff url("assets/icons/globe.svg") center / 31px no-repeat}
.shh-site-card h3,.shh-site-card p{grid-column:2}
.shh-site-card h3{min-width:0}
.shh-split-aside::before{content:"";display:block;width:48px;height:48px;margin-bottom:22px;border-radius:13px;background:#fff url("assets/icons/route.svg") center / 33px no-repeat}

@media(max-width:580px){
  .shh-hero{min-height:530px;padding:62px 18px}
  .shh-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin-top:29px}
  .shh-hero-actions .shh-button-wrap{width:auto;min-width:0;margin:0}
  .shh-hero-actions .shh-button{width:100%;height:100%;min-height:58px;padding:10px 8px;gap:5px;font-size:14px;line-height:1.25;white-space:normal}
  .shh-section{padding-top:52px;padding-bottom:52px}
  .shh-card-section{padding-top:42px;padding-bottom:55px}
  .shh-card-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(265px,79%);gap:13px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;padding:0 4px 14px;margin-top:26px;margin-left:-4px;margin-right:-4px;scrollbar-color:#a9bde4 transparent}
  .shh-card-grid>*{scroll-snap-align:start}
  .shh-card{min-height:290px;padding:29px}
  .shh-card::before{width:56px;height:56px;margin-bottom:25px;background-size:35px}
  .shh-sites-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px}
  .shh-site-card{display:block;min-height:176px;padding:18px}
  .shh-site-card::before{width:39px;height:39px;margin-bottom:12px;background-size:27px}
  .shh-site-card h3{font-size:17px;line-height:1.25;margin-bottom:9px}
  .shh-site-card p{font-size:13px;line-height:1.4}
  .shh-split,.shh-contact-section{gap:20px}
  .shh-contact-panel{padding:24px}
}
@media(max-width:390px){
  .shh-hero-title{font-size:38px}
  .shh-sites-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}
  .shh-site-card{scroll-snap-align:start}
}

/* WordPress 7.1 wraps core Group contents. Flatten only theme groups so grids and
   flex layouts act on the intended cards, buttons, and text blocks. */
.shh-page .wp-block-group[class*="shh-"]>.wp-block-group__inner-container{display:contents}
.shh-card-grid>.wp-block-group__inner-container>*,.shh-sites-grid>.wp-block-group__inner-container>*{margin-block-start:0!important}
.shh-intro>.wp-block-group__inner-container>h2{grid-column:1}
.shh-intro>.wp-block-group__inner-container>p{grid-column:2;max-width:520px;font-size:20px;line-height:1.6;color:#4c5963;padding-top:4px}
.shh-sites-section>.wp-block-group__inner-container>p{font-size:19px;max-width:630px;color:#52606a}
.shh-cta>.wp-block-group__inner-container>p:not(.shh-button-wrap){font-size:19px;max-width:650px;margin:0 auto 28px;color:#4c5963}
.shh-split-main>.wp-block-group__inner-container>p{max-width:680px;color:#54616b;font-size:19px}
.shh-contact-copy>.wp-block-group__inner-container>p{font-size:18px;color:#53616c}
@media(max-width:800px){.shh-intro>.wp-block-group__inner-container>p{font-size:18px;max-width:690px}}
@media(max-width:580px){.shh-hero-actions>.wp-block-group__inner-container>.shh-button-wrap{width:auto;min-width:0;margin:0}.shh-hero-actions>.wp-block-group__inner-container>.shh-button-wrap>.shh-button{width:100%;height:100%;min-height:58px;padding:10px 8px;gap:5px;font-size:14px;line-height:1.25;white-space:normal}}

/* 1.3: place the Approach heading beside a bare icon and its body below. */
.shh-card{display:grid;grid-template-columns:50px minmax(0,1fr);grid-template-rows:min-content 1fr;align-content:start;column-gap:16px;row-gap:22px;min-height:245px}
.shh-card::before,.shh-card:nth-child(2)::before,.shh-card:nth-child(3)::before{grid-column:1;grid-row:1;align-self:center;width:44px;height:44px;margin:0;border-radius:0;background-color:transparent;background-size:contain}
.shh-card h3{grid-column:2;grid-row:1;align-self:center;margin:0}
.shh-card p{grid-column:1/-1;grid-row:2;margin:0}

/* Each website keeps its own local mark, including when a source site is unavailable. */
.shh-site-card::before{display:none}
.shh-site-card .shh-site-favicon{grid-column:1;grid-row:1/3;width:44px;height:44px;margin:0}
.shh-site-favicon img{display:block;width:44px;height:44px;object-fit:contain}

.shh-extra-section{padding-top:75px;padding-bottom:95px}
.shh-extra-lead{max-width:720px;color:#52606a;font-size:19px}
.shh-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:40px}
.shh-extra-card{display:flex;flex-direction:column;min-width:0;border:1px solid #e5e9ef;border-radius:20px;background:#f9fafd;overflow:hidden}
.shh-extra-image{width:100%;height:215px;margin:0;overflow:hidden}
.shh-extra-image img{display:block;width:100%;height:100%;object-fit:cover}
.shh-extra-card-copy{display:flex;flex:1;flex-direction:column;padding:28px}
.shh-extra-card h3{font-size:24px;margin:0 0 15px}
.shh-extra-card-copy p{color:#52606a;line-height:1.55}
.shh-extra-card-copy .shh-extra-link{margin:auto 0 0;padding-top:25px;font-weight:700}
.shh-extra-link a{text-decoration:none}
.shh-extra-link a:hover{text-decoration:underline}

.shh-footer-menu{list-style:none;padding:0;margin:0}
.shh-footer-menu li{margin:0}

@media(max-width:800px){
  .shh-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
  .shh-card{grid-template-columns:42px minmax(0,1fr);column-gap:13px;row-gap:18px;min-height:240px}
  .shh-card::before,.shh-card:nth-child(2)::before,.shh-card:nth-child(3)::before{width:38px;height:38px}
  .shh-card h3{font-size:21px}
  .shh-extra-section{padding-top:45px;padding-bottom:58px}
  .shh-extra-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(270px,82%);gap:13px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;margin:27px -4px 0;padding:0 4px 14px}
  .shh-extra-card{scroll-snap-align:start}
  .shh-extra-image{height:180px}
  .shh-extra-card-copy{padding:23px}
  .shh-site-card{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:9px;min-height:184px;padding:17px}
  .shh-site-card .shh-site-favicon,.shh-site-favicon img{width:34px;height:34px}
}

/* Keep website and page examples in one column through narrow tablet widths. */
@media(max-width:900px){
  .shh-extra-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;scroll-snap-type:none;margin:27px 0 0;padding:0;gap:16px}
  .shh-extra-card{scroll-snap-align:none}
  .shh-sites-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;overflow:visible;scroll-snap-type:none;padding:0;gap:12px}
  .shh-site-card{min-height:0}
}
