@layer reset, base, components, utilities;

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

  * {
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body {
    min-height: 100vh;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  button {
    border: none;
    background: none;
  }

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

@layer base {
  :root {
    --color-bg: #F7F3EC;
    --color-bg-secondary: #E8DED0;
    --color-surface: #DCE5DF;
    --color-feature: #D9E6EA;
    --color-warm-surface: #B97862;
    --color-text: #17242B;
    --color-text-secondary: #667177;
    --color-accent: #B86F4B;
    --color-accent-secondary: #78856B;
    --color-accent-soft: #D2B77A;
    --color-border: #C9BCAF;
    --color-success: #3C7A5B;
    --color-warning: #C28D3B;
    --color-danger: #B5483F;
    --color-neutral-50: #FAF7F2;
    --color-neutral-100: #F1EAE0;
    --color-neutral-200: #E0D5C5;
    --color-neutral-300: #CDBDA8;
    --color-neutral-400: #B6A693;
    --color-neutral-500: #9B8C78;
    --color-neutral-600: #7E705F;
    --color-neutral-700: #5F5447;
    --color-neutral-800: #403830;
    --color-neutral-900: #241F1A;
    --font-heading: "Playfair Display", "Bodoni Moda", "DM Serif Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Manrope", "Outfit", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.0625rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --line-height-tight: 1.2;
    --line-height-snug: 1.35;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    --space-40: 10rem;
    --space-48: 12rem;
    --space-56: 14rem;
    --space-64: 16rem;
    --space-72: 18rem;
    --space-80: 20rem;
    --space-96: 24rem;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --radius-pill: 999px;
    --radius-card: 14px;
    --shadow-xs: 0 1px 2px rgba(23, 36, 43, 0.04);
    --shadow-sm: 0 4px 12px rgba(23, 36, 43, 0.06);
    --shadow-md: 0 10px 30px rgba(23, 36, 43, 0.09);
    --shadow-lg: 0 18px 45px rgba(23, 36, 43, 0.13);
    --shadow-soft-lift: 0 24px 60px rgba(185, 120, 98, 0.18);
    --shadow-outline: 0 0 0 1px rgba(184, 111, 75, 0.35);
    --transition-fast: 120ms ease-out;
    --transition-base: 200ms ease-out;
    --transition-slow: 320ms ease-out;
  }

  body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-3);
  }

  h1 {
    font-size: clamp(2.4rem, 3vw, 3.1rem);
    letter-spacing: 0.02em;
  }

  h2 {
    font-size: clamp(2rem, 2.4vw, 2.5rem);
  }

  h3 {
    font-size: clamp(1.6rem, 2vw, 2rem);
  }

  h4 {
    font-size: 1.375rem;
  }

  h5 {
    font-size: 1.125rem;
  }

  h6 {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  p {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
  }

  strong {
    color: var(--color-text);
    font-weight: 600;
  }

  em {
    font-style: italic;
    color: var(--color-accent);
  }

  a {
    position: relative;
    transition: color var(--transition-base);
  }

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

  a:focus-visible {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 2px;
  }

  ::selection {
    background-color: rgba(184, 111, 75, 0.16);
    color: var(--color-text);
  }

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

@layer components {
  .rt-ribbon {
    width: 100%;
    background: linear-gradient(90deg, rgba(217, 230, 234, 0.9), rgba(220, 229, 223, 0.9));
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(201, 188, 175, 0.7);
    backdrop-filter: blur(10px);
  }

  .rt-ribbon__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
  }

  .rt-ribbon__dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(184, 111, 75, 0.8);
  }

  .rt-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
  }

  .rt-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: radial-gradient(circle at 0% 0%, #F7F3EC 0, #DCE5DF 40%, #B86F4B 140%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(23, 36, 43, 0.18);
    color: #F7F3EC;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.14em;
  }

  .rt-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .rt-brand__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .rt-brand__tagline {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .home-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .home-facts__item {
    position: relative;
    padding-right: 1.25rem;
  }

  .home-facts__item::after {
    content: "";
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: rgba(184, 111, 75, 0.8);
  }

  .home-facts__item:last-child::after {
    display: none;
  }

  .section-index {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: var(--space-2);
  }

  .section-index__number {
    color: var(--color-accent);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
    white-space: nowrap;
  }

  .btn--primary {
    background: linear-gradient(135deg, #B86F4B, #D2B77A);
    color: #F7F3EC;
    box-shadow: var(--shadow-sm);
  }

  .btn--primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  .btn--ghost {
    background-color: transparent;
    color: var(--color-accent);
    border-color: rgba(184, 111, 75, 0.45);
    backdrop-filter: blur(10px);
  }

  .btn--ghost:hover {
    background-color: rgba(184, 111, 75, 0.06);
  }

  .btn:disabled,
  .btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
  }

  .btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-outline);
  }

  .form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 188, 175, 0.8);
    background-color: rgba(247, 243, 236, 0.96);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  }

  .form-control::placeholder {
    color: rgba(102, 113, 119, 0.8);
  }

  .form-control:focus-visible {
    outline: none;
    border-color: rgba(184, 111, 75, 0.95);
    box-shadow: 0 0 0 1px rgba(184, 111, 75, 0.6);
    background-color: #F7F3EC;
  }

  .form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
  }

  .card {
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.85) 0, rgba(247, 243, 236, 0.98) 40%, rgba(220, 229, 223, 0.9) 100%);
    border-radius: var(--radius-card);
    border: 1px solid rgba(201, 188, 175, 0.85);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
  }

  .card--soft {
    box-shadow: var(--shadow-sm);
    background: rgba(247, 243, 236, 0.96);
  }

  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: var(--space-10);
    align-items: center;
    padding: var(--space-10) 0 var(--space-12);
  }

  .home-hero__kicker {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
  }

  .home-hero__title {
    margin-bottom: var(--space-4);
  }

  .home-hero__lead {
    font-size: 1.02rem;
    max-width: 36rem;
    margin-bottom: var(--space-6);
  }

  .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-bottom: var(--space-4);
  }

  .home-hero__secondary-link {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(184, 111, 75, 0.35);
    padding-bottom: 0.15rem;
  }

  .home-hero__fineprint {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    max-width: 32rem;
  }

  .home-hero__media {
    position: relative;
  }

  .home-hero__image-wrap {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(201, 188, 175, 0.9);
    box-shadow: 0 30px 80px rgba(23, 36, 43, 0.25);
    background: radial-gradient(circle at 0 0, rgba(247, 243, 236, 0.9) 0, rgba(217, 230, 234, 0.9) 40%, rgba(220, 229, 223, 0.95) 100%);
  }

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

  .home-hero__seal {
    position: absolute;
    right: 8%;
    top: 14%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, rgba(247, 243, 236, 0.1), rgba(184, 111, 75, 0.45), rgba(210, 183, 122, 0.35), rgba(247, 243, 236, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft-lift);
    color: var(--color-bg);
    text-align: center;
    padding: 1.5rem;
  }

  .home-hero__seal-inner {
    width: 86%;
    height: 86%;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 0, #F7F3EC 0, #DCE5DF 45%, #B86F4B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border: 1px solid rgba(247, 243, 236, 0.85);
  }

  .home-hero__seal-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.35;
  }

  .home-hero__caption {
    position: absolute;
    left: 8%;
    bottom: 8%;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background-color: rgba(23, 36, 43, 0.82);
    color: #F7F3EC;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    backdrop-filter: blur(10px);
  }

  .home-hero__caption-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: #D2B77A;
  }

  @media (max-width: 960px) {
    .home-hero {
      grid-template-columns: minmax(0, 1fr);
      gap: var(--space-8);
      padding: var(--space-8) 0 var(--space-10);
    }

    .home-hero__media {
      order: -1;
    }

    .home-hero__seal {
      width: 130px;
      height: 130px;
      right: 6%;
      top: 10%;
    }
  }

  @media (max-width: 640px) {
    .home-hero {
      padding: var(--space-6) 0 var(--space-8);
    }

    .home-hero__caption {
      left: 6%;
      bottom: 6%;
    }
  }
}

@layer utilities {
  .container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .container--wide {
    max-width: 1280px;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .flex {
    display: flex;
  }

  .inline-flex {
    display: inline-flex;
  }

  .flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .flex-col {
    display: flex;
    flex-direction: column;
  }

  .grid {
    display: grid;
  }

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

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  @media (max-width: 800px) {
    .grid-2,
    .grid-3 {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .gap-4 {
    gap: var(--space-4);
  }

  .gap-6 {
    gap: var(--space-6);
  }

  .mt-4 {
    margin-top: var(--space-4);
  }

  .mt-6 {
    margin-top: var(--space-6);
  }

  .mb-4 {
    margin-bottom: var(--space-4);
  }

  .mb-6 {
    margin-bottom: var(--space-6);
  }

  .text-center {
    text-align: center;
  }

  .text-accent {
    color: var(--color-accent);
  }

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

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

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

ul { list-style: none !important; }
.nav-toggle { flex-direction: column; }