/* ============================================================
   STUDENT LIFE FURNITURE — WEBSITE DESIGN SYSTEM
   Translated from the 2025/26 Collection Brochure
   Playfair Display (display) + Inter (text)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette (from brochure) */
  --ink:        #1a1a1a;
  --charcoal:   #2c2c2c;
  --gold:       #c9a96e;
  --gold-dark:  #b8904d;
  --light-gold: #e8d5b0;
  --cream:      #f7f3ec;
  --off-white:  #faf8f4;
  --paper:      #f0ede8;
  --mid-grey:   #8a8580;
  --warm-grey:  #d4cfc8;
  --line:       #e4ded5;
  --body-text:  #4a463f;

  /* Eco accent */
  --eco-deep:   #0f2818;
  --eco:        #4a9e5c;
  --eco-light:  #7ec87e;
  --eco-mist:   #f2faf4;

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow--light { color: var(--gold); }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }

.h-hero  { font-size: clamp(40px, 6vw, 76px); font-weight: 700; line-height: 1.04; }
.h-sec   { font-size: clamp(30px, 3.6vw, 48px); }
.h-sub   { font-size: clamp(22px, 2.4vw, 30px); }

p.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: var(--body-text); }

.rule { width: 64px; height: 2px; background: var(--gold); border: 0; }
.rule--center { margin-inline: auto; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn--ghost:hover { background: var(--gold); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn--ghost-light:hover { border-color: var(--gold); background: var(--gold); }
.btn .arr { font-size: 15px; transition: transform 0.22s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}
.site-head__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Wordmark logo */
.site-logo {
  display: block;
  height: 80px; /* Adjust this value to match your header height */
  width: auto;  /* Maintains the correct aspect ratio */
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__mark {
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; letter-spacing: 0.13em; text-transform: uppercase; color: #fff;
  white-space: nowrap;
}
.logo__strap {
  font-family: var(--sans); font-weight: 500;
  font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-top: 6px;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.82);
  padding: 6px; position: relative; transition: color 0.2s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); color: #fff !important; padding: 12px 27px; transition: background 0.2s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; transition: 0.25s; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,0.7); }
.site-foot__top { border-top: 3px solid var(--gold); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding-block: clamp(48px, 6vw, 72px);
}
.foot-grid h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.foot-grid a, .foot-grid p { font-size: 14px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; transition: color 0.2s; }
.foot-grid a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em;
}

/* ---------- Section header (brochure motif) ---------- */
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head__num { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); }
.sec-head__sub { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-grey); font-style: italic; margin-left: auto; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }

/* ---------- Cards: room/category ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.room-card { position: relative; overflow: hidden; background: var(--ink); display: block; aspect-ratio: 3 / 4; }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.room-card:hover img { transform: scale(1.06); }
.room-card__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,20,0.82) 0%, rgba(20,20,20,0.15) 55%, rgba(20,20,20,0) 100%); }
.room-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px; }
.room-card__num { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.room-card__title { font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 600; margin: 8px 0 6px; }
.room-card__meta { font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.room-card__go { margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Product tile ---------- */
.prod { background: #fff; border: 1px solid var(--line); }
.prod__img { aspect-ratio: 1; overflow: hidden; background: var(--off-white); }
.prod__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.5s; }
.prod:hover .prod__img img { transform: scale(1.05); }
.prod__body { padding: 16px 18px 20px; }
.prod__name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.prod__meta { font-size: 12px; color: var(--mid-grey); margin-top: 4px; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.12); }
.stat { background: var(--ink); padding: 36px 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--gold); line-height: 1; }
.stat__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 12px; line-height: 1.5; }

/* ---------- Catalogue CTA panel ---------- */
.cat-cta { background: linear-gradient(155deg, #2c2c2c 0%, #1a1a1a 60%, #111 100%); color: #fff; position: relative; overflow: hidden; }
.cat-cta__ghost { position: absolute; right: -4vw; bottom: -8vw; font-family: var(--serif); font-weight: 800; font-size: 32vw; color: rgba(255,255,255,0.035); line-height: 0.7; pointer-events: none; }

/* ---------- Utility ---------- */
.on-dark { color: #fff; }
.muted { color: var(--body-text); }
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.flex { display: flex; } .gap-s { gap: 12px; } .gap-m { gap: 20px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1040px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; border-bottom: 3px solid var(--gold); transform: translateY(-120%); transition: transform 0.3s; }
  .nav.open { transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav__cta { text-align: center; margin-top: 14px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .logo__mark { font-size: 16px; letter-spacing: 0.1em; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section { padding-block: clamp(40px, 7vw, 96px); }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .cards--4 { grid-template-columns: 1fr; }
  .room-card { aspect-ratio: 4/5; }
  .stat { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
