/* ==========================================================================
   Simon Family Dentistry — Custom Theme Stylesheet
   Zero-plugin, lightweight recreation matching original visual design
   ========================================================================== */

:root {
  --sfd-green: #014023;
  --sfd-green-dark: #002d1c;
  --sfd-green-hover: #025930;
  --sfd-hero-fallback: #01261c;
  --sfd-gray-bg: #ededed;
  --sfd-text: #000d0a;
  --sfd-white: #ffffff;
  --sfd-font: 'DM Sans', Helvetica, Arial, sans-serif;
  --sfd-container-max: 1200px;
  --sfd-header-height: 84px;
  --sfd-brick-bg: url('../placeholders/white-brick-bg.svg');
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sfd-font);
  font-size: 17px;
  font-weight: 300;
  line-height: 2em;
  color: var(--sfd-text);
  background-color: var(--sfd-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--sfd-green);
  text-decoration: none;
  transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px 0;
  font-family: var(--sfd-font);
  font-weight: 400;
  line-height: 1.3em;
  color: var(--sfd-text);
}

p {
  margin: 0 0 1em 0;
}

p:last-child {
  margin-bottom: 0;
}

button, input, textarea, select {
  font-family: var(--sfd-font);
}

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

/* Container */
.sfd-container {
  width: 86%;
  max-width: var(--sfd-container-max);
  margin: 0 auto;
  position: relative;
}

/* Typography helpers */
.sfd-eyebrow {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3em;
  margin-bottom: 24px;
}

.sfd-eyebrow--white {
  color: var(--sfd-white);
}

.sfd-eyebrow--green {
  color: var(--sfd-green);
}

.big-text {
  display: block;
  font-size: 40px;
  line-height: 1.4em;
  font-weight: 400;
}

.sfd-section-title {
  font-size: 40px;
  line-height: 1.3em;
  font-weight: 400;
  color: var(--sfd-green);
  margin-bottom: 20px;
}

/* Buttons */
.sfd-btn {
  display: inline-block;
  background-color: var(--sfd-green-dark);
  color: var(--sfd-white);
  border: 0;
  border-radius: 100px;
  padding: 15px 29px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.7em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 300ms ease, transform 200ms ease;
}

.sfd-btn:hover,
.sfd-btn:focus-visible {
  background-color: var(--sfd-green-hover);
  color: var(--sfd-white);
}

.sfd-btn-wrap {
  margin-top: 28px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  background-color: var(--sfd-white);
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  width: 92%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--sfd-header-height);
  padding: 10px 0;
  transition: min-height 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled .site-header__inner {
  min-height: 62px;
  padding: 6px 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo img {
  height: 70px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .site-logo img {
  height: 48px;
}

/* Desktop Navigation */
.primary-nav > ul,
.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav li {
  position: relative;
}

.primary-nav li.footer-menu-only {
  display: none;
}

.primary-nav > ul > li > a,
.primary-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sfd-green);
  padding: 8px 0 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.primary-nav > ul > li > a:hover,
.primary-nav__list > li > a:hover {
  color: var(--sfd-green-hover);
}

.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-page-ancestor > a,
.primary-nav__list > li.current-menu-item > a {
  border-bottom-color: var(--sfd-green);
}

.nav-chevron {
  width: 12px;
  height: 12px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.primary-nav li.menu-item-has-children:hover .nav-chevron,
.primary-nav li.menu-item-has-children:focus-within .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown submenu */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background-color: var(--sfd-white);
  border-top: 3px solid var(--sfd-green);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1001;
}

.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li {
  margin: 0;
}

.primary-nav .sub-menu a {
  display: block;
  padding: 7px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sfd-green);
  border-bottom: 0;
}

.primary-nav .sub-menu a:hover {
  color: var(--sfd-green-hover);
  padding-left: 4px;
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--sfd-green);
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  background-color: var(--sfd-white);
  border-top: 3px solid var(--sfd-green);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 6% 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li.footer-menu-only {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  font-size: 18px;
  font-weight: 400;
  color: var(--sfd-green);
  border-bottom: 1px solid rgba(1, 64, 35, 0.1);
}

.mobile-nav .sub-menu {
  padding-left: 18px;
}

.mobile-nav .sub-menu a {
  font-size: 15px;
  padding: 8px 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.sfd-hero {
  position: relative;
  background-color: var(--sfd-hero-fallback);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: clamp(190px, 16vw, 270px);
  padding-bottom: clamp(56px, 5.5vw, 96px);
  display: flex;
  align-items: center;
}

.sfd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(0, 0, 0, 0.18) 100%
  );
  pointer-events: none;
}

.sfd-hero__inner {
  position: relative;
  z-index: 2;
}

.sfd-hero__headline {
  color: var(--sfd-white);
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  max-width: 56vw;
  margin: 0 0 28px 0;
  text-shadow: 0 0 0.75em rgba(0, 0, 0, 0.52);
}

/* ==========================================================================
   Split-Background Framed Cards (Home Intro, Services Intro, Restorative)
   ========================================================================== */
.sfd-split-section {
  position: relative;
  margin: 5%;
  padding: 64px 0;
  background-color: var(--sfd-white);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.75) 40%, var(--sfd-green) 40%),
    var(--sfd-brick-bg);
  background-size: cover, 320px 160px;
  background-position: center, top left;
  background-repeat: no-repeat, repeat;
}

.sfd-split-section--reversed {
  background-image:
    linear-gradient(90deg, var(--sfd-green) 60%, rgba(255, 255, 255, 0.75) 60%),
    var(--sfd-brick-bg);
}

.sfd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5%;
  align-items: center;
}

.sfd-split-content {
  color: var(--sfd-white);
}

.sfd-split-content p {
  color: var(--sfd-white);
}

.sfd-split-content .sfd-lead {
  margin-bottom: 24px;
}

.sfd-split-content .sfd-body-copy {
  margin-bottom: 8px;
}

.sfd-media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Home Auto-Advancing Photo Slider
   ========================================================================== */
.sfd-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 864 / 1080;
  overflow: hidden;
  background-color: #111;
}

.sfd-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

.sfd-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.sfd-slider__slide a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.sfd-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sfd-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.sfd-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.sfd-slider__dot.is-active {
  background-color: var(--sfd-white);
  transform: scale(1.2);
}

/* ==========================================================================
   Gray Sections (Meet Our Doctor, General Dentistry, Cosmetic & Orthodontics)
   ========================================================================== */
.sfd-gray-section {
  background-color: var(--sfd-gray-bg);
  padding: 6% 0;
}

.sfd-doctor-lead {
  color: var(--sfd-green);
  margin-bottom: 24px;
}

.sfd-doctor-bio p {
  color: var(--sfd-text);
}

/* General Dentistry Staggered Photo Collage */
.sfd-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.sfd-collage__item--offset {
  margin-top: 64px;
}

.sfd-collage__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.sfd-collage-mobile {
  display: none;
  margin-top: 32px;
}

/* Cosmetic & Orthodontics 2-Col Divided Band */
.sfd-divided-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.sfd-divided-col--left {
  padding-right: 6%;
  border-right: 1px solid rgba(1, 64, 35, 0.16);
}

.sfd-divided-col--right {
  padding-left: 6%;
}

/* ==========================================================================
   Minimalist Bottom-Bordered Accordions (Services Page)
   ========================================================================== */
.sfd-accordion {
  width: 100%;
}

.sfd-accordion__item {
  border-bottom: 1px solid rgba(1, 64, 35, 0.18);
}

.sfd-accordion--dark .sfd-accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.sfd-accordion__trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--sfd-green);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.sfd-accordion__trigger:hover {
  color: var(--sfd-green-hover);
}

.sfd-accordion--dark .sfd-accordion__trigger {
  color: var(--sfd-white);
}

.sfd-accordion--dark .sfd-accordion__trigger:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sfd-accordion__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.sfd-accordion__item.is-open .sfd-accordion__icon {
  transform: rotate(90deg);
}

.sfd-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.sfd-accordion__item.is-open .sfd-accordion__panel {
  grid-template-rows: 1fr;
}

.sfd-accordion__content {
  overflow: hidden;
}

.sfd-accordion__content-inner {
  padding: 0 24px 20px 0;
  font-size: 16px;
  line-height: 1.85em;
  color: var(--sfd-text);
}

.sfd-accordion--dark .sfd-accordion__content-inner {
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   Framed White-Brick Sections (Financing/Insurance & Botox)
   ========================================================================== */
.sfd-brick-section {
  position: relative;
  margin: 5%;
  padding: 6% 0;
  background-color: var(--sfd-white);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%),
    var(--sfd-brick-bg);
  background-size: cover, 320px 160px;
  background-position: center, top left;
  background-repeat: no-repeat, repeat;
}

.sfd-financing-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 5%;
  align-items: start;
}

.sfd-financing-block {
  margin-bottom: 40px;
}

.sfd-financing-block:last-child {
  margin-bottom: 0;
}

/* Insurance Provider Cards / Logos */
.sfd-insurance-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-items: start;
}

.sfd-insurance-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sfd-insurance-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0;
  text-align: center;
  transition: transform 300ms ease;
}

.sfd-insurance-card:hover {
  transform: scale(1.05);
}

.sfd-insurance-card img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.sfd-insurance-placeholder {
  width: 100%;
  min-height: 82px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed rgba(1, 64, 35, 0.25);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sfd-insurance-placeholder__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sfd-green);
}

.sfd-insurance-placeholder__hint {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(1, 64, 35, 0.55);
}

/* ==========================================================================
   Seamless Dark Green CTA + Contact + Map + Web3Forms Section
   ========================================================================== */
.sfd-contact-band {
  background-color: var(--sfd-green);
  color: var(--sfd-white);
  padding: 72px 0 64px;
}

.sfd-cta-callout {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 64px;
}

.sfd-cta-callout .big-text {
  color: var(--sfd-white);
}

.sfd-cta-callout a {
  color: var(--sfd-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.sfd-cta-callout a:hover {
  opacity: 0.85;
}

/* 3-Column Contact Info Row */
.sfd-contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
  margin-bottom: 56px;
  align-items: start;
}

.sfd-contact-col p {
  color: var(--sfd-white);
  font-size: 17px;
  line-height: 1.9em;
}

.sfd-contact-col a:not(.sfd-btn):not(.sfd-social-btn) {
  color: var(--sfd-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sfd-contact-col a:not(.sfd-btn):not(.sfd-social-btn):hover {
  opacity: 0.85;
}

.sfd-contact-col .sfd-btn {
  margin-top: 20px;
}

.sfd-social-wrap {
  margin-top: 22px;
}

.sfd-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background-color: var(--sfd-green-dark);
  color: var(--sfd-white);
  transition: background-color 0.3s ease;
}

.sfd-social-btn:hover {
  background-color: var(--sfd-green-hover);
  color: var(--sfd-white);
}

.sfd-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Map + Web3Forms Grid */
.sfd-map-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  align-items: start;
}

.sfd-map-wrap iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* Web3Forms Contact Form */
.sfd-form__field {
  margin-bottom: 18px;
}

.sfd-form__label {
  display: block;
  color: var(--sfd-white);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 6px;
}

.sfd-form__input,
.sfd-form__textarea {
  width: 100%;
  background-color: var(--sfd-white);
  color: var(--sfd-text);
  border: 0;
  border-radius: 0;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.sfd-form__input:focus,
.sfd-form__textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.sfd-form__textarea {
  min-height: 132px;
  resize: vertical;
}

.sfd-form__note {
  color: var(--sfd-white);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin-top: 10px;
  opacity: 0.92;
}

.sfd-form__submit-wrap {
  margin-top: 22px;
  text-align: center;
}

.sfd-form__submit {
  display: inline-block;
  background-color: var(--sfd-green-dark);
  color: var(--sfd-white);
  border: 0;
  border-radius: 100px;
  padding: 15px 35px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.7em;
  cursor: pointer;
  transition: background-color 300ms ease;
}

.sfd-form__submit:hover:not(:disabled) {
  background-color: var(--sfd-green-hover);
}

.sfd-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sfd-form__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.sfd-form__status.is-visible {
  display: block;
}

.sfd-form__status--success {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--sfd-white);
}

.sfd-form__status--error {
  background-color: rgba(180, 35, 24, 0.28);
  border: 1px solid rgba(255, 200, 200, 0.45);
  color: var(--sfd-white);
}

.sfd-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--sfd-green);
}

.footer-nav-bar {
  background-color: var(--sfd-green);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-nav a {
  color: var(--sfd-white);
  font-size: 15px;
  font-weight: 400;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.footer-nav li.current-menu-item a {
  border-bottom-color: var(--sfd-white);
}

.footer-nav a:hover {
  opacity: 0.78;
}

.footer-bottom {
  background-color: var(--sfd-green-dark);
  padding: 18px 0;
  text-align: center;
}

.footer-info {
  color: var(--sfd-white);
  font-size: 13px;
  line-height: 1.6;
}

.footer-info a {
  color: var(--sfd-white);
  text-decoration: underline;
}

/* ==========================================================================
   Generic WP Page Content (fallback page.php)
   ========================================================================== */
.sfd-generic-page {
  padding: 140px 0 80px;
}

.sfd-generic-page h1 {
  color: var(--sfd-green);
  font-size: 40px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Scroll-to-Top Button & Lightbox
   ========================================================================== */
.sfd-scroll-top {
  position: fixed;
  right: 0;
  bottom: 120px;
  width: 42px;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.45);
  color: var(--sfd-white);
  border: 0;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, background-color 0.25s ease, visibility 0.3s ease;
  z-index: 900;
}

.sfd-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.sfd-scroll-top:hover {
  background-color: var(--sfd-green-dark);
}

/* Lightbox Modal */
.sfd-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sfd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.sfd-lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sfd-lightbox__close,
.sfd-lightbox__nav {
  position: absolute;
  background: rgba(0, 45, 28, 0.85);
  color: var(--sfd-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.sfd-lightbox__close:hover,
.sfd-lightbox__nav:hover {
  background-color: var(--sfd-green-hover);
}

.sfd-lightbox__close {
  top: 20px;
  right: 20px;
}

.sfd-lightbox__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.sfd-lightbox__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Scroll Reveal Animations (Replicating Divi 1000ms ease-in-out)
   ========================================================================== */
.sfd-reveal {
  opacity: 0;
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
  will-change: opacity, transform;
}

.sfd-reveal--bottom {
  transform: translateY(24px);
}

.sfd-reveal--left {
  transform: translateX(-24px);
}

.sfd-reveal--right {
  transform: translateX(24px);
}

.sfd-reveal--fade {
  transform: none;
}

.sfd-reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .sfd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints (<= 980px Tablet, <= 767px Mobile)
   ========================================================================== */
@media (max-width: 980px) {
  .site-header {
    background-color: var(--sfd-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-logo img {
    height: 52px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sfd-hero {
    padding-top: clamp(160px, 32vw, 260px);
    padding-bottom: 52px;
  }

  .sfd-hero__headline {
    font-size: 40px;
    max-width: 72vw;
  }

  .big-text {
    font-size: 30px;
  }

  .sfd-section-title {
    font-size: 32px;
  }

  .sfd-split-section,
  .sfd-split-section--reversed {
    margin: 0;
    padding: 56px 0;
    background-image: none;
    background-color: var(--sfd-green);
  }

  .sfd-brick-section {
    margin: 0;
    padding: 56px 0;
  }

  .sfd-gray-section {
    padding: 56px 0;
  }

  .sfd-two-col,
  .sfd-financing-grid,
  .sfd-map-form-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Match original mobile order: text first, photo/slider below */
  .sfd-split-section--text-first-mobile .sfd-split-media {
    order: 2;
  }

  .sfd-split-section--text-first-mobile .sfd-split-content {
    order: 1;
  }

  .sfd-divided-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .sfd-divided-col--left {
    padding-right: 0;
    border-right: 0;
  }

  .sfd-divided-col--right {
    padding-left: 0;
  }

  .sfd-contact-info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .sfd-container {
    width: 90%;
  }

  .sfd-hero__headline {
    font-size: 34px;
    max-width: 100%;
  }

  .sfd-collage {
    display: none;
  }

  .sfd-collage-mobile {
    display: block;
  }

  .sfd-insurance-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sfd-insurance-col {
    gap: 14px;
  }

  .sfd-map-wrap iframe {
    height: 340px;
  }
}
