/* ============================================================
   RELVANO — One-Stop Building Materials
   Design system: Quiet Luxury
   ============================================================ */

:root {
  /* Palette */
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --stone: #8a8a85;
  --stone-dark: #5f5e5a;
  --silver: #c0c0c0;
  --brass: #5f5f5f;
  --brass-light: #e0e0e0;

  /* Lines */
  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.08);
  --line-light: rgba(247, 245, 240, 0.16);

  /* Type */
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(84px, 11vw, 150px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--stone-dark);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-bottom: 22px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--silver); color: var(--ink); }

.btn-brass { background: var(--silver); color: var(--ink); }
.btn-brass:hover { background: var(--ink); color: var(--brass-light); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { border-color: var(--line-light); color: var(--paper); background: transparent; }
.btn-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.4s var(--ease);
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}
.site-header.scrolled .logo-img { filter: none; }

.site-header.scrolled {
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.site-header.scrolled .container { height: 68px; }
.site-header.scrolled .logo { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 0;
  transition: color 0.4s var(--ease);
}
.site-header.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass-light);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--brass-light); }
.site-header.scrolled .nav-links a:hover { color: var(--brass); }
.site-header.scrolled .nav-links a::after { background: var(--brass); }
.nav-links a:hover::after { width: 100%; }

.nav .btn { padding: 12px 24px; }
.nav .btn.btn-light { color: var(--paper); }
.site-header.scrolled .nav .btn-light { border-color: var(--line); color: var(--ink); }
.site-header.scrolled .nav .btn-light:hover { background: var(--ink); color: var(--paper); }

/* ---------- Social links (Facebook + Instagram) ---------- */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--paper);
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-btn svg { width: 16px; height: 16px; display: block; }
.social-btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.site-header.scrolled .social-btn {
  color: var(--ink);
  border-color: var(--line);
}
.site-header.scrolled .social-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.mobile-social .social-btn {
  color: var(--ink);
  border-color: var(--line);
  width: auto;
  height: auto;
  padding: 12px 20px;
  border-radius: 999px;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-social .social-btn svg { width: 14px; height: 14px; }
.mobile-social .social-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 720px) {
  .site-header .social-links { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--paper);
  margin: 5px auto;
  transition: all 0.35s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--ink); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 9s var(--ease) forwards;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.45) 0%, rgba(20,20,20,0.1) 45%, rgba(20,20,20,0.72) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 9vw, 120px);
  color: var(--paper);
  max-width: 880px;
}
.hero-content .eyebrow { color: var(--brass-light); }
.hero-content .eyebrow::before { background: var(--brass-light); }
.hero-content h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  color: var(--paper);
  margin-bottom: 28px;
  line-height: 1.02;
}
.hero-content h1 em { font-style: italic; color: var(--brass-light); }
.hero-content p {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: rgba(247, 245, 240, 0.85);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: var(--line-light);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 88px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { border-left: 1px solid var(--line-light); padding-left: 26px; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  color: var(--paper);
}
.stat .num em { font-style: normal; color: var(--brass-light); }
.stat .lbl {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.55);
}

/* ---------- Feature (Why) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.feature {
  background: var(--paper);
  padding: clamp(36px, 4vw, 56px);
  transition: background 0.4s var(--ease);
}
.feature:hover { background: var(--white); }
.feature .idx {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brass);
}
.feature h3 {
  font-size: 24px;
  margin: 26px 0 16px;
}
.feature p { color: var(--stone-dark); font-size: 15px; }

/* ---------- Products ---------- */
.products { background: var(--paper); }
.product-pillars { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }

.pillar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.pillar-head h3 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.pillar-head .pillar-sub { color: var(--stone-dark); max-width: 380px; font-size: 15px; }
.pillar-head .pillar-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card { position: relative; overflow: hidden; }
.product-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.product-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.product-card:hover .media img { transform: scale(1.06); }
.product-card .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,20,20,0.55) 100%);
  opacity: 0.9;
  transition: opacity 0.5s var(--ease);
}
.product-card .tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  padding: 7px 14px;
  background: rgba(247, 245, 240, 0.92);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
  color: var(--paper);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}
.product-card .meta h4 {
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 6px;
}
.product-card .meta span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  opacity: 0.95;
  transition: opacity 0.5s var(--ease), color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .meta span::after {
  content: "→";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .meta span::after { transform: translateX(4px); }
.product-card:hover .meta { transform: translateY(0); }
.product-card:hover .meta span { opacity: 1; color: var(--paper); }

/* Whole product card is clickable — visible affordance: faint outline + cursor */
.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: 1px solid transparent;
  transition: outline-color 0.35s var(--ease);
}
.product-card:hover { outline-color: rgba(192, 192, 192, 0.4); }
.product-card:focus-visible { outline: 2px solid var(--silver); }

.product-card .view {
  position: absolute;
  right: 20px; bottom: 20px;
  z-index: 3;
  padding: 8px 16px;
  background: rgba(26, 26, 26, 0.82);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
  transform: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: auto;
  cursor: pointer;
}
.product-card:hover .view { background: rgba(26, 26, 26, 0.96); transform: translateY(-2px); }

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-media .float {
  position: absolute;
  right: -24px;
  bottom: -48px;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--ink);
}
.about-body .eyebrow { color: var(--brass-light); }
.about-body .eyebrow::before { background: var(--brass-light); }
.about-body h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--paper);
  margin-bottom: 26px;
}
.about-body p { color: rgba(247, 245, 240, 0.72); margin-bottom: 20px; font-size: 16px; }
.about-points { margin-top: 36px; display: flex; flex-direction: column; gap: 0; }
.about-point {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}
.about-point:first-child { border-top: 1px solid var(--line-light); }
.about-point .dot {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--silver);
}
.about-point span { font-size: 15px; color: rgba(247, 245, 240, 0.85); }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(20,20,20,0.08); }
.project-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .media img { transform: scale(1.05); }
.project-card .body { padding: 30px 32px 34px; }
.project-card .body h3 { font-size: 24px; margin-bottom: 16px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-meta .chip {
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-dark);
  border: 1px solid var(--line);
}
.project-card .body p { color: var(--stone-dark); font-size: 14.5px; }
.project-card .hl {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
}
.project-card .hl strong { color: var(--brass); font-weight: 500; }

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step { background: var(--paper-2); padding: 44px 34px; position: relative; }
.process-step .step-num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--brass);
}
.process-step h3 { font-size: 22px; margin: 22px 0 14px; }
.process-step p { color: var(--stone-dark); font-size: 14.5px; }

/* ---------- Logistics ---------- */
.logistics { background: var(--paper); }
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.logistics-card { position: relative; overflow: hidden; }
.logistics-card .media { aspect-ratio: 4 / 3; overflow: hidden; }
.logistics-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.logistics-card:hover .media img { transform: scale(1.05); }
.logistics-card .cap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.logistics-card .cap .ic {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brass);
  width: 30px;
}
.logistics-card .cap h3 { font-size: 20px; }
.logistics-card p { margin-top: 16px; color: var(--stone-dark); font-size: 14.5px; }

/* ---------- CTA / Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
}
.contact-info h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--paper);
  margin-bottom: 26px;
}
.contact-info p { color: rgba(247,245,240,0.7); margin-bottom: 40px; max-width: 460px; }
.contact-ways { display: flex; flex-direction: column; gap: 0; }
.contact-way {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-way:first-child { border-top: 1px solid var(--line-light); }
.contact-way .ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--brass-light);
  font-size: 18px;
}
.contact-way .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,245,240,0.5); }
.contact-way .val { font-size: 16px; color: var(--paper); }

.contact-form {
  background: var(--paper);
  padding: clamp(32px, 4vw, 52px);
}
.contact-form .field { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  transition: border-color 0.35s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--brass); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 16px; font-size: 12px; color: var(--stone); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 40px; border-top: 1px solid var(--line-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(247,245,240,0.55); font-size: 14px; max-width: 300px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.5);
  margin-bottom: 22px;
}
.footer-col a, .footer-col li {
  display: block;
  color: rgba(247,245,240,0.8);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
  color: rgba(247,245,240,0.45);
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 44px);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--brass); }
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media .float { right: 0; bottom: -24px; }
}

@media (max-width: 720px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .hero-scroll { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .logistics-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .pillar-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Section lede ---------- */
.section-head .lede {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.78;
  color: var(--stone-dark);
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Villa banner ---------- */
.villa-banner {
  position: relative;
  margin-bottom: clamp(52px, 6vw, 88px);
  border-radius: var(--radius);
  overflow: hidden;
}
.villa-banner img {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.villa-banner:hover img { transform: scale(1.035); }
.villa-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(26, 26, 26, 0.32) 45%,
    rgba(26, 26, 26, 0.04) 100%);
  pointer-events: none;
}
.vb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(26px, 4vw, 58px);
  max-width: 780px;
}
.vb-cap .eyebrow { color: var(--silver); }
.vb-cap p {
  margin-top: 16px;
  color: rgba(247, 245, 240, 0.9);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

/* ---------- Free design ---------- */
.section.design { background: var(--paper-2); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(42px, 5vw, 68px);
}
.design-card {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.dc-num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 16px;
}
.design-card h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}
.design-card p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--stone-dark);
}

.design-media {
  position: relative;
  margin-top: clamp(48px, 6vw, 84px);
  border-radius: var(--radius);
  overflow: hidden;
}
.design-media img {
  width: 100%;
  height: clamp(360px, 48vw, 640px);
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease);
}
.design-media:hover img { transform: scale(1.03); }
.design-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 26, 26, 0.78) 0%,
    rgba(26, 26, 26, 0.34) 50%,
    rgba(26, 26, 26, 0.05) 100%);
  pointer-events: none;
}
.dm-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dm-cap h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--paper);
  max-width: 640px;
}

@media (max-width: 1024px) {
  .design-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .dm-cap { flex-direction: column; align-items: flex-start; }
  .vb-cap p { font-size: 15px; }
}

/* ---------- Product Gallery Lightbox ---------- */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.product-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.product-lightbox .lb-close {
  position: absolute;
  top: 22px; right: 28px;
  z-index: 10;
  width: 48px; height: 48px;
  color: var(--paper);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.product-lightbox .lb-close:hover { opacity: 1; }
.product-lightbox .lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 56px; height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.12);
  color: var(--paper);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: background 0.3s, opacity 0.3s;
}
.product-lightbox .lb-arrow:hover { background: rgba(247, 245, 240, 0.22); opacity: 1; }
.product-lightbox .lb-arrow.lb-prev { left: 18px; }
.product-lightbox .lb-arrow.lb-next { right: 18px; }
.product-lightbox .lb-stage {
  position: relative;
  width: min(86vw, 1240px);
  height: min(70vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox .lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.product-lightbox .lb-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 86vw;
  overflow-x: auto;
  padding-bottom: 6px;
}
.product-lightbox .lb-thumbs img {
  width: 78px; height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}
.product-lightbox .lb-thumbs img.active,
.product-lightbox .lb-thumbs img:hover { opacity: 1; }
.product-lightbox .lb-thumbs img.active { border-color: var(--silver); }
.product-lightbox .lb-caption {
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .product-lightbox .lb-stage { width: 92vw; height: 56vh; }
  .product-lightbox .lb-arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 26px; }
  .product-lightbox .lb-arrow.lb-prev { left: 8px; }
  .product-lightbox .lb-arrow.lb-next { right: 8px; }
  .product-lightbox .lb-thumbs img { width: 60px; height: 40px; }
}
