@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --color-ivory: #f7f2e8;
  --color-cream: #f0e8d8;
  --color-oat: #e6dcc8;
  --color-stone: #d9cfc0;
  --color-beige: #cbb9a0;
  --color-terracotta: #b56a4a;
  --color-terracotta-deep: #9a5238;
  --color-toasted: #6e4a33;
  --color-cocoa: #3d2a1f;
  --color-charcoal: #241c17;
  --color-sage: #5f6f5a;
  --color-sage-deep: #3f4d3b;
  --color-wood: #8a6a4a;
  --color-white: #fffdf8;
  --color-error: #8c2f2f;
  --color-success: #3f4d3b;
  --color-focus: #9a5238;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 18px 40px rgba(36, 28, 23, 0.08);
  --radius-sm: 4px;
  --radius-md: 12px;
  --header-height: 78px;
  --container: min(1180px, calc(100% - 2.5rem));
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  background:
    radial-gradient(circle at 12% 18%, rgba(181, 106, 74, 0.08), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(95, 111, 90, 0.08), transparent 28%),
    linear-gradient(180deg, var(--color-ivory) 0%, var(--color-cream) 48%, var(--color-oat) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.page--locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

html.page--locked {
  overflow: hidden;
}

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

a {
  color: var(--color-terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-cocoa);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-cocoa);
  margin: 0 0 0.75rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.page {
  padding-top: var(--header-height);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.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;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(247, 242, 232, 0.97);
  border-bottom: 1px solid rgba(110, 74, 51, 0.12);
}

.header__inner {
  width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-cocoa);
  min-width: 0;
}

.header__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.header__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.35rem 0.15rem;
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-terracotta-deep);
  border-bottom-color: var(--color-terracotta);
}

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(61, 42, 31, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-cocoa);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-cocoa);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 28, 23, 0.78) 0%, rgba(36, 28, 23, 0.42) 48%, rgba(36, 28, 23, 0.2) 100%),
    linear-gradient(180deg, rgba(36, 28, 23, 0.15) 0%, rgba(36, 28, 23, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  max-width: 720px;
  margin-left: max(calc((100% - min(1180px, calc(100% - 2.5rem))) / 2), 1.25rem);
  margin-right: auto;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-oat);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  max-width: 12ch;
}

.hero__text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 253, 248, 0.92);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.button:active {
  transform: translateY(1px);
}

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

.button--primary:hover {
  background: var(--color-terracotta-deep);
  color: var(--color-white);
}

.button--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 253, 248, 0.55);
}

.button--ghost:hover {
  background: rgba(255, 253, 248, 0.12);
  color: var(--color-white);
}

.button--solid {
  background: var(--color-cocoa);
  color: var(--color-ivory);
}

.button--solid:hover {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}

.button--outline {
  background: transparent;
  color: var(--color-cocoa);
  border-color: rgba(61, 42, 31, 0.28);
}

.button--outline:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta-deep);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--contrast {
  background: var(--color-cocoa);
  color: var(--color-cream);
}

.section--contrast h2,
.section--contrast h3 {
  color: var(--color-ivory);
}

.section--muted {
  background: rgba(255, 253, 248, 0.55);
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--color-sage-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section--contrast .section__eyebrow {
  color: var(--color-beige);
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section__lead {
  max-width: 54ch;
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.section__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.section__grid--split {
  grid-template-columns: 1.05fr 0.95fr;
}

.section__grid--reverse .section__media {
  order: 2;
}

.section__grid--reverse .section__copy {
  order: 1;
}

.section__media {
  position: relative;
  min-width: 0;
}

.section__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.section__image--tall {
  aspect-ratio: 3 / 4;
}

.section__image--wide {
  aspect-ratio: 16 / 10;
}

.section__frame {
  position: relative;
}

.section__frame::after {
  content: "";
  position: absolute;
  inset: 1rem -0.85rem -0.85rem 1rem;
  border: 1px solid rgba(110, 74, 51, 0.22);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: -1;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-row--stack {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.feature {
  padding: 1.4rem 1.25rem;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(110, 74, 51, 0.1);
  border-radius: var(--radius-md);
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.feature__title {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.feature__text {
  margin: 0;
  color: rgba(36, 28, 23, 0.84);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.mosaic__item {
  min-width: 0;
}

.mosaic__item--stack {
  display: grid;
  gap: 1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: bake-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps__item {
  counter-increment: bake-step;
  padding: 1.35rem 1.2rem 1.2rem;
  background: rgba(247, 242, 232, 0.08);
  border: 1px solid rgba(240, 232, 216, 0.18);
  border-radius: var(--radius-md);
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.steps__item::before {
  content: counter(bake-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-beige);
}

.steps__title {
  font-size: 1.25rem;
  color: var(--color-ivory);
  margin-bottom: 0.45rem;
}

.steps__text {
  margin: 0;
  color: rgba(240, 232, 216, 0.88);
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero__title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  max-width: 14ch;
}

.page-hero__text {
  max-width: 56ch;
  font-size: 1.1rem;
}

.legal {
  max-width: 720px;
}

.legal h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: rgba(36, 28, 23, 0.9);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  padding: 1.6rem 1.4rem;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(110, 74, 51, 0.12);
  border-radius: var(--radius-md);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card__item {
  margin-bottom: 1rem;
}

.contact-card__item:last-child {
  margin-bottom: 0;
}

.contact-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-deep);
  margin-bottom: 0.25rem;
}

.form {
  padding: 1.6rem 1.4rem;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(110, 74, 51, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form__group {
  margin-bottom: 1.1rem;
}

.form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__input,
.form__textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(61, 42, 31, 0.22);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-charcoal);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__input:hover,
.form__textarea:hover {
  border-color: rgba(61, 42, 31, 0.4);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(181, 106, 74, 0.18);
  outline: none;
}

.form__input--error,
.form__textarea--error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(140, 47, 47, 0.12);
}

.form__input--success,
.form__textarea--success {
  border-color: var(--color-success);
}

.form__error {
  display: none;
  margin-top: 0.4rem;
  color: var(--color-error);
  font-size: 0.9rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form__error--visible {
  display: block;
}

.form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(36, 28, 23, 0.7);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background:
    linear-gradient(135deg, rgba(61, 42, 31, 0.96), rgba(110, 74, 51, 0.92)),
    var(--color-cocoa);
  color: var(--color-cream);
  border-radius: calc(var(--radius-md) + 4px);
}

.cta__title {
  color: var(--color-ivory);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 14ch;
}

.cta__text {
  margin-bottom: 0;
  max-width: 42ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.footer {
  background: var(--color-charcoal);
  color: rgba(247, 242, 232, 0.88);
  padding: 3.2rem 0 1.8rem;
}

.footer a {
  color: var(--color-cream);
}

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

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

.footer__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-ivory);
  margin-bottom: 0.85rem;
}

.footer__heading {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-bottom: 0.85rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.55rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer__social a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 232, 216, 0.35);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.footer__bottom {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(240, 232, 216, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 28, 23, 0.62);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(85vh, 560px);
  overflow: auto;
  background: var(--color-ivory);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(61, 42, 31, 0.08);
  color: var(--color-cocoa);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(61, 42, 31, 0.14);
}

.modal__title {
  font-size: 1.7rem;
  padding-right: 2rem;
}

.modal__text {
  margin-bottom: 1.25rem;
}

.reveal {
  animation: rise-in 0.7s ease both;
}

.reveal--delay {
  animation-delay: 0.12s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .section__grid--split,
  .contact-layout,
  .cta,
  .footer__grid,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .section__grid--reverse .section__media,
  .section__grid--reverse .section__copy {
    order: initial;
  }

  .feature-row,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    z-index: 1001;
    background: rgba(247, 242, 232, 0.98);
    padding: 1.5rem 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav__link {
    padding: 0.9rem 0.35rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(61, 42, 31, 0.08);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1180px, calc(100% - 1.5rem));
    --header-height: 70px;
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
    width: var(--container);
  }

  .feature-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .form__actions,
  .footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .header__name {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  .hero__title,
  .page-hero__title,
  .section__title {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
