/* =========================================================
   MONZA MODULAR — main stylesheet
   To rebrand: change the colour and font lines in :root
   ========================================================= */
:root {
  --graphite: #22262A;   /* main dark */
  --smoke:    #3E4A4F;   /* smoked-glass dark */
  --alu:      #A7ADB2;   /* aluminium grey (lines, borders) */
  --mist:     #E6E8E8;   /* light section background */
  --white:    #F7F7F5;   /* page background */
  --champ:    #B8895A;   /* bronze accent, matches the logo */
  --text:     #1C1F22;
  --muted:    #5D6469;

  --display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --line: 1px solid rgba(167,173,178,.45);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }
.wrap { width: min(var(--max), 90%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.8rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: .5rem; }
p.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
section { padding: 110px 0; }
.dark { background: var(--graphite); color: var(--white); }
.dark p.lead, .dark .muted { color: #B9BEC1; }
.mist { background: var(--mist); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; font-weight: 600; font-size: .95rem; text-decoration: none;
       border: 1px solid currentColor; transition: background .25s, color .25s; }
.btn-champ { background: var(--champ); border-color: var(--champ); color: var(--graphite); }
.btn-champ:hover { background: transparent; color: var(--champ); }
.btn-ghost:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
.btn-dark { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn-dark:hover { background: transparent; color: var(--graphite); }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--champ); padding-bottom: 2px; }

/* ---------- HEADER ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background .3s, color .3s, box-shadow .3s; }
.site-header.solid, .site-header.light-page { background: var(--white); color: var(--text); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 1.7rem; letter-spacing: .32em; }
.brand small { font-size: .62rem; letter-spacing: .5em; margin-top: 5px; opacity: .75; }
/* To use your logo image instead: replace the .brand contents with <img src="images/logo.png" alt="MONZA Modular" height="44"> */
.nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: .97rem; padding: 6px 0; }
.nav ul a[aria-current="page"] { border-bottom: 1px solid var(--champ); }
.nav .btn { padding: 11px 22px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; cursor: pointer; width: 44px; height: 44px; }
.menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px auto; }

/* ---------- HERO (home) ----------
   Photo: images/hero.jpg  (falls back to dark graphite if missing) */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden;
        background: linear-gradient(180deg, rgba(28,31,34,.45), rgba(28,31,34,.25) 35%, rgba(28,31,34,.88)), url('../images/projects/partition-bedroom.jpg') center/cover, var(--graphite); }
/* Signature: slim partition profiles running down the hero */
.profiles { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.profiles i { width: 2px; background: linear-gradient(180deg, rgba(184,137,90,0), rgba(184,137,90,.65) 40%, rgba(184,137,90,0));
              transform-origin: top; animation: drop 1.6s cubic-bezier(.2,.7,.2,1) both; }
.profiles i:nth-child(2) { animation-delay: .15s; }
.profiles i:nth-child(3) { animation-delay: .3s; }
@keyframes drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero .wrap { position: relative; padding-bottom: 90px; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero p { max-width: 48ch; font-size: 1.18rem; opacity: .9; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Inner page banner */
.page-banner { padding: 190px 0 90px; background: var(--mist); border-bottom: var(--line); }
.page-banner p.lead { margin-top: 10px; }

/* ---------- INTRO ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }

/* ---------- PRODUCT LINES ---------- */
.lines { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2px; background: var(--alu); margin-top: 50px; }
.line-card { position: relative; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
             padding: 34px; color: var(--white); text-decoration: none; overflow: hidden; background: var(--smoke); }
.line-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.line-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(28,31,34,.85)); }
.line-card > *:not(.bg) { position: relative; z-index: 1; }
.line-card:hover .bg { transform: scale(1.04); }
.line-card p { opacity: .85; max-width: 32ch; margin-bottom: 16px; }
.bg-kitchen   { background-image: url('../images/home-kitchen.jpg'); }
.bg-wardrobe  { background-image: url('../images/home-wardrobe.jpg'); }
.bg-partition { background-image: url('../images/home-partition.jpg'); }
.bg-p-partition { background-image: url('../images/product-partition.jpg'); }
.bg-p-wardrobe  { background-image: url('../images/product-wardrobe.jpg'); }
.bg-p-kitchen   { background-image: url('../images/product-kitchen.jpg'); }

/* ---------- FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--line); margin-top: 50px; }
.features div { padding: 32px 28px 0 0; }
.features div + div { padding-left: 28px; border-left: var(--line); }
.features h3 { font-size: 1.3rem; }

/* ---------- PROCESS (a real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 50px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid rgba(184,137,90,.5); padding-top: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 1rem; color: var(--champ); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 1.35rem; }

/* ---------- SPLIT (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.photo { aspect-ratio: 4/5; background-color: var(--alu); background-size: cover; background-position: center; }
.photo.wide { aspect-ratio: 16/10; }
.bg-about    { background-image: url('../images/projects/walkin-corner.jpg'); }
.bg-showroom { background-image: url('../images/showroom.jpg'); }

/* ---------- CTA BAND ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .actions { justify-content: center; margin-top: 30px; }

/* ---------- PRODUCTS PAGE ---------- */
.tabs { position: sticky; top: 84px; z-index: 20; background: var(--white); border-bottom: var(--line); }
.tabs .wrap { display: flex; gap: 36px; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 20px 0; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a.active { border-color: var(--champ); }
.product { scroll-margin-top: 160px; border-bottom: var(--line); }
.product .split { align-items: start; }
.spec { list-style: none; margin: 24px 0 30px; border-top: var(--line); }
.spec li { padding: 13px 0; border-bottom: var(--line); display: flex; justify-content: space-between; gap: 20px; }
.spec li span:first-child { color: var(--muted); }
.catalogues { margin-top: 50px; }
.catalogues h3 { font-size: 1.3rem; margin-bottom: 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-card { border: var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.cat-card .tag { font-size: .8rem; color: var(--muted); }
.cat-card strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.cat-card a { margin-top: auto; }
.cat-card.soon { opacity: .6; }

/* ---------- PROJECTS PAGE ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { font: inherit; background: none; border: 1px solid var(--alu); padding: 9px 20px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; aspect-ratio: 4/3; border: 0; cursor: zoom-in; background-color: var(--alu); background-size: cover; background-position: center; }
.tile span { position: absolute; left: 0; bottom: 0; right: 0; padding: 14px 16px; text-align: left; color: #fff; font-size: .92rem;
             background: linear-gradient(180deg, transparent, rgba(28,31,34,.8)); }
.tile[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,24,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; }
.lightbox button { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; }
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: .9rem; font-weight: 600; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 14px; font: inherit; border: 1px solid var(--alu); background: #fff; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--champ); outline-offset: 0; }
.info p { margin-bottom: 14px; }
.info strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.map { width: 100%; height: 300px; border: 0; margin-top: 18px; filter: grayscale(.4); }

/* ---------- FOOTER ---------- */
footer { background: var(--graphite); color: #B9BEC1; padding: 80px 0 30px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(167,173,178,.2); }
footer .brand { color: var(--white); margin-bottom: 16px; }
footer h4 { color: var(--white); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }
.copy { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* WhatsApp button */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
      background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  section { padding: 76px 0; }
  .menu-btn { display: block; }
  .nav ul { position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
            background: var(--white); color: var(--text); padding: 10px 5% 26px; display: none; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; border-bottom: var(--line); }
  .nav ul a { display: block; padding: 15px 0; }
  .nav ul li:last-child { border: 0; padding-top: 16px; }
  .intro, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .lines { grid-template-columns: 1fr; }
  .line-card { min-height: 380px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .features div, .features div + div { padding: 26px 0 0; border-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features, .steps, .grid, .foot, .row { grid-template-columns: 1fr; }
  .hero .wrap { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .profiles i { animation: none; }
  .line-card .bg { transition: none; }
}

/* Logo: emblem + wordmark */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
