/* ============================================================
   ROYAL CREATIONS ZA — Stylesheet
   Palette: soft beige / white / charcoal / taupe. No gold.
   ============================================================ */

:root {
  --beige-soft: #F5F0E8;
  --beige-alt: #EDE6DA;
  --beige-deep: #E8DFD3;
  --charcoal: #2F2A24;
  --warm-black: #1A1815;
  --taupe: #8B7D6B;
  --grey: #A69B8D;
  --white: #FFFFFF;
  --whatsapp-green: #25D366;

  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1280px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--beige-soft);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--warm-black);
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-top: 0.5rem;
}

.section-lede {
  max-width: 46ch;
  color: var(--charcoal);
  opacity: 0.82;
  font-weight: 300;
  font-size: 1.05rem;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.divider {
  width: 64px;
  height: 1px;
  background: var(--taupe);
  border: none;
  margin: 1.5rem 0;
}

.divider--center { margin-inline: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--charcoal);
  color: var(--warm-black);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn--solid {
  background: var(--charcoal);
  color: var(--beige-soft);
}
.btn--solid:hover { background: var(--warm-black); }
.btn--outline:hover { background: var(--charcoal); color: var(--beige-soft); }
.btn--light {
  border-color: var(--beige-soft);
  color: var(--beige-soft);
}
.btn--light:hover { background: var(--beige-soft); color: var(--warm-black); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
  /* FIX: header grows with content, never clips the logo */
   --logo-height: 2.8rem; /* adjust to match your logo mark + tagline */
  min-height: calc(var(--logo-height) + 2.5rem); /* logo + vertical padding */
  
}

.site-header.is-scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 rgba(47, 42, 36, 0.08);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 20;
}
.hamburger span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.site-header .hamburger { color: var(--warm-black); }
.hero .hamburger { color: var(--white); }
.site-header.is-scrolled .hamburger,
body.menu-open .hamburger { color: var(--warm-black); }

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .hamburger span { background: var(--warm-black); }

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  /* FIX: stop flexbox from squashing the logo block when the header shrinks */
  flex-shrink: 0;
  min-height: 0;
}


.site-header.is-scrolled .logo,
body.menu-open .logo { color: var(--warm-black); }

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
  /* FIX: keep natural height when header collapses */
  flex-shrink: 0;
}

.logo__tagline {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  opacity: 0.85;
  /* FIX: prevent clipping of letter-spaced uppercase text */
  line-height: 1.4;
  padding-block: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}
.nav-spacer { width: 30px; }

/* ---------- Full-screen overlay menu ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--beige-soft);
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nav-overlay__links a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 500;
  color: var(--warm-black);
  padding: 0.15em 0;
  position: relative;
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.nav-overlay__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.12em;
  width: 0%;
  height: 1px;
  background: var(--taupe);
  transition: width 0.4s var(--ease);
}
.nav-overlay__links a:hover { color: var(--taupe); }
.nav-overlay__links a:hover::after { width: 100%; }

.nav-overlay__meta {
  border-left: 1px solid var(--grey);
  padding-left: 2rem;
}
.nav-overlay__meta h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--taupe);
  margin-bottom: 0.8rem;
}
.nav-overlay__meta p { font-size: 0.92rem; margin-bottom: 1.5rem; }
.nav-overlay__socials { display: flex; gap: 1.1rem; font-size: 1.05rem; }
.nav-overlay__socials a:hover { color: var(--taupe); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,24,21,0.45) 0%, rgba(26,24,21,0.25) 45%, rgba(26,24,21,0.55) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-inline: var(--gutter);
  max-width: 900px;
}
.hero__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
  margin: 0.5rem 0 1.1rem;
  color: var(--white);
}
.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  opacity: 0.92;
}

.hero__dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.7rem;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  background: transparent;
  transition: background 0.3s var(--ease);
}
.hero__dot.is-active { background: var(--white); }

/* ============================================================
   ABOUT PREVIEW / PILLARS
   ============================================================ */
.about-preview {
  padding: 7rem 0 6rem;
  background: var(--beige-soft);
}
.about-preview__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.pillar {
  border-top: 1px solid var(--grey);
  padding-top: 1.6rem;
}
.pillar h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.pillar p {
  font-size: 0.94rem;
  opacity: 0.8;
}

/* ============================================================
   GALLERY PREVIEW (home)
   ============================================================ */
.gallery-preview {
  padding: 6rem 0;
  background: var(--beige-alt);
}
.gallery-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-slider {
  position: relative;
}
.gallery-slider__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.gallery-slider__track::-webkit-scrollbar { display: none; }
.gallery-slider__item {
  position: relative;
  flex: 0 0 clamp(240px, 32vw, 420px);
  aspect-ratio: 4/5;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--beige-deep);
}
.gallery-slider__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-slider__item:hover img { transform: scale(1.05); }
.gallery-slider__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(0deg, rgba(26,24,21,0.65), transparent);
  color: var(--white);
}
.gallery-slider__caption span { display: block; }
.gallery-slider__caption .title { font-family: var(--font-display); font-size: 1.15rem; }
.gallery-slider__caption .loc { font-size: 0.74rem; letter-spacing: 0.08em; opacity: 0.85; }

.slider-nav {
  display: flex;
  gap: 0.8rem;
}
.slider-nav button {
  width: 42px; height: 42px;
  border: 1px solid var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.slider-nav button:hover { background: var(--charcoal); color: var(--beige-soft); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 6.5rem 0;
  background: var(--charcoal);
  color: var(--beige-soft);
  text-align: center;
}
.testimonials .section-eyebrow { color: var(--grey); }
.testimonials .section-heading { color: var(--beige-soft); }
.testimonials .divider { background: var(--grey); }

.testimonial-slider {
  max-width: 760px;
  margin: 3rem auto 0;
  position: relative;
}
.testimonial-slide {
  display: none;
}
.testimonial-slide.is-active {
  display: block;
  animation: fade-in 0.6s var(--ease);
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
}
.testimonial-slide cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.testimonial-controls button {
  width: 40px; height: 40px;
  border: 1px solid var(--grey);
  color: var(--beige-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease);
}
.testimonial-controls button:hover { background: rgba(245,240,232,0.12); }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grey); opacity: 0.5;
}
.testimonial-dots span.is-active { opacity: 1; background: var(--beige-soft); }

/* ============================================================
   TEAM
   ============================================================ */
.team {
  padding: 6.5rem 0;
  background: var(--beige-soft);
}
.team__head { text-align: center; margin-bottom: 3.5rem; }
.team__head .section-lede { margin-inline: auto; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.2rem;
}
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 3/3.5;
  background: var(--beige-deep);
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); transition: filter 0.4s var(--ease); }
.team-card:hover .team-card__photo img { filter: grayscale(0%); }
.team-card h4 { font-size: 1.2rem; }
.team-card .role {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.3rem;
}

/* ============================================================
   SHOP TEASER
   ============================================================ */
.shop-teaser {
  padding: 6.5rem 0;
  background: var(--beige-deep);
}
.shop-teaser__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}
.shop-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--beige-alt);
}
.shop-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shop-card:hover img { transform: scale(1.06); }
.shop-card__label {
  position: absolute; inset: auto 0 0 0;
  padding: 1.3rem;
  background: linear-gradient(0deg, rgba(26,24,21,0.6), transparent);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shop-card__label h4 { color: var(--white); font-size: 1.1rem; }
.shop-card__label span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 7rem 0;
  background: var(--beige-soft);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}
.contact__info h2 { margin-bottom: 1rem; }
.contact__info-list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__info-list li { display: flex; gap: 0.9rem; font-size: 0.95rem; }
.contact__info-list i { color: var(--taupe); width: 18px; margin-top: 0.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--grey);
  background: transparent;
  padding: 0.65rem 0.1rem;
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--charcoal);
  outline: none;
}
.field--select { position: relative; }

.form-feedback {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--taupe);
  display: none;
}
.form-feedback.is-visible { display: block; }
.form-feedback.is-error { border-color: #a15c4a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--warm-black);
  color: var(--beige-alt);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.14);
}
.footer-brand .logo__mark { color: var(--beige-soft); font-size: 1.6rem; }
.footer-brand .logo__tagline { color: var(--grey); margin-top: 0.4rem; }
.footer-brand p { margin-top: 1.2rem; font-size: 0.88rem; color: var(--grey); max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: var(--beige-alt); opacity: 0.9; }
.footer-col a:hover { opacity: 1; color: var(--white); }

.footer-socials { display: flex; gap: 1rem; margin-top: 1.1rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(245,240,232,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer-socials a:hover { border-color: var(--beige-soft); background: rgba(245,240,232,0.08); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--grey);
}
.footer-bottom .heart { color: #a15c4a; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 300;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.6s infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 6px 20px rgba(37,211,102,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 6px 20px rgba(37,211,102,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 20px rgba(37,211,102,0.35); }
}
.whatsapp-float__tip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--warm-black);
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.5rem 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__tip {
  opacity: 1; visibility: visible; transform: translateX(0);
}

/* ============================================================
   IMAGE FALLBACK
   ============================================================ */
.img-fallback {
  position: relative;
  background: linear-gradient(135deg, var(--beige-deep), var(--beige-alt));
}
.img-fallback::after {
  content: attr(data-fallback-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--taupe);
  border: 1px solid var(--grey);
}
.img-fallback img { opacity: 0; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.page-hero {
  padding: 9.5rem 0 3.5rem;
  background: var(--beige-alt);
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 1rem;
}
.page-hero .breadcrumb a:hover { color: var(--charcoal); }

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 0.5rem;
}
.filter-tab {
  padding: 0.55rem 1.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--grey);
  color: var(--charcoal);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter-tab:hover { border-color: var(--charcoal); }
.filter-tab.is-active { background: var(--charcoal); color: var(--beige-soft); border-color: var(--charcoal); }

.projects-grid {
  padding: 3.5rem 0 7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--beige-deep);
  cursor: default;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project-card.is-hidden { display: none; }
.project-card--tall { grid-row: span 2; aspect-ratio: 4/9.4; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.project-card:hover img { transform: scale(1.07); }
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,24,21,0.72) 0%, rgba(26,24,21,0.05) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card:hover .project-card__overlay,
.project-card:focus-within .project-card__overlay { opacity: 1; }
.project-card__cat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.3rem;
}
.project-card__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.project-card__loc { font-size: 0.8rem; opacity: 0.85; margin-top: 0.15rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-preview__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card--tall { grid-row: span 2; }
  .nav-overlay__inner { grid-template-columns: 1fr; }
  .nav-overlay__meta { border-left: none; border-top: 1px solid var(--grey); padding-left: 0; padding-top: 1.5rem; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--tall { grid-row: span 1; aspect-ratio: 4/5; }
  .gallery-slider__item { flex-basis: 78vw; }
  .hero__headline { font-size: 2.3rem; }
  .whatsapp-float { width: 52px; height: 52px; right: 1.1rem; bottom: 1.1rem; font-size: 1.3rem; }
  .whatsapp-float__tip { display: none; }
    /* Logo scaling on small screens */
  .logo__mark { font-size: 1.15rem; }
  .logo__tagline { font-size: 0.46rem; letter-spacing: 0.14em; }
}

/* ============================================================
   MOBILE OVERFLOW HARDENING
   ============================================================ */

/* 1. Global horizontal clip */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* 2. Media never exceeds container */
img, video, iframe, svg, picture {
  max-width: 100%;
  height: auto;
}

/* 3. Every flex/grid child can shrink below content size */
.footer-grid > *,
.form-row > *,
.contact__grid > *,
.projects-grid > *,
.team-grid > *,
.shop-grid > *,
.pillars > *,
.nav-overlay__inner > *,
.about-preview__top > *,
.gallery-preview__head > *,
.shop-teaser__head > * {
  min-width: 0;
}

/* 4. Long words/URLs wrap instead of pushing layout */
p, h1, h2, h3, h4, h5, h6, a, span, li, blockquote, cite {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* 5. Hero slideshow clipping */
.hero,
.hero__slides {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 6. Gallery slider clipping */
.gallery-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.gallery-slider__track {
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* 7. Nav overlay clipping */
.nav-overlay {
  overflow-x: hidden;
  overflow-y: auto;
}
.nav-overlay__links a {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* 8. Logo safety on tiny screens */
@media (max-width: 480px) {
  .logo {
    max-width: calc(100% - 90px);
  }
  .logo__mark { font-size: 1.1rem; }
  .logo__tagline {
    font-size: 0.42rem;
    letter-spacing: 0.12em;
  }
}

/* 9. Tighten paddings/gaps on small screens */
@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact__grid { gap: 2rem; }
  .about-preview { padding: 4.5rem 0; }
  .gallery-preview,
  .testimonials,
  .team,
  .shop-teaser,
  .contact { padding: 4.5rem 0; }
  .page-hero { padding: 7.5rem 0 2.5rem; }
  .projects-grid { padding: 2.5rem 0 5rem; gap: 1.2rem; }
}

/* 10. Prevent fixed-position elements from causing overflow */
.site-header,
.whatsapp-float,
.nav-overlay {
  max-width: 100vw;
}