/* ============================================
   Acoustic Treatment UK — style.css
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --surface-2: #efede9;
  --text: #1c1c1c;
  --muted: #777777;
  --accent: #3d5a52;
  --accent-light: #e8f0ee;
  --accent-hover: #2e4640;
  --border: #e2dfd9;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
  --nav-height: 72px;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61,90,82,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* No-JS / reduced-motion fallback — also fixes headless screenshot capture */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(248,247,245,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 1rem; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — globally hidden; shown only when .open is added via JS on mobile */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--surface);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('images/hero-bright-space.png');
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(248,247,245,0.85) 40%,
    rgba(248,247,245,0.25) 100%
  );
}
@media (max-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(248,247,245,0.55) 0%,
      rgba(248,247,245,0.80) 60%,
      rgba(248,247,245,0.95) 100%
    );
  }
}
.hero-content {
  position: relative;
  z-index: 4; /* above mesh (2) and gradient (1) */
  max-width: 620px;
  padding-top: var(--nav-height);
}
.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* ---- Rotating word animation ---- */
.hero-rotating-word-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  /* height matches one line of Playfair Display at h1 size */
  height: 1.2em;
  line-height: 1.2;
}
.hero-rotating-word {
  display: inline-block;
  color: var(--accent);
  animation: wordEnter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-rotating-word.exit {
  animation: wordExit 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes wordEnter {
  from { transform: translateY(-80px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes wordExit {
  from { transform: translateY(0);      opacity: 1; }
  to   { transform: translateY(100px);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotating-word,
  .hero-rotating-word.exit { animation: none; }
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  opacity: 0.8;
}

/* ============================================
   PRODUCTS
   ============================================ */
#products { background: var(--surface); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.4rem;
}
.product-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.product-card p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-price {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}
.product-link:hover { gap: 0.6rem; }

/* ============================================
   COLOURS / SWATCHES
   ============================================ */
#colours { background: var(--bg); }
.swatch-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.swatch-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.swatch-tab.active, .swatch-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.swatch[data-name]:hover::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
[data-palette="neutrals"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.75rem; }
[data-palette="warm"] { display: none; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.75rem; }
[data-palette="cool"] { display: none; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.75rem; }
[data-palette="bold"] { display: none; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.75rem; }
.swatch-palette.visible { display: grid !important; }
.colours-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.colours-cta p { margin: 0; font-style: italic; }

/* ============================================
   HOW IT WORKS
   ============================================ */
#how-it-works { background: var(--surface); }
.hiw-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.hiw-steps { display: flex; flex-direction: column; gap: 2.5rem; }
.hiw-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.hiw-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.hiw-step-body h3 { margin-bottom: 0.4rem; }
.hiw-step-body p { font-size: 0.95rem; }
.hiw-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hiw-image img { height: 500px; }
.hiw-cta { margin-top: 2.5rem; }

/* ============================================
   ROOMS
   ============================================ */
#rooms { background: var(--bg); }
.rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.room-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.room-card-image {
  height: 240px;
  overflow: hidden;
}
.room-card-image img {
  height: 100%;
  transition: transform 0.5s ease;
}
.room-card:hover .room-card-image img { transform: scale(1.04); }
.room-card-body { padding: 1.5rem; }
.room-card-body h3 { margin-bottom: 0.5rem; }
.room-card-body p { font-size: 0.9rem; margin-bottom: 1rem; }
.room-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}
.room-link:hover { gap: 0.6rem; }

/* ============================================
   21ST.DEV COMPONENT 5 — INTERACTIVE BENTO GALLERY
   Adapted from anurag-mishra22/interactive-bento-gallery
   ============================================ */
#gallery { background: var(--surface); }

/* --- Bento grid --- */
.bento-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 60px;
  gap: 12px;
}

/* Grid spans — 8 items in a balanced layout */
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 4; }  /* living room — feature */
.bento-item:nth-child(2) { grid-column: span 1; grid-row: span 2; }  /* texture closeup */
.bento-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }  /* home studio */
.bento-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }  /* restaurant */
.bento-item:nth-child(5) { grid-column: span 1; grid-row: span 3; }  /* podcast studio */
.bento-item:nth-child(6) { grid-column: span 1; grid-row: span 3; }  /* home office */
.bento-item:nth-child(7) { grid-column: span 1; grid-row: span 3; }  /* meeting room */
.bento-item:nth-child(8) { grid-column: span 1; grid-row: span 3; }  /* workshop */

/* --- Bento item --- */
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--surface-2);
  /* staggered entrance via JS-added class */
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease,
              box-shadow 0.3s ease;
}
.bento-item.bento-visible {
  opacity: 1;
  transform: scale(1);
}
.bento-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 1;
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-item:hover img { transform: scale(1.05); }
.bento-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Hover overlay --- */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  pointer-events: none;
}
.bento-item:hover .bento-overlay { opacity: 1; }
.bento-label {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Modal ---- */
.bento-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bento-modal[hidden] { display: none; }

.bento-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bento-modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.bento-modal-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.bento-modal-content {
  position: relative;
  z-index: 5;
  width: min(90vw, 820px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: modalEnter 0.35s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.bento-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.bento-modal-img.switching { opacity: 0; }

.bento-modal-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}
.bento-modal-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}
.bento-modal-desc {
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* ---- Bottom dock ---- */
.bento-dock {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30,30,30,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}
.bento-dock-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.2s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.bento-dock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bento-dock-thumb:hover {
  transform: scale(1.3) translateY(-6px);
}
.bento-dock-thumb.active {
  transform: scale(1.25) translateY(-8px);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* ============================================
   MADE IN UK
   ============================================ */
#made-in-uk { background: var(--surface-2); }
.miu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.miu-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.miu-image img { height: 500px; }
.miu-content p { margin-bottom: 1.5rem; }
.miu-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.miu-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.miu-badge i { font-size: 1.1rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials { background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: #f5b942;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.testimonial-author strong { font-size: 0.9rem; font-weight: 700; }
.testimonial-author span { font-size: 0.8rem; color: var(--muted); }

/* ============================================
   CONTACT
   ============================================ */
#contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 3px;
  width: 20px;
  flex-shrink: 0;
}
.contact-detail-body strong { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.contact-detail-body span { font-size: 0.9rem; color: var(--muted); }
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #c94a4a; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  color: #fff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

/* ============================================
   21ST.DEV COMPONENTS
   ============================================ */

/* 1 — HERO GRADIENT MESH — removed, clashed with photo */

/* 2 — PRODUCT BENTO GRID */
.product-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
/* Featured card spans 2 rows vertically */
.product-card--featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}
.product-card--featured h3 { font-size: 1.3rem; }
.product-card--featured p  { font-size: 1rem; flex: 1; }
.product-card--featured .product-icon {
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
/* Wide card spans 2 columns on bottom row */
.product-card--wide {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 1.5rem;
  align-items: start;
}
.product-card--wide .product-icon {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}
.product-card--wide h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.product-card--wide p {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: 0.75rem;
}
.product-card--wide .product-price {
  grid-column: 1 / 3;
  grid-row: 3;
}
.product-card--wide .product-link {
  grid-column: 1 / 3;
  grid-row: 4;
}

/* 3 — COLOUR SWATCHES CROSSFADE
   Replace display:none with opacity + max-height for smooth tab transition */
.swatch-palette {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, max-height 0.5s ease;
  /* keep grid always so layout doesn't collapse mid-transition */
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.75rem;
}
.swatch-palette.visible {
  opacity: 1;
  max-height: 300px;
  pointer-events: auto;
  margin-bottom: 2.5rem;
}
/* Remove the old per-palette display rules */
[data-palette="neutrals"],
[data-palette="warm"],
[data-palette="cool"],
[data-palette="bold"] { display: grid !important; }

/* 4 — TESTIMONIALS MARQUEE */
#testimonials { overflow: hidden; }
#testimonials .container { margin-bottom: 0; padding-bottom: 0; }
.marquee-outer {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0 3rem;
  /* Soft edge fade */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  cursor: grab;
}
.marquee-outer:active { cursor: grabbing; }
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .testimonial-card {
  width: 380px;
  flex-shrink: 0;
  /* override border-left accent with top accent on marquee cards */
  border-left: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 5 — CTA STRIP */
.cta-strip {
  background: var(--accent);
  padding: 80px 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-strip-text h2 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.cta-strip-text p {
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  font-size: 1rem;
}
.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  white-space: nowrap;
}
.btn-white:hover {
  background: var(--bg);
  border-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  /* Bento: collapse to 2 col at tablet */
  .product-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .product-card--featured { grid-row: auto; }
  .product-card--wide { grid-column: auto; grid-template-columns: auto 1fr; }
  .hiw-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hiw-image { order: -1; }
  .hiw-image img { height: 360px; }
  .miu-inner { grid-template-columns: 1fr; gap: 3rem; }
  .miu-image img { height: 360px; }
  .bento-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 80px; }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 3; }
  .bento-item:nth-child(2) { grid-column: span 1; grid-row: span 2; }
  .bento-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
  .bento-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
  .bento-item:nth-child(5) { grid-column: span 1; grid-row: span 2; }
  .bento-item:nth-child(6) { grid-column: span 1; grid-row: span 2; }
  .bento-item:nth-child(7) { grid-column: span 1; grid-row: span 2; }
  .bento-item:nth-child(8) { grid-column: span 1; grid-row: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .cta-strip-inner { flex-direction: column; text-align: center; align-items: center; }
  .marquee-track .testimonial-card { width: 320px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  /* Mobile menu styles (display/position/z-index set globally above) */
  .nav-mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-menu .btn { text-align: center; justify-content: center; }
  .rooms-grid { grid-template-columns: 1fr; }
  .bento-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento-modal-content { width: 95vw; aspect-ratio: 4 / 3; }
  .bento-dock-thumb { width: 36px; height: 36px; }
  .product-bento { grid-template-columns: 1fr; }
  .product-card--wide { grid-template-columns: auto 1fr; }
  .marquee-track .testimonial-card { width: 280px; }
  .cta-strip { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; justify-content: center; }
  .product-bento { grid-template-columns: 1fr; }
  .product-card--wide { grid-template-columns: 1fr; grid-template-rows: auto; }
  .product-card--wide .product-icon,
  .product-card--wide h3 { grid-column: 1; }
  .product-card--wide h3 { grid-row: 2; margin-top: 0.75rem; }
}
