:root {
  --cream: #f1eee7;
  --cream-deep: #e8e2d6;
  --burgundy: #510812;
  --burgundy-soft: #6a1520;
  --olive: #564f19;
  --olive-soft: #6b6428;
  --ink: #510812;
  --muted: rgba(81, 8, 18, 0.82);
  --line: rgba(81, 8, 18, 0.16);
  --shadow: 0 18px 50px rgba(81, 8, 18, 0.08);
  --max: 1120px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Playfair first: Allkin has no Cyrillic glyphs and can hide Ukrainian text */
  font-family: "Playfair Display", "Allkin", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--burgundy);
  color: var(--cream);
}

::-moz-selection {
  background: var(--burgundy);
  color: var(--cream);
}

.section-burgundy ::selection,
.section-burgundy ::-moz-selection {
  background: var(--cream);
  color: var(--burgundy);
}

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

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

/* Never let visited links recolor buttons/CTAs */
a:visited:not(.btn):not(.brand-text-link):not(.brand-link):not(.footer-brand) {
  color: inherit;
}

.brand-text-link,
.brand-text-link:link,
.brand-text-link:visited,
.brand-text-link:hover,
.brand-text-link:active,
.brand-text-link:focus-visible {
  color: var(--burgundy) !important;
  -webkit-text-fill-color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: rgba(81, 8, 18, 0.35);
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  font-family: "Allkin", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 0.85rem;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.script {
  font-family: "Calligraphia One", "Playfair Display", cursive;
  font-weight: 400;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
}

/* Buttons — locked contrast for all link states (visited was hiding labels) */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    -webkit-text-fill-color 0.35s var(--ease);
}

.btn:hover,
a.btn:hover {
  transform: translateY(-2px);
}

a.btn.btn-primary,
a.btn.btn-primary:link,
a.btn.btn-primary:visited,
a.btn.btn-primary:hover,
a.btn.btn-primary:active,
a.btn.btn-primary:focus,
a.btn.btn-primary:focus-visible {
  background: var(--burgundy) !important;
  background-color: #510812 !important;
  color: #f1eee7 !important;
  -webkit-text-fill-color: #f1eee7 !important;
  border-color: transparent;
}

a.btn.btn-primary:hover,
a.btn.btn-primary:focus-visible {
  background: var(--burgundy-soft) !important;
  background-color: #6a1520 !important;
  color: #f1eee7 !important;
  -webkit-text-fill-color: #f1eee7 !important;
}

a.btn.btn-ghost,
a.btn.btn-ghost:link,
a.btn.btn-ghost:visited,
a.btn.btn-ghost:active,
a.btn.btn-ghost:focus {
  background: transparent !important;
  border-color: var(--burgundy) !important;
  color: #510812 !important;
  -webkit-text-fill-color: #510812 !important;
}

a.btn.btn-ghost:hover,
a.btn.btn-ghost:focus-visible {
  background: var(--burgundy) !important;
  background-color: #510812 !important;
  color: #f1eee7 !important;
  -webkit-text-fill-color: #f1eee7 !important;
}

a.btn.btn-ghost-on-dark,
a.btn.btn-ghost-on-dark:link,
a.btn.btn-ghost-on-dark:visited,
a.btn.btn-ghost-on-dark:active,
a.btn.btn-ghost-on-dark:focus {
  background: transparent !important;
  border-color: #f1eee7 !important;
  color: #f1eee7 !important;
  -webkit-text-fill-color: #f1eee7 !important;
}

a.btn.btn-ghost-on-dark:hover,
a.btn.btn-ghost-on-dark:focus-visible {
  background: #f1eee7 !important;
  color: #510812 !important;
  -webkit-text-fill-color: #510812 !important;
}

/* Contact: cream fill + burgundy label */
.section-burgundy a.btn.btn-primary,
.section-burgundy a.btn.btn-primary:link,
.section-burgundy a.btn.btn-primary:visited,
.section-burgundy a.btn.btn-primary:hover,
.section-burgundy a.btn.btn-primary:active,
.section-burgundy a.btn.btn-primary:focus,
.section-burgundy a.btn.btn-primary:focus-visible {
  background: #f1eee7 !important;
  background-color: #f1eee7 !important;
  color: #510812 !important;
  -webkit-text-fill-color: #510812 !important;
}

.section-burgundy a.btn.btn-primary:hover,
.section-burgundy a.btn.btn-primary:focus-visible {
  background: #e8e2d6 !important;
  background-color: #e8e2d6 !important;
  color: #510812 !important;
  -webkit-text-fill-color: #510812 !important;
}

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

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Nav */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(241, 238, 231, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(241, 238, 231, 0.96);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
}

.brand-link img {
  height: 2.4rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--burgundy);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: inherit;
  background: inherit;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Hero */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(241, 238, 231, 0.55) 0%, rgba(241, 238, 231, 0.92) 62%, var(--cream) 100%),
    url("../assets/site/patterns/pattern-1.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: min(42vw, 28rem);
  aspect-ratio: 1;
  background: url("../assets/site/icons/bird-detail-burgundy.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  animation: floaty 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
}

.hero-logo {
  width: min(100%, 18rem);
  height: auto;
  animation: rise 1s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.2rem);
  letter-spacing: -0.02em;
  animation: rise 1s var(--ease) 0.12s both;
}

.hero .lead {
  animation: rise 1s var(--ease) 0.22s both;
}

.hero .btn-group {
  animation: rise 1s var(--ease) 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-1.1rem) rotate(2deg);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

/* Keep cream surface + burgundy text (same readable treatment as services) */
.section-olive {
  background: var(--cream);
  color: var(--ink);
}

.section-olive .eyebrow {
  color: var(--olive);
}

.section-olive .lead,
.section-olive p,
.section-olive .diff-text {
  color: var(--muted);
}

.section-burgundy {
  background:
    linear-gradient(180deg, rgba(81, 8, 18, 0.94), rgba(81, 8, 18, 0.98)),
    url("../assets/site/patterns/pattern-3.png") center / cover;
  color: var(--cream);
}

.section-burgundy .eyebrow {
  color: #c9a4a9;
}

.section-burgundy .lead {
  color: rgba(241, 238, 231, 0.8);
}

.section-burgundy a:not(.btn) {
  color: var(--cream);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.about-copy {
  overflow: visible;
  align-self: center;
}

.about-copy p {
  overflow: visible;
  color: var(--ink);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.about-facts li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.about-facts img {
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.15rem;
}

.about-media {
  position: relative;
  min-height: min(72vh, 38rem);
  overflow: hidden;
  background: var(--cream-deep);
  isolation: isolate;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 38rem);
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 52%,
    rgba(81, 8, 18, 0.18) 78%,
    rgba(81, 8, 18, 0.62) 100%
  );
  pointer-events: none;
}

.about-caption {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1;
  margin: 0;
  color: var(--cream);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.01em;
}

/* Differentiators */
.diff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.diff-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.8rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.diff-item.is-in {
  opacity: 1;
  transform: none;
}

.diff-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--olive);
}

.diff-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.diff-text {
  margin: 0;
  max-width: 48rem;
  color: var(--muted);
}

/* Services — compact 2-col table/grid */
.section-services {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  min-width: 0;
}

.service-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr 2rem;
  gap: 0.75rem;
  align-items: start;
  text-align: left;
  padding: 1.05rem 1rem;
  min-height: 4.5rem;
}

.service-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--olive);
  padding-top: 0.15rem;
}

.service-copy {
  min-width: 0;
}

.service-trigger h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink);
  line-height: 1.25;
}

.service-meta {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0.3rem 0 0;
}

.service-plus {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.1rem;
  border: 1px solid var(--line);
  position: relative;
  justify-self: end;
  flex-shrink: 0;
}

.service-plus::before,
.service-plus::after {
  content: "";
  position: absolute;
  background: var(--burgundy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.service-plus::before {
  width: 0.7rem;
  height: 1.5px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service-plus::after {
  width: 1.5px;
  height: 0.7rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.service.is-open .service-plus::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.service.is-open .service-panel {
  grid-template-rows: 1fr;
}

.service-panel-inner {
  overflow: hidden;
}

.service-points {
  list-style: none;
  margin: 0;
  padding: 0 1rem 1rem 3.15rem;
  display: grid;
  gap: 0.35rem;
}

.service-points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--olive);
}

.services-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

/* Contact */
.contact-wrap {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

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

.site-footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  height: 1.8rem;
  width: auto;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-media {
    order: -1;
    min-height: min(68vw, 26rem);
  }

  .about-photo {
    min-height: min(68vw, 26rem);
    object-position: center 12%;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(241, 238, 231, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .nav-links .nav-cta {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 0.5rem;
    border: 0;
    justify-content: flex-start;
    padding-left: 0;
  }

  .nav-toggle {
    display: grid;
  }

  .hero::after {
    width: min(70vw, 16rem);
    opacity: 0.1;
  }

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

  .service-trigger {
    grid-template-columns: 2rem 1fr 1.55rem;
    gap: 0.65rem;
    padding: 0.95rem 0.85rem;
  }

  .service-points {
    padding: 0 0.85rem 0.95rem 2.65rem;
  }

  .diff-item {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
