/* Washington Glass & Glazing site styles */

:root {
  --ink: #102626;
  --text: #2a3434;
  --muted: #5a6868;
  --line: #dfe6e6;
  --bg: #ffffff;
  --bg-alt: #f3f7f7;
  --brand: #005c5c;
  --brand-dark: #003f3f;
  --brand-light: #5fc4c0;
  --brand-tint: #e3f1f0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 38, .06), 0 6px 20px rgba(16, 38, 38, .08);
  --heading: Montserrat, "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px; border: 2px solid transparent; font-family: var(--heading); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(16, 38, 38, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; }
.brand img { width: 230px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 10px 12px; color: var(--ink); font-family: var(--heading); font-weight: 600; font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }
.nav-sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); display: none; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.has-sub.open .nav-sub { display: block; }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { display: block; }
}
.nav-cta { padding: 10px 18px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .brand img { width: 180px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { box-shadow: none; }
  .nav-sub { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .nav-cta { margin-top: 16px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-family: var(--heading); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { position: relative; color: #e6eeee; background: radial-gradient(1100px 480px at 85% -10%, rgba(95, 196, 192, .25), transparent 60%), linear-gradient(135deg, #0c2424 0%, #123333 55%, #005c5c 100%); padding: 96px 0 88px; overflow: hidden; }
.hero h1 { color: #fff; max-width: 840px; }
.hero .lead { color: #cfdcdc; max-width: 680px; font-size: 1.2rem; }
.hero .eyebrow { color: var(--brand-light); }
.hero a:not(.btn) { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero .chips { margin: 28px 0 0; }
.hero-photo { padding: 0; min-height: min(78vh, 680px); display: flex; align-items: flex-end; background: var(--ink); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 24, .15) 0%, rgba(8, 24, 24, .55) 45%, rgba(8, 24, 24, .9) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 80px; }

/* Grids + cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }

/* Sector tiles */
.sector { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 24, 24, .85)); }
.sector span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-family: var(--heading); font-weight: 700; font-size: 1.2rem; }
.sector span::after { content: " \2192"; }
.sector:hover { color: #fff; }
.sector:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .sector { aspect-ratio: 16 / 10; } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.media-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Chips (project jump links) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: block; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 16px; font-size: .92rem; text-decoration: none; color: #fff; }
.chips a:hover { background: rgba(255, 255, 255, .12); }

/* Projects */
.project { padding: 64px 0; border-bottom: 1px solid var(--line); }
.project:nth-child(even) { background: var(--bg-alt); }
.project-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.project-info { position: sticky; top: 110px; }
.project-info h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .3em; }
.project-location { color: var(--muted); font-weight: 600; }
.project-team { margin: 24px 0 0; }
.project-team div { padding: 12px 0; border-top: 1px solid var(--line); }
.project-team dt { font-family: var(--heading); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.project-team dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.gallery li:first-child { grid-column: 1 / -1; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.gallery li:first-child a { aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .project-inner { grid-template-columns: 1fr; gap: 24px; }
  .project-info { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 15, 15, .9); }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.lightbox p { color: #e6eeee; text-align: center; margin: 12px 0 0; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #127a76); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d5ecea; margin: 0; max-width: 620px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
@media (max-width: 860px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* Forms */
.form-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 10px 40px rgba(16, 38, 38, .12); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field label span { color: var(--brand); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #c3cece; border-radius: 8px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 92, 92, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box { margin: 4px 0 16px; min-height: 65px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-success { text-align: center; padding: 20px 0; }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-size: .95rem; }

/* Contact details */
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-family: var(--heading); color: var(--ink); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #aebdbd; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #dce6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #dce6e6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.footer-heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .hero-photo { padding: 0; }
  .hero-content { padding-top: 120px; padding-bottom: 56px; }
  .project { padding: 48px 0; }
  .form-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
