/*
Theme Name: Kent Smith Auction Group 2
Theme URI: https://www.ksauctiongroup.com
Author: Kent Smith Auction Group
Description: Custom theme for Kent Smith Auction Group, a Texas benefit auctioneer. Version 2 applies DESIGN.md: navy and gold on white and cream, Playfair Display headings, Inter body text.
Version: 2.9
Requires PHP: 7.4
Text Domain: kb-auctions
*/

/* ─── FONTS (self-hosted, SIL Open Font License) ─── */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/playfair-display-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── TOKENS (from DESIGN.md) ─── */
:root {
  /* Brand */
  --color-navy: #1C2E4A;
  --color-gold: #C4923A;

  /* Supporting */
  --color-white: #FFFFFF;
  --color-cream: #F7F3EC;
  --color-slate: #55606F;
  --color-hairline: #D9DDE3;
  --color-field-border: #7A8594;
  --color-gold-light: #D3A656;
  --color-error: #B3261E;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type scale (desktop) */
  --text-display: 64px;
  --text-h1: 48px;
  --text-h2: 36px;
  --text-h3: 24px;
  --text-lead: 20px;
  --text-body: 17px;
  --text-small: 14px;
  --text-eyebrow: 13px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --page-max-width: 1200px;
  --text-max-width: 640px;
  --section-gap: 96px;
  --page-pad: 48px;
  --card-padding: 32px;
  --grid-gap: 24px;
  --nav-height: 72px;

  /* Shape */
  --radius: 6px;

  /* Names used by page content written for version 1. Kept so nothing breaks. */
  --navy: var(--color-navy);
  --navy-dark: var(--color-navy);
  --gold: var(--color-gold);
  --gold-light: var(--color-gold-light);
  --cream: var(--color-cream);
  --burgundy: var(--color-navy);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  background: var(--color-white);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-navy);
}
h1 { font-size: var(--text-h1); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3, h4 { font-size: var(--text-h3); line-height: 1.25; }

:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }

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

/* ─── NAV BAR ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-hairline);
  height: var(--nav-height);
  padding: 0 max(var(--page-pad), calc((100% - var(--page-max-width)) / 2));
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.admin-bar .site-nav { top: 32px; }

.nav-logo { display: block; flex-shrink: 0; text-decoration: none; }
.site-logo-img { display: block; height: 48px; width: auto; max-width: none; }

.nav-menu .btn-primary { white-space: nowrap; }
.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  display: block;
  color: var(--color-navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--color-hairline); }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.single-post .nav-links .current_page_parent > a { border-bottom-color: var(--color-gold); }

.nav-phone {
  display: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { text-decoration: underline; }
@media (min-width: 1320px) { .nav-phone { display: block; } }
.nav-call {
  display: none;
  margin-left: auto;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}

/* A menu item given the class "nav-cta" in WordPress is hidden: the button below replaces it. */
.nav-links .nav-cta { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  color: var(--color-navy);
  font-size: 22px;
  line-height: 1;
  width: 44px; height: 44px;
}

/* ─── BUTTONS ─── */
.btn-primary,
.wpcf7-form input[type="submit"] {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-primary:hover,
.wpcf7-form input[type="submit"]:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); }

.btn-secondary {
  display: inline-block;
  background: none;
  color: var(--color-navy) !important;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border: 1px solid var(--color-navy) !important;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover { background: var(--color-cream); }

.hero .btn-secondary,
.consult-band .btn-secondary,
.site-footer .btn-secondary {
  color: var(--color-white) !important;
  border-color: var(--color-white) !important;
}
.hero .btn-secondary:hover,
.consult-band .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.hero :focus-visible,
.consult-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-white); }

/* ─── HOME HERO ─── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) var(--page-pad);
  background-color: var(--color-navy);
  background-repeat: no-repeat;
}
.hero-inner {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}
.hero-inner > * { max-width: 680px; }

.hero-monogram, .hero-divider { display: none; }

.hero-wordmark {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.hero-headline {
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.hero-headline em { font-style: normal; color: var(--color-gold); }
.hero-subhead {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: var(--space-8);
}
.hero-buttons,
.section-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.section-actions { margin-top: var(--space-12); }
.hero-credential {
  margin-top: var(--space-8);
  font-size: var(--text-small);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-hero {
  background: var(--color-cream);
  padding: var(--space-24) var(--page-pad) var(--space-16);
}
.page-hero .container-narrow > * { max-width: 800px; }
.page-hero-title {
  font-size: var(--text-h1);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.page-hero-title em { font-style: normal; color: inherit; }
.page-hero-sub {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-slate);
}

/* ─── SECTIONS ─── */
section { padding: var(--section-gap) var(--page-pad); }

/* Sections alternate White and Cream down the page. */
body > section:nth-of-type(odd) { background-color: var(--color-cream); }
body > section:nth-of-type(even) { background-color: var(--color-white); }
body > section.hero { background-color: var(--color-navy); }

.container,
.container-narrow { max-width: var(--page-max-width); margin: 0 auto; }
.container-narrow > * { max-width: 780px; }

.section-label {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.section-title em { font-style: normal; color: inherit; }
/* Version 1 set some headings white or gold inline for navy sections. Those sections are light now. */
.section-title[style] { color: var(--color-navy) !important; }
.section-title span[style] { color: inherit !important; }
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: var(--space-6);
}

/* ─── PROMISE STRIP (pull quote) ─── */
.promise-strip {
  background: var(--color-cream);
  padding: var(--space-12) var(--page-pad);
}
.promise-strip p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.4;
  color: var(--color-navy);
  max-width: var(--page-max-width);
  margin: 0 auto;
}
.promise-strip p span { color: inherit; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: center;
}
.about-photo-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-corner { display: none; }
.placeholder-monogram {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 1;
  color: var(--color-navy);
}
.placeholder-text {
  font-size: var(--text-small);
  color: var(--color-slate);
  margin-top: var(--space-3);
}
.about-content p {
  max-width: var(--text-max-width);
  margin-bottom: var(--space-4);
}
.about-content ul { max-width: var(--text-max-width); margin: 0 0 var(--space-4) 20px; }

.promise-blockquote {
  border-left: 2px solid var(--color-gold);
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
  margin: var(--space-8) 0;
  max-width: var(--text-max-width);
}
.promise-blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.4;
  margin: 0;
}

.credential-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-small);
  font-weight: 600;
}

/* ─── CREDENTIALS STRIP ─── */
section.credentials { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.credentials-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.credentials-strip > div { padding: 0 var(--space-8); border-left: 1px solid var(--color-hairline); }
.credentials-strip > div:first-child { padding-left: 0; border-left: 0; }
.credential-fact { font-family: var(--font-heading); font-size: var(--text-h3); line-height: 1.25; }
.credential-note { font-size: var(--text-small); color: var(--color-slate); }

/* ─── SERVICES ─── */
.services-intro {
  max-width: var(--text-max-width);
  margin-bottom: var(--space-12);
}
.service-icon { display: none; }

.services-featured {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
  margin-bottom: var(--grid-gap);
}
.service-tag {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: var(--space-2);
}
.service-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.service-desc { color: var(--color-slate); max-width: 800px; }

.services-grid,
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
}
.service-card h3 { margin-bottom: var(--space-3); }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; }
.service-card p { color: var(--color-slate); }
.service-link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: underline;
}

.service-breadcrumb { margin-bottom: var(--space-4); }
.service-breadcrumb a {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-slate);
  text-decoration: underline;
}

/* ─── WHY / PROCESS CARDS ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-12);
}
.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
}
.pillar-number {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-slate);
  margin-bottom: var(--space-3);
}
.pillar-card h3 { margin-bottom: var(--space-3); }
.pillar-card p { color: var(--color-slate); }

/* ─── COVERAGE ─── */
.coverage-desc { max-width: var(--text-max-width); margin-bottom: var(--space-8); }
.coverage-tags { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.coverage-tag {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  color: var(--color-navy);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-small);
  font-weight: 600;
}
.texas-flag-line {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: 1.25;
}

/* ─── PAST EVENTS LIST ─── */
.event-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-16);
}
.event-list li { padding: var(--space-6) 0; border-bottom: 1px solid var(--color-hairline); }
.event-name { font-family: var(--font-heading); font-size: var(--text-h3); line-height: 1.25; }
.event-town { font-size: var(--text-small); color: var(--color-slate); }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}
.testimonial-card,
.reviews-embed {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
}
.testimonial-stub {
  border: 1px dashed var(--color-field-border);
  border-radius: var(--radius);
  padding: var(--card-padding);
  min-height: 160px;
  display: flex;
  align-items: center;
}
.quote-mark { display: none; }

/* Testimonials page: one card per quote. */
.testimonials-content { columns: 2; column-gap: var(--grid-gap); }
.testimonials-content > * { column-span: all; margin-bottom: var(--space-6); max-width: var(--text-max-width); }
.testimonials-content > blockquote,
.testimonials-content > .wp-block-quote,
.testimonials-content > .wp-block-pullquote {
  column-span: none;
  break-inside: avoid;
  max-width: none;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
  margin: 0 0 var(--grid-gap);
}
.testimonials-content blockquote { border-left: 1px solid var(--color-hairline); }
.testimonials-content blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: var(--space-3);
}
.testimonials-content blockquote cite,
.testimonials-content blockquote footer {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-slate);
  margin-top: var(--space-4);
}
.testimonials-content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.testimonial-source { font-weight: 400; }
/* A single quote sits in one wider card. */
.testimonials-content:has(> blockquote:only-child) { columns: 1; max-width: 760px; }
.testimonial-card p.quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.4;
  margin-bottom: var(--space-4);
}
.testimonial-card .attribution,
.testimonial-stub p,
.testimonials-note { font-size: var(--text-small); color: var(--color-slate); }
.testimonials-note { margin-top: var(--space-8); }

/* ─── FAQ ─── */
.faq-category { margin-bottom: var(--space-12); }
.faq-category:last-child { margin-bottom: 0; }
.faq-category-title {
  font-size: var(--text-h3);
  line-height: 1.25;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-hairline);
}
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] summary { margin-bottom: var(--space-3); }
.faq-item p { color: var(--color-slate); }

/* ─── CONSULTATION FORM ─── */
.contact-desc { max-width: var(--text-max-width); margin-bottom: var(--space-8); }
.contact-desc a { color: inherit; }

.contact-form,
.wpcf7-form {
  max-width: var(--text-max-width);
  display: grid;
  gap: var(--space-6);
  margin-bottom: 0;
}
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 360px);
  gap: var(--space-16);
  align-items: start;
}
.form-free {
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.form-aside {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--card-padding);
}
.form-aside h3 { margin-bottom: var(--space-3); }
.form-aside p + p { margin-top: var(--space-2); }
.form-aside a { font-weight: 600; }
.optional { font-weight: 400; color: var(--color-slate); }
.form-field { display: grid; gap: var(--space-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.contact-form label,
.wpcf7-form label {
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.4;
}
.contact-form input,
.contact-form select,
.contact-form textarea,
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  min-height: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
}
.contact-form textarea,
.wpcf7-form textarea { min-height: 144px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 1px var(--color-navy);
}
.contact-form .btn-primary { justify-self: start; }
.ksa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice {
  max-width: var(--text-max-width);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  font-weight: 600;
}
.form-notice.is-error { border-color: var(--color-error); color: var(--color-error); }
.form-error { font-size: var(--text-small); color: var(--color-error); }

.contact-details { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.contact-detail { font-weight: 600; text-decoration: underline; }
.contact-detail .detail-icon { display: none; }

/* ─── CONSULTATION BAND ───
   The closing "contact" section on a page (one with no form in it) and the
   .consult-band block are the navy band with the gold button. */
.consult-band,
body > section.contact:not(:has(form)) {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: var(--section-gap) var(--page-pad);
}
.consult-band .container > *,
section.contact:not(:has(form)) .container > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.consult-band h2,
.consult-band .section-title,
section.contact:not(:has(form)) .section-title { color: var(--color-white); }
section.contact:not(:has(form)) .section-title em { color: var(--color-gold); }
.consult-band .section-label,
section.contact:not(:has(form)) .section-label { color: var(--color-gold); }
.consult-band .section-divider,
section.contact:not(:has(form)) .section-divider { display: none; }
.consult-band p,
section.contact:not(:has(form)) .contact-desc { color: rgba(255,255,255,0.85); margin-bottom: var(--space-8); }
.consult-band h2 { margin-bottom: var(--space-4); }

/* ─── BLOG ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12) var(--grid-gap);
}
.post-card-image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  background: var(--color-cream);
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: var(--space-2);
}
.post-card h2 {
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: var(--space-2);
}
.post-card h2 a { text-decoration: none; color: inherit; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card .post-excerpt {
  color: var(--color-slate);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .read-more {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}
.pagination { display: flex; gap: var(--space-4); margin-top: var(--space-16); }
.pagination a, .pagination span {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
}

.single-post-content { max-width: 720px; }
.single-post-content > * { max-width: 720px; }
.single-post-content p,
.single-post-content ul,
.single-post-content ol { margin-bottom: var(--space-6); }
.single-post-content ul,
.single-post-content ol { padding-left: 24px; }
.single-post-content h2 { font-size: 28px; line-height: 1.2; margin: var(--space-12) 0 var(--space-4); }
.single-post-content h3 { font-size: 22px; margin: var(--space-8) 0 var(--space-3); }
.single-post-content img { border-radius: var(--radius); }
.single-post-content blockquote {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.4;
}

/* ─── SERVICE AREAS ─── */
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.area-list li a {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  font-weight: 600;
  text-decoration: none;
}
.area-list li a:hover { text-decoration: underline; }

/* ─── FOOTER ─── */
footer.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-16) var(--page-pad) var(--space-8);
}
.consult-band + footer.site-footer,
section.contact:not(:has(form)) + footer.site-footer { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-inner { max-width: var(--page-max-width); margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}
.footer-logo { display: block; height: 48px; width: auto; margin-bottom: var(--space-6); }
.footer-col p { font-size: 16px; color: rgba(255,255,255,0.85); max-width: 380px; margin-bottom: var(--space-3); }
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; display: grid; gap: var(--space-3); }
.footer-links a { font-size: 16px; color: var(--color-white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-more { margin-top: var(--space-3); }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.75);
}

/* ─── PHONE BAR: Call and Book, fixed at the bottom of phone screens ─── */
.mobile-bar { display: none; }

/* ─── EDITOR-BASED PAGES ─── */
.ksa-w720 { max-width: 720px; }
mark.has-inline-color { background-color: transparent; }

/* ─── UNDER 1180px: menu collapses, grids drop to two columns ─── */
/* The hero photo loads from tablet width up. Phones get plain navy, so they skip the download. */
@media (min-width: 768px) {
  .hero {
    background-image: linear-gradient(rgba(28,46,74,0.86), rgba(28,46,74,0.86)), var(--hero-photo, none);
    background-size: cover, cover;
    background-position: center, center;
  }
}
/* Wide screens: photo sits at the right, navy is solid behind the text and thins toward the right. */
@media (min-width: 1200px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(28,46,74,1) 0%, rgba(28,46,74,1) 40%, rgba(28,46,74,0.55) 70%, rgba(28,46,74,0.25) 100%),
      var(--hero-photo, none);
    background-size: cover, auto 100%;
    background-position: center, right center;
  }
}

@media (max-width: 1179px) {
  .nav-toggle { display: block; margin-left: 0; }
  .nav-call { display: inline-flex; }
  .site-nav { gap: var(--space-3); }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-hairline);
    box-shadow: 0 12px 24px rgba(28,46,74,0.12);
    padding: var(--space-2) var(--page-pad) var(--space-6);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--color-hairline); }
  .nav-links .current-menu-item > a,
  .nav-links .current_page_item > a { border-bottom-color: var(--color-gold); }
  .nav-menu .btn-primary { margin-top: var(--space-6); }

  .services-grid,
  .service-detail-grid,
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > .footer-col:first-child { grid-column: 1 / -1; }
  .form-wrap { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ─── MOBILE ─── */
@media (max-width: 767px) {
  :root {
    --text-display: 40px;
    --text-h1: 34px;
    --text-h2: 28px;
    --text-h3: 22px;
    --text-lead: 18px;
    --text-body: 16px;
    --text-eyebrow: 12px;
    --section-gap: 64px;
    --page-pad: 24px;
    --card-padding: 24px;
  }
  .admin-bar .site-nav { top: 46px; }
  .site-logo-img { height: 40px; }
  .hero { min-height: 0; padding: var(--space-16) var(--page-pad); }
  .page-hero { padding: var(--space-16) var(--page-pad) var(--space-12); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-photo-placeholder { aspect-ratio: 3/2; }
  .services-grid,
  .service-detail-grid,
  .post-grid,
  .event-list,
  .credentials-strip,
  .footer-cols { grid-template-columns: 1fr; }
  .credentials-strip > div { padding: var(--space-4) 0; border-left: 0; border-top: 1px solid var(--color-hairline); }
  .credentials-strip > div:first-child { border-top: 0; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .section-actions .btn-primary,
  .section-actions .btn-secondary { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-content { columns: 1; }
  .contact-form .btn-primary { justify-self: stretch; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--color-white);
    border-top: 1px solid var(--color-hairline);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  .mobile-bar .btn-primary,
  .mobile-bar .btn-secondary { padding: 14px 12px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 600px) {
  .admin-bar .site-nav { top: 0; }
}
