/* ============================================================
   CUTIE CARE — Layout
   Nav, footer, page-hero, layout-wrappers (split, bento,
   full-bleed, sticky-side, cluster, stack).
   ============================================================ */

/* ── NAV ──────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transform: translateY(0);
  will-change: transform;
  transition:
    transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.nav--hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: background var(--dur-base) var(--ease-out); }
  .nav--hidden { transform: none; }
}

/* Subpages without a hero (no body.home): nav is always opaque dark
   so it stays readable on the cream/beige content that starts directly
   below it. Also give the first section enough top padding to clear
   the 80 px nav. */
body:not(.home) .nav {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

body:not(.home) main > section:first-child,
body:not(.home) > section:first-of-type {
  padding-top: 200px;
}

@media (max-width: 768px) {
  body:not(.home) main > section:first-child,
  body:not(.home) > section:first-of-type {
    padding-top: 160px;
  }
}

.nav .container { padding-inline: clamp(20px, 4vw, 48px); }

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 80px;
  gap: 24px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.nav__logo em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--color-white);
  transition: color var(--dur-base) var(--ease-out);
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__logo span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  transition: color var(--dur-base) var(--ease-out);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-base) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1.5px; width: 0;
  background: var(--color-red);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover { color: var(--color-white); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--color-white); }

/* Home page — light hero, dark nav text by default.
   Scrolled state (.nav.scrolled) still gets dark bg + white text from the base rules. */
body.home .nav:not(.scrolled) .nav__logo,
body.home .nav:not(.scrolled) .nav__logo em { color: var(--color-dark); }
body.home .nav:not(.scrolled) .nav__logo span { color: rgba(61, 43, 31, 0.6); }
body.home .nav:not(.scrolled) .nav__link { color: var(--color-dark); }
body.home .nav:not(.scrolled) .nav__link:hover,
body.home .nav:not(.scrolled) .nav__link.is-active { color: var(--color-red); }

.nav__item { position: relative; }

.nav__dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 0;
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: 100;
}

/* Invisible bridge — keeps :hover alive when cursor crosses the gap
   between the nav link and the dropdown panel. Sits on .nav__item so it
   works even before the dropdown becomes interactive. */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 24px;
  z-index: 99;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__dropdown a {
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.nav__dropdown a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav__cta {
  padding: 11px 22px;
  font-size: 0.75rem;
}

/* Hamburger */

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--color-white);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

body.home .nav:not(.scrolled) .nav__hamburger span { background: var(--color-dark); }

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4.5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4.5px); }

.nav__mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--color-near-black);
  padding: 24px 32px 32px;
  flex-direction: column;
  gap: 4px;
  z-index: var(--z-mobile-nav);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__mobile a:hover { color: var(--color-white); }
.nav__mobile a:last-child { border-bottom: none; }

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

/* ── PAGE-HERO (subsidor) ──────────────────────────────── */

.page-hero {
  position: relative;
  min-height: 480px;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero h1,
.page-hero h2,
.page-hero p { color: var(--color-white); }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 19, 14, 0.55) 0%, rgba(26, 19, 14, 0.85) 100%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero__inner {
  display: grid;
  gap: 40px;
  max-width: 760px;
}

.page-hero__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-red-soft);
  border: 1px solid var(--color-gold-line);
  color: var(--color-gold);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.page-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-white);
  margin-bottom: 18px;
}

.page-hero__title em { color: var(--color-gold); font-style: italic; }

.page-hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.breadcrumb a:hover { color: var(--color-gold); }

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ── FOOTER ───────────────────────────────────────────── */

.footer {
  background: var(--color-near-black);
  color: rgba(255, 255, 255, 0.65);
  padding: 96px 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-line), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 22px;
}

.footer__logo {
  margin-bottom: 16px;
}

.footer__logo em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--color-white);
}

.footer__col p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  max-width: 320px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a,
.footer__contact a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  display: inline-block;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact p {
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--dur-base) var(--ease-out);
}

.footer__social a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

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

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── LAYOUT WRAPPERS ──────────────────────────────────── */

/* Section-level padding */

section[class*="section-"],
.section,
.section-pad {
  padding-block: var(--section-padding);
}

/* Split (asymmetric 2-col) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--top { align-items: start; }
.split--4-6 { grid-template-columns: 4fr 6fr; }
.split--6-4 { grid-template-columns: 6fr 4fr; }
.split--3-7 { grid-template-columns: 3fr 7fr; }
.split--7-3 { grid-template-columns: 7fr 3fr; }
.split--5-7 { grid-template-columns: 5fr 7fr; }
.split--7-5 { grid-template-columns: 7fr 5fr; }

.split__media { position: relative; }

@media (max-width: 900px) {
  .split,
  .split--4-6, .split--6-4, .split--3-7, .split--7-3,
  .split--5-7, .split--7-5 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento__item { overflow: hidden; border-radius: var(--radius-lg); }

.bento__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.bento__item:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}

/* Full-bleed */

.full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Sticky side */

.sticky-side {
  position: sticky;
  top: 120px;
  align-self: start;
}

/* Cluster (flex-wrap row med gap) */

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cluster--lg { gap: 20px; }

/* Stack (flex-column med gap) */

.stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.stack--sm { gap: var(--sp-2); }
.stack--lg { gap: var(--sp-5); }

/* Section bg helpers */

.bg-cream { background: var(--color-cream); }
.bg-beige { background: var(--color-beige); }
.bg-dark  { background: var(--color-dark); color: var(--color-cream); }
.bg-near-black { background: var(--color-near-black); color: var(--color-cream); }
.bg-red   { background: var(--color-red); color: var(--color-white); }
.bg-white { background: var(--color-white); }

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-near-black h1, .bg-near-black h2, .bg-near-black h3, .bg-near-black h4,
.bg-red h1, .bg-red h2, .bg-red h3, .bg-red h4 { color: var(--color-white); }

.bg-dark p, .bg-near-black p { color: rgba(255, 255, 255, 0.7); }

.bg-dark em, .bg-near-black em { color: var(--color-gold); }
