/* ============================================
   Kyrosh Design — Stylesheet
   ============================================ */

:root {
  --color-bg: #FAF7F2;
  --color-bg-warm: #F4EDE2;
  --color-navy: #1A2B3D;
  --color-navy-deep: #0F1B2A;
  --color-terracotta: #B47B5A;
  --color-terracotta-light: #C99B7E;
  --color-blush: #E5C7B5;
  --color-text: #2C2826;
  --color-text-soft: #6B6360;
  --color-line: #E2D9CC;
  --color-white: #FFFFFF;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Allura', 'Pinyon Script', cursive;

  --max-width: 1320px;
  --gutter: 2rem;

  --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

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

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-terracotta);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.script-accent {
  font-family: var(--font-script);
  font-size: 1.4em;
  font-weight: 400;
  color: var(--color-terracotta);
  font-style: normal;
  line-height: 1;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.75vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-soft);
  font-style: italic;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
}

.divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-terracotta);
  margin: 2rem auto;
  border: none;
}

.divider.left {
  margin-left: 0;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: block;
  height: 80px;
  transition: height var(--transition);
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-terracotta);
}

.nav.scrolled {
  background-color: rgba(250, 247, 242, 0.97);
  padding: 0.85rem 0;
  box-shadow: 0 1px 30px rgba(26, 43, 61, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav.scrolled .nav-logo {
  height: 56px;
}

/* Hero overlay nav (for transparent nav on hero pages) */
.nav.over-hero:not(.scrolled) .nav-links a {
  color: var(--color-white);
}

.nav.over-hero:not(.scrolled) .nav-links a:hover,
.nav.over-hero:not(.scrolled) .nav-links a.active {
  color: var(--color-blush);
}

.nav.over-hero:not(.scrolled) .nav-links a::after {
  background-color: var(--color-blush);
}

.nav.over-hero:not(.scrolled) .nav-toggle span {
  background-color: var(--color-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background-color: var(--color-text);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background-color: var(--color-text);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--color-text) !important;
  }

  .nav.over-hero:not(.scrolled) .nav-links a {
    color: var(--color-text);
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background-color: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn-primary {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-light {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-light:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  border-bottom: 1px solid var(--color-terracotta);
  padding-bottom: 0.25rem;
  transition: gap var(--transition);
}

.btn-text:hover {
  gap: 0.85rem;
}

.btn-text::after {
  content: '→';
  font-size: 1rem;
  transition: transform var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 140px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-zoom 12s ease-out infinite alternate;
}

.hero-slide.active img {
  animation: hero-zoom 12s ease-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 27, 42, 0.45) 0%,
    rgba(15, 27, 42, 0.35) 50%,
    rgba(15, 27, 42, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--gutter);
}

.hero-content .eyebrow {
  color: var(--color-blush);
}

.hero-content h1 {
  color: var(--color-white);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.7;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-white);
  margin: 1rem auto 0;
  animation: scroll-pulse 2.4s infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* Page hero (smaller, for inner pages) */

.page-hero {
  background-color: var(--color-bg-warm);
  padding: 11rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* ============================================
   Intro / Story sections
   ============================================ */

.intro {
  text-align: center;
}

.intro .container-narrow {
  max-width: 800px;
}

.intro h2 {
  margin-bottom: 2rem;
}

.intro p {
  font-size: 1.075rem;
  color: var(--color-text-soft);
}

/* Two-col split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 1fr;
}

.split.reverse > :first-child {
  order: 2;
}

.split-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait variant — for tall images that shouldn't be cropped (e.g. founder portrait) */
.split-image.portrait {
  aspect-ratio: auto;
  overflow: visible;
}

.split-image.portrait img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.split-content h2 {
  margin-bottom: 1.5rem;
}

.split-content p {
  color: var(--color-text-soft);
}

@media (max-width: 768px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }
}

/* ============================================
   Services
   ============================================ */

.services-bg {
  background-color: var(--color-bg-warm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.service-card {
  background-color: var(--color-white);
  padding: 3rem 2.5rem;
  border: 1px solid var(--color-line);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 43, 61, 0.08);
}

.service-card .service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-terracotta);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex: 1;
}

.service-card .btn-text {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Service feature sections — editorial McGee-inspired layout */

.service-feature {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.service-feature.warm {
  background-color: var(--color-bg-warm);
}

.service-feature .split-image {
  aspect-ratio: 4/3;
}

.service-feature .service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-terracotta);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  display: block;
}

.service-feature h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.service-feature .lead {
  font-style: normal;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--color-text);
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

.service-highlights {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--color-line);
  counter-reset: highlight;
}

.service-highlights li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: color var(--transition);
}

.service-highlights li::before {
  content: counter(highlight, decimal-leading-zero);
  counter-increment: highlight;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-terracotta);
  flex-shrink: 0;
  min-width: 22px;
  letter-spacing: 0.05em;
}

.service-feature .travel-note {
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-soft);
}

/* Legacy detailed services layout — kept for compatibility */

.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-line);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.service-detail-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0;
  position: sticky;
  top: 120px;
  align-self: start;
}

.service-detail-content h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-terracotta);
  margin: 2rem 0 1rem;
}

.service-detail-content h4:first-child {
  margin-top: 0;
}

.service-detail-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-detail-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-soft);
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 1px;
  background-color: var(--color-terracotta);
}

.service-detail-content .pricing-note {
  background-color: var(--color-bg-warm);
  padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--color-terracotta);
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-top: 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-grid h2 {
    position: static;
  }
}

/* ============================================
   Independent / Quote section
   ============================================ */

.quote-section {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section .eyebrow {
  color: var(--color-blush);
}

.quote-section h2 {
  color: var(--color-white);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  max-width: 880px;
  margin: 0 auto 2rem;
}

.quote-section .attribution {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-blush);
  font-family: var(--font-sans);
  font-style: normal;
}

.quote-section .quote-body {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 740px;
  margin: 0 auto 1.5rem;
}

.quote-section .quote-body + .attribution {
  margin-top: 1.5rem;
}

/* ============================================
   Expectations / Values list
   ============================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-top: 3rem;
}

.value-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-terracotta);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.value-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-text p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   Portfolio / Gallery
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.gallery-item.large {
  grid-column: span 8;
  aspect-ratio: 16/10;
}

.gallery-item.medium {
  grid-column: span 4;
  aspect-ratio: 4/5;
}

.gallery-item.wide {
  grid-column: span 6;
  aspect-ratio: 5/4;
}

.gallery-item.tall {
  grid-column: span 4;
  aspect-ratio: 3/4;
}

.gallery-item.full {
  grid-column: span 12;
  aspect-ratio: 21/9;
}

/* Uniform 3-column gallery (portfolio page) */
.gallery-uniform {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-uniform .gallery-item {
  grid-column: auto;
  aspect-ratio: 4/3;
}

@media (max-width: 960px) {
  .gallery-uniform {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-uniform {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.wide,
  .gallery-item.tall,
  .gallery-item.full {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

/* ============================================
   Featured imagery (home)
   ============================================ */

.featured-imagery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.featured-imagery .img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.featured-imagery .img-wrap.tall {
  aspect-ratio: 3/4;
}

.featured-imagery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-imagery .img-wrap:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .featured-imagery {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  background-color: var(--color-bg-warm);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

.cta-section .lead {
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--color-text-soft);
  margin-bottom: 2.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-terracotta);
  margin-bottom: 0.5rem;
}

.contact-detail a {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  color: var(--color-text);
}

.contact-detail a:hover {
  color: var(--color-terracotta);
}

/* Form */

.form {
  display: grid;
  gap: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text);
  margin-bottom: 0.65rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 0.75rem 0;
  transition: border-color var(--transition);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-terracotta);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-sans);
}

.form-field select {
  appearance: none;
  cursor: pointer;
  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 fill='%23B47B5A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.form-field .hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.05em;
  color: var(--color-text-soft);
  font-size: 0.7rem;
  margin-left: 0.4rem;
  font-style: italic;
}

.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  padding-top: 0.25rem;
}

@media (max-width: 600px) {
  .checkbox-group,
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.checkbox-label:hover,
.radio-label:hover {
  color: var(--color-terracotta);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--color-line);
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), background-color var(--transition);
}

.radio-label input[type="radio"] {
  border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked,
.radio-label input[type="radio"]:checked {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.radio-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background-color: white;
  border-radius: 50%;
}

.checkbox-label input:focus-visible,
.radio-label input:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

.field-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.form-message {
  display: none;
  padding: 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background-color: var(--color-bg-warm);
  border-left: 2px solid var(--color-terracotta);
  color: var(--color-text);
}

.form-message.error {
  display: block;
  background-color: #fbe8e6;
  border-left: 2px solid #b94a3a;
  color: #872d20;
}

@media (max-width: 768px) {
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-script {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--color-blush);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-brand .footer-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-blush);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.85rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--color-blush);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   Reveal animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
