/*
Theme Name: Site Authority Foundation — Astra Child
Theme URI: https://siteauthorityfoundation.com/
Description: Branded Astra child theme for SiteAuthorityFoundation.com. Includes a SAF landing page, consistent branded pages, and professional Site Authority Scan styling.
Author: Easy Traffic Systems
Template: astra
Version: 1.0.2
Text Domain: saf-astra-child
*/

:root{
  --saf-navy:#0b1933;
  --saf-navy-2:#11274a;
  --saf-blue:#2f67f6;
  --saf-blue-dark:#2355d8;
  --saf-teal:#18a99b;
  --saf-teal-dark:#0d8f84;
  --saf-gold:#f1b84b;
  --saf-ink:#12213b;
  --saf-copy:#44516a;
  --saf-muted:#6d788c;
  --saf-cloud:#f5f8fc;
  --saf-cloud-2:#eef3f9;
  --saf-line:#dce4ef;
  --saf-white:#ffffff;
  --saf-success:#16784f;
  --saf-warn:#9a6900;
  --saf-danger:#b7353b;
  --saf-shadow:0 20px 55px rgba(16,37,69,.10);
  --saf-shadow-soft:0 10px 30px rgba(16,37,69,.07);
  --saf-radius:22px;
  --saf-radius-sm:14px;
  --saf-content:1160px;
}

/* ---------- Global SAF brand ---------- */
body.saf-brand{
  color:var(--saf-copy);
  background:var(--saf-white);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.saf-brand h1,
body.saf-brand h2,
body.saf-brand h3,
body.saf-brand h4,
body.saf-brand h5,
body.saf-brand h6{
  color:var(--saf-ink);
  line-height:1.15;
  letter-spacing:-.025em;
  font-weight:750;
}
body.saf-brand a{color:var(--saf-blue);}
body.saf-brand a:hover{color:var(--saf-blue-dark);}
body.saf-brand ::selection{background:rgba(47,103,246,.18);}

body.saf-brand .site-header,
body.saf-brand .ast-primary-header-bar{
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--saf-line);
  box-shadow:0 4px 20px rgba(16,37,69,.035);
}
body.saf-brand .site-title a,
body.saf-brand .ast-site-title-wrap .site-title a{
  color:var(--saf-ink)!important;
  font-weight:800;
  letter-spacing:-.025em;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
body.saf-brand .site-title a:before,
body.saf-brand .ast-site-title-wrap .site-title a:before{
  content:"";
  display:inline-block;
  width:34px;
  height:34px;
  flex:0 0 34px;
  background:url("assets/saf-mark.svg") center/contain no-repeat;
}
body.saf-brand .site-description{color:var(--saf-muted);}
body.saf-brand .main-header-menu > .menu-item > .menu-link,
body.saf-brand .ast-header-navigation-arrow,
body.saf-brand .ast-builder-menu-mobile .main-navigation .menu-item > .menu-link{
  color:var(--saf-ink);
  font-weight:650;
}
body.saf-brand .main-header-menu > .menu-item > .menu-link:hover,
body.saf-brand .main-header-menu > .current-menu-item > .menu-link{
  color:var(--saf-blue);
}
body.saf-brand #ast-desktop-header a[href*="free-site-authority-scan"],
body.saf-brand #ast-desktop-header a[href*="site-authority-scan"]{
  color:#fff!important;
  background:var(--saf-blue);
  border-radius:999px;
  padding:11px 18px;
  height:auto;
  line-height:1.2;
  box-shadow:0 7px 20px rgba(47,103,246,.22);
}
body.saf-brand #ast-desktop-header a[href*="free-site-authority-scan"]:hover,
body.saf-brand #ast-desktop-header a[href*="site-authority-scan"]:hover{
  background:var(--saf-blue-dark);
}

body.saf-brand .site-primary-footer-wrap,
body.saf-brand .site-below-footer-wrap,
body.saf-brand .ast-small-footer{
  background:var(--saf-navy)!important;
  color:#c7d3e5;
  border:0;
}
body.saf-brand .site-primary-footer-wrap a,
body.saf-brand .site-below-footer-wrap a,
body.saf-brand .ast-small-footer a{color:#e9eff8;}
body.saf-brand .site-primary-footer-wrap a:hover,
body.saf-brand .site-below-footer-wrap a:hover{color:#fff;}
body.saf-brand .ast-footer-copyright,
body.saf-brand .ast-footer-copyright p,
body.saf-brand .saf-brand-copyright,
body.saf-brand .saf-brand-copyright p{
  margin:0;
  color:#c7d3e5!important;
}
body.saf-brand .saf-brand-copyright{font-size:14px;line-height:1.6;}

/* ---------- Shared components ---------- */
.saf-shell{width:min(calc(100% - 40px),var(--saf-content));margin:0 auto;}
.saf-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
  color:var(--saf-blue);
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.115em;
  text-transform:uppercase;
}
.saf-eyebrow:before{content:"";width:28px;height:2px;background:var(--saf-teal);border-radius:2px;}
.saf-button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px;}
.saf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:50px;
  padding:0 22px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:15px;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.saf-btn:hover{transform:translateY(-1px);}
.saf-btn-primary{background:var(--saf-blue);color:#fff!important;box-shadow:0 10px 24px rgba(47,103,246,.24);}
.saf-btn-primary:hover{background:var(--saf-blue-dark);color:#fff!important;box-shadow:0 12px 28px rgba(47,103,246,.3);}
.saf-btn-secondary{background:#fff;color:var(--saf-ink)!important;border-color:rgba(255,255,255,.32);box-shadow:0 8px 20px rgba(8,23,47,.12);}
.saf-btn-secondary:hover{background:#f8fbff;color:var(--saf-blue)!important;}
.saf-btn-outline{background:#fff;color:var(--saf-blue)!important;border-color:var(--saf-line);}
.saf-btn-outline:hover{border-color:#b9c8df;background:var(--saf-cloud);}
.saf-btn svg{width:18px;height:18px;}
.saf-card{
  background:#fff;
  border:1px solid var(--saf-line);
  border-radius:var(--saf-radius);
  box-shadow:var(--saf-shadow-soft);
}
.saf-section{padding:88px 0;}
.saf-section-soft{background:linear-gradient(180deg,#f8fafe 0%,var(--saf-cloud) 100%);border-top:1px solid #edf2f8;border-bottom:1px solid #edf2f8;}
.saf-section-heading{max-width:760px;margin:0 auto 46px;text-align:center;}
.saf-section-heading h2{font-size:clamp(31px,4vw,47px);margin:0 0 16px;}
.saf-section-heading p{margin:0;color:var(--saf-copy);font-size:18px;line-height:1.72;}
.saf-grid{display:grid;gap:22px;}
.saf-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.saf-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}

/* ---------- Homepage ---------- */
.saf-home{overflow:hidden;}
.saf-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:98px 0 84px;
  background:
    radial-gradient(circle at 82% 18%,rgba(24,169,155,.2),transparent 28%),
    radial-gradient(circle at 8% 70%,rgba(47,103,246,.22),transparent 30%),
    linear-gradient(135deg,#09162f 0%,#10274b 54%,#0d3150 100%);
}
.saf-hero:after{
  content:"";
  position:absolute;
  z-index:-1;
  width:520px;
  height:520px;
  right:-210px;
  bottom:-250px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:50%;
  box-shadow:0 0 0 70px rgba(255,255,255,.02),0 0 0 140px rgba(255,255,255,.018);
}
.saf-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.72fr);gap:64px;align-items:center;}
.saf-hero .saf-eyebrow{color:#b7d9ff;}
.saf-hero .saf-eyebrow:before{background:#52d7ca;}
body.saf-brand .saf-hero h1{margin:0;color:#fff;font-size:clamp(44px,6.2vw,72px);line-height:1.03;letter-spacing:-.05em;}
body.saf-brand .saf-hero h1 span{color:#7ee0d8;}
.saf-hero-copy{max-width:760px;margin:24px 0 0;color:#d1dcec;font-size:19px;line-height:1.72;}
.saf-hero-note{margin:20px 0 0;color:#9fb2cb;font-size:13px;line-height:1.5;}
.saf-hero-visual{
  position:relative;
  padding:28px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:28px;
  background:linear-gradient(155deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
  box-shadow:0 28px 80px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
}
.saf-hero-mark{display:flex;align-items:center;gap:15px;margin-bottom:24px;color:#fff;font-size:17px;font-weight:800;}
.saf-hero-mark img{width:52px;height:52px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.18));}
.saf-mini-audit{display:grid;gap:11px;}
.saf-mini-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 15px;border-radius:13px;background:rgba(255,255,255,.075);color:#dbe6f4;font-size:14px;}
.saf-mini-row strong{color:#fff;font-size:14px;}
.saf-mini-status{display:inline-flex;align-items:center;gap:7px;color:#8fe2c5;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;}
.saf-mini-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#65d5ad;box-shadow:0 0 0 4px rgba(101,213,173,.12);}
.saf-mini-status.attention{color:#ffd487;}
.saf-mini-status.attention:before{background:#f2b84b;box-shadow:0 0 0 4px rgba(242,184,75,.12);}
.saf-trust-strip{position:relative;margin-top:-1px;background:#fff;border-bottom:1px solid var(--saf-line);}
.saf-trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.saf-trust-item{display:flex;align-items:center;gap:12px;min-height:88px;padding:18px 24px;border-right:1px solid var(--saf-line);font-size:14px;color:var(--saf-copy);font-weight:700;}
.saf-trust-item:last-child{border-right:0;}
.saf-trust-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#edf3ff;color:var(--saf-blue);font-weight:900;}
.saf-problem-card{padding:28px 26px;}
.saf-problem-number{display:grid;place-items:center;width:42px;height:42px;margin-bottom:20px;border-radius:12px;background:#edf3ff;color:var(--saf-blue);font-weight:900;}
.saf-problem-card h3{margin:0 0 11px;font-size:21px;}
.saf-problem-card p{margin:0;font-size:15px;line-height:1.68;color:var(--saf-copy);}
.saf-how-card{position:relative;padding:31px 28px;overflow:hidden;}
.saf-how-step{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-bottom:20px;border-radius:50%;background:var(--saf-navy);color:#fff;font-size:13px;font-weight:900;}
.saf-how-card h3{margin:0 0 10px;font-size:23px;}
.saf-how-card p{margin:0;color:var(--saf-copy);line-height:1.68;}
.saf-feature-card{padding:28px;}
.saf-feature-icon{display:grid;place-items:center;width:46px;height:46px;margin-bottom:20px;border-radius:13px;background:linear-gradient(135deg,#ecf2ff,#eafaf7);color:var(--saf-blue);font-size:20px;font-weight:900;}
.saf-feature-card h3{margin:0 0 11px;font-size:21px;}
.saf-feature-card p{margin:0;color:var(--saf-copy);font-size:15px;line-height:1.68;}
.saf-difference{
  position:relative;
  overflow:hidden;
  padding:46px;
  border-radius:30px;
  background:linear-gradient(135deg,var(--saf-navy),#12355a);
  box-shadow:var(--saf-shadow);
}
.saf-difference-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
body.saf-brand .saf-difference h2{margin:0;color:#fff;font-size:clamp(34px,4.5vw,50px);}
.saf-difference p{margin:18px 0 0;color:#c7d5e7;font-size:17px;line-height:1.72;}
.saf-check-list{display:grid;gap:12px;margin:0;padding:0;list-style:none;}
.saf-check-list li{position:relative;padding:12px 14px 12px 43px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.055);color:#e0e9f4;font-size:14px;font-weight:650;}
.saf-check-list li:before{content:"✓";position:absolute;left:15px;top:10px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(82,215,202,.15);color:#7ee0d8;font-weight:900;}
.saf-cta-panel{padding:56px;text-align:center;border-radius:30px;background:linear-gradient(180deg,#fff,#f6f9fe);border:1px solid var(--saf-line);box-shadow:var(--saf-shadow);}
.saf-cta-panel h2{max-width:760px;margin:0 auto;font-size:clamp(34px,4.8vw,52px);}
.saf-cta-panel p{max-width:720px;margin:18px auto 0;color:var(--saf-copy);font-size:17px;line-height:1.7;}
.saf-cta-panel .saf-button-row{justify-content:center;}

/* ---------- Standard pages ---------- */
.saf-page-wrap{min-height:70vh;background:linear-gradient(180deg,#f7f9fd 0,#fff 280px);}
.saf-page-hero{padding:66px 0 46px;border-bottom:1px solid var(--saf-line);}
.saf-page-hero-inner{max-width:870px;}
.saf-page-hero h1{margin:0;font-size:clamp(38px,5vw,58px);}
.saf-page-lede{max-width:760px;margin:15px 0 0;color:var(--saf-copy);font-size:18px;line-height:1.67;}
.saf-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--saf-muted);font-size:13px;font-weight:700;}
.saf-breadcrumb a{color:var(--saf-muted);text-decoration:none;}
.saf-breadcrumb a:hover{color:var(--saf-blue);}
.saf-page-content{padding:54px 0 88px;}
.saf-page-card{max-width:920px;margin:0 auto;padding:clamp(26px,4vw,52px);}
.saf-page-card > :first-child{margin-top:0;}
.saf-page-card > :last-child{margin-bottom:0;}
.saf-page-card h2{margin-top:1.55em;font-size:30px;}
.saf-page-card h3{margin-top:1.45em;font-size:23px;}
.saf-page-card p,.saf-page-card li{font-size:16px;line-height:1.78;}
.saf-page-card ul,.saf-page-card ol{padding-left:1.3em;}
.saf-page-card blockquote{margin:28px 0;padding:20px 24px;border-left:4px solid var(--saf-teal);background:var(--saf-cloud);color:var(--saf-ink);}
.saf-page-card hr{border:0;border-top:1px solid var(--saf-line);margin:34px 0;}
.saf-page-card table{width:100%;border-collapse:collapse;}
.saf-page-card th,.saf-page-card td{padding:13px 14px;border:1px solid var(--saf-line);text-align:left;}
.saf-page-card th{background:var(--saf-cloud);color:var(--saf-ink);}

/* ---------- Free Scan page ---------- */
.saf-scan-page .saf-page-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0b1933,#12355a);border:0;}
.saf-scan-page .saf-page-hero:after{content:"";position:absolute;width:420px;height:420px;right:-170px;top:-190px;border-radius:50%;background:rgba(24,169,155,.10);box-shadow:0 0 0 70px rgba(255,255,255,.02);}
.saf-scan-page .saf-page-hero h1{color:#fff;}
.saf-scan-page .saf-page-hero .saf-breadcrumb,.saf-scan-page .saf-page-hero .saf-breadcrumb a{color:#aebed2;}
.saf-scan-page .saf-page-lede{color:#ccd8e7;}
.saf-scan-points{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 0;padding:0;list-style:none;}
.saf-scan-points li{padding:9px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);color:#d9e3ef;font-size:12px;font-weight:750;}
.saf-scan-page .saf-page-content{padding-top:44px;}
.saf-scan-page .saf-page-card{max-width:1000px;padding:0;border:0;background:transparent;box-shadow:none;}
body.saf-brand .saf-scan-page .sas-wrap{max-width:920px;margin:0 auto!important;}
body.saf-brand .saf-scan-page .sas-card{
  padding:clamp(26px,4vw,42px);
  border:1px solid var(--saf-line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--saf-shadow);
}
body.saf-brand .saf-scan-page .sas-form-card h2,
body.saf-brand .saf-scan-page .sas-result-card h2{font-size:29px;margin-bottom:12px;}
body.saf-brand .saf-scan-page .sas-form-card > p:first-of-type{color:var(--saf-copy);font-size:16px;line-height:1.65;}
body.saf-brand .saf-scan-page .sas-field{margin:20px 0;}
body.saf-brand .saf-scan-page .sas-field label{margin-bottom:8px;color:var(--saf-ink);font-size:14px;font-weight:800;}
body.saf-brand .saf-scan-page .sas-field input{
  min-height:52px;
  padding:13px 15px;
  border:1px solid #cbd6e5;
  border-radius:11px;
  background:#fbfcfe;
  color:var(--saf-ink);
  font-size:16px;
  box-shadow:inset 0 1px 2px rgba(13,34,68,.025);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
body.saf-brand .saf-scan-page .sas-field input:focus{outline:0;border-color:var(--saf-blue);background:#fff;box-shadow:0 0 0 4px rgba(47,103,246,.11);}
body.saf-brand .saf-scan-page .sas-consent{display:flex;gap:9px;align-items:flex-start;color:var(--saf-copy);font-size:13px;line-height:1.5;}
body.saf-brand .saf-scan-page .sas-button{
  min-height:52px;
  padding:0 24px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--saf-blue),#2457da);
  color:#fff!important;
  font-size:15px;
  font-weight:850;
  box-shadow:0 10px 24px rgba(47,103,246,.24);
}
body.saf-brand .saf-scan-page .sas-button:hover,
body.saf-brand .saf-scan-page .sas-button:focus{background:linear-gradient(135deg,var(--saf-blue-dark),#1d49c1);transform:translateY(-1px);}
body.saf-brand .saf-scan-page .sas-fineprint{margin-top:17px;color:var(--saf-muted);font-size:12px;line-height:1.55;}
body.saf-brand .saf-scan-page .sas-notice{padding:16px 18px;border:1px solid #f0c6c8;border-left:4px solid var(--saf-danger);border-radius:12px;background:#fff8f8;}
body.saf-brand .saf-scan-page .sas-eyebrow{color:var(--saf-blue);}
body.saf-brand .saf-scan-page .sas-score{color:var(--saf-ink);font-size:20px;font-weight:800;}
body.saf-brand .saf-scan-page .sas-score-summary{color:var(--saf-copy);}
body.saf-brand .saf-scan-page .sas-results{border:1px solid var(--saf-line);border-radius:16px;overflow:hidden;background:#fff;}
body.saf-brand .saf-scan-page .sas-results li{padding:15px 17px;border-bottom:1px solid var(--saf-line);}
body.saf-brand .saf-scan-page .sas-findings{border-top:0;display:grid;gap:14px;}
body.saf-brand .saf-scan-page .sas-finding{padding:20px;border:1px solid var(--saf-line);border-radius:15px;background:#fbfcfe;}
body.saf-brand .saf-scan-page .sas-finding h3{font-size:19px;}
body.saf-brand .saf-scan-page .sas-status{padding:5px 8px;border-radius:999px;background:#edf2f8;font-size:10px;font-weight:900;}
body.saf-brand .saf-scan-page .sas-result-strong .sas-status{color:var(--saf-success);background:#eaf7f1;}
body.saf-brand .saf-scan-page .sas-result-needs_improvement .sas-status{color:var(--saf-warn);background:#fff7df;}
body.saf-brand .saf-scan-page .sas-result-not_found .sas-status,
body.saf-brand .saf-scan-page .sas-result-unable_to_verify .sas-status{color:var(--saf-danger);background:#fff0f1;}
body.saf-brand .saf-scan-page .sas-disclaimer{padding:14px 16px;border-radius:12px;background:var(--saf-cloud);color:var(--saf-muted);font-size:12px;line-height:1.55;}

/* Keep SAF-generated content clean inside the branded page card. */
body.saf-brand .saf-page-card .saf-html-sitemap,
body.saf-brand .saf-page-card .saf-author-card{max-width:none;}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .saf-hero-grid,.saf-difference-grid{grid-template-columns:1fr;}
  .saf-hero-grid{gap:42px;}
  .saf-hero-visual{max-width:620px;}
  .saf-grid-3{grid-template-columns:1fr 1fr;}
  .saf-trust-grid{grid-template-columns:1fr 1fr;}
  .saf-trust-item:nth-child(2){border-right:0;}
  .saf-trust-item:nth-child(-n+2){border-bottom:1px solid var(--saf-line);}
}
@media(max-width:680px){
  .saf-shell{width:min(calc(100% - 28px),var(--saf-content));}
  .saf-section{padding:66px 0;}
  .saf-hero{padding:68px 0 60px;}
  body.saf-brand .saf-hero h1{font-size:clamp(39px,12vw,54px);}
  .saf-hero-copy{font-size:17px;}
  .saf-grid-3,.saf-grid-2,.saf-trust-grid{grid-template-columns:1fr;}
  .saf-trust-item{border-right:0!important;border-bottom:1px solid var(--saf-line);min-height:70px;padding:15px 8px;}
  .saf-trust-item:last-child{border-bottom:0;}
  .saf-difference{padding:32px 24px;}
  .saf-cta-panel{padding:38px 23px;}
  .saf-page-hero{padding:48px 0 34px;}
  .saf-page-content{padding:34px 0 64px;}
  .saf-page-card{padding:25px 21px;border-radius:16px;}
  .saf-button-row{display:grid;grid-template-columns:1fr;}
  .saf-btn{width:100%;}
  body.saf-brand .saf-scan-page .sas-button{width:100%;}
}
