/* =========================================================
   TUNGSTEN CONSTRUCTION GROUP brand palette
     --black    #111111  Tungsten Black (primary dark bg)
     --charcoal #262828  panels / cards
     --steel    #585858  borders / muted
     --gunmetal #7A7A7A  secondary text on dark
     --chrome   #D6D6D6  accent, sampled from the real logo mark's metal
     --stone    #E6E1DA  light section bg
     --ivory    #F7F5F2  lightest bg / cards on light sections
   Type: Montserrat (400/500/600/700/800/900) throughout
   ========================================================= */

:root {
  --black: #111111;
  --charcoal: #262828;
  --charcoal-soft: #2F3232;
  --steel: #585858;
  --gunmetal: #7A7A7A;
  --chrome: #D6D6D6;
  --chrome-dark: #B0B0B0;
  --stone: #E6E1DA;
  --ivory: #F7F5F2;
  --ink-on-light: #201C16;

  --font: 'Montserrat', sans-serif;
  --max-width: 1160px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--stone);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: 0.01em; margin: 0; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome);
  margin-bottom: 0.75rem;
}
img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Accessible/SEO-only text ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 1.9em;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--chrome);
  color: var(--black);
  border-color: var(--chrome);
}
.btn-accent:hover { background: var(--chrome-dark); border-color: var(--chrome-dark); }

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

.btn-small { padding: 0.6em 1.3em; font-size: 0.75rem; }
.btn-full { width: 100%; text-align: center; border: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(230, 225, 218, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ivory);
  line-height: 1.15;
}
.logo-text em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.52em;
  letter-spacing: 0.14em;
  color: var(--gunmetal);
  text-transform: lowercase;
}

.main-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gunmetal);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--chrome); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--stone); border-radius: 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem 5rem;
}

.hero-inner { position: relative; max-width: var(--max-width); margin: 0 auto; text-align: center; }

.hero-logo {
  display: block;
  margin: 0 auto 1.75rem;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-caption {
  max-width: 46em;
  margin: 0 auto 2.2rem;
  color: #FFFFFF;
  font-size: 1.05rem;
}


.hero-actions { display: flex; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid rgba(230, 225, 218, 0.15);
  padding-top: 2.2rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: 0.15rem; }
.stat-number { font-size: 2.1rem; font-weight: 900; color: #fff; }
.stat-suffix { font-size: 1.3rem; font-weight: 800; color: var(--chrome); }
.stat dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gunmetal);
  margin-top: 0.3rem;
}

/* ---------- Section shared ---------- */
.section-head { max-width: var(--max-width); margin: 0 auto 3rem; padding: 0 1.5rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.7rem); color: #fff; }
.section-note { color: var(--gunmetal); max-width: 36em; margin: 0.8rem auto 0; }
.section-note.left { margin-left: 0; margin-right: 0; text-align: left; }

/* ---------- Services ---------- */
.services { padding: 6rem 1.5rem; background: var(--charcoal); }

.service-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--black);
  border: 1px solid rgba(230, 225, 218, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--chrome); }

.service-icon { width: 44px; height: 44px; color: var(--stone); margin-bottom: 1.2rem; }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.service-card p { color: var(--gunmetal); font-size: 0.94rem; margin: 0 0 1rem; }

.service-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--chrome);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.service-link:hover { border-color: var(--chrome); }

/* corner accents on hover */
.service-card::before, .service-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--chrome);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.service-card::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.service-card::after { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }

/* ---------- Gallery ---------- */
.gallery { padding: 6rem 1.5rem; background: var(--black); }

.gallery-group { max-width: var(--max-width); margin: 0 auto 3.5rem; }
.gallery-group:last-child { margin-bottom: 0; }

.gallery-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--chrome);
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(230, 225, 218, 0.12);
}

.gallery-show-more {
  display: none;
  width: max-content;
  margin: 1.1rem auto 0;
  background: none;
  border: 1px solid var(--steel);
  color: var(--stone);
  padding: 0.7em 1.7em;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.gallery-show-more:hover { border-color: var(--chrome); color: var(--chrome); }

.gallery-flyer {
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  cursor: zoom-in;
}
.gallery-flyer img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(230, 225, 218, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-flyer:hover img {
  transform: scale(1.06);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}
.gallery-flyer figcaption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--gunmetal);
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px dashed rgba(230, 225, 218, 0.25);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(230,225,218,0.04) 0 2px, transparent 2px 14px);
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
}
.gallery-frame.has-photo {
  border-style: solid;
  border-color: rgba(230, 225, 218, 0.18);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-frame.has-photo:hover {
  transform: scale(1.14);
  z-index: 5;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}
.gallery-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.gallery-frame::before {
  content: '';
  position: absolute; top: 6px; left: 6px; width: 10px; height: 10px;
  border-top: 2px solid var(--chrome); border-left: 2px solid var(--chrome);
  z-index: 2;
}
.gallery-frame::after {
  content: '';
  position: absolute; bottom: 6px; right: 6px; width: 10px; height: 10px;
  border-bottom: 2px solid var(--chrome); border-right: 2px solid var(--chrome);
  z-index: 2;
}

.frame-tag {
  position: relative;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gunmetal);
  background: rgba(38, 40, 40, 0.7);
  padding: 0.3em 0.6em;
  border-radius: var(--radius);
}

/* ---------- FAQ ---------- */
.faq { padding: 6rem 1.5rem; background: var(--charcoal); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--black);
  border: 1px solid rgba(230, 225, 218, 0.1);
  border-radius: var(--radius);
  padding: 0.2rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.2rem 0;
  padding-right: 2rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1.05rem;
  color: var(--chrome);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--gunmetal); padding-bottom: 1.3rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 6rem 1.5rem; background: var(--stone); color: var(--ink-on-light); }

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
}

.contact-info h2 { color: var(--ink-on-light); font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 0.8rem; }
.contact-info .eyebrow { color: var(--steel); }
.contact-info .section-note { color: var(--ink-on-light); opacity: 0.7; margin: 0 0 2rem; }

.contact-details { display: grid; gap: 0.9rem; margin: 0; }
.contact-details > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(32,28,22,0.12); padding-bottom: 0.6rem; }
.contact-details dt { color: var(--ink-on-light); opacity: 0.55; font-size: 0.75rem; font-weight: 600; }
.contact-details dd { margin: 0; font-size: 0.85rem; font-weight: 600; text-align: right; }
.contact-details dd a { text-decoration: underline; text-underline-offset: 2px; }

.quote-form {
  background: var(--ivory);
  border: 1px solid rgba(32,28,22,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

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

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-light);
  opacity: 0.65;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid rgba(32,28,22,0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-on-light);
  font-family: var(--font);
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
}

textarea { resize: vertical; }

.form-status { margin: 1rem 0 0; font-size: 0.85rem; min-height: 1.2em; }
.form-status.success { color: #2E7D32; }
.form-status.error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid rgba(230, 225, 218, 0.1); padding: 2rem 1.5rem; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-copy { color: var(--steel); font-size: 0.72rem; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 17, 0.94);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-caption {
  margin: 1.1rem 0 0;
  color: var(--stone);
  font-size: 0.85rem;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--chrome); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(230, 225, 218, 0.1);
  }
  .main-nav.is-open { max-height: 300px; }
  .main-nav a { padding: 1rem 1.5rem; border-top: 1px solid rgba(230, 225, 218, 0.06); }
  .nav-toggle { display: flex; }
  .form-row-split { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.75rem; }
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid.is-collapsed .gallery-frame:nth-child(n+4) { display: none; }
  .gallery-show-more { display: block; }
}
