/* ============================================================
   TIDAL LOOM STUDIO — Style Sheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --navy:       #1a2744;
  --navy-mid:   #2e3a6e;
  --sea-glass:  #7eb8a4;
  --driftwood:  #b8a48e;
  --linen:      #f4ede4;
  --sand:       #e8ddd0;
  --sandstone:  #d4b896;
  --kelp:       #6b7c5a;
  --white:      #faf8f5;
  --charcoal:   #2d2b28;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.6s var(--ease-out);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ── Typography ── */
h1 { font-family: var(--font-serif); font-size: clamp(2.8rem, 8vw, 6.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; line-height: 1.2; }
h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
p  { max-width: 60ch; }

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea-glass);
  margin-bottom: 0.75rem;
}

.body-large {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1rem;
  max-width: 55ch;
}

/* ── Layout ── */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-sub {
  color: #6b6560;
  max-width: 45ch;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn--light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn--dark {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}
.btn--dark:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.25s;
}
.nav__links a:hover { color: #fff; }

.nav__cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  color: #fff !important;
  transition: background 0.25s, border-color 0.25s !important;
}
.nav__cta:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform 0.3s; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-inline: 1.5rem;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea-glass);
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero__headline {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  margin-inline: auto;
  max-width: 42ch;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ── PHILOSOPHY ── */
.philosophy {
  background: var(--white);
}

.philosophy__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.philosophy__deco {
  display: flex;
  justify-content: center;
}

.philosophy__loom {
  width: min(260px, 100%);
  color: var(--driftwood);
  opacity: 0.7;
}

.philosophy__text h2 {
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.philosophy__text p:last-child {
  color: #6b6560;
}

/* ── SERVICES ── */
.services {
  background: var(--linen);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,39,68,0.08);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--sea-glass);
  margin-bottom: 1.4rem;
}

.service-card h3 {
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: #6b6560;
  line-height: 1.6;
}

/* ── PALETTE EXPLORER ── */
.palette {
  background: var(--navy);
  color: #fff;
}

.palette .label { color: var(--sea-glass); }
.palette h2 { color: #fff; }
.palette .section-sub { color: rgba(255,255,255,0.6); }

.palette__explorer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.palette__swatches {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s;
  text-align: left;
}

.swatch:hover, .swatch.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.swatch__color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch-color);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
  transition: box-shadow 0.25s;
}
.swatch.active .swatch__color {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

.palette__preview {
  border-radius: 8px;
  overflow: hidden;
  height: 340px;
}

/* ── Room Preview (CSS Illustration) ── */
.room-preview {
  position: relative;
  width: 100%;
  height: 100%;
  transition: all 0.6s var(--ease-out);
}

.room-preview__wall {
  position: absolute;
  inset: 0 0 30% 0;
  background: var(--room-wall, #d6e8e2);
  transition: background 0.6s var(--ease-out);
}

.room-preview__floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: var(--room-floor, #c4a882);
  transition: background 0.6s var(--ease-out);
}

.room-preview__rug {
  position: absolute;
  bottom: 22%;
  left: 15%;
  width: 60%;
  height: 10%;
  border-radius: 3px;
  background: var(--room-accent, rgba(126,184,164,0.4));
  transition: background 0.6s var(--ease-out);
}

/* Sofa */
.room-preview__sofa {
  position: absolute;
  bottom: 26%;
  left: 18%;
  width: 50%;
}
.sofa-body {
  height: 52px;
  background: var(--room-sofa, #a8c4ba);
  border-radius: 6px 6px 0 0;
  transition: background 0.6s var(--ease-out);
}
.sofa-cushion {
  position: absolute;
  top: 8px;
  width: 36%;
  height: 32px;
  border-radius: 4px;
  background: var(--room-cushion, rgba(255,255,255,0.4));
  transition: background 0.6s var(--ease-out);
}
.sofa-cushion--1 { left: 8%; }
.sofa-cushion--2 { right: 8%; }
.sofa-leg {
  position: absolute;
  bottom: -10px;
  width: 8px;
  height: 12px;
  background: var(--room-wood, #8b6f5a);
  border-radius: 0 0 2px 2px;
  transition: background 0.6s var(--ease-out);
}
.sofa-leg--l { left: 12%; }
.sofa-leg--r { right: 12%; }

/* Table */
.room-preview__table {
  position: absolute;
  bottom: 26%;
  right: 12%;
  width: 16%;
}
.table-top {
  height: 8px;
  background: var(--room-wood, #8b6f5a);
  border-radius: 2px;
  transition: background 0.6s var(--ease-out);
}
.table-leg {
  position: absolute;
  top: 8px;
  width: 6px;
  height: 36px;
  background: var(--room-wood, #8b6f5a);
  border-radius: 0 0 2px 2px;
  transition: background 0.6s var(--ease-out);
}
.table-leg--l { left: 15%; }
.table-leg--r { right: 15%; }

/* Vase */
.room-preview__vase {
  position: absolute;
  bottom: 38%;
  right: 14%;
}
.vase-body {
  width: 18px;
  height: 28px;
  background: var(--room-accent, rgba(126,184,164,0.7));
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  transition: background 0.6s var(--ease-out);
}
.vase-stem {
  width: 2px;
  height: 20px;
  background: var(--room-kelp, #6b7c5a);
  margin: 0 auto;
  border-radius: 2px;
  transition: background 0.6s var(--ease-out);
}

/* Light */
.room-preview__light {
  position: absolute;
  top: 6%;
  left: 45%;
}
.light-shade {
  width: 30px;
  height: 20px;
  background: var(--room-wood, #8b6f5a);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  opacity: 0.7;
  transition: background 0.6s var(--ease-out);
}
.light-cord {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto;
}

.room-preview__label {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: opacity 0.3s;
}

/* ── PALETTE THEMES ── */
.room-preview[data-palette="sea-glass"] {
  --room-wall: #d6e8e2;
  --room-floor: #c4a882;
  --room-sofa: #a8c4ba;
  --room-cushion: rgba(255,255,255,0.4);
  --room-wood: #8b6f5a;
  --room-accent: rgba(126,184,164,0.7);
  --room-kelp: #6b7c5a;
}
.room-preview[data-palette="driftwood"] {
  --room-wall: #e8dccf;
  --room-floor: #a8896a;
  --room-sofa: #c4a882;
  --room-cushion: rgba(250,245,238,0.5);
  --room-wood: #6b5240;
  --room-accent: rgba(184,164,142,0.7);
  --room-kelp: #8b7a62;
}
.room-preview[data-palette="linen"] {
  --room-wall: #f4ede4;
  --room-floor: #d4c4ae;
  --room-sofa: #e8ddd0;
  --room-cushion: rgba(255,255,255,0.6);
  --room-wood: #a0876c;
  --room-accent: rgba(212,184,150,0.5);
  --room-kelp: #8b7a62;
}
.room-preview[data-palette="kelp"] {
  --room-wall: #c4d4b4;
  --room-floor: #8a7a5a;
  --room-sofa: #8aA47a;
  --room-cushion: rgba(240,248,230,0.4);
  --room-wood: #5a4830;
  --room-accent: rgba(107,124,90,0.7);
  --room-kelp: #4a6040;
}
.room-preview[data-palette="sandstone"] {
  --room-wall: #e8d4b8;
  --room-floor: #c0956a;
  --room-sofa: #d4b896;
  --room-cushion: rgba(255,250,242,0.5);
  --room-wood: #785040;
  --room-accent: rgba(212,184,150,0.8);
  --room-kelp: #907050;
}
.room-preview[data-palette="indigo"] {
  --room-wall: #c8d0e4;
  --room-floor: #8888a4;
  --room-sofa: #4a5a8a;
  --room-cushion: rgba(200,210,240,0.4);
  --room-wood: #303060;
  --room-accent: rgba(46,58,110,0.7);
  --room-kelp: #505580;
}

/* ── PRESS / TESTIMONIALS ── */
.press {
  background: var(--linen);
}

.press__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.press-quote {
  background: var(--white);
  padding: 2.8rem;
  border-radius: 4px;
  border-left: 3px solid var(--sea-glass);
  position: relative;
}

.press-quote::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--sand);
  line-height: 1;
}

.press-quote p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: none;
}

.press-quote footer cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.2rem;
}

.press-quote footer span {
  font-size: 0.75rem;
  color: #8a837c;
  letter-spacing: 0.06em;
}

/* ── CONTACT ── */
.contact {
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact__info h2 {
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.contact__info p {
  color: #6b6560;
  margin-bottom: 2.5rem;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__detail svg {
  width: 20px;
  height: 20px;
  color: var(--sea-glass);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.contact__detail span {
  font-size: 0.82rem;
  color: #8a837c;
}

/* Form */
.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 3px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sea-glass);
  box-shadow: 0 0 0 3px rgba(126,184,164,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0a89e;
}

#contactForm .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Newsletter */
.newsletter {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}

.newsletter p {
  font-size: 0.85rem;
  color: #6b6560;
  margin-bottom: 1rem;
}

.newsletter__form {
  display: flex;
  gap: 0.6rem;
}

.newsletter__form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 3px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.25s;
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--sea-glass);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
  align-items: start;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: none;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.25rem;
}

.footer__nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.25s;
}
.footer__nav a:hover { color: #fff; }

.footer__social {
  display: flex;
  gap: 1rem;
  padding-top: 0.25rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.25s, color 0.25s;
}
.footer__social a:hover {
  border-color: var(--sea-glass);
  color: var(--sea-glass);
}
.footer__social svg {
  width: 14px;
  height: 14px;
}

.footer__bottom {
  text-align: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  border-left: 3px solid var(--sea-glass);
  z-index: 1000;
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .palette__explorer {
    grid-template-columns: 1fr;
  }
  .palette__swatches {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .swatch { flex: 1; min-width: 120px; }
  .palette__preview { height: 280px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .philosophy__inner {
    grid-template-columns: 1fr;
  }
  .philosophy__deco { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .press__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav.menu-open .nav__links a { font-size: 1rem; }

  .newsletter__form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__scroll { display: none; }
  .swatch { min-width: 90px; }
}
