/*
Theme Name: ASF Clarity
Theme URI: https://asfclarity.com/
Author: ASF Clarity
Description: Custom editable WordPress theme for ASF Clarity. Gutenberg-ready, bilingual-ready, and designed around the existing ASF Clarity visual identity.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: asf-clarity
*/

:root{
  --wine:#760b12;
  --wine-dark:#4d070b;
  --wine-soft:#9e3035;
  --sand:#f2dfc7;
  --sand-light:#fbf5ec;
  --paper:#fffdf9;
  --ink:#231a18;
  --muted:#6e625d;
  --line:rgba(77,7,11,.13);
  --terracotta:#c7765d;
  --white:#fff;
  --shadow:0 28px 70px rgba(68,31,22,.12);
  --radius-lg:28px;
  --radius-md:18px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--paper);line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.site-main{overflow:hidden}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:auto}.skip-link:focus{left:20px;top:20px;z-index:999;background:#fff;padding:10px 14px;border-radius:10px}

.site-header{position:sticky;top:0;z-index:100;background:rgba(255,253,249,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(118,11,18,.08)}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.03em;color:var(--wine-dark);font-size:18px}
.brand img{width:44px;height:44px;object-fit:contain}
.nav-links{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:650}
.nav-links ul{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
.nav-links li a{position:relative;padding:8px 0;display:block}
.nav-links li a::after{content:"";position:absolute;left:0;bottom:2px;width:0;height:2px;background:var(--wine);transition:width .2s ease}
.nav-links li.current-menu-item a::after,.nav-links li.current_page_item a::after,.nav-links li a:hover::after{width:100%}
.lang-switcher{display:flex;align-items:center;gap:7px;padding-left:10px;border-left:1px solid var(--line);font-size:20px;line-height:1}
.lang-switcher a,.lang-switcher span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px}
.lang-switcher a:hover{background:var(--sand-light)}
.lang-switcher .active{background:var(--sand);box-shadow:inset 0 0 0 1px var(--line)}
.menu-toggle{display:none;border:0;background:transparent;color:var(--wine-dark);font-size:14px;font-weight:800;cursor:pointer}

.btn,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px;border-radius:999px;font-size:14px;font-weight:750;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;border:0}
.btn:hover,.wp-block-button__link:hover{transform:translateY(-2px)}
.btn-primary,.asf-button-primary .wp-block-button__link{background:var(--wine);color:#fff;box-shadow:0 12px 28px rgba(118,11,18,.22)}
.btn-primary:hover,.asf-button-primary .wp-block-button__link:hover{background:var(--wine-dark)}
.btn-secondary,.asf-button-secondary .wp-block-button__link{background:transparent;border:1px solid var(--line);color:var(--wine-dark)}
.btn-secondary:hover,.asf-button-secondary .wp-block-button__link:hover{background:#fff;box-shadow:0 10px 30px rgba(68,31,22,.08)}
.btn-text{display:inline-flex;gap:8px;align-items:center;color:var(--wine);font-weight:750;font-size:14px}

h1,h2,h3,h4,.wp-block-heading{margin-top:0;color:var(--wine-dark);line-height:1.06;letter-spacing:-.045em}
h1{font-size:clamp(48px,6.4vw,88px);font-weight:760}
h2{font-size:clamp(36px,4vw,58px);font-weight:760}
h3{font-size:24px;font-weight:750;letter-spacing:-.03em}
h4{font-size:18px;letter-spacing:-.02em}
.asf-eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 18px!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.15em!important;color:var(--wine)!important}
.asf-eyebrow::before{content:"";width:24px;height:1px;background:currentColor;flex:0 0 24px}
.asf-lead{font-size:clamp(18px,1.5vw,22px)!important;line-height:1.55!important;color:#51443f!important;max-width:760px}

.asf-hero{padding:78px 20px 68px;background:radial-gradient(circle at 18% 18%,rgba(199,118,93,.12),transparent 30%),linear-gradient(180deg,#fffaf4 0%,var(--paper) 78%)}
.asf-hero-grid{max-width:var(--max);margin:0 auto!important;gap:70px!important;align-items:center!important}
.asf-hero-copy .asf-lead{margin-top:28px!important;max-width:700px}
.asf-hero-copy .wp-block-buttons{margin-top:32px}
.asf-hero-note{margin-top:18px!important;font-size:13px!important;color:var(--muted)!important}
.asf-hero-media{position:relative}
.asf-portrait{margin:0!important;height:590px;overflow:hidden;border-radius:42px 42px 120px 42px;box-shadow:var(--shadow);background:var(--sand)}
.asf-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.asf-hero-badge{position:absolute;left:-34px;bottom:34px;width:188px;padding:18px!important;border-radius:22px;background:var(--wine);color:#fff;box-shadow:0 18px 50px rgba(77,7,11,.25);z-index:2}
.asf-hero-badge p{margin:0!important;color:#f8e9df!important;font-size:12px!important}.asf-hero-badge strong{color:#fff;font-size:18px;line-height:1.15;display:block;margin-bottom:7px}

.asf-section{padding:92px 20px}
.asf-section-sm{padding:64px 20px}
.asf-section-alt{background:var(--sand-light)}
.asf-section > *,.asf-section-sm > *{max-width:var(--max);margin-left:auto!important;margin-right:auto!important}
.asf-section-heading{display:grid!important;grid-template-columns:.75fr 1.25fr;gap:38px;align-items:end;margin-bottom:44px!important}
.asf-section-heading .asf-lead{margin:0!important}
.asf-section-heading.is-center{display:block!important;text-align:center;max-width:800px!important;margin:0 auto 44px!important}.asf-section-heading.is-center .asf-lead{margin:18px auto 0!important}

.asf-problem-grid,.asf-service-grid,.asf-principles,.asf-prep-grid{gap:18px!important}
.asf-card{border:1px solid var(--line);background:#fff;border-radius:var(--radius-lg);padding:30px!important;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;height:100%}
.asf-card:hover{transform:translateY(-5px);box-shadow:0 20px 55px rgba(68,31,22,.09);border-color:rgba(118,11,18,.25)}
.asf-card-index{font-size:12px!important;font-weight:850!important;letter-spacing:.12em!important;color:var(--terracotta)!important;margin:0 0 38px!important}
.asf-card p{color:var(--muted);font-size:15px;margin-bottom:0}
.asf-service-card{min-height:310px;display:flex;flex-direction:column}
.asf-service-card .wp-block-buttons{margin-top:auto!important;padding-top:24px}
.asf-kicker{font-size:12px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.12em!important;color:var(--terracotta)!important;margin:0 0 18px!important}

.asf-about-row{max-width:var(--max);margin:0 auto!important;gap:64px!important;align-items:center!important}
.asf-about-photo{margin:0!important;border-radius:34px;overflow:hidden;box-shadow:var(--shadow);aspect-ratio:4/5;background:var(--sand)}
.asf-about-photo img{width:100%;height:100%;object-fit:cover;object-position:center 27%}
.asf-pills{display:flex!important;flex-wrap:wrap;gap:8px;margin:24px 0 28px!important}
.asf-pill{padding:8px 12px!important;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px!important;color:#594a44!important;margin:0!important}

.asf-statement{max-width:var(--max);margin:0 auto!important;border-radius:36px;background:var(--wine);color:#fff;padding:56px 58px!important;overflow:hidden;position:relative}
.asf-statement .wp-block-columns{gap:58px!important;align-items:center!important}.asf-statement h2{color:#fff}.asf-statement p{color:#f4ded5;font-size:18px}.asf-statement .asf-eyebrow{color:#f3c9b9!important}

.asf-page-hero{padding:76px 20px 56px;background:linear-gradient(180deg,#fff7ed 0%,var(--paper) 100%)}
.asf-page-hero > *{max-width:var(--max);margin-left:auto!important;margin-right:auto!important}.asf-page-hero .asf-lead{margin-top:24px!important;max-width:790px}.asf-page-hero h1{font-size:clamp(46px,6vw,78px)}

.asf-offer-stack{display:flex!important;flex-direction:column;gap:22px}
.asf-offer-panel{padding:34px!important;border:1px solid var(--line);border-radius:30px;background:#fff}
.asf-offer-panel > .wp-block-columns{display:grid!important;grid-template-columns:120px 1fr 1fr;gap:28px!important;margin:0!important}
.asf-offer-number{font-size:13px!important;font-weight:850!important;letter-spacing:.12em!important;color:var(--terracotta)!important}
.asf-offer-panel h2{font-size:34px;margin-bottom:14px}.asf-offer-panel p{color:var(--muted)}
.asf-offer-details{border-left:1px solid var(--line);padding-left:28px}.asf-offer-details ul{padding-left:18px;color:#5c504a}.asf-offer-details li{margin:8px 0}

.asf-step{padding:26px!important;border-top:2px solid var(--wine);background:#fff;border-radius:0 0 18px 18px;height:100%}.asf-step small,.asf-step .asf-step-no{font-weight:850;color:var(--terracotta)}.asf-step h3{font-size:20px;margin:10px 0}.asf-step p{font-size:14px;color:var(--muted);margin:0}
.asf-note{border-left:4px solid var(--terracotta);padding:22px 24px!important;background:#fff8f3;border-radius:0 18px 18px 0;color:#544640}

.asf-contact-grid{max-width:var(--max);margin:0 auto!important;gap:20px!important}.asf-contact-card{min-height:260px;display:flex;flex-direction:column;justify-content:space-between}.asf-contact-card .wp-block-buttons{margin-top:auto}.asf-big-link{font-size:clamp(20px,2vw,30px)!important;font-weight:800!important;color:var(--wine)!important;letter-spacing:-.03em!important;overflow-wrap:anywhere}
.asf-prep-item{padding:22px!important;background:#fff;border:1px solid var(--line);border-radius:18px;height:100%}.asf-prep-item strong{display:block;color:var(--wine-dark);margin-bottom:6px}.asf-prep-item p{font-size:14px;color:var(--muted);margin:0}

.asf-legal{max-width:850px!important;margin:0 auto;padding:76px 20px}.asf-legal h1{font-size:52px}.asf-legal h2{font-size:28px;margin-top:40px}.asf-legal p,.asf-legal li{color:#4f433e}.asf-legal a{color:var(--wine);text-decoration:underline;text-underline-offset:3px}

.asf-cta{padding:54px 20px 84px}.asf-cta-inner{max-width:var(--max);margin:0 auto!important;border-radius:34px;background:var(--sand);padding:52px 56px!important}.asf-cta-inner > .wp-block-columns{align-items:center!important;gap:40px!important;margin:0!important}.asf-cta-inner p{margin-bottom:0;color:#5a4941}.asf-cta-inner .wp-block-buttons{justify-content:flex-end}

.site-footer{background:var(--wine-dark);color:#f9e9df;padding:48px 0 26px}.footer-grid{display:grid;grid-template-columns:1.5fr repeat(2,1fr);gap:34px}.footer-brand{display:flex;align-items:flex-start;gap:16px}.footer-brand img{width:72px;height:72px;object-fit:cover;border-radius:18px}.footer-brand p{margin:4px 0 0;color:#e9d0c5;font-size:13px}.footer-col h4{color:#fff;font-size:14px;margin-bottom:12px}.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.footer-col a{font-size:13px;color:#e9d0c5}.footer-col a:hover{color:#fff}.footer-bottom{margin-top:34px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#cdb3a8}.footer-menu{list-style:none;margin:0;padding:0;display:grid;gap:8px}

@media(max-width:980px){
  .menu-toggle{display:block}.nav-links{display:none;position:absolute;left:20px;right:20px;top:70px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:10px}.nav-links.open{display:flex}.nav-links ul{flex-direction:column;align-items:stretch;gap:4px}.nav-links li a{padding:11px 8px}.lang-switcher{padding:10px 8px;border-left:0;border-top:1px solid var(--line)}.nav-links .btn{margin-top:4px}
  .asf-hero{padding-top:48px}.asf-hero-grid{display:flex!important;flex-direction:column;gap:38px!important}.asf-hero-media{width:min(100%,620px)}.asf-portrait{height:460px}.asf-hero-badge{left:16px;bottom:18px}
  .asf-section-heading{grid-template-columns:1fr;gap:16px}.asf-problem-grid,.asf-service-grid{flex-wrap:wrap!important}.asf-problem-grid>.wp-block-column,.asf-service-grid>.wp-block-column{flex-basis:calc(50% - 12px)!important;flex-grow:0!important}.asf-about-row{flex-direction:column!important;gap:38px!important}.asf-offer-panel > .wp-block-columns{grid-template-columns:70px 1fr}.asf-offer-details{grid-column:2;border-left:0;border-top:1px solid var(--line);padding:22px 0 0}.asf-cta-inner > .wp-block-columns{flex-direction:column!important}.asf-cta-inner .wp-block-buttons{justify-content:flex-start}
}

@media(max-width:640px){
  .container{width:min(calc(100% - 28px),var(--max))}.nav{height:68px}.brand img{width:38px;height:38px}.brand span{font-size:17px}
  .asf-hero{padding:38px 14px 46px}.asf-hero h1{font-size:46px}.asf-hero-copy .asf-lead{font-size:18px!important;margin-top:20px!important}.asf-hero-copy .wp-block-buttons{margin-top:24px}.asf-hero-copy .wp-block-button{width:100%}.asf-hero-copy .wp-block-button__link{width:100%}.asf-portrait{height:360px;border-radius:28px 28px 76px 28px}.asf-hero-badge{width:165px;padding:14px!important}.asf-hero-badge strong{font-size:16px}
  .asf-section{padding:64px 14px}.asf-section-sm{padding:48px 14px}.asf-section-heading{margin-bottom:28px!important}.asf-section-heading h2{font-size:38px}.asf-problem-grid,.asf-service-grid,.asf-principles,.asf-prep-grid{display:block!important}.asf-problem-grid>.wp-block-column,.asf-service-grid>.wp-block-column{width:100%!important;margin-bottom:16px;flex-basis:auto!important}.asf-card{padding:24px!important}.asf-card-index{margin-bottom:26px!important}.asf-service-card{min-height:auto}
  .asf-statement{padding:34px 26px!important;border-radius:26px}.asf-statement h2{font-size:38px}.asf-offer-panel{padding:26px!important}.asf-offer-panel > .wp-block-columns{display:block!important}.asf-offer-number{margin-bottom:14px!important}.asf-offer-panel h2{font-size:30px}.asf-offer-details{margin-top:22px;padding-top:22px}.asf-page-hero{padding:56px 14px 40px}.asf-about-photo{max-height:520px}.asf-cta{padding:36px 14px 64px}.asf-cta-inner{padding:34px 26px!important;border-radius:26px}.asf-cta-inner h2{font-size:38px}.asf-cta-inner .wp-block-button{width:100%}.asf-cta-inner .wp-block-button__link{width:100%}.asf-contact-card{min-height:220px;padding:26px!important}.footer-grid{grid-template-columns:1fr;gap:28px}.footer-bottom{flex-direction:column}.footer-brand img{width:64px;height:64px}.asf-legal h1{font-size:42px}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
