/*
Theme Name:  Buccifirm Theme
Theme URI:   https://buccifirm.com
Author:      Buccifirm
Author URI:  https://buccifirm.com
Description: Strict parity WordPress conversion of the approved Bucci Firm React design.
Version:     3.5.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buccifirm-theme
Tags:        custom-theme, law-firm, acf-ready
*/

:root {
  --bf-primary: #0d1f3c;
  --bf-accent: #c5a065;
  --bf-text: #1f2937;
  --bf-muted: #6b7280;
  --bf-bg: #ffffff;
  --bf-bg-muted: #f8fafc;
  --bf-border: #e5e7eb;
  --bf-heading: 'Playfair Display', Georgia, serif;
  --bf-body: 'Lato', Arial, sans-serif;
  --bf-max: 1280px;
  --bf-header-padding: 1rem;
  --bf-header-padding-scrolled: 0.5rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bf-body);
  color: var(--bf-text);
  background: var(--bf-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bf-heading);
  color: var(--bf-primary);
  margin: 0 0 1rem;
  line-height: 1.12;
}

p {
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--bf-max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background: #f8fafc;
  border-top: 1px solid var(--bf-border);
  border-bottom: 1px solid var(--bf-border);
}

.section-navy {
  background: var(--bf-primary);
  color: #d8deea;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.center {
  text-align: center;
}

.site-content {
  min-height: 58vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.45rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-height: 3.25rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--bf-primary);
  color: #fff;
}

.btn-accent {
  background: var(--bf-accent);
  color: var(--bf-primary);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  border-color: #cbd5e1;
  color: var(--bf-primary);
  background: #fff;
}

.btn-outline-accent {
  border-color: var(--bf-accent);
  color: var(--bf-accent);
  background: transparent;
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--bf-heading);
  font-size: 1.95rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-bucci {
  color: #1a1a2e;
}

.brand-firm {
  color: #c9a84c;
  font-weight: 400;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  background: #fff;
  border-bottom: 1px solid transparent;
  padding: var(--bf-header-padding) 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.07);
  padding: var(--bf-header-padding-scrolled) 0;
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header.is-scrolled .nav-wrap {
  min-height: 64px;
}

.main-navigation {
  margin-left: auto;
  margin-right: 1rem;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: #4b5563;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.65rem 0;
  display: block;
}

.main-navigation .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.main-navigation .menu-item-has-children > a::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation a:hover {
  color: var(--bf-primary);
}

.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 255px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  flex-direction: column;
  gap: 0;
  padding: 0.45rem;
  padding-top: calc(0.5rem + 0.45rem);
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Invisible bridge so hover isn't lost crossing the gap */
.main-navigation .sub-menu::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  display: flex;
}

.main-navigation .sub-menu a {
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
}

.main-navigation .sub-menu a:hover {
  background: #f8fafc;
}

.schedule-trigger.desktop {
  border: 0;
  border-radius: 3px;
  background: var(--bf-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 31, 60, 0.22);
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.schedule-trigger.desktop:hover {
  background: #162d52;
  box-shadow: 0 14px 28px rgba(13, 31, 60, 0.3);
}

/* Nav CTA button (used if nav item class is nav-cta-btn) */
.nav-cta-btn {
  background-color: #1a2744;
  color: #ffffff !important;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 3px;
  text-decoration: none;
}
.nav-cta-btn:hover {
  background-color: #253460;
}

/* ===== BUTTON ICONS — soft-touch iconography ===== */

.btn-icon {
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 0.9;
}

.btn-icon-sm {
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

a:hover .btn-icon-sm,
button:hover .btn-icon-sm {
  transform: translateX(3px);
}

/* Generic .btn baseline — ensures all btns have flex icon support */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--bf-body);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--bf-accent);
  color: var(--bf-primary);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  border: 2px solid var(--bf-accent);
  box-shadow: 0 4px 14px rgba(197, 160, 101, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(197, 160, 101, 0.35);
}

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--bf-accent);
  border: 2px solid var(--bf-accent);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-accent:hover {
  background: var(--bf-accent);
  color: var(--bf-primary);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--bf-primary);
  border: 2px solid var(--bf-primary);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-dark:hover {
  background: var(--bf-primary);
  color: #fff;
}

/* Floating Schedule Button (bottom-right on all pages) */
.floating-schedule-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}
.floating-schedule-btn a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bf-primary);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.floating-schedule-btn a:hover {
  background-color: #162d52;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d7dde7;
  background: #fff;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #475569;
}

/* ===== HERO SECTION — matches Node.js reference (Home.tsx) exactly ===== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0c1e35;
  overflow: hidden;
}

/* Background image layer — opacity-60 to match Node <img> opacity */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-sunset.avif');
  background-size: cover;
  background-position: center center;
  opacity: 0.6;
  z-index: 0;
}

/* Gradient overlay — Node: bg-gradient-to-r from-primary/90 via-primary/70 to-transparent */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,30,53,0.9), rgba(12,30,53,0.7), transparent);
  z-index: 1;
  pointer-events: none; /* clicks pass through to hero-container z-2 */
}

/* Outer container — Node: max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 100px; /* account for fixed header height */
}

/* Inner content block — Node: max-w-4xl (896px) */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 896px;
}

.hero-cta-group {
  position: relative;
  z-index: 4;
}

/* Eyebrow — Node: text-sm(14px) font-semibold tracking-wide uppercase text-accent mb-4 */
.hero-eyebrow {
  font-family: var(--bf-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #c5a065;
  margin-bottom: 1rem;
}

/* Heading — Node: text-4xl md:text-6xl lg:text-7xl font-heading font-bold text-white leading-tight mb-8 */
.hero-heading {
  font-family: var(--bf-heading);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 2rem;
}

/* Subtext — Node: text-lg md:text-xl text-gray-200 mb-10 max-w-2xl leading-relaxed */
.hero-subtext {
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  line-height: 1.625;
  color: #e5e7eb;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

/* Button row — Node: flex flex-col sm:flex-row gap-4 */
.hero-cta-group {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Primary CTA (gold) — Node: bg-accent text-primary font-bold px-8 py-6 text-lg rounded-sm shadow-xl */
.btn-primary.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #c5a065;
  color: #0c1e35;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1.5rem 2rem;
  border: 2px solid #c5a065;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 8px 10px -6px rgba(0,0,0,0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary.hero-cta-primary:hover {
  background-color: rgba(197,160,101,0.9);
  border-color: rgba(197,160,101,0.9);
}

/* Secondary CTA (ghost/outline) — Node: border-white text-white hover:bg-white/10 px-8 py-6 text-lg rounded-sm */
.btn-secondary.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: transparent;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1.5rem 2rem;
  border: 2px solid #ffffff;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-secondary.hero-cta-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.value-card {
  background: #fff;
  border: 1px solid transparent;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(13, 31, 60, 0.06);
  margin-bottom: 1.2rem;
  position: relative;
}

.value-icon::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background: var(--bf-primary);
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--bf-muted);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.3vw, 3.1rem);
}

.section-head p {
  color: var(--bf-muted);
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  gap: 2rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 101, 0.4);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
}

.service-card h2,
.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--bf-muted);
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}

.service-link {
  color: var(--bf-accent);
  font-size: 0.93rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 0.6rem;
}

.about-preview {
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8rem;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-18deg);
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-grid h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.about-grid p {
  color: #cfd6e4;
  font-size: 1.08rem;
}

.about-image-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.28);
  aspect-ratio: 3 / 4;
  max-width: 420px;
  margin-left: auto;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-bottom h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-bottom p {
  color: var(--bf-muted);
  font-size: 1.08rem;
}

/* Page hero base styles moved to end of file */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.9);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: #d6dce8;
  margin: 0 auto;
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.legal-content {
  max-width: 960px;
}

.legal-content p,
.legal-content li {
  font-size: 1.02rem;
  color: #374151;
}

.site-footer {
  background: var(--bf-primary);
  color: #9ca3af;
  padding: 5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-grid h3 {
  font-family: var(--bf-heading);
  color: var(--bf-accent);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0.7rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand {
  font-family: var(--bf-heading);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-brand .brand-bucci {
  color: #ffffff;
  font-weight: 700;
}

.footer-brand .brand-firm {
  color: var(--bf-accent);
  font-weight: 300;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-links a svg {
  width: 20px;
  height: 20px;
}

.social-links a:hover {
  border-color: var(--bf-accent);
  color: var(--bf-accent);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-icon {
  flex-shrink: 0;
  color: var(--bf-accent);
  margin-top: 0.1em;
}

.site-footer a,
.site-footer .link-button {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer .link-button:hover {
  color: #fff;
}

.link-button {
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.footer-bottom {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6b7280;
}

.schedule-sticky-mobile {
  display: none;
  position: fixed;
  left: 0.95rem;
  right: 0.95rem;
  bottom: max(0.95rem, env(safe-area-inset-bottom));
  z-index: 320;
  border: 0;
  border-radius: 999px;
  background: var(--bf-primary);
  color: #fff;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(13, 31, 60, 0.36);
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Scheduler drawer styles are at the end of the file */

.scheduler-header {
  background: var(--bf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.scheduler-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.08rem;
}

.scheduler-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.scheduler-embed-wrap {
  height: calc(90vh - 54px);
}

.scheduler-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@media (max-width: 1200px) {
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .schedule-trigger.desktop {
    display: none;
  }

  .main-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    max-height: calc(100dvh - 80px);
    overflow: auto;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: block;
  }

  .main-navigation .menu-item-has-children > a::after {
    margin-left: auto;
  }

  .main-navigation .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .main-navigation .sub-menu::before {
    display: none;
  }

  .main-navigation li {
    margin-bottom: 0.35rem;
  }

  .main-navigation a {
    padding: 0.55rem 0.2rem;
  }

  .hero-container {
    padding: 0 1.5rem;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
  }

  .hero-section {
    min-height: 80vh;
  }

  .hero-heading {
    font-size: clamp(2.25rem, 10vw, 3.75rem);
  }

  .hero-subtext {
    max-width: 34rem;
  }

  .page-hero {
    padding: calc(8.5rem + env(safe-area-inset-top, 0px)) 0 3.5rem;
  }

  .page-hero.page-hero-small {
    padding-top: calc(7.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.5rem;
  }

  .schedule-sticky-mobile {
    display: flex;
  }

  .site-footer {
    padding-bottom: 5.8rem;
  }
}

@media (max-width: 640px) {
  .three-up,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary.hero-cta-primary,
  .btn-secondary.hero-cta-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .brand-wordmark {
    font-size: 1.7rem;
  }

  .nav-wrap {
    gap: 0.75rem;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-bg {
    background-position: 70% center;
  }

  .hero-heading {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.55;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding: calc(7.5rem + env(safe-area-inset-top, 0px)) 0 2.5rem;
  }

  .page-hero.page-hero-small {
    padding-top: calc(7rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .page-hero .container {
    padding-top: 1rem;
  }
}

/* ===== CONTACT FORM — mirrors ContactForm.tsx styling ===== */

.bf-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .bf-form-grid {
    grid-template-columns: 1fr;
  }
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bf-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bf-primary);
}

.bf-field input,
.bf-field select,
.bf-field textarea {
  font-family: var(--bf-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bf-border);
  border-radius: 6px;
  background: #fff;
  color: var(--bf-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  outline: none;
  border-color: var(--bf-primary);
  box-shadow: 0 0 0 3px rgba(13, 31, 60, 0.08);
}

.bf-field textarea {
  min-height: 140px;
  resize: vertical;
}

.bf-submit {
  align-self: flex-start;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .bf-submit {
    width: 100%;
  }
}

/* Notices */
.bf-notice {
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.bf-notice--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.bf-notice--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.bf-notice--muted {
  background: var(--bf-bg-muted);
  border: 1px solid var(--bf-border);
  color: var(--bf-muted);
}

/* ===== CONTACT PAGE LAYOUT ===== */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.contact-info-list .ci-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(197, 160, 101, 0.12);
  display: grid;
  place-items: center;
  color: var(--bf-accent);
}

@media (max-width: 860px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ===== BLOG / ARCHIVE LIST ===== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
}

.post-card-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.post-card-body {
  padding: 1.5rem;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--bf-muted);
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.post-card-title a {
  color: var(--bf-primary);
}

.post-card-title a:hover {
  color: var(--bf-accent);
}

.post-card-excerpt {
  font-size: 0.93rem;
  color: var(--bf-muted);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--bf-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== SINGLE POST ===== */

.single-content {
  max-width: 780px;
  margin: 0 auto;
}

.single-content p,
.single-content li {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.8;
}

.single-content h2 {
  margin-top: 2.5rem;
}

.single-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-meta {
  color: var(--bf-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination a {
  border: 1px solid var(--bf-border);
  color: var(--bf-text);
}

.pagination a:hover {
  background: var(--bf-bg-muted);
}

.pagination .current {
  background: var(--bf-primary);
  color: #fff;
  border: 1px solid var(--bf-primary);
}

/* ===== THANK-YOU PAGE ===== */

.thanks-section {
  text-align: center;
  padding: 8rem 0;
}

.thanks-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thanks-section p {
  color: var(--bf-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ===== SERVICE CARD ICON HOVER — mirrors Node ServiceCard.tsx ===== */

.service-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(13, 31, 60, 0.05);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
  color: var(--bf-primary);
}

.service-card .service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card:hover .service-icon {
  background: var(--bf-primary);
  color: #fff;
}

.service-card h2 a,
.service-card h3 a {
  color: var(--bf-primary);
  transition: color 0.2s ease;
}

.service-card h2 a:hover,
.service-card h3 a:hover {
  color: var(--bf-accent);
}

/* ===== SCHEDULER DRAWER — improved slide-up animation ===== */

.scheduler-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  visibility: hidden;
  pointer-events: none;
}

.scheduler-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  display: block;
}

.scheduler-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scheduler-drawer.is-open .scheduler-backdrop {
  opacity: 1;
}

.scheduler-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  min-height: 76vh;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.scheduler-drawer.is-open .scheduler-panel {
  transform: translateY(0);
}

/* ===== SINGLE POST — hero + proper typography ===== */

.single-post-hero {
  position: relative;
  padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 0 3rem;
  background: var(--bf-primary);
  overflow: hidden;
}

.single-post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bf-primary), #1e3a5f);
}

.single-post-hero .container {
  position: relative;
  z-index: 1;
}

.single-post-hero .entry-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.single-post-hero .entry-meta {
  color: #94a3b8;
  font-size: 0.88rem;
}

.single-post-hero .entry-meta a {
  color: var(--bf-accent);
}

.single-post-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.single-post-content p,
.single-post-content li {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.8;
}

.single-post-content h2 {
  margin-top: 2.5rem;
}

.single-post-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--bf-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bf-bg-muted);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

.single-post-content blockquote p {
  margin-bottom: 0;
}

.single-post-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--bf-border);
}

.single-post-footer .cat-links {
  font-size: 0.88rem;
  color: var(--bf-muted);
}

.post-navigation {
  max-width: 780px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bf-muted);
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-weight: 700;
  color: var(--bf-primary);
}

/* ===== 404 PAGE ===== */

.error-404 {
  text-align: center;
  padding: 8rem 0;
}

.error-404 .page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-404 .page-content {
  max-width: 540px;
  margin: 0 auto;
}

.error-404 .page-content p {
  color: var(--bf-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-404 .search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.error-404 .search-field {
  flex: 1;
  font-family: var(--bf-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bf-border);
  border-radius: 6px;
}

.error-404 .search-submit {
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background: var(--bf-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ===== ARCHIVE / PAGE HEADER ===== */

.page-header {
  text-align: center;
  padding: 6rem 0 3rem;
}

.page-header .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.archive-description {
  color: var(--bf-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== BLOG INDEX — page hero ===== */

.blog-hero {
  position: relative;
  padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 0 3rem;
  background: var(--bf-primary);
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bf-primary), #1e3a5f);
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.blog-hero p {
  color: #94a3b8;
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== GENERIC PAGE — with hero ===== */

.single-page {
  padding: 2rem 0 4rem;
}

.single-page .entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
}

.single-page .entry-content {
  max-width: 780px;
  margin: 0 auto;
}

/* (social link styles moved to main footer section above) */

/* ===== CTA section spacing fix ===== */

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-ctas.center {
  justify-content: center;
}

/* Mobile CTA section */
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ===== PAGE HERO (inner pages) — safe area aware ===== */

.page-hero {
  position: relative;
  /* 6rem navbar + 4rem breathing room above text + 4rem below */
  padding: calc(10rem + env(safe-area-inset-top, 0px)) 0 4rem;
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero.page-hero-small {
  padding-top: calc(9rem + env(safe-area-inset-top, 0px));
  padding-bottom: 3.5rem;
}

/* WordPress admin-bar offsets — header is position:fixed */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .page-hero {
  padding-top: calc(10rem + 32px + env(safe-area-inset-top, 0px));
}

.admin-bar .page-hero.page-hero-small {
  padding-top: calc(9rem + 32px + env(safe-area-inset-top, 0px));
}

.admin-bar .hero-section .hero-container {
  padding-top: calc(100px + 32px);
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .page-hero {
    padding-top: calc(9rem + 46px + env(safe-area-inset-top, 0px));
  }
  .admin-bar .page-hero.page-hero-small {
    padding-top: calc(8rem + 46px + env(safe-area-inset-top, 0px));
  }
  .admin-bar .hero-section .hero-container {
    padding-top: calc(100px + 46px);
  }
}
