@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(235, 228, 216, 0.55) 0%, transparent 28%),
    radial-gradient(900px 420px at 100% 0%, rgba(200, 217, 206, 0.45), transparent 70%);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: var(--radius);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 242, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand em {
  font-style: normal;
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

/* Hero */
.hero {
  padding: 3.25rem 0 2rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  margin: 0 0 1rem;
  animation: rise 0.8s ease-out both;
}

.lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
  animation: rise 0.85s ease-out 0.08s both;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  animation: rise 0.9s ease-out 0.12s both;
}

.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  animation: rise 0.95s ease-out 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(143, 79, 36, 0.28);
}

.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(28, 38, 32, 0.04);
}

.btn--xl {
  font-size: 1.22rem;
  padding: 1.15rem 1.85rem;
  min-width: 288px;
  text-align: center;
}

.btn--lg {
  font-size: 1.12rem;
  padding: 0.95rem 1.45rem;
  min-width: 220px;
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(28, 38, 32, 0.1);
}

.panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.panel p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.strip {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem;
  margin: 2rem 0;
}

.strip p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.step {
  margin: 0;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step dt {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.step dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.image-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.image-grid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-grid figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Page shell (legal, contact) */
.page-head {
  padding: 2.5rem 0 1rem;
}

.page-head h1 {
  margin: 0 0 0.5rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  margin-top: 1.25rem;
  border: none;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: var(--ink);
  color: #dfe6e2;
  border-top: 4px solid var(--brand);
}

.site-footer a {
  color: #e8c4a8;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.5rem;
  min-height: 56px;
  min-width: 11.5rem;
  border-radius: 999px;
  color: #fff !important;
  background: var(--brand);
  border: 3px solid #d4a574;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(143, 79, 36, 0.45);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.footer-legal a:hover {
  background: #a85e2c;
  color: #fff !important;
  border-color: #f0c896;
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.18),
    0 12px 28px rgba(143, 79, 36, 0.5);
}

.footer-legal a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  border-top: 3px solid var(--brand);
  padding: 1.25rem 0 1.35rem;
  box-shadow: 0 -16px 44px rgba(28, 38, 32, 0.18);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: grid;
  gap: 0.9rem;
}

.cookie-banner__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.cookie-banner__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 85ch;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: stretch;
}

.cookie-banner__actions .btn {
  font-size: 1.08rem;
  font-weight: 800;
  padding: 1rem 1.55rem;
  min-height: 56px;
  min-width: min(100%, 11rem);
  flex: 1 1 auto;
}

.cookie-banner__actions .btn--primary {
  box-shadow: 0 6px 22px rgba(143, 79, 36, 0.35);
}

.cookie-banner .btn--ghost {
  border-width: 3px;
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 800;
}

.cookie-banner .btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}

@media (min-width: 640px) {
  .cookie-banner__actions .btn {
    flex: 0 1 auto;
    min-width: 12.5rem;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(28, 38, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal__box {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.cookie-modal__box .cookie-banner__actions {
  margin-top: 0.5rem;
}

.cookie-modal__box .cookie-banner__actions .btn {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.92rem 1.35rem;
  min-height: 52px;
  min-width: 10rem;
  flex: 1 1 auto;
}

.cookie-modal__box label {
  display: flex;
  gap: 0.55rem;
  margin: 0.65rem 0;
  color: var(--muted);
  align-items: flex-start;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1,
  .lead,
  .cta-row,
  .hero__figure,
  .panel {
    animation: none !important;
    transition: none !important;
  }

  .panel:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.65rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    min-width: 200px;
  }

  .nav.open {
    display: flex;
  }
}
