/*
Theme Name: Simply Southern Construction
Theme URI: https://pulleymedia.com/
Author: Pulley Media
Author URI: https://pulleymedia.com/
Description: Custom one-page theme for Simply Southern Construction & Remodeling, Holly Springs NC. Built from the approved PSD. All copy, contact details, testimonials and gallery photos are editable without plugins.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simply-southern
Tags: one-column, custom-logo, custom-menu, editor-style, translation-ready
*/

/* ==========================================================================
   Simply Southern Construction & Remodeling
   Static build — rev 3 spec
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* colour */
  --blue:#0E76BC;
  --blue-dark:#0A5E97;          /* hover / active state, derived */
  --blue-on-dark:#38A6F0;       /* blue text on charcoal or black only */
  --charcoal:#414141;
  --black:#000000;
  --white:#FFFFFF;
  --field-text:#5C5C5C;
  --field-border:#D8DDE1;

  /* type */
  --font:"Source Sans 3","Segoe UI",Helvetica,Arial,sans-serif;
  --fs-hero:clamp(28px,4.2vw,40px);
  --fs-quote-head:clamp(24px,3vw,32px);
  --fs-section:clamp(24px,2.8vw,30px);
  --fs-card-title:clamp(22px,2.4vw,28px);
  --fs-hero-sub:clamp(17px,1.9vw,22px);
  --fs-about-intro:clamp(18px,1.7vw,20px);
  --fs-services-intro:clamp(17px,1.6vw,19px);
  --fs-list:18px;
  --fs-body:17px;
  --fs-nav:17px;
  --fs-btn:16px;
  --fs-field:15px;
  --fs-micro:14px;

  /* layout */
  --container:1200px;
  --gutter:24px;
  --stripe:11px;
  --pad-section:88px;
  --radius:4px;
}

@media (max-width:991px){
  :root{ --gutter:20px; --stripe:8px; --pad-section:56px; }
}
@media (max-width:767px){
  :root{ --gutter:16px; --stripe:6px; --pad-section:40px; }
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}
body{
  margin:0;position:relative;
  font-family:var(--font);
  font-size:var(--fs-body);
  line-height:1.65;
  color:var(--charcoal);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,p,ul{margin:0}
ul{padding:0;list-style:none}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

:focus-visible{outline:3px solid var(--blue-on-dark);outline-offset:3px}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}

.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--white);
  color:var(--blue);padding:12px 20px;font-weight:700}
.skip:focus{left:0}

.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* section divider — the design's structural motif, repeats 6× */
.stripe{height:var(--stripe);background:var(--blue);width:100%}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:14px 34px;
  background:var(--blue);color:var(--white);
  font-size:var(--fs-btn);font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  text-decoration:none;border-radius:var(--radius);
  transition:background .18s ease,transform .18s ease;
}
.btn:hover,.btn:focus-visible{background:var(--blue-dark)}
.btn:active{transform:translateY(1px)}

/* ---------- Micro bar ---------- */
.microbar{background:var(--blue);color:var(--white);font-size:var(--fs-micro)}
.microbar .container{
  display:flex;align-items:center;justify-content:flex-end;gap:14px;
  min-height:34px;padding-top:6px;padding-bottom:6px;flex-wrap:wrap;
}
.microbar a{text-decoration:none}
.microbar a:hover{text-decoration:underline}
.microbar .sep{opacity:.55}
.microbar .fb{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center}
.microbar .fb img{width:22px;height:22px}
@media (max-width:1199px){ .microbar .email-2,.microbar .email-2+.sep{display:none} }
@media (max-width:991px){ .microbar .phone-2,.microbar .phone-2+.sep{display:none} }
@media (max-width:767px){ .microbar{display:none} }

/* ---------- Header ---------- */
/* On the front page the header overlays the hero; on inner pages it sits in
   normal flow. body is the positioning context, so the admin bar's body margin
   is respected and the header never slides up underneath it. */
.site-top{position:relative;z-index:60}
.home .site-top{position:absolute;top:0;left:0;right:0}

.site-header{
  /* the PSD's white band sits at 75% opacity with a soft drop shadow — the photos
     read through it, and the dark nav links still clear contrast against it */
  background:rgba(255,255,255,.75);
  box-shadow:0 4px 20px rgba(0,0,0,.22);
  transition:background .25s ease,box-shadow .25s ease;
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  min-height:132px;
}
.brand{
  display:flex;flex-direction:column;align-items:center;gap:5px;
  text-decoration:none;flex:none;padding:16px 0;
}
.brand img.mark{width:118px;transition:width .25s ease}
.brand img.word{width:104px;transition:width .25s ease}

.nav-list{display:flex;align-items:center;gap:clamp(20px,3vw,56px)}
.nav-list a{
  font-size:var(--fs-nav);letter-spacing:.04em;text-transform:uppercase;
  text-decoration:none;color:var(--charcoal);padding:10px 2px;display:inline-block;
  position:relative;
}
.nav-list a::after{
  content:"";position:absolute;left:0;right:100%;bottom:4px;height:2px;
  background:var(--blue);transition:right .22s ease;
}
.nav-list a:hover::after,.nav-list a:focus-visible::after{right:0}

/* contact details live in the mobile menu panel only */
.nav-contact{display:none}

/* inner pages have no hero photo behind the bar */
body:not(.home) .site-header{background:var(--white);box-shadow:0 2px 14px rgba(0,0,0,.1)}

/* a custom logo replaces the stacked mark + wordmark */
.brand--custom{flex:none;padding:16px 0}
.brand--custom img,.brand--custom .custom-logo{max-height:96px;width:auto}
.site-header.is-stuck .brand--custom{padding:8px 0}
.site-header.is-stuck .brand--custom img{max-height:60px}

/* stuck state */
.site-header.is-stuck{
  position:fixed;top:0;left:0;right:0;background:var(--white);
  box-shadow:0 2px 14px rgba(0,0,0,.14);
}
.site-header.is-stuck .container{min-height:88px}
.site-header.is-stuck .brand{padding:8px 0}
.site-header.is-stuck .brand img.mark{width:78px}
.site-header.is-stuck .brand img.word{width:72px}

/* hamburger */
.nav-toggle{display:none;width:48px;height:48px;align-items:center;justify-content:center;flex:none}
.nav-toggle span{position:relative;display:block;width:26px;height:2px;background:var(--charcoal)}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:26px;height:2px;background:var(--charcoal);
  transition:transform .2s ease,top .2s ease;
}
.nav-toggle span::before{top:-8px}
.nav-toggle span::after{top:8px}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

@media (max-width:991px){
  /* opaque here: the panel slides out of it, so the photos must not read through */
  .site-header{background:var(--white);box-shadow:0 2px 14px rgba(0,0,0,.1)}
  .site-header .container{min-height:96px}
  .brand{padding:10px 0}
  .nav-toggle{display:flex}
  .site-nav{
    position:absolute;left:0;right:0;top:100%;
    background:var(--white);border-top:1px solid #E6EAED;
    box-shadow:0 12px 24px rgba(0,0,0,.14);
    display:none;
  }
  .site-nav.is-open{display:block}
  .nav-list{flex-direction:column;align-items:stretch;gap:0;padding:8px 0}
  .nav-list a{
    padding:0 var(--gutter);min-height:52px;display:flex;align-items:center;font-size:20px;
  }
  .nav-list a::after{display:none}
  .nav-list a:hover{background:#F3F6F8}
  .nav-contact{display:none}
}
@media (max-width:767px){
  .nav-contact{
    display:block;border-top:1px solid #E6EAED;padding:16px var(--gutter) 20px;
    font-size:16px;line-height:1.9;
  }
  .nav-contact a{color:var(--blue);text-decoration:none;display:block}
}

/* ---------- Hero ---------- */
.hero{position:relative;isolation:isolate;min-height:785px;display:flex;align-items:center}
.hero-panels{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;z-index:-2}
.hero-panels .panel{position:relative;overflow:hidden}
.hero-panels .panel+.panel{border-left:11px solid var(--white)}
.hero-panels img{width:100%;height:100%;object-fit:cover}
.hero-panels .mobile-only{display:none}
.hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:rgba(0,0,0,.5);   /* 50% — measured to bring white text to 5.6:1 */
}
.hero-inner{
  position:relative;width:100%;text-align:center;color:var(--white);
  padding:180px 0 90px;
}
/* The PSD's "outline" on the hero copy is a Drop Shadow with distance 0, size 16,
   choke 27%, colour rgb(13,13,13) at 98% — a dark halo, not a stroke. CSS text-shadow
   has no choke, so three stacked shadows reproduce the tight-then-soft falloff.
   Sizes are scaled to the reduced type scale (16 × 0.8). */
.hero h1,.hero p{
  text-shadow:
    0 0 3px rgba(13,13,13,.98),
    0 0 7px rgba(13,13,13,.85),
    0 0 13px rgba(13,13,13,.66);
}
.hero h1{
  font-size:var(--fs-hero);font-weight:700;line-height:1.12;
  letter-spacing:.005em;text-transform:uppercase;
  /* sized to hold the comp's two lines — "Quality Construction &" / "Remodeling
     You Can Trust." — without a hard-coded <br> that would strand on mobile */
  max-width:680px;margin:0 auto 24px;
}
.hero p{
  font-size:var(--fs-hero-sub);font-weight:400;line-height:1.45;
  max-width:42ch;margin:0 auto 34px;
}

@media (max-width:991px){
  .hero{min-height:70vh}
  .hero-panels{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
  .hero-panels .panel+.panel{border-left:0}
  .hero-inner{padding:150px 0 70px}
}
@media (max-width:767px){
  .hero{min-height:60vh}
  .hero-panels{grid-template-columns:1fr;grid-template-rows:1fr}
  .hero-panels .panel{display:none}
  .hero-panels .mobile-only{display:block}
  .hero-inner{padding:120px 0 48px}
}

/* ---------- Services ---------- */
.services{background:var(--charcoal);color:var(--white);padding:var(--pad-section) 0}
.services .eyebrow{
  font-size:var(--fs-section);font-weight:600;line-height:1.2;
  text-transform:uppercase;letter-spacing:.02em;
  color:var(--blue-on-dark);            /* lightened tint — blue on charcoal fails at 2.11 */
  text-align:center;margin-bottom:18px;
}
.services .intro{
  font-size:var(--fs-services-intro);font-weight:600;line-height:1.5;
  text-align:center;max-width:70ch;margin:0 auto 52px;
}
.services-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}

/* overlapping circular photo cluster */
.cluster{position:relative;aspect-ratio:1/.92;max-width:560px;width:100%;margin:0 auto}
.cluster figure{
  position:absolute;margin:0;border-radius:50%;overflow:hidden;
  border:9px solid var(--blue);background:var(--charcoal);
}
.cluster img{width:100%;height:100%;object-fit:cover}
.cluster .c1{width:44%;aspect-ratio:1;left:0;top:23%}
.cluster .c2{width:44%;aspect-ratio:1;left:19%;top:57%}
.cluster .c3{width:44%;aspect-ratio:1;left:37%;top:25%}
.cluster .c4{width:44%;aspect-ratio:1;left:56%;top:60%}

.services-card{background:var(--blue);padding:38px 42px;border-radius:var(--radius)}
.services-card h3{
  font-size:var(--fs-card-title);font-weight:600;line-height:1.25;margin-bottom:22px;
}
.services-card ul{display:flex;flex-direction:column;gap:2px}
.services-card li{
  font-size:var(--fs-list);font-weight:600;line-height:1.6;
  padding-left:32px;position:relative;
}
.services-card li::before{
  content:"";position:absolute;left:0;top:.55em;
  width:11px;height:11px;border-radius:50%;background:var(--white);
}

@media (max-width:991px){
  .services-grid{grid-template-columns:1fr;gap:44px}
  .cluster{max-width:420px}
  .services-card{padding:32px 28px}
}
@media (max-width:767px){
  /* the staggered overlap doesn't survive a narrow column — plain 2×2 grid instead.
     these selectors must match .cluster .c1's specificity or the absolute
     positioning above wins and the circles collapse */
  .cluster{aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,140px);
    gap:16px;justify-content:center;max-width:none}
  .cluster .c1,.cluster .c2,.cluster .c3,.cluster .c4{
    position:static;left:auto;top:auto;
    width:140px;height:140px;aspect-ratio:1;border-width:6px;
  }
}
@media (max-width:479px){
  .cluster{grid-template-columns:repeat(2,120px);gap:12px}
  .cluster .c1,.cluster .c2,.cluster .c3,.cluster .c4{width:120px;height:120px}
}

/* ---------- About ---------- */
.about{background:var(--white);padding:var(--pad-section) 0}
.about-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
/* the PSD centres the heading and the blue intro, and sets the body copy ragged-right
   — the block as a whole is centred inside the text column */
.about-copy{max-width:560px;margin:0 auto}
.about h2{
  font-size:var(--fs-section);font-weight:600;line-height:1.2;
  text-transform:uppercase;letter-spacing:.02em;color:var(--blue);
  text-align:center;margin-bottom:22px;
}
.about .intro{
  font-size:var(--fs-about-intro);font-weight:600;line-height:1.5;
  color:var(--blue);text-align:center;margin:0 auto 26px;max-width:44ch;
}
.about .body{font-size:var(--fs-body);line-height:1.7;color:var(--charcoal);max-width:52ch}
.about-photos{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.about-photos img{width:100%;aspect-ratio:434/456;object-fit:cover;border-radius:var(--radius)}

@media (max-width:991px){
  .about-grid{grid-template-columns:1fr;gap:36px}
  .about-copy{max-width:660px}
  .about .intro{max-width:none}
  .about .body{max-width:none}
}
@media (max-width:767px){
  .about-photos img{aspect-ratio:4/3}
}

/* ---------- Free quote ---------- */
.freequote{background:var(--black);color:var(--white);padding:var(--pad-section) 0;text-align:center}
.freequote h2{
  font-size:var(--fs-quote-head);font-weight:600;line-height:1.2;
  margin-bottom:32px;text-wrap:balance;
}

/* ---------- Gallery ---------- */
.gallery{background:var(--white);padding:var(--pad-section) 0}
.gallery-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.gallery-grid button{
  padding:0;border-radius:8px;overflow:hidden;display:block;width:100%;
  aspect-ratio:1;background:#EDF1F4;
}
.gallery-grid img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .3s ease,opacity .2s ease;
}
.gallery-grid button:hover img,.gallery-grid button:focus-visible img{transform:scale(1.05);opacity:.9}

@media (max-width:1199px){ .gallery-grid{grid-template-columns:repeat(4,1fr)} }
@media (max-width:991px){ .gallery-grid{grid-template-columns:repeat(3,1fr);gap:12px} }
@media (max-width:767px){ .gallery-grid{grid-template-columns:repeat(2,1fr);gap:10px} }

/* lightbox */
.lightbox{
  position:fixed;inset:0;z-index:200;display:none;
  background:rgba(0,0,0,.94);
  align-items:center;justify-content:center;
}
.lightbox.is-open{display:flex}
.lightbox img{max-width:92vw;max-height:84vh;object-fit:contain;border-radius:4px}
.lightbox .lb-close,.lightbox .lb-prev,.lightbox .lb-next{
  position:absolute;width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--white);background:rgba(255,255,255,.12);font-size:26px;line-height:1;
  transition:background .18s ease;
}
.lightbox .lb-close:hover,.lightbox .lb-prev:hover,.lightbox .lb-next:hover{background:rgba(255,255,255,.28)}
.lightbox .lb-close{top:20px;right:20px}
.lightbox .lb-prev{left:20px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:20px;top:50%;transform:translateY(-50%)}
.lightbox .lb-count{
  position:absolute;bottom:22px;left:0;right:0;text-align:center;
  color:rgba(255,255,255,.7);font-size:15px;font-variant-numeric:tabular-nums;
}
@media (max-width:767px){
  .lightbox img{max-width:100vw;max-height:78vh;border-radius:0}
  .lightbox .lb-prev{left:8px}
  .lightbox .lb-next{right:8px}
}

/* ---------- Testimonials ---------- */
.testimonials{background:var(--blue);padding:var(--pad-section) 0}
.testimonials h2{
  font-size:var(--fs-section);font-weight:600;line-height:1.2;
  color:var(--white);text-align:center;margin-bottom:46px;
}
.testimonial-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,388px));
  gap:32px;justify-content:center;align-items:stretch;
}
.testimonial{
  background:var(--white);border-radius:var(--radius);
  padding:36px 30px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;
}
.testimonial img{
  width:72px;height:72px;border-radius:50%;object-fit:cover;
  border:4px solid var(--blue);margin-bottom:24px;
}
.testimonial blockquote{margin:0 0 22px;font-size:var(--fs-body);line-height:1.65;color:var(--black)}
.testimonial cite{
  margin-top:auto;font-size:var(--fs-list);font-weight:600;font-style:normal;color:var(--black);
}
@media (max-width:767px){
  .testimonial-grid{grid-template-columns:minmax(0,420px)}
}

/* ---------- Footer ---------- */
.site-footer{background:var(--black);color:var(--white);padding:64px 0 56px}
.footer-grid{
  display:grid;grid-template-columns:1fr auto 1fr;gap:48px;align-items:center;
}
.footer-contact{font-size:var(--fs-body);line-height:1.85;font-weight:700}
.footer-contact a{color:var(--white);text-decoration:none;display:block}
.footer-contact a:hover{text-decoration:underline}
.footer-contact .group+.group{margin-top:20px}
.footer-logo{justify-self:center}
.footer-logo img{width:210px}

.footer-form h3{font-size:20px;font-weight:700;margin-bottom:16px;text-align:center}
.form-row{display:flex;gap:12px;margin-bottom:12px}
.form-row .field{flex:1}
.footer-form input,.footer-form textarea{
  width:100%;font-family:var(--font);font-size:var(--fs-field);
  color:var(--charcoal);background:var(--white);
  border:1px solid var(--field-border);border-radius:999px;
  padding:12px 20px;min-height:44px;
}
.footer-form textarea{border-radius:22px;resize:vertical;min-height:44px}
.footer-form input::placeholder,.footer-form textarea::placeholder{color:var(--field-text);opacity:1}
.footer-form .btn{width:auto;margin:8px auto 0;display:flex;padding:12px 30px;min-height:46px}
.form-note{
  margin-top:14px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.6);text-align:center;
}
.hp{position:absolute;left:-9999px}

@media (max-width:991px){
  .footer-grid{grid-template-columns:1fr auto;gap:32px 40px}
  .footer-form{grid-column:1/-1}
  .footer-form h3{text-align:left}
  .footer-form .btn{margin-left:0}
}
@media (max-width:767px){
  .footer-grid{grid-template-columns:1fr;gap:36px;text-align:center}
  .footer-logo{justify-self:center}
  .footer-contact a{display:inline-block}
  .footer-form h3{text-align:center}
  .form-row{flex-direction:column;gap:12px}
  .footer-form input,.footer-form textarea{min-height:48px}
  .footer-form .btn{width:100%;margin:8px 0 0}
}


/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignwide{max-width:1400px;margin-left:auto;margin-right:auto}
.alignfull{max-width:none}
.wp-caption{max-width:100%}
.wp-caption-text,figcaption{font-size:14px;color:#6B7A87;padding-top:8px}
.sticky,.gallery-caption,.bypostauthor{}
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.screen-reader-text:focus{
  position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;
  background:#fff;color:var(--blue);padding:12px 20px;font-weight:700;z-index:200;
}
.admin-bar .site-header.is-stuck{top:32px}
@media (max-width:782px){ .admin-bar .site-header.is-stuck{top:46px} }

/* ==========================================================================
   Inner pages (page.php / single.php / archive.php / 404 / search)
   ========================================================================== */
.page-hero{background:var(--charcoal);color:var(--white);padding:150px 0 56px;text-align:center}
.page-hero h1{font-size:var(--fs-section);font-weight:600;line-height:1.2;text-wrap:balance}
.page-hero p{margin-top:12px;color:rgba(255,255,255,.8)}
@media (max-width:991px){ .page-hero{padding:56px 0 44px} }

.content-area{padding:var(--pad-section) 0}
.entry{max-width:70ch;margin:0 auto}
.entry h2{font-size:26px;font-weight:600;margin:36px 0 14px;color:var(--charcoal)}
.entry h3{font-size:21px;font-weight:600;margin:28px 0 12px}
.entry p{margin-bottom:1.15em}
.entry ul,.entry ol{margin:0 0 1.15em 1.4em;list-style:disc}
.entry ol{list-style:decimal}
.entry li{margin-bottom:.4em}
.entry a{color:var(--blue)}
.entry img{border-radius:var(--radius);margin:1em 0}
.entry blockquote{border-left:4px solid var(--blue);padding-left:20px;margin:1.4em 0;font-style:italic}

.post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:32px}
.post-card{border:1px solid #E3E8EC;border-radius:8px;overflow:hidden;background:#fff}
.post-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.post-card .pad{padding:20px 22px 24px}
.post-card h2{font-size:20px;font-weight:600;margin-bottom:8px;line-height:1.3}
.post-card h2 a{text-decoration:none;color:var(--charcoal)}
.post-card h2 a:hover{color:var(--blue)}
.post-card .meta{font-size:14px;color:#6B7A87;margin-bottom:10px}

.pagination{display:flex;gap:8px;justify-content:center;margin-top:48px;flex-wrap:wrap}
.pagination .page-numbers{
  min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 14px;border:1px solid #DDE3E8;border-radius:var(--radius);text-decoration:none;
}
.pagination .current{background:var(--blue);color:var(--white);border-color:var(--blue)}

.search-form{display:flex;gap:10px;max-width:460px;margin:0 auto}
.search-form input[type=search]{
  flex:1;font:inherit;font-size:16px;padding:12px 18px;min-height:48px;
  border:1px solid #DDE3E8;border-radius:999px;
}

/* ==========================================================================
   Contact form states + Ninja Forms skin
   ========================================================================== */
.form-status{
  margin-bottom:14px;padding:12px 16px;border-radius:var(--radius);font-size:15px;line-height:1.5;
}
.form-status.ok{background:rgba(53,190,131,.16);color:#8FE9C0}
.form-status.err{background:rgba(255,120,110,.16);color:#FFB3AC}
.footer-form .field-error{
  display:block;margin:6px 0 0 18px;font-size:13.5px;color:#FFB3AC;
}
.footer-form input[aria-invalid="true"],.footer-form textarea[aria-invalid="true"]{
  border-color:#E4736A;box-shadow:0 0 0 2px rgba(228,115,106,.28);
}

/* Ninja Forms renders its own markup — pull it back to the design.
   Verified against Ninja Forms' live DOM: the field rows are <nf-field> custom
   elements inside <nf-fields-wrap>, not the .nf-field-container divs, and the
   submit control is input[type=submit] rather than [type=button]. */
.footer-form .nf-form-title,
.footer-form .nf-form-fields-required,
.footer-form .nf-input-limit,
.footer-form .ninja-forms-req-symbol{display:none}

/* Custom elements default to display:inline, so the grid has to be declared. */
.footer-form nf-fields-wrap{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start;
}
.footer-form nf-field{display:block;grid-column:1 / -1;min-width:0}
/* Rows 2 and 3 share a line, matching the comp's paired Email and Phone.
   Reordering the fields in Ninja Forms changes which two pair up. */
.footer-form nf-field:nth-child(2){grid-column:1}
.footer-form nf-field:nth-child(3){grid-column:2}
.footer-form .nf-field-container{margin:0}

/* Visually hidden, NOT display:none — the input's aria-labelledby points at
   this label, and display:none would drop it from the accessibility tree. */
.footer-form .nf-field-label{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.footer-form .nf-form-content input:not([type=submit]):not([type=button]),
.footer-form .nf-form-content textarea{
  width:100%;font-family:var(--font);font-size:var(--fs-field);
  color:var(--charcoal);background:var(--white);
  border:1px solid var(--field-border);border-radius:999px;
  padding:12px 20px;min-height:44px;
}
.footer-form .nf-form-content textarea{border-radius:22px;min-height:96px;height:96px}
.footer-form .nf-form-content .nf-error-msg,
.footer-form .nf-error-wrap{color:#FFB3AC;font-size:13.5px}

.footer-form .nf-form-content input[type=submit]{
  display:block;width:auto;height:auto;margin:8px auto 0;
  min-height:46px;padding:12px 34px;
  background:var(--blue);color:var(--white);border:0;border-radius:var(--radius);
  font-family:var(--font);font-size:var(--fs-btn);font-weight:700;
  letter-spacing:.05em;text-transform:uppercase;cursor:pointer;
  transition:background .18s ease;
}
.footer-form .nf-form-content input[type=submit]:hover{background:var(--blue-dark)}

@media (max-width:767px){
  .footer-form nf-fields-wrap{grid-template-columns:1fr}
  .footer-form nf-field:nth-child(2),
  .footer-form nf-field:nth-child(3){grid-column:1 / -1}
  .footer-form .nf-form-content input[type=submit]{width:100%;margin-left:0;margin-right:0}
}

/* ==========================================================================
   Editor-only prompts (never shown to visitors)
   ========================================================================== */
.editor-prompt{
  max-width:64ch;margin:0 auto;text-align:center;font-size:16px;line-height:1.6;
  color:var(--charcoal);background:#FFF4D6;border:1px dashed #D9C489;
  border-radius:8px;padding:20px 24px;
}
.editor-prompt a{color:var(--blue);font-weight:600}
.editor-prompt--light{background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.6)}

/* Initials fallback when a testimonial has no photo */
.testimonial-initial{
  width:72px;height:72px;border-radius:50%;border:4px solid var(--blue);
  display:flex;align-items:center;justify-content:center;margin-bottom:24px;
  background:var(--blue);color:var(--white);
  font-size:28px;font-weight:700;line-height:1;
}

/* Three or more testimonials go three-across */
.testimonial-grid.is-three-up{grid-template-columns:repeat(3,minmax(0,388px))}
@media (max-width:991px){
  .testimonial-grid.is-three-up{grid-template-columns:repeat(2,minmax(0,388px))}
}
@media (max-width:767px){
  .testimonial-grid.is-three-up{grid-template-columns:minmax(0,420px)}
}
