/* ==================================================================
   THE HOLIDAY HOUSE — Design tokens
   Palette: cream #f9f5ef, deep green #1b382c, muted gold #a88b61
   Fonts: Cormorant (display), DM Sans (body)
   ================================================================== */

:root,
[data-theme="light"] {
  /* Surfaces */
  --color-bg: #f9f5ef;             /* cream */
  --color-surface: #ffffff;
  --color-surface-offset: #f0ece4;
  --color-surface-deep: #1b382c;  /* deep forest green */
  --color-surface-deep-2: #142c22;

  /* Text */
  --color-text: #1b382c;
  --color-text-on-deep: #f4f1e8;
  --color-text-muted: #5c6b60;
  --color-text-faint: #4a5750;
  --color-text-on-deep-muted: #c9d4c9;

  /* Accent */
  --color-accent: #75603f;        /* accessible gold for small text */
  --color-accent-bright: #a88b61;  /* decorative gold */
  --color-accent-hover: #5c4a2f;
  --color-accent-soft: rgba(168, 139, 97, 0.12);

  /* Borders / dividers */
  --color-border: rgba(27, 56, 44, 0.12);
  --color-divider: rgba(27, 56, 44, 0.08);
  --color-border-on-deep: rgba(244, 241, 232, 0.18);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 56, 44, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 56, 44, 0.08);
  --shadow-lg: 0 16px 40px rgba(27, 56, 44, 0.14);

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;

  /* Transitions */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Type tokens */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Fonts */
  --font-display: "Cormorant", "Georgia", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
}

[data-theme="dark"] {
  /* Surfaces */
  --color-bg: #10201a;
  --color-surface: #15271f;
  --color-surface-offset: #0c1813;
  --color-surface-deep: #1b382c;
  --color-surface-deep-2: #224a39;

  /* Text */
  --color-text: #f0ece0;
  --color-text-on-deep: #f0ece0;
  --color-text-muted: #9aa79e;
  --color-text-faint: #828f86;
  --color-text-on-deep-muted: #c9d4c9;

  /* Accent */
  --color-accent: #d6b984;
  --color-accent-hover: #c9a870;
  --color-accent-soft: rgba(214, 185, 132, 0.12);

  /* Borders */
  --color-border: rgba(240, 236, 224, 0.12);
  --color-divider: rgba(240, 236, 224, 0.08);
  --color-border-on-deep: rgba(240, 236, 224, 0.18);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 8rem);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

a,
button {
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ================================================================
   Header / Nav
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .header-inner {
    padding: var(--space-4) var(--space-8);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
  min-width: 0;
}

@media (max-width: 420px) {
  .header-inner {
    gap: var(--space-2);
  }
}

.logo-mark {
  width: 32px;
  height: 32px;
  color: var(--color-accent-bright);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
}

@media (max-width: 899.98px) {
  .header-inner > .btn-outline {
    display: none;
  }
}

/* Compact header CTA at narrow desktop widths to keep everything on one row */
@media (min-width: 900px) and (max-width: 1099px) {
  .header-cta {
    padding-inline: var(--space-4);
    font-size: var(--text-xs);
  }
}

.main-nav ul {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

.theme-toggle {
  color: var(--color-text-muted);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full, 9999px);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full, 9999px);
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}
.menu-btn:hover {
  background: var(--color-accent-soft);
}

.mobile-nav {
  display: none;
  padding: var(--space-2) var(--space-4) var(--space-4);
  border-top: 1px solid var(--color-divider);
}

/* Hide the hamburger button once we're in desktop breakpoint */
@media (min-width: 900px) {
  .menu-btn {
    display: none;
  }
}

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

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.mobile-nav a:hover {
  color: var(--color-text);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
  border: 1px solid var(--color-surface-deep);
}
.btn-primary:hover {
  background: var(--color-surface-deep-2);
  border-color: var(--color-surface-deep-2);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  border: 1px solid var(--color-surface-deep);
  color: var(--color-surface-deep);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-accent-soft);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 24, 0.45) 0%,
    rgba(20, 30, 24, 0.35) 40%,
    rgba(20, 30, 24, 0.55) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: var(--content-narrow);
  padding: var(--space-12) var(--space-4);
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.hero-sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 36ch;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.scroll-hint:hover {
  color: #fff;
}
.scroll-hint svg {
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================================================================
   Sections
   ================================================================ */
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-header {
  max-width: 72ch;
  margin-bottom: var(--space-10);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* About */
.about-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-16);
  }
}

.about-text .section-title {
  margin-bottom: var(--space-4);
}

.about-media {
  position: relative;
}
.about-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Services */
.section-services {
  background: var(--color-surface-offset);
}

.services-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-body {
  padding: var(--space-5);
}

.service-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.service-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.services-cta {
  margin-top: var(--space-10);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.services-cta p {
  display: inline-flex;
  gap: var(--space-2);
}

.services-cta span {
  color: var(--color-accent);
}

.services-note {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Holidays */
.holiday-grid {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
}

.holiday-grid button {
  display: flex;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: center;
  background: var(--color-surface);
  transition: background var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
}

.holiday-grid button:hover,
.holiday-grid button:focus-visible {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.holiday-grid button:active {
  background: var(--color-surface-offset);
}

.holiday-hint {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.holiday-dialog {
  width: min(640px, calc(100% - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.holiday-dialog::backdrop {
  background: rgba(12, 24, 19, 0.65);
}

.holiday-dialog-content {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}

.holiday-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.holiday-dialog-top .eyebrow {
  margin: 0;
}

.holiday-close {
  min-width: 64px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.holiday-close:hover,
.holiday-close:active {
  background: var(--color-accent-soft);
}

.holiday-inquiry-copy {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
}

.holiday-dialog-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.holiday-dialog-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.holiday-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  font-size: var(--text-sm);
  text-underline-offset: 4px;
}

.holiday-email-note {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Process */
.section-process {
  background: var(--color-surface-deep);
  color: var(--color-text-on-deep);
}

.section-process .eyebrow {
  color: var(--color-accent);
}

.section-process .section-sub {
  color: var(--color-text-on-deep-muted);
}

.process-grid {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-grid li {
  position: relative;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.process-grid h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-on-deep);
}

.process-grid p {
  font-size: var(--text-sm);
  color: var(--color-text-on-deep-muted);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-grid blockquote {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-grid blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  flex-grow: 1;
}

.testimonial-grid cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 500;
}

.testimonial-grid cite span {
  color: var(--color-text-faint);
  font-weight: 400;
}

/* Contact */
.section-contact {
  background: var(--color-surface-offset);
}

.contact-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-16);
  }
}

.contact-text .section-title {
  margin-bottom: var(--space-4);
}

.contact-list {
  list-style: none;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.contact-list a {
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-ctas {
  margin-top: var(--space-8);
}

.contact-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--color-surface-deep-2);
  color: var(--color-text-on-deep);
  padding-block: var(--space-12) var(--space-8);
}

.footer-inner {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    align-items: start;
    gap: var(--space-10);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 800px) {
  .footer-brand {
    justify-content: flex-start;
  }
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.footer-brand p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 800px) {
  .footer-nav ul {
    justify-content: flex-start;
  }
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text-on-deep-muted);
  font-size: var(--text-sm);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: var(--text-sm);
}

.footer-contact a {
  text-decoration: none;
  color: var(--color-text-on-deep-muted);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-tagline {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--color-accent);
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: var(--space-1);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Dark-mode button overrides (deep green on dark green has no contrast) */
.specialty-services { margin-top: var(--space-16); }
.specialty-grid { display: grid; gap: var(--space-6); }
.specialty-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.specialty-card h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; }
.specialty-card p:not(.eyebrow) { color: var(--color-text-muted); }
.specialty-card .btn { margin-top: auto; white-space: normal; text-align: center; }
.specialty-card .eyebrow { margin-bottom: 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.gallery-filters button {
  padding: var(--space-3) var(--space-4); min-height: 44px; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: var(--text-sm); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.gallery-filters button[aria-pressed="true"] { background: var(--color-surface-deep); color: var(--color-text-on-deep); border-color: var(--color-surface-deep); }
[data-theme="dark"] .gallery-filters button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-surface-offset); }
.specialty-card button, .photo-dialog button { -webkit-tap-highlight-color: transparent; }
.gallery-status { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); margin-block: var(--space-6); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.gallery-photo {
  background: var(--color-surface); color: var(--color-text); text-align: left;
  padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent;
}
.gallery-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 250ms ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo span { display: block; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
.gallery-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); }
.gallery-note { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; max-width: 65ch; margin: var(--space-6) auto 0; }
.photo-dialog {
  margin: auto; width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: var(--space-4); overflow-y: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-bg); color: var(--color-text);
}
.photo-dialog::backdrop { background: rgba(5, 16, 11, 0.85); }
.photo-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.photo-dialog-top p { font-size: var(--text-sm); color: var(--color-text-muted); }
.photo-dialog > img { display: block; margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: min(65dvh, 700px); object-fit: contain; }
.photo-dialog-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.photo-dialog-bottom p { text-align: center; font-size: var(--text-sm); }
[hidden] { display: none !important; }
@media (min-width: 700px) {
  .specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}
@media (max-width: 420px) {
  .gallery-grid { gap: var(--space-3); }
  .gallery-photo span { padding: var(--space-3); }
  .photo-dialog-bottom { grid-template-columns: 1fr 1fr; }
  .photo-dialog-bottom p { grid-column: 1 / -1; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } }

[data-theme="dark"] .btn-outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
[data-theme="dark"] .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #10201a;
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
