/* =========================================================
   TU CASA — Window Furnishings & Interior Styling
   Brand-aligned stylesheet
   Palette + type taken from the brand identity board.
   ========================================================= */

:root {
  /* Colour palette */
  --ivory:      #F8F6F2;  /* primary background   */
  --linen:      #F2EFE9;  /* secondary background */
  --charcoal:   #2C2A28;  /* primary text         */
  --warm-grey:  #6E6963;  /* secondary text       */
  --taupe:      #B4A697;  /* accent               */
  --olive:      #8B8D80;  /* optional accent      */
  --stone:      #DDD8CF;  /* dividers             */
  --white:      #FFFFFF;

  /* Type */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 92px;

  /* Soft daylight-on-linen placeholder gradients (show if a photo is missing) */
  --ph-1: radial-gradient(120% 120% at 20% 15%, #efe7db 0%, #e3d8c8 40%, #cdbca8 100%);
  --ph-2: radial-gradient(120% 120% at 80% 20%, #f0eae0 0%, #ddceba 55%, #c3b09b 100%);
  --ph-warm: linear-gradient(135deg, #e9ddcd 0%, #d8c6b0 100%);
  --ph-dusk: linear-gradient(150deg, #cdb7a2 0%, #9c8a76 60%, #6f6152 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.4em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.subhead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);      /* ~24px */
  color: var(--warm-grey);
  margin: 0 0 1em;
}
p { margin: 0 0 1.1em; }
.small { font-size: 0.94rem; color: var(--warm-grey); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--taupe);
  margin: 0 0 0.9em;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(36px, 5.5vw, 72px); }
/* First section on a page sits right under the sticky header — trim its top padding
   and start its text at the top rather than centring it against a tall image */
main > .section:first-child { padding-top: clamp(16px, 2.5vw, 32px); }
main > .section:first-child .split { align-items: start; }
.section--linen { background: var(--linen); }
.center { text-align: center; }
.lede { max-width: 62ch; }
.lede.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.btn--ghost {
  background: transparent;
  color: var(--charcoal);
}
.btn--ghost:hover { background: var(--charcoal); color: var(--ivory); }
.btn--light {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: #fff; color: var(--charcoal); border-color:#fff; }
.btn--sm { padding: 9px 20px; font-size: 0.72rem; }

/* Emphasis lead-in line (About page) */
.lead-line {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: .5em;
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links a { color: var(--warm-grey); transition: color .2s; padding-block: 6px; }
.nav__links a:hover, .nav__links a.active { color: var(--charcoal); }
/* The CTA button inside the links list belongs to the collapsed mobile menu only */
.nav__links .nav__cta-mobile { display: none; }

.brand {
  justify-self: center;
  text-align: center;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: 0.16em;
  color: var(--charcoal);
}
.brand__tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: 6px;
}
.nav__cta {
  justify-self: end;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.nav__cta:hover { color: var(--taupe); }

/* mobile nav toggle */
.nav__toggle {
  display: none;
  justify-self: end;
  background: none;
  border: 0;
  width: 42px; height: 42px;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 9px;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle span { top: 20px; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(62vh, 540px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,26,22,.05) 0%, rgba(30,26,22,.15) 45%, rgba(30,26,22,.5) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(24px, 4.5vw, 52px); }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero p { color: rgba(255,255,255,.92); font-family: var(--serif); font-size: clamp(1.15rem,2vw,1.5rem); margin-bottom: 1.1em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero--tall { min-height: min(90vh, 820px); align-items: center; text-align: left; }

/* Page banner (interior pages) */
.banner {
  position: relative;
  min-height: 30vh;
  padding-block: 40px;
  display: flex; align-items: center;
  color: #fff;
  background-size: cover; background-position: center;
  text-align: center;
}
.banner::after { content:''; position:absolute; inset:0; background: rgba(30,26,22,.4); }
.banner__inner { position: relative; z-index: 2; width: 100%; }
.banner h1 { color: #fff; margin: 0; }
.banner p { color: rgba(255,255,255,.9); margin-top: .5em; }

/* =========================================================
   Trust strip
   ========================================================= */
.trust {
  background: var(--linen);
  border-block: 1px solid var(--stone);
  text-align: center;
  padding-block: 26px;
}
.trust span {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--warm-grey);
  letter-spacing: .01em;
}
.trust span + span::before { content: '|'; margin: 0 clamp(12px,2.4vw,26px); color: var(--taupe); }

/* =========================================================
   Split intro (image + text)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { aspect-ratio: 5/4; border-radius: 3px; }
.split__media--portrait { aspect-ratio: 3/4; }
.split__body p:last-child { margin-bottom: 0; }

/* =========================================================
   Full-bleed feature band
   ========================================================= */
.band {
  position: relative;
  min-height: 34vh;
  padding-block: 40px;
  display: flex; align-items: center;
  color: #fff;
  background-size: cover; background-position: center;
}
.band::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(30,26,22,.55) 0%, rgba(30,26,22,.15) 70%); }
.band__inner { position: relative; z-index: 2; }
.band h2 { color:#fff; }
.band p { color: rgba(255,255,255,.9); max-width: 46ch; }

/* =========================================================
   Services grid
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(22px, 2.8vw, 36px);
}
.card { display: flex; flex-direction: column; }
.card__media {
  aspect-ratio: 5/4;
  border-radius: 3px;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.card:hover .card__media { transform: scale(1.02); }
.card__title { margin: 22px 0 4px; font-size: clamp(1.35rem,2.4vw,1.75rem); }
.card__sub { color: var(--warm-grey); font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin-bottom: 16px; }
.card__link { margin-top: auto; align-self: flex-start; }

/* =========================================================
   Process
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.step { border-top: 1px solid var(--stone); padding-top: 16px; }
.step__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--taupe);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.4rem; margin-bottom: .3em; }
.step p { color: var(--warm-grey); margin: 0; font-size: 1rem; }

/* =========================================================
   Service detail sections
   ========================================================= */
/* Sticky product quick-nav (services page) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  background: var(--linen);
  border-block: 1px solid var(--stone);
  padding-block: 12px;
}
.subnav__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.subnav a { color: var(--warm-grey); font-family: var(--serif); font-size: 1.05rem; transition: color .2s; }
.subnav a:hover { color: var(--charcoal); }

.service {
  /* clear the sticky header plus the sticky subnav */
  scroll-margin-top: calc(var(--header-h) + 68px);
}
.service + .service { border-top: 1px solid var(--stone); }
.service__media { aspect-ratio: 16/10; border-radius: 3px; background-size: cover; background-position: center; }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list > li { padding: 12px 0; border-top: 1px solid var(--stone); }
.detail-list > li:first-child { border-top: 0; }
.detail-list strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.detail-list span { color: var(--warm-grey); font-size: .98rem; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.gallery__item {
  position: relative;
  aspect-ratio: 5/4; /* matches the photos' native ratio — no cropping */
  border-radius: 3px;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(30,26,22,.55));
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--warm-grey);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 13px 15px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--taupe); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-detail { margin-bottom: 26px; }
.contact-detail span { display:block; font-size:.76rem; text-transform:uppercase; letter-spacing:.14em; color:var(--taupe); margin-bottom:5px; }
.contact-detail a, .contact-detail p { font-family: var(--serif); font-size: 1.3rem; margin:0; color:var(--charcoal); }
.form-note { font-size: .82rem; color: var(--warm-grey); margin-top: 4px; }
.form-success {
  display: none;
  background: var(--linen);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 22px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--charcoal);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--charcoal);
  color: rgba(248,246,242,.75);
  padding-block: clamp(48px, 7vw, 80px) 36px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand__name { color: var(--ivory); }
.site-footer .brand__tag { color: rgba(248,246,242,.55); }
.footer-col h4 { color: var(--ivory); font-family: var(--sans); font-size:.78rem; text-transform:uppercase; letter-spacing:.14em; font-weight:600; margin-bottom:16px; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin-bottom:10px; }
.footer-col a { color: rgba(248,246,242,.75); transition: color .2s; }
.footer-col a:hover { color: var(--ivory); }
.footer-social { display:flex; gap:14px; margin-top:22px; }
.footer-social a {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(248,246,242,.25);
  color: rgba(248,246,242,.75);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover { color: var(--charcoal); background: var(--ivory); border-color: var(--ivory); }
.footer-social svg { width:18px; height:18px; }
.footer-bottom { border-top: 1px solid rgba(248,246,242,.15); padding-top: 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; color: rgba(248,246,242,.55); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
/* Visible by default — so content always shows even with no JS.
   The hidden/animated state is applied only when <html class="js"> is set. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
/* Collapse the nav to a hamburger before it gets cramped —
   five links + centred wordmark + CTA need ~1200px to breathe. */
@media (max-width: 1200px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; margin-left: 4px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--stone);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 0 26px;
    font-size: .95rem;
    transform: translateY(-120%);
    transition: transform .35s ease;
    box-shadow: 0 20px 40px rgba(44,42,40,.08);
    visibility: hidden;
  }
  body.nav-open .nav__links { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 12px; }
  .nav__links .nav__cta-mobile { display: inline-block; margin-top: 12px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 5/4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero { min-height: 54vh; }
  .trust span { display:block; }
  .trust span + span::before { display:none; }
  .footer-grid { grid-template-columns: 1fr; }
}
