/* ===== Stenmax Ltd — OnePager ===== */

:root {
  --charcoal: #17181a;
  --charcoal-2: #1f2123;
  --cream: #f4efe7;
  --cream-dim: #cfc8ba;
  --brass: #b98a4b;
  --brass-light: #d9ae76;
  --line: rgba(244, 239, 231, 0.12);

  --serif: "Fraunces", serif;
  --sans: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== Scroll reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brass-light);
  font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--cream);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ===== Nav ===== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 6vw;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(23, 24, 26, 0.92);
  backdrop-filter: blur(10px);
  padding: 1rem 6vw;
  border-bottom: 1px solid var(--line);
}

.nav-logo img { height: 50px; transition: height 0.4s ease; }

.nav.scrolled .nav-logo img { height: 42px; }

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--brass-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s ease;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -10%; left: 0;
  width: 100%;
  height: 120%;
  background: url("../images/hero.webp") center/cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,24,26,0.35) 0%, rgba(23,24,26,0.55) 55%, rgba(23,24,26,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 6rem;
  max-width: 780px;
}

.hero-content .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.55s; }

.hero-content .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .eyebrow { margin-bottom: 1.4rem; display: block; }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary { background: var(--brass); color: var(--charcoal); }
.btn-primary:hover { background: var(--brass-light); }

.btn-outline { border-color: var(--cream-dim); color: var(--cream); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-light); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2.2rem;
  right: 6vw;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 50px;
  background: var(--cream-dim);
}

/* ===== About ===== */

.about {
  padding: 9rem 0;
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-copy .eyebrow { margin-bottom: 1.2rem; }
.about-copy .section-title { margin-bottom: 1.8rem; }
.about-copy p { color: var(--cream-dim); margin-bottom: 1.2rem; max-width: 480px; }

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.4rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass-light);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.about-image { position: relative; }
.about-image img { width: 100%; height: 560px; object-fit: cover; }

/* ===== Atelier Bohemia ===== */

.atelier {
  padding: 9rem 0;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--line);
}

.atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.atelier-image img { width: 100%; height: 480px; object-fit: cover; }

.atelier-copy .eyebrow { margin-bottom: 1.2rem; }
.atelier-copy .section-title { margin-bottom: 1.6rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.atelier-copy p { color: var(--cream-dim); margin-bottom: 1.4rem; max-width: 480px; }

.atelier-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brass-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.3rem;
}

/* ===== Projects ===== */

.projects { padding: 9rem 0; }

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.6rem;
  gap: 2rem;
}

.projects-head p { color: var(--cream-dim); max-width: 380px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.project-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.8s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-grid .reveal:nth-child(3n+1) { transition-delay: 0s; }
.project-grid .reveal:nth-child(3n+2) { transition-delay: 0.12s; }
.project-grid .reveal:nth-child(3n+3) { transition-delay: 0.24s; }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23,24,26,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}

.project-overlay .p-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  margin: 0;
  font-weight: 400;
}

.project-overlay .p-loc {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 0.3rem;
}

/* ===== Maintenance ===== */

.maintenance {
  padding: 9rem 0;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--line);
}

.maintenance-head { max-width: 720px; margin-bottom: 4rem; }
.maintenance-head .eyebrow { margin-bottom: 1.2rem; }
.maintenance-head .section-title { margin-bottom: 1.4rem; }
.maintenance-head p { color: var(--cream-dim); }
.maintenance-head p + p { margin-top: 1.1rem; }

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.priority-card {
  height: 240px;
  perspective: 1200px;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.8s ease;
}

.priority-card:hover { transform: translateY(-6px); }

.priority-grid .reveal:nth-child(1) { transition-delay: 0s; }
.priority-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.priority-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.priority-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.priority-card.flipped .priority-card-inner { transform: rotateY(180deg); }

@media (hover: hover) {
  .priority-card:hover .priority-card-inner { transform: rotateY(180deg); }
}

.priority-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.4s ease;
}

.priority-card:hover .priority-card-face { border-color: var(--brass); }

.priority-card-back {
  transform: rotateY(180deg);
  background: var(--charcoal-2);
  justify-content: center;
}

.priority-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-bottom: 1.4rem;
}

.priority-card.red .priority-dot { background: #b9524b; }
.priority-card.orange .priority-dot { background: var(--brass); }
.priority-card.green .priority-dot { background: #7c9a7e; }

.priority-card .p-time {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.p-flip-hint {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.6;
}

.priority-card-back .p-desc {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.5;
}

/* ===== Trust ===== */

.trust {
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
}

.trust .container {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust img { height: 130px; }

.trust-text .section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.trust-text p { color: var(--cream-dim); max-width: 480px; font-size: 0.9rem; }

/* ===== Partners ===== */

.partners {
  padding: 9rem 0;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--line);
}

.partners-head { max-width: 640px; margin-bottom: 3.6rem; }
.partners-head .eyebrow { margin-bottom: 1.2rem; }
.partners-head .section-title { margin-bottom: 1.4rem; }
.partners-head p { color: var(--cream-dim); }

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

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.7rem;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.32);
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.partner-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.partners-grid .reveal:nth-child(4n+1) { transition-delay: 0s; }
.partners-grid .reveal:nth-child(4n+2) { transition-delay: 0.08s; }
.partners-grid .reveal:nth-child(4n+3) { transition-delay: 0.16s; }
.partners-grid .reveal:nth-child(4n+4) { transition-delay: 0.24s; }

/* ===== FAQ ===== */
.faq {
  padding: 9rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-head { max-width: 640px; margin-bottom: 3.6rem; }
.faq-head .eyebrow { margin-bottom: 1.2rem; }

.faq-list {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 0;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--cream);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--brass-light);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--cream-dim);
  max-width: 700px;
  padding-bottom: 1.8rem;
}

/* ===== CTA banner ===== */

.cta-banner {
  padding: 7rem 6vw;
  text-align: center;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
}

.cta-banner .section-title { margin-bottom: 2rem; }

/* ===== Contact ===== */

.contact { padding: 9rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info .eyebrow { margin-bottom: 1.2rem; }
.contact-info .section-title { margin-bottom: 1.8rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.contact-detail { margin-bottom: 1.6rem; }
.contact-detail .d-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.3rem;
}
.contact-detail .d-value { color: var(--cream-dim); }
.contact-detail a:hover { color: var(--brass-light); }

.social-links { display: flex; gap: 1.2rem; margin-top: 1.6rem; }
.social-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.social-links a:hover { color: var(--brass-light); border-color: var(--brass); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.6rem 0;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.contact-form .btn { margin-top: 1rem; border: none; cursor: pointer; }

/* ===== Footer ===== */

.footer {
  padding: 2.4rem 6vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
}

.footer a:hover { color: var(--brass-light); }

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 26, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 3rem;
  left: 0; right: 0;
  text-align: center;
}

.lightbox-caption .p-name { font-family: var(--serif); font-size: 1.4rem; }
.lightbox-caption .p-loc {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 0.4rem;
}

.lightbox-caption .p-count {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 239, 231, 0.08);
  border: 1px solid rgba(244, 239, 231, 0.25);
  color: var(--cream);
  font-size: 1.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 5;
}

.lightbox-arrow:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--charcoal);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

@media (max-width: 700px) {
  .lightbox-arrow { width: 40px; height: 40px; font-size: 0.9rem; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 72vw;
    max-width: 320px;
    background: var(--charcoal-2);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 3rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .about-grid,
  .atelier-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .atelier-image { order: -1; }

  .project-grid { grid-template-columns: repeat(2, 1fr); }

  .priority-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .projects-head { flex-direction: column; align-items: flex-start; }

  .partners-grid { grid-template-columns: repeat(3, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .about-image img { height: 380px; }
  .hero-content { padding-bottom: 4rem; }
  .about, .atelier, .projects, .maintenance, .contact, .partners, .faq { padding: 6rem 0; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Legal ===== */

.legal { padding: 13rem 0 8rem; }

.legal-content { max-width: 760px; }

.legal-content .section-title { margin: 1.2rem 0 0.6rem; }

.legal-updated {
  color: var(--cream-dim);
  font-size: 0.85rem;
  margin-bottom: 2.6rem;
}

.legal-content > p { margin-bottom: 1.6rem; color: var(--cream-dim); }

.legal-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cream);
  margin: 3rem 0 1.2rem;
}

.legal-content ul {
  margin: 0 0 1.6rem 1.4rem;
  color: var(--cream-dim);
}

.legal-content li { margin-bottom: 0.5rem; }

.legal-content a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--brass); }

.legal-back { margin-top: 2rem; }

@media (max-width: 560px) {
  .legal { padding: 10rem 0 5rem; }
}
