/* main.css — layout, components, responsive */

/* ============================================================
   BASE TYPOGRAPHY
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-mid);
  background: var(--color-white);
}

main {
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  font-optical-sizing: auto;
}

h1 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

strong {
  color: var(--color-dark);
}

ul {
  list-style: square;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

ul li {
  line-height: 1.6;
  padding-bottom: 0.25rem;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  transition: box-shadow var(--transition-fast);
  /* Containing block for absolutely positioned mobile nav */
  isolation: isolate;
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  height: var(--header-height-mob);
}

@media (min-width: 960px) {
  .header-inner {
    height: var(--header-height);
  }
}

/* ============================================================
   LOGO
   ============================================================ */

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-gold-light);
}

.logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 960px) {
  .logo img {
    height: 48px;
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Hamburger button — visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

/* Nav menu */
.nav-menu {
  flex-direction: column;
  position: absolute;
  top: var(--header-height-mob);
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-top: 1px solid #444;
  border-bottom: 2px solid var(--color-gold);
  z-index: 99;
  /* Slide animation */
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med), opacity var(--transition-med);
  opacity: 0;
  display: flex;
}

.nav-menu.is-open {
  max-height: 400px;
  opacity: 1;
}

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    border-top: none;
    border-bottom: none;
    padding: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
    opacity: 1;
  }
}

.nav-menu a {
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

@media (min-width: 960px) {
  .nav-menu a {
    padding: 0.5rem 0.75rem;
  }
}

.nav-menu a:hover {
  color: var(--color-gold-light);
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: var(--color-gold-light);
  text-decoration: none;
}

@media (min-width: 960px) {
  .nav-menu a[aria-current="page"] {
    border-bottom-color: var(--color-gold);
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  background: var(--color-light-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem var(--content-pad);
  font-size: 0.8125rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "»";
  color: var(--color-mid);
  margin-right: 0.25rem;
}

.breadcrumb a {
  color: var(--color-gold);
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  color: #a0a0a0;
  font-size: 0.8125rem;
  padding: 2rem var(--content-pad) 3rem;
  border-top: 2px solid var(--color-gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-version {
  display: block;
  font-size: 0.65rem;
  color: #555;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

.footer-copy a {
  color: var(--color-gold-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
}

@media (min-width: 640px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

.footer-nav a {
  color: var(--color-gold-light);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ============================================================
   CAROUSEL
   ============================================================ */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-dark);
  aspect-ratio: 3 / 1;
  max-height: 340px;
  outline: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* City name caption with gradient overlay */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Prev / Next buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(151, 141, 75, 0.7);
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.carousel-dot.is-active {
  background: var(--color-gold-light);
  transform: scale(1.3);
}

.carousel-panel-left,
.carousel-panel-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  z-index: 5;
  pointer-events: none;
}

.carousel-panel-left  { left: 0; }
.carousel-panel-right { right: 0; }

/* ============================================================
   TEASER GRID (homepage)
   ============================================================ */

.teaser-grid {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.teaser-grid-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--content-pad);
  gap: 2rem;
}

@media (min-width: 640px) {
  .teaser-grid-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.teaser-card {
  border-top: 3px solid var(--color-gold);
  padding-top: 1.25rem;
  transition: transform var(--transition-med);
}

.teaser-card:hover {
  transform: translateY(-3px);
}

.teaser-card h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.teaser-card h2 a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.teaser-card h2 a:hover {
  color: var(--color-gold);
}

.teaser-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-mid);
  margin-bottom: 1rem;
}

.teaser-link {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.teaser-link:hover {
  color: var(--color-dark);
  text-decoration: none;
}

/* ============================================================
   ABOUT HOME SECTION
   ============================================================ */

.about-home {
  background: #f8f7f5;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-home-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem var(--content-pad);
}

.about-home-heading {
  font-size: var(--text-2xl);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

.about-home-content p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-mid);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.about-home-content p strong {
  color: var(--color-dark);
}

.about-home-content a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.about-home-content a:hover {
  border-bottom-color: var(--color-gold-light);
  text-decoration: none;
}

/* ============================================================
   CONTACT STRIP (homepage)
   ============================================================ */

.contact-strip {
  background: var(--color-dark);
  color: #bbbbbb;
  border-top: 2px solid var(--color-gold);
}

.cta-bar {
  background: var(--color-gold);
  color: var(--color-white);
  text-align: center;
  padding: 0.65rem var(--content-pad);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-bar-divider {
  opacity: 0.7;
}

.contact-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--content-pad);
  gap: 2rem;
}

@media (min-width: 640px) {
  .contact-strip-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.contact-col h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #555;
}

.contact-col address {
  font-style: normal;
  line-height: 1.8;
  font-size: var(--text-sm);
}

.contact-col p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #bbbbbb;
  margin-bottom: 0.75rem;
}

.contact-col strong {
  color: var(--color-white);
}

.contact-col a {
  color: #dddddd;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-col a:hover {
  color: var(--color-gold-light);
}

.contact-strip-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold) !important;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-gold);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.contact-strip-cta:hover {
  color: var(--color-gold-light) !important;
  border-bottom-color: var(--color-gold-light);
}

/* ============================================================
   TWO-COLUMN PAGE LAYOUT (inner pages)
   ============================================================ */

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "sidebar";
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--content-pad) 4rem;
  align-items: start;
}

@media (min-width: 960px) {
  .page-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-areas: "sidebar main";
    gap: 3rem;
  }
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  grid-area: sidebar;
}

.sidebar-box {
  background: var(--color-dark);
  border-top: 3px solid var(--color-gold);
  padding: 1.5rem;
  color: #bbbbbb;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.sidebar-box h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  border-bottom: 1px solid #555;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.sidebar-box p {
  color: #bbbbbb;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.sidebar-label {
  color: var(--color-white);
}

.sidebar-email {
  color: #d2cda1;
  word-break: break-all;
}

.sidebar-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-top: 0.25rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar-phone:hover {
  color: var(--color-gold-light);
  text-decoration: none;
}

.sidebar-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--color-gold-light);
  text-decoration: none;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.page-main {
  grid-area: main;
  min-width: 0; /* prevent grid blowout */
}

.page-title {
  font-size: var(--text-3xl);
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.page-main h2 {
  font-size: var(--text-xl);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
  margin: 2rem 0 0.875rem;
}

.page-main h2:first-of-type {
  margin-top: 0;
}

.page-main p {
  color: var(--color-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.page-main ul {
  color: var(--color-mid);
  margin-bottom: 1.25rem;
}

.page-main ul li {
  line-height: 1.7;
  padding-bottom: 0.3rem;
}

/* ============================================================
   PRACTICE AREAS — SECTION BLOCKS
   ============================================================ */

.practice-area {
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.practice-area:last-child {
  border-bottom: none;
}

/* ============================================================
   ABOUT PAGE — ATTORNEY NAME & PORTRAIT
   ============================================================ */

.page-main .attorney-name {
  font-size: var(--text-2xl);
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
  text-transform: none;
}

.portrait-float {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: clamp(120px, 30%, 200px);
  border: 3px solid var(--color-gold);
  box-shadow: 4px 4px 0 rgba(151, 141, 75, 0.25);
}

/* Clear float after portrait section */
.page-main::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================================
   PAGE ENTRANCE ANIMATION
   JS adds .page-ready to <body> — staggered fade-up on load.
   Elements must carry the .reveal class in HTML.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.page-ready .reveal {
  animation: revealUp 0.5s ease forwards;
}

.page-ready .reveal:nth-child(1) { animation-delay: 0.05s; }
.page-ready .reveal:nth-child(2) { animation-delay: 0.12s; }
.page-ready .reveal:nth-child(3) { animation-delay: 0.19s; }
.page-ready .reveal:nth-child(4) { animation-delay: 0.26s; }
.page-ready .reveal:nth-child(5) { animation-delay: 0.33s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   CONTACT PAGE — OFFICE GRID
   ============================================================ */

.contact-office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .contact-office-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.contact-office {
  border-top: 3px solid var(--color-gold);
  padding-top: 1.1rem;
}

.contact-office h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 0.75rem;
}

.contact-office address {
  font-style: normal;
  line-height: 1.8;
  font-size: var(--text-sm);
  color: var(--color-mid);
  margin-bottom: 0.5rem;
}

.contact-office p {
  font-size: var(--text-sm);
  color: var(--color-mid);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.office-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.office-list li {
  font-size: var(--text-sm);
  color: var(--color-mid);
  padding-bottom: 0.3rem;
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.6;
}

.office-list li::before {
  content: "›";
  color: var(--color-gold);
  position: absolute;
  left: 0;
}

.home-visits-callout {
  background: var(--color-dark);
  border-top: 3px solid var(--color-gold);
  padding: 1.25rem 1.25rem 1.25rem;
}

.home-visits-label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.home-visits-callout p {
  color: #bbbbbb;
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ============================================================
   CONTACT PAGE — OHIO MAP  (D3-rendered)
   ============================================================ */

.ohio-map-section {
  margin-bottom: 2.5rem;
}

.ohio-map-heading {
  font-size: var(--text-xl);
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ohio-map-wrap {
  /* transparent background — counties float on the page */
  background: transparent;
  padding: 0.5rem 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ohio-map-loading {
  font-size: var(--text-sm);
  color: var(--color-mid);
  text-align: center;
  font-style: italic;
  padding: 2rem;
}

/* The SVG itself — D3 appends this into #ohio-map-container */
.ohio-map-svg {
  display: block;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  /* transparent background so county map floats cleanly */
  background: transparent;
}

/* County fills */
.oh-county {
  fill: #2c2c2c;
  stroke: none;
}

/* Interior county border lines (mesh) */
.oh-county-borders {
  fill: none;
  stroke: rgba(151, 141, 75, 0.35);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

/* State outer border */
.oh-state {
  fill: none;
  stroke: #978d4b;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* Office marker — halo dot (glow layer) */
.oh-dot-halo {
  fill: #978d4b;
  opacity: 0.35;
}

/* Office marker — solid dot */
.oh-dot {
  fill: #978d4b;
}

.oh-office--main .oh-dot {
  fill: #d2cda1;
}

/* City name labels */
.oh-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: #d2cda1;
  letter-spacing: 0.04em;
  /* text shadow via SVG paint-order so labels read over counties */
  paint-order: stroke;
  stroke: #1a1a1a;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.oh-label--sub {
  font-size: 9px;
  fill: #978d4b;
  font-weight: 400;
  stroke-width: 2.5px;
}

/* Caption below map */
.ohio-map-caption {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: var(--text-xs);
  color: #888;
  text-align: center;
  font-style: italic;
}

/* ============================================================
   CONTACT PAGE — FORM
   ============================================================ */

.contact-form-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.contact-form-section > h2 {
  font-size: var(--text-xl);
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-form-section > p {
  color: var(--color-mid);
  margin-bottom: 1.5rem;
}

/* Error and success messages */
.form-errors {
  background: #fff0f0;
  border: 1px solid #e88;
  border-left: 4px solid #c00;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  color: #700;
}

.form-errors p {
  margin: 0;
}

.form-success {
  background: #f0fff4;
  border: 1px solid #6c8;
  border-left: 4px solid #090;
  padding: 1.25rem 1.5rem;
  font-size: var(--text-sm);
  color: #040;
}

.form-success p {
  margin: 0;
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.field-required {
  color: #c00;
  margin-left: 0.1em;
}

.field-optional {
  color: var(--color-mid);
  font-weight: 400;
  font-size: 0.8em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark);
  background: #faf9f8;
  border: 1px solid #ccc;
  padding: 0.6rem 0.8rem;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(151, 141, 75, 0.15);
  background: #fff;
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c00;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.08);
}

.form-field select {
  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 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-mid);
  font-style: italic;
  margin: 0;
  max-width: 380px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition-fast);
  min-height: 44px;
  flex-shrink: 0;
}

.form-submit:hover {
  background: var(--color-dark);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   UTILITY
   ============================================================ */

.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;
}
