/* ==========================================================================
   Lumiie Marketing Agency — Design System
   Georgia (display) + Lora (body, nav, buttons)
   ========================================================================== */

:root {
  --color-terracotta: #B96F4E;
  --color-clay: #A65D40;
  --color-ivory: #F3EEE5;
  --color-text-on-terracotta: #F4EEE3;
  --color-text-dark: #241B17;
  --color-nav-text: #EDE5D8;
  --color-button: #8F4F38;
  --color-button-text: #F7F0E6;
  --color-overlay: #17130F;
  --color-border: #D8CFC2;
  --color-sand: #D7C2AD;
  --color-espresso-dark: #1B1512;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: 'Lora', Georgia, serif;

  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 26px;

  --max-text: 62ch;
  --max-wide: 1240px;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

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

:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.text-col {
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: inline-block;
  margin-bottom: var(--space-s);
}
.on-terracotta .eyebrow,
.on-dark .eyebrow { color: var(--color-sand); }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto var(--space-l);
}
.section-head p {
  margin-top: var(--space-s);
  font-size: 1.08rem;
  color: var(--color-text-dark);
  opacity: 0.85;
}
.on-terracotta, .on-dark { color: var(--color-text-on-terracotta); }
.on-terracotta p, .on-dark p { color: var(--color-text-on-terracotta); opacity: 0.9; }

/* ---------- Sections ---------- */
.section {
  padding: var(--space-xxl) 0;
}
.section--tight { padding: var(--space-xl) 0; }
.bg-ivory { background: var(--color-ivory); }
.bg-terracotta { background: var(--color-terracotta); }
.bg-clay { background: var(--color-clay); }
.bg-espresso { background: var(--color-espresso-dark); }
.bg-sand { background: var(--color-sand); }

.hairline {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  color: var(--color-button-text);
  background-color: var(--color-button);
  background-image: url('../assets/img/tile-texture-button.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px -12px rgba(23, 19, 15, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(23, 19, 15, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: currentColor;
}
.btn-outline:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}
.btn-secondary-solid {
  background-color: var(--color-clay);
  color: var(--color-text-on-terracotta);
  box-shadow: 0 10px 24px -14px rgba(23, 19, 15, 0.5);
}
.btn-secondary-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(23, 19, 15, 0.55);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.center { justify-content: center; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}
.site-header.is-scrolled {
  background: var(--color-ivory);
  box-shadow: 0 6px 20px -14px rgba(23, 19, 15, 0.3);
  padding: 0.7rem 0;
}
.logo { display: block; }
.logo img { height: 34px; width: auto; display: block; }
.logo .logo-dark { display: none; }
.site-header.is-scrolled .logo .logo-light { display: none; }
.site-header.is-scrolled .logo .logo-dark { display: block; }

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}
.nav-desktop a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-nav-text);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.site-header.is-scrolled .nav-desktop a { color: var(--color-text-dark); }
.nav-desktop a[aria-current="page"] {
  border-bottom-color: var(--color-terracotta);
  color: var(--color-terracotta) !important;
}
.nav-desktop a:hover { color: var(--color-terracotta) !important; }

.header-cta { display: none; }

.hamburger {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 210;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-nav-text);
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .hamburger span,
.site-header.is-scrolled .hamburger span::before,
.site-header.is-scrolled .hamburger span::after {
  background: var(--color-text-dark);
}
.hamburger span::before { position: absolute; top: -7px; }
.hamburger span::after { position: absolute; top: 7px; }
.mobile-menu.is-open ~ .site-header .hamburger span,
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { background: var(--color-nav-text); transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span::after { background: var(--color-nav-text); transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu backdrop ---------- */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 15, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body.menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Mobile menu (contained editorial panel) ---------- */
.mobile-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 86%;
  max-width: 24rem;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 28px;
  background: var(--color-text-dark);
  box-shadow: 0 40px 70px -24px rgba(23, 19, 15, 0.55);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.9rem;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
  pointer-events: none;
}
body.menu-open .mobile-menu { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}
.mobile-menu-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-nav-text);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--color-nav-text);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu-links a {
  font-family: var(--font-body);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-nav-text);
}
.mobile-menu-links a[aria-current="page"] { color: var(--color-terracotta); }
.mobile-menu .btn { margin-top: 2.5rem; width: 100%; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .hamburger { display: none; }
}

/* ==========================================================================
   Hero — Home (video)
   ========================================================================== */
.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-text-on-terracotta);
}
.hero-video video,
.hero-video .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,0.55) 0%, rgba(23,19,15,0.38) 45%, rgba(23,19,15,0.62) 100%);
  z-index: 1;
}
.hero-video .container {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
.hero-video-inner { max-width: 40rem; }
.hero-video h1 { margin-bottom: var(--space-m); }
.hero-video .lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: var(--space-m);
  color: var(--color-text-on-terracotta);
  opacity: 0.94;
}

/* ---------- Slim inner hero (tile texture) ---------- */
.hero-slim {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-text-on-terracotta);
  background-image: url('../assets/img/tile-texture-wide.webp');
  background-size: cover;
  background-position: center;
}
.hero-slim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.46);
}
.hero-slim .container {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 3rem;
  text-align: center;
}
.hero-slim .lede {
  max-width: 34rem;
  margin: 0.6rem auto 0;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* ==========================================================================
   Reveal on scroll (single orchestrated pattern)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   What We Do — service grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: var(--space-l);
}
.service-card {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 1.9rem 1.7rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  display: block;
}
.service-card:hover {
  box-shadow: 0 20px 40px -26px rgba(36, 27, 23, 0.35);
  transform: translateY(-3px);
  background: var(--color-ivory);
}
.service-card h3 { margin-bottom: 0.6rem; color: var(--color-text-dark); }
.service-card p { margin: 0; opacity: 0.82; }

@media (min-width: 700px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(5, 1fr); }
  .service-card { padding: 1.6rem 1.3rem; }
}

/* ==========================================================================
   Founder section
   ========================================================================== */
.founder {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
.founder-portrait {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--color-border);
  max-width: 26rem;
  margin: 0 auto;
}
.founder-copy p { margin: 0 0 1.1rem; text-align: justify; }
.founder-copy .name-line {
  margin-bottom: 1.4rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  text-align: left;
}
.founder-copy .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.founder-copy .intro-line {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.3rem;
  color: var(--color-text-dark);
  text-align: justify;
}

@media (min-width: 860px) {
  .founder { grid-template-columns: 0.85fr 1.15fr; }
}

/* ==========================================================================
   CAC credibility section (Homepage, after About, before Footer)
   ========================================================================== */
.cac-block {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
.cac-cert-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 0.9rem;
  background: var(--color-ivory);
  max-width: 26rem;
  margin: 0 auto;
}
.cac-cert-frame img { border-radius: var(--radius-m); }
.cac-copy { text-align: center; }
.cac-copy .eyebrow { margin-bottom: 0.5rem; }
.cac-copy p {
  margin: 0 auto;
  max-width: 30rem;
  font-size: 1.1rem;
  line-height: 1.65;
}
@media (min-width: 860px) {
  .cac-block { grid-template-columns: 0.9fr 1fr; align-items: center; text-align: left; }
  .cac-copy { text-align: left; }
  .cac-copy p { margin: 0; max-width: 30rem; }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing-cta {
  text-align: center;
}
.closing-cta h2 { margin-bottom: 0.8rem; }
.closing-cta p { max-width: 32rem; margin: 0 auto var(--space-m); }

/* ==========================================================================
   Portfolio Preview (Homepage)
   ========================================================================== */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: var(--space-l);
}
.preview-foot {
  text-align: center;
  margin-top: var(--space-l);
}
@media (min-width: 700px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Services jump dropdown (Portfolio page) ---------- */
.services-jump {
  max-width: 26rem;
  margin: 0 auto;
  text-align: left;
}
.services-jump-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--color-terracotta);
}
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--color-sand);
  background: var(--color-ivory);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: left;
}
.custom-select-trigger:hover,
.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--color-button);
}
.custom-select-trigger:focus-visible {
  outline: 2px solid var(--color-button);
  outline-offset: 2px;
}
.custom-select-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-button);
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s ease;
}
.custom-select-trigger[aria-expanded="true"] .custom-select-arrow { transform: rotate(180deg); }
.custom-select-list {
  position: static;
  margin-top: 0.6rem;
  background: var(--color-ivory);
  border: 1px solid var(--color-sand);
  border-radius: 16px;
  box-shadow: 0 20px 36px -18px rgba(23, 19, 15, 0.35);
  overflow: hidden;
}
.custom-select-list li {
  padding: 0.85rem 1.2rem;
  font-size: 0.96rem;
  color: var(--color-text-dark);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}
.custom-select-list li:last-child { border-bottom: none; }
.custom-select-list li:hover,
.custom-select-list li:focus-visible {
  background: var(--color-sand);
}

/* ==========================================================================
   Portfolio grids
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: var(--space-l);
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-terracotta);
  color: var(--color-text-on-terracotta);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-height: 190px;
}
.portfolio-card:hover {
  box-shadow: 0 22px 40px -24px rgba(36, 27, 23, 0.45);
  transform: translateY(-4px);
}
.portfolio-card-face {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(155deg, var(--color-terracotta), var(--color-clay) 70%);
  text-align: center;
}
.portfolio-card-face .client-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.portfolio-card-meta {
  background: var(--color-ivory);
  color: var(--color-text-dark);
  padding: 1.1rem 1.4rem;
}
.portfolio-card-meta .tag {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}
.portfolio-card-meta .visit {
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.funnel-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-clay);
  color: var(--color-text-on-terracotta);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.funnel-card:hover {
  box-shadow: 0 20px 40px -26px rgba(36, 27, 23, 0.4);
  transform: translateY(-3px);
}
.funnel-card-face {
  padding: 1.9rem 1.5rem 1.5rem;
  background: linear-gradient(155deg, var(--color-clay), var(--color-espresso-dark) 130%);
}
.funnel-card--email .funnel-card-face {
  background: linear-gradient(155deg, var(--color-button), var(--color-clay) 130%);
}
.funnel-card-face h3 { font-size: 1.25rem; }
.funnel-card-meta {
  background: var(--color-ivory);
  color: var(--color-text-dark);
  padding: 1.1rem 1.4rem;
}
.funnel-card .funnel-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.funnel-card .funnel-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
}

@media (min-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .portfolio-grid--sites { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid--funnels { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Proven Results
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-top: var(--space-l);
}
.result-card {
  background: rgba(23, 19, 15, 0.16);
  border: 1px solid rgba(244, 238, 227, 0.3);
  border-radius: var(--radius-m);
  padding: 1.8rem;
}
.result-stat {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text-on-terracotta);
  margin-bottom: 1.1rem;
}
.result-shot {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid rgba(244, 238, 227, 0.35);
  background: var(--color-ivory);
  aspect-ratio: 8 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.08);
  pointer-events: none;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: var(--space-l);
}
.testimonial-card {
  position: relative;
  border-radius: 16px;
  padding: 2.1rem 1.9rem 1.9rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--color-border);
  color: var(--color-text-on-terracotta);
}
.testimonial-card:hover {
  box-shadow: 0 16px 32px -22px rgba(23, 19, 15, 0.4);
  transform: translateY(-3px);
}
.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-text-on-terracotta);
  opacity: 0.7;
}
.testimonial-card--t1 { background: var(--color-terracotta); }
.testimonial-card--t2 { background: var(--color-clay); }
.testimonial-card--t3 { background: var(--color-button); }
.testimonial-card--t4 { background: var(--color-terracotta); }
.testimonial-card p.quote {
  margin: 0 0 1.2rem;
  font-size: 1.03rem;
}
.testimonial-card .attribution {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (min-width: 760px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: var(--space-l);
}
.contact-details {
  margin-top: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.social-row {
  display: flex;
  gap: 0.8rem;
  margin-top: var(--space-m);
}
.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.social-icon:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.contact-form-card {
  background: linear-gradient(155deg, var(--color-sand) 0%, var(--color-sand) 55%, var(--color-clay) 145%);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 2.2rem clamp(1.5rem, 4vw, 2.6rem);
}
.contact-form-card h3, .contact-form-card .eyebrow { color: var(--color-text-dark); }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  opacity: 0.75;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(243, 238, 229, 0.65);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F4F38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.6rem;
  border-color: var(--color-sand);
  cursor: pointer;
}
.field select option {
  background: var(--color-ivory);
  color: var(--color-text-dark);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-button);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  margin-top: 0.9rem;
  opacity: 0.75;
}
.form-success {
  display: none;
  background: var(--color-ivory);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }
.field-error {
  color: var(--color-clay);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-clay); }
.field.has-error .field-error { display: block; }

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-text-dark);
  color: var(--color-nav-text);
}
.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding: var(--space-xl) 0 var(--space-l);
}
.footer-brand img { height: 30px; margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; opacity: 0.8; font-size: 0.95rem; margin: 0 0 1rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { opacity: 0.9; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-talk p { margin: 0 0 1rem; opacity: 0.85; font-size: 0.95rem; }
.footer-talk .btn { padding-left: 2.9rem; padding-right: 2.9rem; }
.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.75;
  border: 1px solid rgba(237, 229, 216, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(237, 229, 216, 0.18);
  padding: 1.4rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.75;
}
@media (min-width: 700px) {
  .footer-columns { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
