:root {
  --bg: #f2ede5;
  --bg-top: #f8f4ee;
  --surface: rgba(251, 247, 241, 0.78);
  --surface-strong: rgba(251, 247, 241, 0.92);
  --panel-line: rgba(68, 52, 39, 0.08);
  --ink: #231c16;
  --muted: #71665b;
  --primary: #1f1914;
  --accent: #8b5a37;
  --accent-deep: #6f462c;
  --shadow-soft: 0 18px 46px rgba(32, 23, 16, 0.12);
  --shadow-card: 0 10px 28px rgba(32, 23, 16, 0.1);
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Heebo", "Assistant", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 720px at 12% 10%, rgba(210, 186, 156, 0.26), transparent 62%),
    radial-gradient(900px 600px at 88% 0%, rgba(221, 203, 183, 0.44), transparent 58%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  min-height: 100svh;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(100%, 1760px);
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  padding-top: clamp(1.5rem, 3.4vh, 2.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(0.875rem, 1.8vw, 1.5rem);
}

.hero {
  min-height: 0;
}

.hero-split {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1.08fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  align-items: stretch;
  min-height: 0;
}

.hero-overlay,
.hero-media-wrap,
.thumb-gallery {
  min-height: 0;
}

.hero-overlay {
  direction: rtl;
  background: linear-gradient(180deg, var(--surface-strong) 0%, rgba(248, 243, 236, 0.88) 100%);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 2vw, 2rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.1rem, 1.8vw, 1.6rem);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.panel-header,
.panel-copy,
.cta-row {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.logo-link {
  display: block;
  width: min(100%, 320px);
  padding: clamp(0.5rem, 1vw, 1rem);
  margin-inline: auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.header-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: fit-content;
  text-decoration: none;
  direction: ltr;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.2;
  font-weight: 500;
  color: rgba(31, 25, 20, 0.88);
  transition: transform 0.28s var(--ease-smooth), color 0.28s var(--ease-smooth), opacity 0.28s var(--ease-smooth);
}

.header-contact-divider {
  font-size: 1rem;
  line-height: 1;
  color: rgba(113, 102, 91, 0.7);
}

.header-contact-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.contact-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.panel-copy {
  align-self: end;
  display: grid;
  gap: 0.75rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(111, 102, 91, 0.82);
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 3.05rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.panel-text {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.75;
  color: var(--muted);
}

.cta-row {
  display: grid;
  gap: 0.85rem;
}

.panel-social-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3.6rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    background-color 0.3s var(--ease-smooth),
    color 0.3s var(--ease-smooth),
    opacity 0.3s var(--ease-smooth);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(32, 23, 16, 0.14);
}

.btn-primary {
  background: #f7f1e8;
  color: var(--primary);
}

.btn-accent {
  background: linear-gradient(180deg, #986441 0%, var(--accent-deep) 100%);
  color: #fffaf5;
}

.btn-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.is-disabled {
  opacity: 0.64;
  pointer-events: none;
}

.hero-media-wrap {
  position: relative;
}

.hero-media-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius-lg) + 14px);
  background: linear-gradient(135deg, rgba(255, 244, 232, 0.7), rgba(165, 129, 96, 0.18));
  filter: blur(22px);
  opacity: 0.92;
  z-index: 0;
}

.hero-media {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: clamp(540px, 78svh, 860px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #221b16;
  box-shadow: var(--shadow-soft);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 16, 12, 0.04) 0%, rgba(22, 16, 12, 0.16) 100%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 58%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
  background-size: cover;
  background-position: center;
  transform: scale(1.012);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.thumb-gallery {
  direction: ltr;
}

.edge-link {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: rgba(35, 28, 22, 0.9);
  transition: transform 0.28s var(--ease-smooth), opacity 0.28s var(--ease-smooth);
}

.edge-link:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.edge-link span {
  font-size: 0.85rem;
  font-weight: 500;
}

.panel-edge-link {
  min-height: 4.15rem;
  padding: 0.9rem 0.75rem;
  border-radius: 1.25rem;
  background: rgba(247, 241, 232, 0.82);
  border: 1px solid rgba(68, 52, 39, 0.08);
  box-shadow: var(--shadow-card);
}

.thumb-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  min-height: clamp(180px, 22svh, 250px);
  direction: ltr;
}

.thumb-track {
  display: flex;
  gap: 0.85rem;
  height: 100%;
  will-change: transform;
  transition: transform 0.72s var(--ease-smooth);
}

.thumb-card {
  flex: 0 0 clamp(180px, 19vw, 270px);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(236, 228, 217, 0.88);
  box-shadow: var(--shadow-card);
}

.thumb-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(236, 228, 217, 0.88);
}

@media (min-width: 1101px) {
  .panel-copy {
    align-self: center;
    text-align: center;
  }

  .hero-overlay h1 {
    margin-inline: auto;
    max-width: 12ch;
  }
}

:focus-visible {
  outline: 2px solid #a8683e;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .page-shell {
    min-height: auto;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    order: -1;
  }

  .logo-link {
    margin-inline: auto;
  }

  .header-contact {
    gap: 0.5rem;
  }

  .header-contact-link {
    font-size: 1rem;
  }

  .panel-copy,
  .hero-overlay h1,
  .panel-text {
    text-align: center;
  }

  .panel-text {
    margin-inline: auto;
  }
}

@media (max-width: 699px) {
  body {
    overflow: auto;
  }

  .page-shell {
    padding-inline: 0.9rem;
    padding-top: 1.1rem;
    padding-bottom: 0.9rem;
    gap: 0.9rem;
  }

  .hero-overlay {
    padding: 1.15rem;
    gap: 1rem;
  }

  .hero-overlay h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .panel-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .btn {
    min-height: 3.35rem;
    font-size: 1rem;
  }

  .hero-media {
    min-height: clamp(340px, 48svh, 500px);
  }

  .thumb-gallery {
    grid-template-columns: 1fr;
  }

  .thumb-viewport {
    min-height: clamp(170px, 26svh, 220px);
  }

  .thumb-card {
    flex-basis: 72%;
  }

  .panel-social-links {
    gap: 0.75rem;
  }
}

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