/* ═══════════════════════════════════════════════════════════════
   GW Joiners & Glazing — Modern Site Stylesheet
   Mobile-first responsive design using flexbox & CSS grid.
   Replaces legacy screen.css, style.css, lightbox.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #ef3f03; text-decoration: none; transition: color .2s; }
a:hover { color: #c73300; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

/* ── Layout container ──────────────────────────────────────────── */
.site-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.site-logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.site-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #ef3f03;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Mobile menu toggle ────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ── Navigation ────────────────────────────────────────────────── */
.site-nav ul {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(239,63,3,.15);
}
.site-nav a.active {
  color: #ef3f03;
  font-weight: 600;
}

/* ── Hero section ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 12px;
}
.hero h1 span {
  color: #ef3f03;
}
.hero p {
  font-size: 18px;
  color: #bbb;
  max-width: 680px;
  margin: 0 auto 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #ef3f03;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(239,63,3,.3);
}
.btn-primary:hover {
  background: #c73300;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(239,63,3,.4);
}
.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  border-color: #ef3f03;
  background: rgba(239,63,3,.1);
}
.btn-dark {
  background: #333;
  color: #fff !important;
}
.btn-dark:hover {
  background: #555;
}

/* ── Section spacing ───────────────────────────────────────────── */
.section {
  padding: 56px 0;
}
.section-alt {
  background: #f8f8f8;
}
.section-dark {
  background: #1a1a1a;
  color: #ccc;
}
.section-dark h2, .section-dark h3 {
  color: #fff;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.section-header p {
  font-size: 16px;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}
.section-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: #ef3f03;
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── Service cards (replaces old four_columns) ─────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #eee;
  transition: box-shadow .25s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,63,3,.08);
  border-radius: 50%;
}
.service-card .icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.service-card .icon svg {
  width: 36px;
  height: 36px;
}
.service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.service-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ── Image gallery grid (for joinery, windows, glass, ironmongery) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery-grid a,
.gallery-grid .gallery-item {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 1;
  transition: transform .2s, box-shadow .2s;
}
.gallery-grid a:hover,
.gallery-grid .gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery for non-square items (stained glass panels, fanlights) */
.gallery-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gallery-flex a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #f4f4f4;
  transition: transform .2s;
}
.gallery-flex a:hover {
  transform: scale(1.05);
}

/* ── CTA banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #ef3f03 0%, #c73300 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}
.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
}
.cta-banner .btn {
  background: #fff;
  color: #ef3f03 !important;
  font-weight: 700;
}
.cta-banner .btn:hover {
  background: #f0f0f0;
}

/* ── Page intro strip ──────────────────────────────────────────── */
.page-intro {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  padding: 32px 0;
}
.page-intro h1 {
  font-size: 28px;
  margin-bottom: 8px;
}
.page-intro p {
  font-size: 15px;
  color: #666;
}

/* ── YouTube embed wrapper ─────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  max-width: 720px;
  margin: 0 auto;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Contact form ──────────────────────────────────────────────── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ef3f03;
  box-shadow: 0 0 0 3px rgba(239,63,3,.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: #111;
  color: #999;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px;
  height: 2px;
  background: #ef3f03;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-col a {
  color: #ccc;
}
.footer-col a:hover {
  color: #ef3f03;
}
.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-contact-item strong {
  color: #ef3f03;
  min-width: 60px;
}
.footer-map iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 6px;
}
.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a {
  color: #777;
}

/* ── Lightbox (simple modern replacement) ──────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 11000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 { font-size: 30px; }
  .section-header h2 { font-size: 26px; }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 0 20px;
  }
  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0;
  }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .site-logo-text { font-size: 17px; }
  .hero h1 { font-size: 22px; }
  .section-header h2 { font-size: 22px; }
  .cta-banner h2 { font-size: 22px; }
  .page-intro h1 { font-size: 22px; }
}
