/* =========================================================
   Maison Pure Facilities — styles.css
   Palette: Navy #082D62 · Royal #1468C4 · Ice #EAF5FF
            White #FFFFFF · Charcoal #1F2937 · Light Gray #F3F4F6
   Type:    Poppins (headings) · Inter (body)
   ========================================================= */

:root {
  /* Brand: Forest Green · Champagne Gold · Ivory */
  --navy: #0f3d29;        /* forest green — headings, nav, dark sections */
  --royal: #b8924a;       /* champagne gold — accents, buttons */
  --royal-dark: #9c7a36;  /* deeper gold — hover */
  --ice: #f6efdf;         /* soft champagne tint */
  --white: #fffdf7;       /* ivory — main background */
  --charcoal: #1f2a24;
  --muted: #5c6a62;
  --gray: #f7f2e7;        /* warm ivory cards */
  --gold-light: #e3cc95;  /* light champagne on green */
  --gold-text: #8a6a2c;   /* readable gold for small text on ivory */

  --font-display: "Playfair Display", Georgia, serif;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 61, 41, 0.07);
  --shadow-md: 0 12px 30px rgba(15, 61, 41, 0.13);
  --header-h: 84px;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--royal); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(15, 61, 41, 0.25); }
.btn-primary span { color: var(--gold-light); }
.btn-primary:hover { background: #1b5a3c; }
.btn-outline { border-color: var(--royal); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 62px; width: auto; }
.footer-logo {
  width: 230px;
  height: auto;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-radius: 12px;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--royal);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--royal-dark); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #fbf6ea 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--royal-dark); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  padding-right: 1.5rem;
  border-right: 1px solid #e6d9bb;
}
.hero-highlights li:last-child { border-right: 0; padding-right: 0; }
.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ice);
}
.icon-badge svg { width: 22px; height: 22px; fill: var(--navy); }

.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 3.4;
  border-radius: 200px 24px 24px 24px;
  border-left: 14px solid var(--royal);
  /* Your photo sits on top; the logo panel shows until images/hero.jpg exists */
  background:
    url("images/hero.jpg") center / cover no-repeat,
    url("images/logo-full.png") center 45% / 78% auto no-repeat,
    radial-gradient(circle at 75% 20%, rgba(227, 204, 149, 0.35), transparent 45%),
    linear-gradient(160deg, #fffdf7 0%, #f3ead4 100%);
  box-shadow: var(--shadow-md);
  outline: 1px solid #eadfc4;
}
.hero-card {
  position: absolute;
  border-left: 4px solid var(--royal);
  left: -1.5rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
}
.hero-card strong { color: var(--navy); font-size: 1.1rem; }
.hero-card span { color: var(--gold-text); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: linear-gradient(180deg, #fffdf7 0%, var(--ice) 100%); }

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.rule {
  display: block;
  width: 38px;
  height: 3px;
  margin: 0 auto 1.1rem;
  background: var(--royal);
  border-radius: 2px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 1.9rem;
  background: #faf5ea;
  border: 1px solid #eee3c9;
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.service-card p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy .signature {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--royal);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}
.about-cards { display: grid; gap: 1.25rem; }
.info-card {
  padding: 1.8rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--royal);
}
.info-card h3 { font-size: 1.45rem; }
.info-card p { color: var(--muted); }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- Core values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.value-card {
  position: relative;
  padding: 1.7rem 1.5rem;
  background: var(--gray);
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s;
}
.value-card:hover { background: var(--ice); transform: translateY(-3px); }
.value-num {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-light);
  background: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
/* Make 7 items fill nicely: the last card spans two columns */
.value-card:last-child { grid-column: span 2; }

/* ---------- Commitment ---------- */
.commitment {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1b5a3c 100%);
  color: #e7efe9;
}
.commitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.commitment-lines { list-style: none; margin: 0; padding: 0; }
.commitment-lines li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  color: var(--white);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.commitment-lines li:last-child { border-bottom: 0; }
.commitment-copy p { font-size: 1.05rem; }
.commitment-copy .tagline {
  margin: 1.6rem 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold-light);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--gray) center / cover no-repeat;
  color: var(--muted);
  font-size: 0.95rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item:nth-child(odd) { background-color: var(--ice); }
.gallery-item.has-image { cursor: zoom-in; }
.gallery-item.has-image span { display: none; }
.gallery-item.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 41, 0);
  transition: background 0.25s;
}
.gallery-item.has-image:hover::after { background: rgba(15, 61, 41, 0.2); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8, 28, 19, 0.9);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox-caption { color: var(--white); margin-top: 1rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-head { margin-bottom: 2.5rem; }
.contact-head h2 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
.contact-head p { color: var(--muted); font-size: 1.1rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 1.8rem;
  border-left: 1px solid #e2d4b3;
  word-break: break-word;
}
.contact-item:first-child { border-left: 0; padding-left: 0; }
.contact-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.contact-item a,
.contact-item span:not(.contact-label) { color: var(--navy); font-weight: 500; }
.contact-item a:hover { color: var(--royal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #e7efe9; padding: 2.2rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--white); opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.copyright {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-card:last-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .contact-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  .site-nav li a { display: block; padding: 0.8rem 0; }
  .nav-link::after { display: none; }

  .hero-grid,
  .about-grid,
  .commitment-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .hero-card { left: auto; right: 1rem; bottom: -1.4rem; }
  .hero-visual { margin-bottom: 1.4rem; }
  .services-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .copyright { text-align: center; border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .brand-logo { height: 50px; }
  .section { padding: 4rem 0; }
  .hero { padding: 2rem 0 3.5rem; }
  .services-grid,
  .gallery-grid,
  .values-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .value-card:last-child { grid-column: auto; }
  .contact-item { border-left: 0; padding: 0 0 1rem; border-bottom: 1px solid #e2d4b3; }
  .contact-item:last-child { border-bottom: 0; }
  .hero-highlights li { border-right: 0; padding-right: 0; }
  .footer-links { gap: 1.2rem; }
}
