/* ============================================================
   THE PONDS — Style System
   A luxury single-property sales site
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale */
  --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(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --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;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1280px;
}

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  --color-bg: #F5F3EE;
  --color-surface: #FAF8F4;
  --color-text: #1A1815;
  --color-text-muted: #6B6860;
  --color-text-faint: #A9A69E;
  --color-accent: #A6894A;
  --color-accent-hover: #8B7340;
  --color-border: rgba(26, 24, 21, 0.1);
  --color-border-strong: rgba(26, 24, 21, 0.18);
  --color-overlay: rgba(26, 24, 21, 0.6);

  --shadow-sm: 0 1px 3px rgba(26, 24, 21, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 24, 21, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 24, 21, 0.12);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg: #141311;
  --color-surface: #1B1A17;
  --color-text: #D9D6D0;
  --color-text-muted: #8A877F;
  --color-text-faint: #5E5C57;
  --color-accent: #C4A35C;
  --color-accent-hover: #D4B56C;
  --color-border: rgba(217, 214, 208, 0.1);
  --color-border-strong: rgba(217, 214, 208, 0.16);
  --color-overlay: rgba(0, 0, 0, 0.7);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141311;
    --color-surface: #1B1A17;
    --color-text: #D9D6D0;
    --color-text-muted: #8A877F;
    --color-text-faint: #5E5C57;
    --color-accent: #C4A35C;
    --color-accent-hover: #D4B56C;
    --color-border: rgba(217, 214, 208, 0.1);
    --color-border-strong: rgba(217, 214, 208, 0.16);
    --color-overlay: rgba(0, 0, 0, 0.7);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Desktop nav */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-border);
}

/* Hamburger */
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--color-text);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: oklch(from var(--color-bg) l c h / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s var(--ease-out);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.10) 40%,
    rgba(0, 0, 0, 0.40) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8) var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--space-4);
}

.hero-price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--color-accent-light, #D4B978);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-4);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  max-width: 480px;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator span {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   SECTIONS — General
   ============================================================ */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-6);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

/* ============================================================
   OVERVIEW
   ============================================================ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

.overview-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.overview-text p:first-of-type::first-line {
  color: var(--color-text);
  font-weight: 500;
}

.overview-image {
  overflow: hidden;
}

.overview-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

@media (min-width: 600px) {
  .stats-bar {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item--large img {
  aspect-ratio: 16 / 10;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Spans for large items */
.gallery-item--large {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gallery-item--large img {
    aspect-ratio: auto;
  }
}

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

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-4);
  transition: color 0.2s var(--ease-out);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
}

.lightbox-close {
  top: var(--space-6);
  right: var(--space-6);
  font-size: 1.5rem;
}

.lightbox-prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.lightbox-next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

/* ============================================================
   GARDENS & GROUNDS
   ============================================================ */
.gardens-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin-bottom: var(--space-10);
}

.gardens-text {
  max-width: var(--content-narrow);
  margin-bottom: var(--space-10);
}

.gardens-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.gardens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.gardens-grid figure {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.gardens-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.6s var(--ease-out);
}

.gardens-grid figure:hover img {
  transform: scale(1.03);
}

.gardens-grid figure:first-child {
  grid-column: span 2;
}

.gardens-grid figcaption {
  display: none;
}

@media (min-width: 768px) {
  .gardens-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  .gardens-grid figure:first-child {
    grid-column: span 1;
  }
}

/* ============================================================
   PROPERTY DETAILS
   ============================================================ */
.details-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.floor-section {
  margin-bottom: var(--space-10);
}

.floor-section:last-child {
  margin-bottom: 0;
}

.floor-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.floor-rooms {
  list-style: none;
  padding: 0;
}

.floor-rooms li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

.floor-rooms li strong {
  color: var(--color-text);
  font-weight: 500;
}

.floorplan-wrap {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .details-floorplan {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.floorplan-wrap img {
  width: 100%;
  height: auto;
}

.key-features {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.key-features h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.features-list {
  list-style: none;
  padding: 0;
  columns: 1;
  column-gap: var(--space-8);
}

.features-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  break-inside: avoid;
}

.features-list li::before {
  content: '—';
  color: var(--color-accent);
  margin-right: var(--space-2);
}

@media (min-width: 768px) {
  .details-layout {
    grid-template-columns: 1.2fr 1fr;
  }
  .features-list {
    columns: 2;
  }
}

/* ============================================================
   LOCATION
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.location-map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.distances {
  margin-top: var(--space-6);
}

.distances h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.distance-group {
  margin-bottom: var(--space-6);
}

.distance-group h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.distance-group dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-4);
}

.distance-group dt {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.distance-group dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}

/* ============================================================
   CONTACT / ENQUIRY
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--content-default);
  margin: 0 auto;
}

.contact-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.contact-email {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success p {
  color: var(--color-text);
  font-size: var(--text-base);
}

.form-success p strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-16);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-10) var(--space-6);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer-address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.bg-surface {
  background-color: var(--color-surface);
}

/* ============================================================
   GALLERY TEASER (Home Page)
   ============================================================ */
.gallery-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.teaser-img {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s var(--ease-out);
}

.teaser-img:hover img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .gallery-teaser {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-4);
  }
  .teaser-img:first-child {
    grid-row: span 2;
  }
  .teaser-img:first-child img {
    aspect-ratio: auto;
    height: 100%;
  }
}

.gallery-cta {
  text-align: center;
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-interactive), border-color var(--transition-interactive), color var(--transition-interactive);
}

.btn-gallery:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ============================================================
   PERMITTED DEVELOPMENT / POTENTIAL
   ============================================================ */
.potential-intro {
  max-width: var(--content-narrow);
  margin-bottom: var(--space-10);
}

.potential-intro p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.potential-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.potential-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.potential-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  border-radius: 100px;
}

.potential-card img,
.potential-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.potential-card figcaption {
  padding: var(--space-6);
}

.potential-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.potential-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.potential-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  max-width: var(--content-narrow);
}

@media (min-width: 768px) {
  .potential-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
