/* ============================================================
   YourCompanyName — Blind Installation
   Staging stylesheet. Palette and type are placeholders we can
   re-theme once branding is confirmed. Edit the :root tokens.
   ============================================================ */

:root {
  /* Brand palette — tasteful default for a clean, trustworthy trade */
  --navy:    #1f2a44;   /* deep, dependable */
  --navy-2:  #2c3a5e;
  --warm:    #c8a45c;   /* muted gold accent */
  --warm-d:  #b08f44;
  --ink:     #20242b;
  --body:    #4a4f57;
  --line:    #e6e3dc;
  --bg:      #ffffff;
  --bg-alt:  #f7f5f0;   /* warm off-white */
  --bg-img:  #e9e6df;   /* placeholder image fill */

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(31, 42, 68, 0.08);
  --font-head: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .4em; font-weight: 600;
  font-variant-ligatures: none;           /* stop f+i fusing into one glyph */
  font-feature-settings: "liga" 0, "clig" 0;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--warm-d); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.btn:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--warm-d);
  margin: 0 0 .5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 500; font-size: .96rem; color: var(--ink); }
.nav-menu a:hover { color: var(--warm-d); }
.nav-menu .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

/* Slideshow layers */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;                    /* always beneath the overlay */
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }   /* toggled by script.js — crossfades */

/* Dark gradient overlay so text stays readable (sits above every slide) */
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(18,25,46,.72) 0%, rgba(18,25,46,.52) 100%);
}

/* Content sits above the slides */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* Text colours on dark background */
.hero .eyebrow { color: var(--warm); }
.hero h1 { color: #fff; }
.lede { font-size: 1.18rem; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.hero-note { font-size: .9rem; color: rgba(255,255,255,.6); margin: 0; }

/* Ghost button needs to be white on dark hero */
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-sub { color: var(--body); margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards / Features ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { margin: 0; color: var(--body); }

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--warm);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.feature h3 { margin-top: .25rem; }
.feature p { margin: 0; color: var(--body); }
.feature-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--warm);
  margin-bottom: .25rem;
}

/* ---------- Gallery ---------- */
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ---------- Lightbox ---------- */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 20, 35, 0.92);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

.lb-img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  transition: background .15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }

.lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.75rem; padding: .3rem .7rem; }
.lb-prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); font-size: 2.5rem; padding: .2rem .7rem; }
.lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; padding: .2rem .7rem; }

@media (max-width: 640px) {
  .lb-prev { left: .4rem; }
  .lb-next { right: .4rem; }
}

/* ---------- Quotes ---------- */
.quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
}
.quote p { font-size: 1.02rem; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 600; color: var(--body); font-size: .9rem; }

/* ---------- Contact (call-first) ---------- */
.section-cta { background: var(--bg-alt); text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.15rem; }
.call-btn { margin-top: 1.5rem; }
.call-or { margin: 1rem 0 0; color: var(--body); }
.call-or a { font-weight: 600; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; flex-direction: column; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8f98; }
.contact-list a, .contact-list span { font-size: 1.05rem; color: var(--ink); }

/* Horizontal row of details under the call button */
.contact-list-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2.5rem;
  margin-top: 2.5rem; text-align: center;
}
.contact-list-row li { border-bottom: 0; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd3e0; padding: 2.5rem 0; }
.footer-inner { text-align: center; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: .5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--warm); }
.copyright { font-size: .85rem; color: #9aa3b8; margin: .5rem 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  nav.open { max-height: 360px; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { text-align: center; margin-top: .6rem; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Disable movement (transforms), but keep gentle opacity fades like the
     hero crossfade — a fade is low-motion and stays comfortable. */
  .card:hover, .gallery img:hover { transform: none; }
}
