/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9982a;
  --gold-light: #e8b84b;
  --gold-pale:  #f0d080;
  --gold-dim:   rgba(201,152,42,0.25);
  --bg:         #05060f;
  --bg-tint:    #080c1a;
  --bg-card:    #0d1020;
  --text:       #d4c5a0;
  --white:      #ffffff;
  --radius:     4px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--gold-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.15; font-weight: 400; }

h1.display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--gold-light);
  text-shadow: 0 2px 16px rgba(201,152,42,0.4);
  letter-spacing: 0.02em;
}

h1.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-pale);
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold-light);
}

.subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--gold-pale);
  letter-spacing: 0.05em;
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
}

/* ── DIVIDER & ORNAMENT ── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.ornament {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 0.35em;
  margin: 0.4rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold-pale);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-solid {
  background: var(--gold);
  color: var(--bg);
}

.btn-solid:hover {
  background: var(--gold-light);
  color: var(--bg);
}

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #28282d;
  border-bottom: 1px solid var(--gold-dim);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  width: auto;
  height: 68px;
  object-fit: contain;
  border-radius: 3px;
  background: #f0e8c0;
  padding: 3px;
}

.footer-logo {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--gold-dim);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer-logo:hover { opacity: 1; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.nav-logo-text .location {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: var(--gold-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ── HERO (full) ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}


.hero-cta-bar {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-dim);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .ornament { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; opacity: 0.8; }

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.95rem; opacity: 0.75; }

/* ── FEATURED GALLERY (home) ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.featured-grid figure {
  overflow: hidden;
  aspect-ratio: 1;
}

.featured-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-grid figure:hover img { transform: scale(1.05); }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--bg-tint);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-strip h2 { margin-bottom: 0.75rem; }
.cta-strip p  { margin-bottom: 2rem; opacity: 0.75; }

/* ── SERVICES LIST (glass / joinery pages) ── */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.service-item .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.service-item h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.service-item p  { font-size: 0.9rem; opacity: 0.7; }

/* ── GALLERY GRID ── */
.gallery-grid {
  columns: 6;
  column-gap: 0.4rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

/* ── FORM SUCCESS MODAL ── */
.form-modal {
  position: fixed;
  inset: 0;
  background: rgba(5,6,15,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.form-modal-card {
  background: var(--bg-tint);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.form-modal-logo {
  width: 90px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.form-modal-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.75rem;
}
.form-modal-msg {
  opacity: 0.8;
  line-height: 1.7;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,6,15,0.96);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--gold);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: var(--gold);
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
  user-select: none;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details { display: flex; flex-direction: column; gap: 2rem; }

.contact-block h3 { margin-bottom: 0.75rem; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gold-dim);
  font-size: 0.95rem;
  color: var(--gold-pale);
}

.contact-line .label {
  min-width: 70px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-line a { color: var(--gold-pale); }
.contact-line a:hover { color: var(--white); }

.map-wrap {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}

.map-wrap iframe { display: block; }

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { min-height: 130px; }

.form-group { display: flex; flex-direction: column; }

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

.success-msg {
  display: none;
  background: rgba(201,152,42,0.12);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--gold-pale);
}

/* ── JOINERY COMING SOON ── */
.coming-block {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.coming-block .icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; width: 3.5rem; height: 3.5rem; color: var(--gold); }
.coming-block h3 { margin-bottom: 1rem; }
.coming-block p  { opacity: 0.7; margin-bottom: 2rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--gold-dim);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .display-sm {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.85rem; opacity: 0.6; max-width: 300px; }

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a  { font-size: 0.88rem; color: var(--text); opacity: 0.7; }
.footer-col a:hover { opacity: 1; color: var(--gold-light); }

.footer-col address { font-style: normal; font-size: 0.88rem; opacity: 0.65; line-height: 1.8; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.45;
  gap: 1rem;
}

/* ── INSTAGRAM LINK ── */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.88rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.social-link:hover { opacity: 1; color: var(--gold-light); }
.social-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}

.breadcrumb a { color: inherit; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gallery-grid { columns: 4; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .glass-intro-grid { grid-template-columns: 1fr !important; }
  .glass-intro-grid figure { max-height: 360px; overflow: hidden; }
  .glass-gallery-preview { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 201; }

  .nav-toggle.open {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 4px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .nav-toggle.open span { background: #fff; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #07070a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    border-bottom: none;
    z-index: 200;
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-links li:not(:last-child)::after {
    content: '';
    display: block;
    width: 2.2rem;
    height: 1px;
    background: rgba(255,255,255,0.18);
    margin: 0.15rem 0;
  }

  .nav-links a {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.22em;
    min-height: auto;
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.88);
  }

  .nav-links a:hover,
  .nav-links a.active { color: var(--gold-light); background: none; }

  .nav-logo img { height: 52px; }
  .nav-logo-text .location { display: none; }

  .hero { min-height: 60vw; }

  .services-grid { grid-template-columns: 1fr; }
  .services-list  { grid-template-columns: 1fr; }
  .gallery-grid { columns: 3; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }

  /* Glass page — stack intro, tighten gap, constrain image height */
  .glass-intro-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .glass-intro-grid figure { max-height: 300px; overflow: hidden; border-radius: 4px; }
  .glass-intro-grid img { height: 300px !important; width: 100% !important; object-fit: cover; }
  .glass-gallery-preview { grid-template-columns: repeat(2, 1fr) !important; }
  .glass-gallery-preview img { height: 200px !important; }

  .page-hero { padding: 3.5rem 1.2rem 2.5rem; }

  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  .cta-strip { padding: 3rem 1.2rem; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .gallery-grid { columns: 2; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { width: 130px; }
  nav { padding: 0 1rem; }
  .nav-logo-text .brand { font-size: 0.82rem; }

  .hero { min-height: 56vw; }
  .hero-cta-bar { bottom: 1.2rem; gap: 0.5rem; padding: 0 1rem; }
  .hero-cta-bar .btn { font-size: 0.72rem; padding: 0.6rem 1rem; letter-spacing: 0.12em; }

  .glass-gallery-preview { grid-template-columns: 1fr !important; }
  .glass-gallery-preview img { height: 220px !important; }

  .coming-block { padding: 2.5rem 1.5rem; }

  /* Prevent any element causing horizontal overflow */
  .section-inner { max-width: 100%; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 16px; } /* prevents iOS zoom on focus */
}
