/* ==========================================================================
   AMALTHEIA WEDDING ESTATE — main.css
   Faithful translation of the Figma/React design to hand-written CSS.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --background: #F5EFE6;
  --foreground: #18140F;
  --card: #EDE5D8;
  --primary: #18140F;
  --primary-foreground: #F5EFE6;
  --secondary: #EBE4D7;
  --secondary-foreground: #18140F;
  --muted: #DDD4C4;
  --muted-foreground: #6B5E4A;
  --accent: #A87D44;
  --accent-foreground: #F5EFE6;
  --border: rgba(24, 20, 15, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Helpers ---------- */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.italic { font-style: italic; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.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;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s ease;
}
.nav.scrolled {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.25rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: #fff;
  transition: color 0.4s ease;
}
.nav.scrolled .nav__brand,
.nav.scrolled .nav__link,
.nav.scrolled .nav__cta { color: var(--foreground); }
.nav__links { display: none; align-items: center; gap: 2.5rem; }
.nav__link {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff; transition: opacity 0.3s ease;
}
.nav__link:hover { opacity: 0.5; }
.nav__cta {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.625rem 1.25rem;
  border: 1px solid #fff; color: #fff; transition: all 0.3s ease;
}
.nav__cta:hover { background: #fff; color: var(--foreground); }
.nav.scrolled .nav__cta { border-color: var(--foreground); }
.nav.scrolled .nav__cta:hover { background: var(--foreground); color: var(--primary-foreground); }
.nav__burger { color: #fff; display: inline-flex; }
.nav.scrolled .nav__burger { color: var(--foreground); }

@media (min-width: 768px) {
  .nav__inner { padding: 1.5rem 4rem; }
  .nav__brand { font-size: 1.25rem; }
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--foreground);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem; margin-bottom: 3rem;
}
.mobile-menu__brand {
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary-foreground);
}
.mobile-menu__close { color: var(--primary-foreground); }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 2rem; }
.mobile-menu__link {
  text-align: left; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: baseline; gap: 1.5rem;
}
.mobile-menu__num {
  font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em; width: 1.25rem;
}
.mobile-menu__label {
  font-family: var(--font-display); font-size: 2.25rem;
  color: var(--primary-foreground); transition: color 0.3s ease;
}
.mobile-menu__link:hover .mobile-menu__label { color: var(--accent); }
.mobile-menu__cta-wrap { padding: 2.5rem 2rem 0; }
.mobile-menu__cta {
  width: 100%; background: var(--accent); color: var(--accent-foreground);
  padding: 1rem; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
@media (min-width: 768px) { .mobile-menu { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100vh; width: 100%; overflow: hidden;
  background: #292524;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0.82;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.05), rgba(0,0,0,0.65));
}
.hero__content {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 2rem 5rem;
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display); font-size: 3rem; line-height: 0.92;
  color: #fff; margin-bottom: 2.5rem; max-width: 900px; font-weight: 400;
}
.hero__actions { display: flex; flex-direction: column; gap: 1rem; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #fff; color: var(--foreground); padding: 1rem 2rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; transition: all 0.3s ease;
}
.btn-solid:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.6875rem; color: rgba(255,255,255,0.6);
  letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s ease;
}
.btn-ghost:hover { color: #fff; }
.hero__locale {
  position: absolute; bottom: 2rem; right: 4rem; display: none;
  flex-direction: column; align-items: flex-end; gap: 0.25rem;
}
.hero__locale p {
  font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em; text-transform: uppercase;
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; align-items: center; gap: 2rem; }
}
@media (min-width: 768px) {
  .hero__content { padding: 0 5rem 7rem; }
  .hero__title { font-size: 4.5rem; }
  .hero__locale { display: flex; }
}
@media (min-width: 1024px) { .hero__title { font-size: 6.5rem; } }

/* ==========================================================================
   GENERIC SECTION HELPERS
   ========================================================================== */
.section { padding: 7rem 2rem; }
.section--secondary { background: var(--secondary); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent);
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem;
}
.h2 {
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15;
  font-weight: 400;
}
@media (min-width: 768px) {
  .section { padding: 10rem 5rem; }
  .h2 { font-size: 3rem; }
}

/* ==========================================================================
   VENUE
   ========================================================================== */
.venue__grid {
  display: grid; gap: 4rem; align-items: center; max-width: 80rem;
  margin: 0 auto;
}
.venue__eyebrow { margin-bottom: 2rem; }
.venue__title { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.2; margin-bottom: 2rem; font-weight: 400; }
.venue__text { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.venue__text:last-of-type { margin-bottom: 3rem; }
.venue__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.venue__stat-num { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 0.25rem; }
.venue__stat-label {
  font-family: var(--font-mono); font-size: 0.5625rem; color: var(--muted-foreground);
  letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.6;
}
.venue__media { position: relative; }
.venue__media-main { aspect-ratio: 3/4; background: var(--muted); overflow: hidden; }
.venue__media-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.venue__media-main img:hover { transform: scale(1.04); }
.venue__media-inset {
  position: absolute; bottom: -2.5rem; left: -2.5rem; width: 11rem; height: 11rem;
  background: var(--muted); overflow: hidden; border: 4px solid var(--background); display: none;
}
.venue__media-inset img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .venue__grid { grid-template-columns: 1fr 1fr; gap: 7rem; }
  .venue__title { font-size: 3rem; }
  .venue__media-inset { display: block; }
}

/* ==========================================================================
   SPACES (tabs)
   ========================================================================== */
.spaces { padding: 7rem 0; background: var(--secondary); }
.spaces__inner { max-width: 80rem; margin: 0 auto; padding: 0 2rem; }
.spaces__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3.5rem; }
.spaces__intro { color: var(--muted-foreground); font-size: 0.875rem; max-width: 20rem; line-height: 1.7; }
.spaces__tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; flex-wrap: wrap; }
.spaces__tab {
  padding-bottom: 1rem; font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.3s ease;
}
.spaces__tab:hover { color: var(--foreground); }
.spaces__tab.active { border-bottom-color: var(--foreground); color: var(--foreground); }
.spaces__panel { display: none; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.spaces__panel.active { display: grid; }
.spaces__panel-text { order: 2; }
.spaces__panel-title { font-family: var(--font-display); font-size: 1.875rem; font-style: italic; margin-bottom: 1.5rem; font-weight: 400; }
.spaces__panel-desc { color: var(--muted-foreground); line-height: 1.7; font-size: 0.9375rem; margin-bottom: 2rem; }
.spaces__panel-cap { font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
.spaces__panel-detail { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--muted-foreground); letter-spacing: 0.1em; }
.spaces__panel-media { order: 1; background: var(--muted); overflow: hidden; aspect-ratio: 16/9; }
.spaces__panel-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .spaces { padding: 10rem 0; }
  .spaces__inner { padding: 0 5rem; }
  .spaces__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .spaces__panel { grid-template-columns: 2fr 3fr; gap: 4rem; }
  .spaces__panel-text { order: 1; }
  .spaces__panel-media { order: 2; }
  .spaces__panel-title { font-size: 2.25rem; }
}

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.testimonial { position: relative; padding: 10rem 0; overflow: hidden; background: #1c1917; }
.testimonial__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.42; }
.testimonial__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent, rgba(0,0,0,0.2)); }
.testimonial__inner { position: relative; padding: 0 2rem; max-width: 56rem; margin: 0 auto; text-align: center; }
.testimonial__eyebrow { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.35); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 2.5rem; }
.testimonial__quote { font-family: var(--font-display); font-size: 1.875rem; color: #fff; line-height: 1.2; margin-bottom: 2.5rem; font-weight: 400; }
.testimonial__author { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.35); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 3rem; }
.testimonial__dots { display: flex; justify-content: center; gap: 0.75rem; }
.testimonial__dot { height: 1px; width: 1rem; background: rgba(255,255,255,0.3); transition: all 0.3s ease; }
.testimonial__dot.active { width: 2rem; background: #fff; }
@media (min-width: 768px) {
  .testimonial { padding: 15rem 0; }
  .testimonial__quote { font-size: 3rem; }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { padding: 7rem 2rem; }
.gallery__inner { max-width: 80rem; margin: 0 auto; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.gallery__note { display: none; font-family: var(--font-mono); font-size: 0.625rem; color: var(--muted-foreground); letter-spacing: 0.1em; text-transform: uppercase; }
/* Masonry: CSS columns, so every photo keeps its own height.
   One column on phones, two on tablets, three on desktop. */
.gallery__masonry { column-count: 1; column-gap: 0.75rem; }
.gallery__cell { display: block; width: 100%; padding: 0; position: relative; background: var(--muted); overflow: hidden; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 0.75rem; }
.gallery__cell img { width: 100%; height: auto; transition: transform 0.7s ease; }
.gallery__cell:hover img { transform: scale(1.03); }
.gallery__cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(24, 20, 15, 0.22); opacity: 0; transition: opacity 0.4s ease; }
.gallery__cell:hover .gallery__hover,
.gallery__cell:focus-visible .gallery__hover { opacity: 1; }
.gallery__hover span { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--primary-foreground); }

@media (min-width: 600px) {
  .gallery__masonry { column-count: 2; }
}

@media (min-width: 768px) {
  .gallery { padding: 10rem 5rem; }
  .gallery__note { display: block; }
}

@media (min-width: 1024px) {
  .gallery__masonry { column-count: 3; column-gap: 1rem; }
  .gallery__cell { margin-bottom: 1rem; }
}

/* ---------- Gallery lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(24, 20, 15, 0.94); }
.lightbox.open { display: flex; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5); }
.lightbox__caption { display: flex; align-items: center; gap: 1rem; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 300; color: rgba(245, 239, 230, 0.75); text-align: center; }
.lightbox__count { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.2em; opacity: 0.6; white-space: nowrap; }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-foreground); opacity: 0.65; transition: opacity 0.3s ease; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; font-size: 2rem; line-height: 1; color: var(--primary-foreground); opacity: 0.55; transition: opacity 0.3s ease; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 0.25rem; }
.lightbox__nav--next { right: 0.25rem; }

@media (min-width: 768px) {
  .lightbox { padding: 3rem 4.5rem; }
  .lightbox__close { top: 2rem; right: 2.5rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
}

/* ==========================================================================
   WHY / DETAILS
   ========================================================================== */
.why { padding: 7rem 2rem; background: var(--secondary); }
.why__inner { max-width: 80rem; margin: 0 auto; }
.why__title { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15; margin-bottom: 5rem; max-width: 32rem; font-weight: 400; }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.why__item { border-top: 1px solid var(--border); padding-top: 2rem; }
.why__num { font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 1rem; }
.why__item-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; font-weight: 400; }
.why__item-body { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.7; }
@media (min-width: 768px) {
  .why { padding: 10rem 5rem; }
  .why__title { font-size: 3rem; }
  .why__grid { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
}

/* ==========================================================================
   PACKAGES
   ========================================================================== */
.packages { padding: 7rem 2rem; background: var(--foreground); color: var(--primary-foreground); }
.packages__inner { max-width: 80rem; margin: 0 auto; }
.packages__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 5rem; }
.packages__title { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.15; max-width: 24rem; font-weight: 400; }
.packages__note { color: rgba(255,255,255,0.35); font-family: var(--font-mono); font-size: 0.75rem; max-width: 20rem; line-height: 1.6; }
.packages__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.package {
  padding: 2rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column;
}
.package.featured { border-color: var(--accent); background: rgba(168,125,68,0.07); }
.package__badge { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--accent); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 2rem; }
.package__badge--empty { margin-bottom: 2rem; height: 0.75rem; }
.package__name { font-family: var(--font-display); font-size: 1.875rem; margin-bottom: 0.5rem; font-weight: 400; }
.package__guests { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.3); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2rem; }
.package__price { font-family: var(--font-display); font-size: 3rem; margin-bottom: 0.25rem; }
.package__from { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.2); letter-spacing: 0.1em; margin-bottom: 2.5rem; }
.package__features { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.package__feature { display: flex; align-items: flex-start; gap: 0.75rem; }
.package__feature span:first-child { color: var(--accent); font-size: 0.75rem; margin-top: 0.125rem; line-height: 1; }
.package__feature span:last-child { color: rgba(255,255,255,0.6); font-size: 0.8125rem; line-height: 1.4; }
.package__cta {
  margin-top: 2.5rem; width: 100%; padding: 1rem; font-family: var(--font-mono);
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15); color: #fff; transition: all 0.3s ease;
}
.package__cta:hover { border-color: rgba(255,255,255,0.4); }
.package.featured .package__cta { background: var(--accent); color: #fff; border-color: var(--accent); }
.package.featured .package__cta:hover { background: rgba(168,125,68,0.8); }
.packages__footnote { color: rgba(255,255,255,0.15); font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.1em; margin-top: 2.5rem; text-align: center; }
@media (min-width: 768px) {
  .packages { padding: 10rem 5rem; }
  .packages__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .packages__title { font-size: 3rem; }
  .packages__grid { grid-template-columns: repeat(3, 1fr); }
  .package { padding: 2.5rem; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.contact__photo { position: relative; overflow: hidden; background: var(--muted); min-height: 55vh; }
.contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact__photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1), transparent); }
.contact__photo-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; }
.contact__eyebrow { font-family: var(--font-mono); font-size: 0.625rem; color: rgba(255,255,255,0.4); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
.contact__title { font-family: var(--font-display); font-size: 2.25rem; color: #fff; line-height: 1.15; margin-bottom: 1.25rem; font-weight: 400; }
.contact__lead { color: rgba(255,255,255,0.5); font-size: 0.8125rem; line-height: 1.7; max-width: 16.25rem; margin-bottom: 3rem; }
.contact__details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.contact__detail-label { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.25); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
.contact__detail-val { color: rgba(255,255,255,0.65); font-size: 0.8125rem; }
.contact__form-wrap { padding: 5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.contact__form { max-width: 28rem; width: 100%; display: flex; flex-direction: column; gap: 1.75rem; }
.contact__form-eyebrow { font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.3em; text-transform: uppercase; }
.contact__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.field label { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); display: block; margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--border); background: transparent;
  padding: 0.75rem 0; color: var(--foreground); font-family: var(--font-sans);
  font-size: 0.875rem; transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--foreground); }
.field textarea { resize: none; }
.contact__submit {
  margin-top: 0.5rem; width: 100%; background: var(--foreground); color: var(--primary-foreground);
  padding: 1.25rem; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  transition: background 0.3s ease;
}
.contact__submit:hover { background: var(--accent); }
.contact__form-note { font-family: var(--font-mono); font-size: 0.5625rem; color: var(--muted-foreground); letter-spacing: 0.1em; text-align: center; }
.contact__thanks { max-width: 28rem; }
.contact__thanks-eyebrow { font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.5rem; }
.contact__thanks h3 { font-family: var(--font-display); font-size: 2.25rem; margin-bottom: 1.25rem; font-weight: 400; }
.contact__thanks p { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.7; }
.contact__message { font-size: 0.875rem; margin-bottom: 1rem; }
.contact__message--error { color: var(--destructive, #c0392b); }
.contact__message--ok { color: var(--accent); }
@media (min-width: 768px) {
  .contact { grid-template-columns: 1fr 1fr; min-height: 100vh; }
  .contact__photo { min-height: 0; }
  .contact__photo-inner { padding: 4rem; }
  .contact__title { font-size: 3rem; }
  .contact__form-wrap { padding: 5rem 3.5rem; }
}
@media (min-width: 1024px) { .contact__form-wrap { padding: 5rem 5rem; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--foreground); color: var(--primary-foreground); padding: 3rem 2rem; }
.footer__inner { max-width: 80rem; margin: 0 auto; }
.footer__top {
  display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { font-family: var(--font-display); font-size: 1.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
.footer__tagline { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.2); letter-spacing: 0.25em; text-transform: uppercase; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer__nav a { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.3); letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s ease; }
.footer__nav a:hover { color: #fff; }
.footer__social { color: rgba(255,255,255,0.25); transition: color 0.3s ease; }
.footer__social:hover { color: #fff; }
.footer__bottom { display: flex; flex-direction: column; gap: 1rem; }
.footer__bottom p { font-family: var(--font-mono); font-size: 0.5625rem; color: rgba(255,255,255,0.15); letter-spacing: 0.1em; }
@media (min-width: 768px) {
  .footer { padding: 4rem 5rem; }
  .footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
