/*
Theme Name: Sanes & Larkin
Theme URI: https://saneslarkin.com
Author: Sanes & Larkin Law Firm
Description: Custom theme for Sanes & Larkin Law Firm, LLP — Pearland personal injury attorneys. Plugin-free: contact info, practice areas, and the contact form all work on activation. Fully class-based styling; content is editable from the dashboard.
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: saneslarkin
*/

/* =================================================================
   DESIGN TOKENS
   ================================================================= */
:root {
  --gold: #B0884E;
  --ink: #14202E;
  --ink-2: #0E1925;
  --ink-3: #0B1520;
  --paper: #FAF9F5;
  --rad: 8px;

  --c-body: #1E2730;
  --c-muted: #4D5862;
  --c-muted-2: #5A646E;
  --c-line: rgba(30,39,48,.12);

  --on-dark: #EFE9DC;
  --on-dark-hi: #FBF7EF;
  --on-dark-mut: #B9C5D1;
  --on-dark-mut-2: #9FB0C0;
  --on-dark-mut-3: #AEBAC6;
  --gold-soft: #D9C7A6;

  /* Derived tones. These exact values are the approved design; when a base
     color is changed in Appearance → Customize → Colors, the theme
     recalculates them from the new color (see sl_color_groups()). */
  --gold-a16: rgba(176,136,78,.16);
  --gold-a20: rgba(176,136,78,.20);
  --gold-a35: rgba(176,136,78,.35);
  --hero-top: #16222F;
  --hero-bot: #0F1A26;
  --overlay-82: rgba(15,26,38,.82);
  --overlay-92: rgba(15,26,38,.92);
  --trust-bg: rgba(8,15,22,.5);
  --shadow-40: rgba(20,32,46,.4);
  --shadow-45: rgba(20,32,46,.45);
  --paper-hi: #FBF8F2;
  --paper-2: #F5F1EA;
  --paper-3: #EDE7DC;
  --field-bg: #FBFAF7;
  --field-line: #D8D2C7;
  --c-nav: #3A434D;
  --c-soft: #33404B;
  --c-prose: #3F4953;
  --c-faint: #7A828C;
  --c-note: #9098A0;
  --line-05: rgba(30,39,48,.05);
  --line-07: rgba(30,39,48,.07);
  --line-08: rgba(30,39,48,.08);
  --line-10: rgba(30,39,48,.1);
  --foot-text: #8C9AA8;
  --foot-mut: #5E6E7C;

  --font-serif: 'Libre Caslon Text', Georgia, serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

/* Sharp-corner theme option */
.sl-corners-sharp { --rad: 0px; }

/* =================================================================
   RESET
   ================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--c-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* =================================================================
   PRIMITIVES
   ================================================================= */
.sl-page { background: var(--paper); color: var(--c-body); min-height: 100vh; }
.sl-container { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(18px,4vw,28px); padding-right: clamp(18px,4vw,28px); }

.sl-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--gold);
  text-transform: uppercase;
}
.sl-eyebrow--line { display: inline-flex; align-items: center; gap: 11px; }
.sl-eyebrow--line::before { content: ""; width: 30px; height: 1px; background: var(--gold); }

.sl-h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(33px,6.2vw,55px); line-height: 1.08; letter-spacing: -.01em; }
.sl-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(27px,4.6vw,40px); line-height: 1.14; letter-spacing: -.01em; }
.sl-h3 { font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
.sl-lead { font-size: clamp(16px,2.2vw,18.5px); line-height: 1.62; font-weight: 300; }
.sl-em { font-style: italic; color: var(--gold); }

/* Buttons */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15.5px; padding: 16px 28px; border-radius: var(--rad);
  border: 1px solid transparent; cursor: pointer; transition: filter .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.sl-btn--gold { background: var(--gold); color: var(--ink); }
.sl-btn--gold:hover { filter: brightness(1.08); }
.sl-btn--ghost { border-color: rgba(233,227,219,.32); color: var(--on-dark); }
.sl-btn--ghost:hover { border-color: var(--gold); background: var(--gold-a16); color: #fff; }
.sl-btn--dark { background: var(--ink); color: var(--on-dark-hi); }
.sl-btn--dark:hover { filter: brightness(1.2); }
.sl-btn--sm { font-size: 14px; padding: 11px 18px; }
.sl-btnrow { display: flex; flex-wrap: wrap; gap: 14px; }

.sl-link-underline { font-weight: 600; font-size: 14.5px; border-bottom: 2px solid var(--gold); padding-bottom: 4px; color: var(--ink); }
.sl-arrow { font-size: 18px; }

/* Dark section base */
.sl-section { padding-top: clamp(56px,9vw,100px); padding-bottom: clamp(52px,8vw,90px); }
.sl-section--ink { background: var(--ink); color: var(--on-dark); }
.sl-section--ink2 { background: var(--ink-2); color: var(--on-dark); }
.sl-center { text-align: center; }

/* =================================================================
   UTILITY BAR
   ================================================================= */
.sl-utilbar { background: var(--ink-2); color: var(--on-dark-mut-2); font-size: 12.5px; letter-spacing: .04em; }
.sl-utilbar__inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.sl-utiltagline { display: flex; align-items: center; gap: 8px; }
.sl-utiltagline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.sl-utillinks { display: flex; gap: 22px; align-items: center; }
.sl-util-phone { color: var(--gold-soft); }
.sl-utilcta { display: none; }
.sl-utiladdr { color: var(--on-dark-mut-2); }

/* =================================================================
   HEADER + NAV
   ================================================================= */
.sl-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-10); }
.sl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.sl-logo img { height: clamp(38px,7.5vw,52px); width: auto; }

.sl-nav { display: flex; align-items: center; gap: clamp(18px,2.4vw,30px); font-size: 14.5px; font-weight: 500; color: var(--c-nav); }
.sl-nav__link { padding: 4px 0; transition: color .18s ease; }
.sl-nav__link:hover { color: var(--gold); }

/* Desktop dropdown */
.sl-has-children { position: relative; }
.sl-has-children > .sl-nav__link { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sl-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .2s ease; }
.sl-submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 260px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad);
  box-shadow: 0 24px 50px -24px var(--shadow-45); padding: 8px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.sl-submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.sl-has-children:hover .sl-submenu,
.sl-has-children:focus-within .sl-submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sl-has-children:hover .sl-caret,
.sl-has-children:focus-within .sl-caret { transform: rotate(225deg) translateY(2px); }
.sl-submenu__link { padding: 10px 14px; font-size: 14px; color: var(--c-soft); border-radius: 6px; transition: background .15s ease, color .15s ease; }
.sl-submenu__link:hover { background: var(--paper); color: var(--gold); }
.sl-submenu__all { margin-top: 4px; border-top: 1px solid var(--c-line); padding-top: 10px; color: var(--gold); font-weight: 600; }

/* Hamburger + mobile menu */
.sl-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.sl-hamburger span { width: 24px; height: 2px; background: var(--ink); display: block; }
.sl-mobile-menu { display: none; border-top: 1px solid var(--line-10); padding: 8px clamp(18px,4vw,28px) 18px; flex-direction: column; gap: 2px; }
.sl-mobile-menu.is-open { display: flex; }
.sl-mobile__link { padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--c-body); border-bottom: 1px solid var(--line-07); display: flex; justify-content: space-between; align-items: center; }
.sl-mobile__sub { display: none; flex-direction: column; padding-left: 14px; }
.sl-mobile__sub.is-open { display: flex; }
.sl-mobile__sub a { padding: 11px 4px; font-size: 14.5px; color: var(--c-muted-2); border-bottom: 1px solid var(--line-05); }
.sl-mobile__toggle { background: none; border: none; cursor: pointer; padding: 6px; color: var(--c-muted-2); }

/* =================================================================
   HERO
   ================================================================= */
.sl-hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.sl-hero__bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 78% -10%, var(--gold-a20), transparent 55%), linear-gradient(180deg,var(--hero-top),var(--hero-bot)); }
.sl-hero__scan { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 100% 7px; }
.sl-hero__inner { position: relative; display: flex; flex-wrap: wrap; gap: clamp(36px,5vw,60px); align-items: center; padding-top: clamp(56px,9vw,96px); padding-bottom: clamp(52px,8vw,88px); }
.sl-hero__text { flex: 1.15 1 340px; }
.sl-hero__text .sl-h1 { color: var(--on-dark-hi); margin-top: 26px; }
.sl-hero__text .sl-lead { margin-top: 26px; color: var(--on-dark-mut); max-width: 520px; }
.sl-hero__text .sl-btnrow { margin-top: 36px; }
.sl-hero__media { flex: .85 1 300px; }
.sl-frame { border: 1px solid var(--gold-a35); border-radius: var(--rad); padding: 6px; background: rgba(255,255,255,.02); }
.sl-frame img { width: 100%; height: clamp(280px,42vw,420px); object-fit: cover; border-radius: 6px; }

/* Trust strip */
.sl-trust { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: var(--trust-bg); }
.sl-trust__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.sl-stat { padding: 26px 18px; border-right: 1px solid rgba(255,255,255,.07); }
.sl-stat:last-child { border-right: none; }
.sl-stat__num { font-family: var(--font-serif); font-size: clamp(24px,3.4vw,30px); color: var(--gold); }
.sl-stat__label { font-size: 13px; color: var(--on-dark-mut-2); margin-top: 4px; letter-spacing: .02em; }

/* =================================================================
   SPLIT (intro)
   ================================================================= */
.sl-split { display: flex; flex-wrap: wrap; gap: clamp(36px,5vw,64px); align-items: center; }
.sl-split__media { flex: 1 1 300px; }
.sl-split__media img { width: 100%; height: clamp(320px,55vw,480px); object-fit: cover; border-radius: var(--rad); }
.sl-split__text { flex: 1.2 1 340px; }
.sl-split__text .sl-h2 { color: var(--ink); margin-top: 20px; }
.sl-prose { color: var(--c-muted); }
.sl-prose p { margin-top: 16px; }
.sl-prose p:first-child { margin-top: 0; }
.sl-checkrow { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--c-line); }
.sl-check { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--c-body); font-size: 15px; }
.sl-check::before { content: "\2713"; color: var(--gold); font-size: 19px; }

/* =================================================================
   PRACTICE AREAS (home grid + archive)
   ================================================================= */
.sl-pa { background: var(--paper-3); border-top: 1px solid var(--line-08); border-bottom: 1px solid var(--line-08); }
.sl-pa__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(32px,5vw,48px); }
.sl-pa__head .sl-h2 { color: var(--ink); margin-top: 16px; max-width: 560px; }
.sl-pa__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,250px),1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.sl-pa-card { display: flex; flex-direction: column; background: var(--paper-2); padding: clamp(26px,2.6vw,34px) clamp(24px,2.4vw,30px); transition: background .2s ease; }
.sl-pa-card:hover { background: var(--paper-hi); }
.sl-pa-card__num { font-family: var(--font-serif); color: var(--gold); font-size: 15px; }
.sl-pa-card__title { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--ink); margin-top: 12px; line-height: 1.2; }
.sl-pa-card__desc { margin-top: 12px; color: var(--c-muted-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.sl-pa-card__more { margin-top: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; color: var(--gold); display: inline-flex; align-items: center; gap: 7px; }

/* archive variant: card with border */
.sl-pa__grid--cards { gap: clamp(14px,1.8vw,20px); background: none; border: none; }
.sl-pa__grid--cards .sl-pa-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad); }
.sl-pa__grid--cards .sl-pa-card__title { min-height: 54px; }

/* =================================================================
   WHY US PILLARS
   ================================================================= */
.sl-why__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sl-why__head .sl-h2 { color: var(--ink); margin-top: 16px; }
.sl-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(28px,4vw,40px); }
.sl-pillar { text-align: center; padding: 0 14px; }
.sl-pillar__icon { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; color: var(--gold); font-family: var(--font-serif); font-size: 22px; }
.sl-pillar .sl-h3 { color: var(--ink); }
.sl-pillar p { margin-top: 14px; color: var(--c-muted-2); font-size: 15.5px; line-height: 1.6; }

/* =================================================================
   ATTORNEYS
   ================================================================= */
.sl-attys .sl-h2 { color: var(--on-dark-hi); max-width: 620px; }
.sl-attys__grid { display: flex; flex-wrap: wrap; gap: clamp(32px,4vw,40px); margin-top: clamp(36px,5vw,54px); }
.sl-atty { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: clamp(18px,3vw,26px); align-items: flex-start; }
.sl-atty__photo { width: 160px; height: 200px; flex: none; border-radius: var(--rad); background: #C9CDD3; overflow: hidden; }
.sl-atty__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sl-atty__body { flex: 1 1 220px; min-width: 0; }
.sl-atty__name { font-family: var(--font-serif); font-weight: 400; font-size: 27px; color: var(--on-dark-hi); }
.sl-atty__role { color: var(--gold); font-size: 13.5px; font-weight: 600; letter-spacing: .03em; margin-top: 6px; }
.sl-atty__bio { margin-top: 16px; color: var(--on-dark-mut-3); font-size: 15px; line-height: 1.62; }

/* =================================================================
   TESTIMONIAL
   ================================================================= */
.sl-quote { max-width: 880px; margin: 0 auto; text-align: center; }
.sl-quote__stars { color: var(--gold); font-size: 18px; letter-spacing: .3em; }
.sl-quote__text { font-family: var(--font-serif); font-weight: 400; font-style: italic; font-size: clamp(22px,4.2vw,32px); line-height: 1.35; color: var(--on-dark-hi); margin-top: 26px; }
.sl-quote__by { margin-top: 26px; font-size: 13.5px; letter-spacing: .16em; color: var(--on-dark-mut-2); }

/* =================================================================
   CTA BAND
   ================================================================= */
.sl-ctaband__inner { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.sl-ctaband__text { flex: 1 1 440px; }
.sl-ctaband__text .sl-h2 { color: var(--on-dark-hi); margin-top: 18px; }
.sl-ctaband__text .sl-lead { margin-top: 18px; color: var(--on-dark-mut); max-width: 560px; }

/* =================================================================
   PAGE HERO (inner pages) + breadcrumb
   ================================================================= */
.sl-pagehero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.sl-pagehero__inner { position: relative; padding-top: clamp(46px,7vw,80px); padding-bottom: clamp(46px,7vw,80px); }
.sl-pagehero--center .sl-pagehero__col { max-width: 780px; margin: 0 auto; text-align: center; }
.sl-pagehero--center .sl-breadcrumb { justify-content: center; }
.sl-pagehero--center .sl-lead { margin-left: auto; margin-right: auto; }
.sl-pagehero--center .sl-btnrow { justify-content: center; }
.sl-pagehero .sl-h1 { color: var(--on-dark-hi); }
.sl-pagehero .sl-lead { margin-top: 22px; color: var(--on-dark-mut); max-width: 600px; }
.sl-pagehero .sl-btnrow { margin-top: 32px; }
.sl-breadcrumb { font-size: 12.5px; letter-spacing: .08em; color: var(--on-dark-mut-2); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sl-breadcrumb a:hover { color: #fff; }
.sl-breadcrumb__sep { opacity: .5; }
.sl-breadcrumb__current { color: var(--gold); }
.sl-pagehero__split { display: flex; flex-wrap: wrap; gap: clamp(36px,5vw,56px); align-items: center; }
.sl-pagehero__col { flex: 1.2 1 360px; }

/* =================================================================
   SINGLE PRACTICE AREA body + sidebar
   ================================================================= */
.sl-body { display: flex; flex-wrap: wrap; gap: clamp(40px,5vw,64px); align-items: flex-start; }
.sl-body__main { flex: 1.6 1 420px; min-width: 0; }
.sl-body__main .sl-h2 { color: var(--ink); }
.sl-body__main > .sl-prose { margin-top: 20px; font-size: 17px; }
.sl-body__main .sl-h3 { color: var(--ink); margin-top: 48px; }
.sl-body__main .sl-h3:first-of-type { margin-top: 44px; }

.sl-steps { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.sl-step { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--c-line); }
.sl-step__num { font-family: var(--font-serif); color: var(--gold); font-size: 20px; line-height: 1; flex: none; width: 34px; }
.sl-step__title { font-weight: 600; color: var(--c-body); font-size: 17px; }
.sl-step__body { margin-top: 6px; color: var(--c-muted-2); font-size: 15.5px; line-height: 1.55; }

.sl-types { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.sl-type { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--line-10); border-radius: var(--rad); padding: 15px 16px; font-size: 15px; color: var(--c-soft); }
.sl-type::before { content: "\2713"; color: var(--gold); font-size: 17px; line-height: 1.4; }

.sl-faqs { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.sl-faq { background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad); padding: 22px 24px; }
.sl-faq__q { font-weight: 600; color: var(--ink); font-size: 16.5px; }
.sl-faq__a { margin-top: 10px; color: var(--c-muted-2); font-size: 15.5px; line-height: 1.6; }

.sl-aside { flex: 1 1 280px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.sl-card-dark { background: var(--ink); color: var(--on-dark); border-radius: var(--rad); padding: 28px; }
.sl-card-dark__title { font-family: var(--font-serif); font-size: 23px; color: var(--on-dark-hi); margin-top: 12px; line-height: 1.2; }
.sl-card-dark p { margin-top: 12px; color: var(--on-dark-mut-3); font-size: 14.5px; line-height: 1.55; }
.sl-card-dark .sl-btn { width: 100%; margin-top: 12px; }
.sl-card-dark .sl-btn:first-of-type { margin-top: 20px; }
.sl-card-light { background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad); padding: 24px; }
.sl-card-light__head { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; color: var(--c-faint); margin-bottom: 16px; }
.sl-related a { padding: 11px 0; border-top: 1px solid var(--line-08); font-size: 15px; color: var(--c-soft); display: flex; justify-content: space-between; align-items: center; }
.sl-related a:hover { color: var(--gold); }
.sl-related__all { margin-top: 16px; display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--gold); letter-spacing: .03em; }
.sl-side-label { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; color: var(--gold); }

/* =================================================================
   CONTACT
   ================================================================= */
.sl-contact { display: flex; flex-wrap: wrap; gap: clamp(36px,5vw,60px); align-items: flex-start; }
.sl-contact__info { flex: 1 1 300px; }
.sl-contact__info .sl-h2 { color: var(--ink); }
.sl-contact__info > p { margin-top: 20px; color: var(--c-muted); font-size: 17px; }
.sl-infoblocks { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.sl-infoblock { display: flex; gap: 16px; align-items: flex-start; }
.sl-infoblock__k { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .14em; width: 64px; flex: none; padding-top: 3px; }
.sl-infoblock__v { color: var(--c-body); font-size: 15.5px; }
.sl-infoblock__v a { font-size: 19px; font-weight: 600; color: var(--ink); }
.sl-infoblock__sub { color: var(--c-faint); font-size: 13.5px; margin-top: 2px; }
.sl-contact__form { flex: 1 1 340px; }

.sl-formcard { background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad); padding: clamp(22px,4vw,36px); box-shadow: 0 24px 60px -32px var(--shadow-40); }
.sl-fieldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; }
.sl-field { display: block; margin-top: 16px; }
.sl-field--first { margin-top: 0; }
.sl-field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-muted-2); letter-spacing: .04em; margin-bottom: 7px; }
.sl-input, .sl-select, .sl-textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 6px; font-family: inherit; font-size: 15px; background: var(--field-bg); color: var(--ink); }
.sl-textarea { resize: vertical; }
.sl-submit { margin-top: 22px; width: 100%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15.5px; padding: 16px; border: none; border-radius: var(--rad); cursor: pointer; letter-spacing: .02em; }
.sl-submit:hover { filter: brightness(1.08); }
.sl-form-note { margin-top: 14px; font-size: 12px; color: var(--c-note); text-align: center; }
.sl-honeypot { position: absolute; left: -9999px; }
.sl-success { background: #fff; border: 1px solid var(--c-line); border-radius: var(--rad); padding: clamp(22px,4vw,36px); box-shadow: 0 24px 60px -32px var(--shadow-40); }
.sl-success__check { color: var(--gold); font-size: 30px; }
.sl-success .sl-h3 { color: var(--ink); margin-top: 12px; font-size: 26px; }
.sl-success p { margin-top: 12px; color: var(--c-muted); font-size: 16px; }
.sl-error { background: #FBEDED; border: 1px solid #E3B7B7; color: #8A2B2B; border-radius: var(--rad); padding: 14px 18px; margin-bottom: 16px; font-size: 14.5px; }

/* =================================================================
   FOOTER
   ================================================================= */
.sl-footer { background: var(--ink-3); color: var(--foot-text); }
.sl-footer__inner { padding-top: clamp(48px,7vw,64px); padding-bottom: 30px; }
.sl-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sl-footer__brand { max-width: 320px; }
.sl-footer__brand img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.sl-footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; }
.sl-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.sl-footcol__head { font-size: 11.5px; letter-spacing: .18em; color: var(--foot-mut); margin-bottom: 14px; }
.sl-footcol__links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.sl-footcol__links a:hover { color: #fff; }
.sl-footcol__links .sl-util-phone { color: var(--gold-soft); }
.sl-footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: var(--foot-mut); }

/* Small layout utilities (so templates stay free of inline styles) */
.sl-mt-lg { margin-top: clamp(30px,4vw,42px); }
.sl-h2--ondark { color: var(--on-dark-hi); }
.sl-h2--narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.sl-btnrow--center { justify-content: center; margin-top: 30px; }
.sl-mobile-menu .sl-btn { margin-top: 12px; }

/* Generic page / blog */
.sl-doc { max-width: 820px; margin: 0 auto; }
.sl-doc .sl-prose { color: var(--c-prose); font-size: 17px; line-height: 1.7; }
.sl-post { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--c-line); }
.sl-post .sl-h3 a:hover { color: var(--gold); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 920px) {
  .sl-nav { display: none; }
  .sl-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .sl-utiltagline { display: none; }
  .sl-utiladdr { display: none; }
  .sl-utilcta { display: inline; }
  .sl-utillinks { justify-content: center; width: 100%; }
  .sl-utillinks > a { font-weight: 600; font-size: 13px; letter-spacing: .02em; }

  .sl-btnrow { flex-direction: column; }
  .sl-btnrow > .sl-btn { width: 100%; }

  .sl-hero__media { flex: 1 1 100%; width: 100%; }
}

/* ============================================================
   WPForms inside the contact card — matches the original form
   (WPForms' own styling is turned off in WPForms → Settings).
   ============================================================ */
.sl-formcard .wpforms-container { margin: 0; }
.sl-formcard .wpforms-field-container { display: flex; flex-wrap: wrap; gap: 18px 16px; }
/* Spacing comes from the gap above, so WPForms' hidden anti-spam fields
   (absolutely positioned, placed at random spots) never shift the layout. */
.sl-formcard .wpforms-field { width: 100%; padding: 0; margin: 0; }
.sl-formcard .wpforms-field.wpforms-one-half { width: calc(50% - 8px); }
@media (max-width: 520px) {
  .sl-formcard .wpforms-field.wpforms-one-half { width: 100%; }
}
.sl-formcard .wpforms-field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-muted-2); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 7px; }
.sl-formcard .wpforms-required-label { color: var(--gold); }
.sl-formcard input[type=text], .sl-formcard input[type=email], .sl-formcard input[type=tel],
.sl-formcard select, .sl-formcard textarea {
  width: 100%; max-width: none; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 6px;
  font-family: inherit; font-size: 15px; background: var(--field-bg); color: var(--ink); box-sizing: border-box;
}
.sl-formcard input:focus, .sl-formcard select:focus, .sl-formcard textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.sl-formcard textarea { resize: vertical; min-height: 130px; }
.sl-formcard input[type=text], .sl-formcard input[type=email], .sl-formcard input[type=tel], .sl-formcard select { height: 46px; line-height: 1.3; }
.sl-formcard select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A646E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sl-formcard label.wpforms-error, .sl-formcard em.wpforms-error { display: block; margin-top: 6px; font-size: 13px; font-style: normal; color: #8A2B2B; }
.sl-formcard input.wpforms-error, .sl-formcard select.wpforms-error, .sl-formcard textarea.wpforms-error { border-color: #C77; }
.sl-formcard .wpforms-submit-container { margin-top: 22px; }
.sl-formcard button[type=submit].wpforms-submit {
  width: 100%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 15.5px; padding: 16px;
  border: none; border-radius: var(--rad); cursor: pointer; letter-spacing: .02em; font-family: inherit;
}
.sl-formcard button[type=submit].wpforms-submit:hover { filter: brightness(1.08); }
.sl-formcard .wpforms-submit-spinner { display: block; margin: 10px auto 0; }
.sl-formcard .wpforms-confirmation-container-full { color: var(--c-muted); font-size: 16px; }
.sl-formcard .wpforms-confirmation-container-full strong { display: block; font-family: var(--font-serif); color: var(--ink); font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.sl-formcard .wpforms-error-container, .sl-formcard .wpforms-error-noscript { background: #FBEDED; border: 1px solid #E3B7B7; color: #8A2B2B; border-radius: var(--rad); padding: 12px 16px; font-size: 14.5px; }
.sl-form-note a { color: inherit; text-decoration: underline; }

/* Page heroes with a Featured image behind the dark overlay */
.sl-hero__bg--photo { background:
  linear-gradient(180deg, var(--overlay-82), var(--overlay-92)),
  var(--sl-hero-img) center / cover no-repeat; }

/* Footer: custom (already light) logo needs no white filter; legal links */
.sl-footer__brand img.sl-footer__logo--custom { filter: none; }
.sl-footer__legal { display: inline-flex; gap: 18px; }
.sl-footer__legal a:hover { color: #fff; }
