/* ============================================
   2G Construction — styles.css
   Palette: blue #2c66af | charcoal #323232 | gold #ffb200
   ============================================ */

:root {
  --blue: #2c66af;
  --blue-dark: #24548f;
  --charcoal: #323232;
  --gold: #ffb200;
  --gray: #6b6b6b;
  --light: #f5f7fa;
  --border: #ececec;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(50, 50, 50, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

h1, h2, h3 { color: var(--blue); line-height: 1.25; font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img { height: 62px; width: auto; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--blue); border-bottom-color: var(--gold); }
.site-nav a.active { color: var(--blue); border-bottom-color: var(--gold); }

.nav-toggle { display: none; }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 15px 24px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a.active { border-left: 4px solid var(--gold); border-bottom-color: var(--border); }
}

/* ---------- Hero (home) ---------- */
.hero {
  background: #1c2634;
  color: #fff;
  text-align: center;
  padding: 130px 20px 140px;
}
.hero .kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 36px;
  color: #e8ecf2;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--light); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 52px;
}
.gold-rule {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ---------- Services (home) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.service-card .bar { width: 36px; height: 4px; background: var(--gold); border-radius: 2px; }
.service-card h3 { font-size: 1.2rem; margin: 16px 0 10px; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ---------- Featured projects strip (home) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.featured-grid a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.featured-grid a > img:not(.before) {
  aspect-ratio: 4 / 3;
  height: auto;
}
.featured-grid a:hover img { transform: scale(1.06); }
.featured-grid .before {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.featured-grid a:hover .before { opacity: 1; }
.featured-grid .ba-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.featured-grid .tag {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(28, 38, 52, 0.85));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 34px 18px 14px;
}
.featured-cta { text-align: center; margin-top: 40px; }

/* ---------- Check lists (Why 2G, About services) ---------- */
.check-list { list-style: none; max-width: 580px; margin: 0 auto; }
.check-list li {
  padding: 11px 0 11px 42px;
  position: relative;
  font-weight: 500;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 10px;
  width: 27px;
  height: 27px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pull quotes ---------- */
.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 5px solid var(--gold);
}
.pull-quote p {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--charcoal);
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { color: #dfe8f5; max-width: 620px; margin: 10px auto 0; }
.page-hero .gold-rule { margin-top: 18px; margin-bottom: 0; }

/* ---------- Our Work: filters & grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-btn {
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--blue); color: #fff; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.project-card figcaption { padding: 18px 20px 24px; }
.project-card h3 { font-size: 1.05rem; }
.project-card .loc {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 3px 0 8px;
}
.project-card .desc { color: var(--gray); font-size: 0.92rem; }

/* ---------- Our Work: photo cards & before/after pairs ---------- */
.card-media { position: relative; }
.project-card .card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card-media.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: #fff;
}
.ba-half { position: relative; }
.card-media.ba .ba-half img {
  aspect-ratio: 3 / 4;
  height: 100%;
}
.ba-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(28, 38, 52, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.ba-label.after { background: var(--gold); color: var(--charcoal); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 32, 0.9);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(920px, 100%);
  max-height: 80vh;
  border-radius: 8px;
}
.lightbox-caption { color: #fff; margin-top: 16px; font-weight: 600; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { color: var(--gold); background: rgba(255, 255, 255, 0.22); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 52px;
  align-items: start;
}
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* Stand-in until Jose's photo is ready: same 6:7 frame, logo centered.
   To swap in a photo, replace the .photo-placeholder div with a plain <img>. */
.about-photo .photo-placeholder {
  aspect-ratio: 6 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo .photo-placeholder img {
  width: 72%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.about-copy { container-type: inline-size; }
.about-copy h2 { margin-bottom: 16px; }
.about-copy p { margin-bottom: 18px; color: #444444; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--light);
  border: 1px solid #e2e6ec;
  border-left: 5px solid var(--gold);
  padding: 15px 22px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  max-width: 100%;
  /* Each line stays unbroken: shrink text to fit the column instead of wrapping */
  font-size: min(1rem, calc((100cqw - 84px) / 21.5));
}
.badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}
.badge-text span { white-space: nowrap; }
.pull-quote.full {
  max-width: none;
  margin: 56px 0 0;
}
.about-services { margin-top: 56px; }
.about-services h2 { text-align: center; margin-bottom: 8px; }
.about-services .check-list {
  max-width: 760px;
  columns: 2;
  column-gap: 48px;
  margin-top: 28px;
}
.about-services .check-list li { break-inside: avoid; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 20px; }
.info-item { margin-bottom: 24px; }
.info-item .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 3px;
}
.info-item a,
.info-item p {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--charcoal);
}
.info-item a:hover { color: var(--blue); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.contact-form h2 { margin-bottom: 6px; font-size: 1.4rem; }
.contact-form .form-note { color: var(--gray); font-size: 0.92rem; margin-bottom: 10px; }
.req { color: #b3261e; font-weight: 700; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 18px 0 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6dbe3;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 102, 175, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: 24px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #cfcfcf;
  padding: 56px 0 24px;
  margin-top: 84px;
}
/* Four equal columns, each item centered in its column */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
  text-align: center;
}
.footer-logo {
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  display: inline-block;
}
.footer-logo img { height: 64px; width: auto; }
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.site-footer p { font-size: 0.95rem; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #464646;
  margin-top: 44px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9a9a9a;
}
.footer-bottom .accent { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .about-services .check-list { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}
@media (max-width: 620px) {
  .hero { padding: 96px 20px 104px; }
  .featured-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .badge {
    gap: 7px;
    padding: 11px 12px;
    font-size: min(1rem, calc((100cqw - 50px) / 21.5));
  }
}
