:root {
  --ink: #172033;
  --ink-soft: rgba(23, 32, 51, 0.74);
  --paper: rgba(255, 252, 247, 0.9);
  --paper-strong: rgba(255, 252, 247, 0.96);
  --line: rgba(255, 255, 255, 0.62);
  --navy: #182844;
  --coral: #c96858;
  --gold: #e3b45f;
  --sage: #7aa18d;
  --shadow: 0 24px 70px rgba(7, 18, 38, 0.24);
  --shadow-soft: 0 14px 42px rgba(7, 18, 38, 0.15);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: #182844;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(12, 24, 48, 0.2), rgba(12, 24, 48, 0.52)),
    url("public/assets/marketing/dream-clouds-bg.png") center/cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.82), rgba(255, 252, 247, 0.42) 54%, rgba(23, 32, 51, 0.2)),
    linear-gradient(180deg, rgba(255, 252, 247, 0.2), rgba(255, 252, 247, 0.56));
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 6.3rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.15rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  scroll-margin-top: 1rem;
}

.landing-section {
  padding: max(3rem, env(safe-area-inset-top)) 0 5rem;
  min-height: 100vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(18rem, 1.04fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-text,
.contact-copy p,
.slide-card p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf2;
  background: linear-gradient(135deg, var(--navy), #263d62);
  box-shadow: 0 18px 42px rgba(24, 40, 68, 0.25);
}

.slide-card,
.contact-form,
.contact-copy,
.site-footer {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-visual {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: clamp(24rem, 46vw, 38rem);
}

.hero-visual img {
  width: min(100%, 42rem);
  max-height: min(72vh, 46rem);
  object-fit: contain;
  filter: drop-shadow(0 34px 42px rgba(7, 18, 38, 0.28));
}

.hero-visual .hero-logo {
  width: min(68vw, 20rem);
  border-radius: 3.6rem;
  filter: drop-shadow(0 32px 48px rgba(7, 18, 38, 0.3));
}

.story-slider {
  width: min(100%, 34rem);
}

.hero-slider {
  margin-top: clamp(0.5rem, 2vw, 1.2rem);
}

.feature-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.slide-card {
  min-height: 16.5rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border-radius: 8px;
}

.feature-icon {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid rgba(24, 40, 68, 0.1);
  border-radius: 999px;
  color: var(--coral);
  background: rgba(255, 252, 247, 0.72);
  box-shadow: 0 12px 24px rgba(7, 18, 38, 0.1);
}

.slide-card h3 {
  margin: 0.6rem 0 0.75rem;
}

.slider-dots {
  display: none;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.is-enhanced .slider-dots {
  display: flex;
}

.is-enhanced .slider-viewport {
  overflow: hidden;
}

.is-enhanced .slide-track {
  display: flex;
  gap: 0;
  transition: transform 420ms ease;
  will-change: transform;
}

.is-enhanced .slide-card {
  flex: 0 0 100%;
  min-height: 15.5rem;
}

.slider-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(24, 40, 68, 0.3);
}

.slider-dot[aria-current="true"] {
  width: 1.75rem;
  background: var(--coral);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding: 5rem 0;
}

.contact-copy,
.contact-form {
  border-radius: 8px;
}

.contact-copy {
  display: grid;
  gap: 1.15rem;
  overflow: hidden;
  padding: 0;
}

.contact-copy > div {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.contact-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(0.75rem, 2vw, 1.1rem);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 252, 247, 0.48);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  font-size: 0.9rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(24, 40, 68, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  outline: none;
}

input {
  min-height: 3.2rem;
  padding: 0 0.9rem;
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
  padding: 0.85rem 0.9rem;
  line-height: 1.55;
}

input:focus,
textarea:focus {
  border-color: rgba(201, 104, 88, 0.8);
  box-shadow: 0 0 0 4px rgba(201, 104, 88, 0.14);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a83f35;
}

.field-error {
  min-height: 1.05rem;
  color: #8d342d;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-confirmation {
  min-height: 1.35rem;
  color: #315f4a;
  font-weight: 800;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  font-weight: 800;
}

.legal-page {
  padding: max(3rem, env(safe-area-inset-top)) 0 4rem;
  min-height: 100vh;
}

.legal-document {
  width: min(calc(100% - 2rem), 820px);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.legal-document h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.legal-document h2 {
  margin: 2rem 0 0.55rem;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.legal-notice {
  margin-bottom: 1.3rem;
  padding: 1rem;
  border-left: 4px solid var(--coral);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 750;
}

.enhanced-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.enhanced-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .story-slider {
    width: min(100%, 40rem);
  }

  .hero-visual img {
    max-height: 40rem;
  }

}

@media (max-width: 720px) {

  body::after {
    background:
      linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(255, 252, 247, 0.64)),
      rgba(255, 252, 247, 0.12);
  }

  .section,
  .site-footer {
    width: min(calc(100% - 1rem), var(--container));
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 3.5rem 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .enhanced-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
