:root {
  --ink: #1a1b2e;
  --ink-soft: #4a4d63;
  --stone: #d9d2c8;
  --paper: #f3efe9;
  --foam: #faf8f5;
  --accent: #404078;
  --accent-deep: #2c3058;
  --line: rgba(26, 27, 46, 0.12);
  --shadow: 0 24px 60px rgba(26, 27, 46, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --nav-h: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--foam);
  transition: color 0.3s ease;
}

.site-header.is-scrolled .brand,
.site-header.theme-light .brand {
  color: var(--ink);
}

.brand--logo {
  display: inline-flex;
  align-items: center;
}

.brand--logo img {
  height: 3.5rem;
  width: auto;
  /* Official navy logo → white on dark hero / footer */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .brand--logo img,
.site-header.theme-light .brand--logo img {
  /* Natural logo color on light headers */
  filter: none;
}

.site-footer .brand--logo img {
  height: 4rem;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

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

.nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.88);
  position: relative;
  transition: color 0.25s ease;
}

.site-header.is-scrolled .nav a,
.site-header.theme-light .nav a {
  color: var(--ink-soft);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 4px;
  background: var(--foam);
  transition: background 0.3s ease;
}

.site-header.is-scrolled .nav-toggle span,
.site-header.theme-light .nav-toggle span {
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--foam);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("../assets/images/tida-new-zealand-designer-bathrooms-awards-min-2000x1125.jpg")
      center 40% / cover no-repeat;
  transform: scale(1.08);
  animation: hero-zoom 20s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      rgba(20, 28, 32, 0.82) 0%,
      rgba(20, 28, 32, 0.55) 42%,
      rgba(20, 28, 32, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(20, 28, 32, 0.45) 0%, transparent 28%, rgba(20, 28, 32, 0.75) 100%);
  pointer-events: none;
}

.hero__content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto 14vh;
  max-width: 40rem;
  animation: rise 1s ease 0.12s both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgba(250, 248, 245, 0.95);
  max-width: 22rem;
}

.hero__lead {
  margin: 0 0 1.85rem;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(250, 248, 245, 0.78);
  max-width: 26rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(250, 248, 245, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.45rem;
  animation: rise 1s ease 0.8s both;
}

.hero__scroll span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--foam);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--foam);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--stone);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(250, 248, 245, 0.45);
}

.btn-ghost:hover {
  background: rgba(250, 248, 245, 0.1);
}

.btn-accent {
  background: var(--accent);
  color: var(--foam);
}

.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 27, 46, 0.28);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(26, 27, 46, 0.04);
}

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

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.section--stone {
  background: var(--paper);
}

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

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section__text {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section__head {
  margin-bottom: 2.5rem;
}

.section__head--center {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.section__head--center .section__title {
  margin-bottom: 0;
}

/* Collection cards */
.collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.collection-card {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border-radius: 1.35rem;
  color: var(--foam);
  isolation: isolate;
  box-shadow: var(--shadow);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 33, 38, 0.05) 20%, rgba(23, 33, 38, 0.82) 100%);
}

.collection-card:hover img {
  transform: scale(1.07);
}

.collection-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem 1.5rem 1.5rem;
}

.collection-card__body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 550;
}

.collection-card__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.8);
}

.cta-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

.split__media {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 24rem;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 24rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--stone);
  cursor: zoom-in;
}

.product-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3.5rem 1.25rem 1.5rem;
  background: rgba(12, 28, 32, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.lightbox__caption {
  margin: 0;
  color: rgba(250, 248, 245, 0.92);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.12);
  color: #faf8f5;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(250, 248, 245, 0.22);
  outline: none;
}

/* Page hero (inner) */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, rgba(64, 64, 120, 0.14), transparent 55%),
    var(--paper);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--foam);
  border: 1px solid var(--line);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.contact-card p,
.contact-card a {
  margin: 0.35rem 0;
  color: var(--ink-soft);
}

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

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 245, 0.86);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand {
  color: var(--foam);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.site-footer p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 245, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.55);
}

/* Animations */
@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .collections,
  .split,
  .contact-grid,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .collection-card {
    min-height: 18rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(250, 248, 245, 0.97);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    color: var(--ink) !important;
  }

  .hero__content {
    margin-bottom: 18vh;
  }
}
