/* ==============================================
   G2 CONSTRUCTION LLC — Design System
   Hand-written CSS · No build step
   ============================================== */


/* ── CUSTOM PROPERTIES ───────────────────────── */

:root {
  /* Palette */
  --primary:       #111e30;
  --primary-light:  #1b2d4a;
  --accent:        #d5a040;
  --accent-dark:   #b07c28;

  --text:          #1c1c1e;
  --text-muted:    #6b7280;
  --surface:       #f7f7f5;
  --border:        #e2e0db;
  --white:         #ffffff;

  /* Fonts — trustworthy serif + clean sans pairing */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', system-ui, sans-serif;

  /* Type scale — fluid via clamp() */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   clamp(1.25rem, 1.1rem  + 0.5vw,  1.5rem);
  --text-2xl:  clamp(1.5rem,  1.2rem  + 1vw,    2rem);
  --text-3xl:  clamp(1.875rem,1.4rem  + 1.5vw,  2.75rem);
  --text-4xl:  clamp(2.25rem, 1.6rem  + 2.2vw,  3.5rem);
  --leading:   1.6;

  /* Spacing scale */
  --space-2xs: 0.25rem;   /*  4px */
  --space-xs:  0.5rem;    /*  8px */
  --space-sm:  0.75rem;   /* 12px */
  --space-md:  1rem;      /* 16px */
  --space-lg:  1.5rem;    /* 24px */
  --space-xl:  2rem;      /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */

  /* Layout */
  --container: 1100px;
  --gutter:    1.5rem;

  /* Effects */
  --shadow-sm: 0 1px 3px  rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius:    6px;
  --transition: 200ms ease;
}


/* ── RESET ───────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ── ACCESSIBILITY ───────────────────────────── */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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


/* ── TYPOGRAPHY ──────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--primary);
}

h1 { font-size: var(--text-4xl); font-weight: 900; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl);  font-weight: 700; }

p + p { margin-top: var(--space-md); }


/* ── LAYOUT ──────────────────────────────────── */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-4xl);
}

.section--surface {
  background: var(--surface);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

/* Mobile-first responsive grid */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ── BUTTONS ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  padding: 0.8rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

/* Primary — gold bg, dark text (5.6:1 contrast, passes AA) */
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

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

/* Ghost — transparent bg, dark border + text */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
}


/* ── CARDS ────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}


/* ── SITE HEADER ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo / wordmark */
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark img {
  height: 48px;
  max-height: 48px;
  width: auto;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

/* Click-to-call CTA in header (desktop) */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.header-cta:hover {
  background: var(--primary-light);
}

/* Secondary outline variant for header CTA */
.header-cta.header-cta-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.header-cta.header-cta-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

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

/* Mobile header */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: var(--space-sm) var(--gutter);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .header-cta { display: none; }

  .nav-cta-mobile {
    display: block !important;
    margin: var(--space-sm) var(--gutter);
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-sm);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--text-sm);
  }

  .nav-cta-mobile.nav-cta-portal {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
  }
  .nav-cta-mobile.nav-cta-portal:hover {
    background: var(--primary);
    color: var(--white);
  }
}

/* Hide mobile-only CTA on desktop */
@media (min-width: 769px) {
  .nav-cta-mobile { display: none !important; }
}


/* ── SITE FOOTER ─────────────────────────────── */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.footer-address {
  margin-top: var(--space-md);
  font-style: normal;
  line-height: 1.8;
  font-size: var(--text-sm);
}

.footer-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  margin-top: var(--space-sm);
  transition: color var(--transition);
}

.footer-phone:hover { color: #e6b85a; }

.footer-email {
  display: block;
  font-size: var(--text-sm);
  margin-top: var(--space-2xs);
  transition: color var(--transition);
}

.footer-email:hover { color: var(--white); }

.site-footer h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer li a {
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.site-footer li a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════
   PAGE COMPONENTS
   ============================================== */


/* ── HERO ────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      165deg,
      rgba(17,30,48,0.88) 0%,
      rgba(17,30,48,0.72) 40%,
      rgba(17,30,48,0.55) 100%
    ),
    url('/images/hero.jpg') center / cover no-repeat fixed;
  color: var(--white);
}

/* iOS / mobile: fixed bg breaks — fall back to scroll */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* Ghost button variant for dark backgrounds */
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  color: var(--white);
}


/* ── EYEBROW LABEL ───────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}


/* ── SECTION HEADING (centered) ──────────────── */

.section-heading {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-heading h2 {
  margin-top: var(--space-xs);
}

.section-heading p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  line-height: 1.7;
}


/* ── PROBLEM SECTION ─────────────────────────── */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin-inline: auto;
}

.problem-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.problem-item p {
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── GUIDE / TRUST SIGNALS ───────────────────── */

.guide-intro {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.guide-intro p {
  color: var(--text-muted);
  line-height: 1.7;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.trust-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.trust-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2xs);
}


/* ── PLAN STEPS ──────────────────────────────── */

.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.plan-step {
  text-align: center;
  counter-increment: step;
}

.plan-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  border: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

.plan-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.plan-step p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .plan-steps { grid-template-columns: 1fr; gap: var(--space-2xl); }
}


/* ── SERVICE CARDS ───────────────────────────── */

.service-card {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.5rem;
  transition: background var(--transition);
}

.service-card:hover .service-card-icon {
  background: var(--accent);
}

.service-card h3 {
  font-size: var(--text-lg);
}

.service-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  line-height: 1.6;
}


/* ── SUCCESS SECTION ─────────────────────────── */

.success-content {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.success-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: var(--text-lg);
  margin-top: var(--space-md);
}


/* ── REVIEWS SECTION ─────────────────────────── */

.reviews-placeholder {
  max-width: 800px;
  margin-inline: auto;
  min-height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-xl);
}


/* ── CTA BAND ────────────────────────────────── */

.cta-band {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding-block: var(--space-4xl);
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  max-width: 540px;
  margin-inline: auto;
}

.cta-band .cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.cta-band .cta-secondary {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

.cta-band .cta-secondary a {
  color: var(--accent);
  font-weight: 700;
  transition: color var(--transition);
}

.cta-band .cta-secondary a:hover { color: #e6b85a; }


/* ══════════════════════════════════════════════
   SERVICE PAGE COMPONENTS
   ============================================== */


/* ── PAGE HERO (short banner for inner pages) ── */

.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: var(--white); max-width: 700px; }

.page-hero-sub {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-top: var(--space-md);
  line-height: 1.7;
  font-size: var(--text-lg);
}


/* ── PROSE (long-form body copy) ─────────────── */

.prose {
  max-width: 760px;
  line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
}

.prose p {
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.prose ul {
  margin-top: var(--space-md);
  padding-left: var(--space-lg);
  list-style: disc;
  color: var(--text-muted);
}

.prose ul li {
  margin-top: var(--space-xs);
  line-height: 1.7;
}

.prose a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--primary); }


/* ── FAQ ─────────────────────────────────────── */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.faq-item p {
  color: var(--text-muted);
  margin-top: var(--space-xs);
  line-height: 1.7;
  font-size: var(--text-sm);
}


/* ── GALLERY PLACEHOLDER ─────────────────────── */

.gallery-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-placeholder-item {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .gallery-placeholder { grid-template-columns: 1fr 1fr; }
}


/* ── PRICING CALLOUT ─────────────────────────── */

.pricing-callout {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-xl);
  max-width: 760px;
}

.pricing-callout h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.pricing-callout p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}


/* ── RELATED SERVICES ────────────────────────── */

.related-services {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.related-services a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.related-services a:hover {
  border-color: var(--accent);
  background: var(--surface);
}


/* ── INCLUDE LIST (checkmark-style) ──────────── */

.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-xl);
  max-width: 760px;
}

.include-grid li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.7;
}

.include-grid li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 480px) {
  .include-grid { grid-template-columns: 1fr; }
}


/* ── CONTACT PAGE ───────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin-inline: auto;
}

.contact-block {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius);
}

.contact-block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.contact-link {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.contact-link:hover { color: var(--primary); }

.contact-link--phone {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-decoration: none;
}

.contact-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.contact-address {
  font-style: normal;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}
