/* ============================================================
   Uventi Bathrooms — site stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,480;0,9..144,560;1,9..144,420&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --ink: #1c1814;
  --ink-soft: #2c2620;
  --stone: #efe7d9;
  --paper: #f8f4ea;
  --brass: #a9824f;
  --brass-dark: #7e5e37;
  --copper: #a9603c;
  --sage: #6e7a5e;
  --line: rgba(28, 24, 20, 0.14);
  --line-on-dark: rgba(248, 244, 234, 0.18);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;

  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

em { font-style: italic; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--copper);
  color: var(--paper);
}
.btn-primary:hover { background: var(--brass-dark); }
.btn-ghost-dark {
  border-color: var(--line-on-dark);
  color: var(--paper);
}
.btn-ghost-dark:hover { background: rgba(248,244,234,0.1); }
.btn-ghost-light {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost-light:hover { background: rgba(28,24,20,0.06); }

/* ---------- Nav ---------- */
:root {
  --nav-grey: #636363;
  --nav-line: rgba(248,244,234,0.22);
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-grey);
  border-bottom: 1px solid var(--nav-line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
}
.brand-lockup img { height: 40px; width: auto; display: block; }
.brand-lockup .brand-sub {
  margin-top: -2px;
  padding-left: 37%;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper);
  opacity: 0.85;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
}
.nav-links-list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { text-decoration: none; color: var(--paper); }
.nav-links a:hover { color: #f0c9a8; }
.nav-icons { display: flex; gap: 0.9rem; align-items: center; }
.nav-icons a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--nav-line);
  border-radius: 50%;
  color: var(--paper);
}
.nav-icons svg { width: 16px; height: 16px; }
.nav-icons a:hover { border-color: #f0c9a8; color: #f0c9a8; }
.nav-toggle { display: none; color: var(--paper); }

@media (max-width: 820px) {
  .nav-links-list { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
  }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--nav-grey);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.35);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links .nav-links-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-links-list li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--nav-line);
  }
  .nav-links .nav-icons { padding: 1rem var(--gutter); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,12,9,0.82) 0%, rgba(15,12,9,0.28) 46%, rgba(15,12,9,0.08) 68%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(248,244,234,0.82);
  margin-bottom: 0.9rem;
  order: 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--paper);
  order: 0;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(248,244,234,0.88);
  order: 0;
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  order: 0;
}
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 820px) {
  .hero { min-height: 68vh; }
  .hero img { object-position: 50% 20%; }
  .hero::after {
    background: linear-gradient(0deg, rgba(15,12,9,0.92) 0%, rgba(15,12,9,0.58) 40%, rgba(15,12,9,0.3) 66%, rgba(15,12,9,0.18) 100%);
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
  }
  .hero-eyebrow { order: 4; margin-bottom: 0; margin-top: 1.6rem; }
  .hero h1 { order: 1; }
  .hero-sub { order: 2; }
  .hero-actions { order: 3; }
}

/* ---------- Intro / statement ---------- */
.statement {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--stone);
}
.statement .wrap { max-width: 980px; }
.statement-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brass-dark);
  margin-bottom: 1rem;
}
.statement h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 20ch;
}
.statement-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.statement-body p { font-size: 1.05rem; color: var(--ink-soft); }
.statement-facts {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
}
.statement-facts .fact-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  display: block;
}
.statement-facts .fact-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .statement-grid { grid-template-columns: 1fr; }
}

/* ---------- Gallery (mosaic, not uniform cards) ---------- */
.gallery {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 18ch; }
.section-head p { max-width: 40ch; color: var(--ink-soft); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 0.6rem;
}
.mosaic figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mosaic a:hover img { transform: scale(1.045); }
.mosaic figcaption {
  position: absolute;
  left: 0.9rem; bottom: 0.8rem;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.mosaic figure::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,12,9,0.55), rgba(15,12,9,0) 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mosaic a:hover figcaption, .mosaic a:hover + *, .mosaic a:hover figure::before {}
.mosaic a:hover figcaption { opacity: 1; }
.mosaic a:hover ~ figure::before {}
.mosaic figure:hover::before { opacity: 1; }
.mosaic figure:hover figcaption { opacity: 1; }

.m-a { grid-column: span 3; grid-row: span 3; }
.m-b { grid-column: span 3; grid-row: span 2; }
.m-c { grid-column: span 2; grid-row: span 2; }
.m-d { grid-column: span 2; grid-row: span 2; }
.m-e { grid-column: span 2; grid-row: span 2; }
.m-f { grid-column: span 3; grid-row: span 3; }
.m-g { grid-column: span 3; grid-row: span 2; }
.m-h { grid-column: span 2; grid-row: span 2; }
.m-i { grid-column: span 4; grid-row: span 2; }
.m-j { grid-column: span 2; grid-row: span 2; }
.m-k { grid-column: span 6; grid-row: span 3; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .m-a, .m-f, .m-k { grid-column: span 4; }
  .m-b, .m-g, .m-i { grid-column: span 4; grid-row: span 2; }
  .m-c, .m-d, .m-e, .m-h, .m-j { grid-column: span 2; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 0.5rem; }
  .mosaic figure { grid-column: span 1 !important; grid-row: span 2 !important; }
}

/* ---------- Video / recent projects ---------- */
.projects {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--ink);
  color: var(--paper);
}
.projects .section-head h2 { color: var(--paper); }
.projects .section-head p { color: rgba(248,244,234,0.72); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.project-card { width: 100%; }
.video-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #000;
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15,12,9,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  width: 100%; height: 100%;
}
.play-btn span {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(248,244,234,0.92);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.play-btn:hover span { transform: scale(1.08); }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--ink); }
.video-frame.playing .play-btn { display: none; }

.project-caption {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 0.9rem;
}
.project-caption h3 { font-size: 1.15rem; font-weight: 480; color: var(--paper); }
.project-caption span { font-size: 0.85rem; color: rgba(248,244,234,0.6); }

@media (max-width: 480px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}

/* ---------- Social strip ---------- */
.social-strip {
  background: var(--nav-grey);
  color: var(--paper);
  padding: clamp(2.6rem, 5vw, 3.4rem) 0;
}
.social-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.social-strip h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--paper);
  max-width: 22ch;
}
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(248,244,234,0.4);
  padding: 0.75em 1.3em;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.social-links a:hover { background: rgba(248,244,234,0.12); }
.social-links svg { width: 17px; height: 17px; }

/* ---------- Showroom / visit us ---------- */
.showroom {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--paper);
}
.showroom-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.showroom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  aspect-ratio: 3/4;
}
.showroom-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}
.showroom-info > p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 1.4rem;
}
.showroom-info address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--copper);
}
.showroom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.showroom-map {
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
}
.showroom-map iframe { display: block; }

@media (max-width: 820px) {
  .showroom-layout { grid-template-columns: 1fr; }
  .showroom-image img { aspect-ratio: 16/11; }
}

/* ---------- CTA / enquire banner ---------- */
.cta-banner {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
  background: var(--stone);
}
.cta-banner h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: 22ch;
  margin: 0 auto 1.3rem;
}
.cta-banner p { max-width: 48ch; margin: 0 auto 1.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--nav-grey);
  color: rgba(248,244,234,0.75);
  padding: 3rem 0 2.2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.footer-brand .brand-lockup img { height: 34px; }
.footer-brand .brand-lockup .brand-sub { font-size: 0.56rem; }
.footer-col h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Inquiry page ---------- */
.inquiry-hero {
  padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--stone);
}
.inquiry-hero .wrap { max-width: 900px; }
.inquiry-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 18ch; }
.inquiry-hero p { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.05rem; }

.inquiry-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.inquiry-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.inquiry-image {
  position: sticky;
  top: 100px;
  border-radius: 2px;
  overflow: hidden;
}
.inquiry-image img { width: 100%; height: auto; }
.inquiry-note {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--copper);
  padding-left: 1rem;
}

form.enquiry-form { display: flex; flex-direction: column; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.form-foot p { font-size: 0.85rem; color: var(--ink-soft); max-width: 30ch; }

@media (max-width: 820px) {
  .inquiry-layout { grid-template-columns: 1fr; }
  .inquiry-image { position: static; order: -1; }
}

/* ---------- Thank you page ---------- */
.thankyou {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
  background: var(--stone);
}
.thankyou-inner { max-width: 520px; }
.thankyou h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.thankyou p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
