@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,800&family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

/* G B Plumbing & Heating — Variant C: Warm Craftsman */
/* Warm brown/cream nav + deep teal accent */

:root {
  --brand-primary: #1f6b5e;
  --brand-primary-tint: #e8f5f2;
  --brand-warm-brown: #6b4c3a;
  --brand-cream: #f5efe8;
  --brand-dark: #15201a;
  --brand-green: #6b4c3a;
}

html, body { margin: 0; padding: 0; overflow-x: hidden; overscroll-behavior-y: none; background-color: var(--brown); }

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

img, video, svg { max-width: 100%; height: auto; }

:root {
    --teal: #1f6b5e;
    --teal-dark: #164d47;
    --brown: #6b4c3a;
    --cream: #f5efe8;
    --black: #15201a;
    --dark: #1A1A1A;
    --mid: #3D3D3D;
    --muted: #6B7280;
    --border: #d8d2c4;
    --light-bg: #f9f7f4;
    --white: #FFFFFF;
    --font-heading: 'Fraunces', serif;
    --font-body: 'Libre Franklin', sans-serif;
  }

html { scroll-behavior: smooth; overflow-x: hidden; }

body { 
  font-family: var(--font-body); 
  color: var(--black); 
  background: var(--white); 
  -webkit-font-smoothing: antialiased; 
  margin: 0; 
  padding: 0; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}

/* UTILITY BAR */
#site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 9998;
  background: var(--brown);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.util-bar {
  position: relative;
  background: var(--brown);
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.util-left { text-align: center; }

.util-bar span { color: var(--teal); font-weight: 600; }

.util-bar a { color: #ccc; text-decoration: none; margin: 0 12px; white-space: nowrap; }

.util-bar a:hover { color: var(--white); }

.util-social { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.util-social a { color: #fff; display: inline-flex; align-items: center; opacity: .82; margin: 0; }
.util-social svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }

/* NAV */
nav {
  position: relative;
  top: auto;
  left: auto; right: auto;
  z-index: 9997;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brown);
  border-bottom: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
  z-index: 201;
  font-family: var(--font-heading);
}

.nav-logo-dot {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links a.active { color: var(--teal); font-weight: 600; }

.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

.nav-cta-arrow {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--brown);
  z-index: 199;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 80px 32px 40px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: center;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.mobile-menu .mobile-cta {
  margin-top: 20px;
  background: var(--teal);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border-bottom: none;
  width: auto;
  font-family: var(--font-body);
}

.mobile-menu .mobile-phone {
  font-size: 20px;
  color: rgba(255,255,255,0.55);
  border-bottom: none;
  margin-top: 12px;
}

/* HERO */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 88vh;
  min-height: 580px;
  padding-top: 108px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.55);
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 24px 40px;
  max-width: 700px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-badge .badge-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-primary .arrow-circle {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.hero-proof {
  position: absolute;
  bottom: 40px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 16px;
  border-radius: 16px;
}

.hero-proof-text { font-size: 12px; color: var(--white); }

.hero-proof-text strong { display: block; font-weight: 700; font-size: 13px; }

.hero-proof-stars { color: var(--teal); font-size: 10px; }

/* LOGO BAR */
.logo-bar {
  background: var(--light-bg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.logo-bar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  margin-right: 24px;
  flex-shrink: 0;
}

.logo-bar-items {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}

.logo-item {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* SERVICES */
.services-section { padding: 56px 0; }

.section-heading {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 32px;
  text-align: left;
  font-family: var(--font-heading);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

.service-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 280px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }

.service-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.service-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  z-index: 1;
  justify-content: space-between;
}

.service-card-name {
  flex: 1;
}

.service-card-name > div:first-child {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.service-card-name span {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  display: block;
  line-height: 1.5;
}

.service-arrow {
  color: var(--white);
  font-size: 24px;
  margin-left: 16px;
  flex-shrink: 0;
}

/* WHY SECTION */
.why-section { padding: 56px 0; background: var(--light-bg); }

.why-header { margin-bottom: 48px; }

.why-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid #e8e4de;
}

.feature-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }

.feature-card.highlight { background: var(--brand-primary-tint); border-color: var(--teal); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 16px;
}

.feature-card.highlight .feature-icon { background: rgba(31,107,94,0.1); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.feature-card p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* STATS BAND */
.stats-band {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  margin: 56px 0;
}

.stats-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.stats-bar {
  display: flex;
  gap: 0;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  padding: 24px 36px;
  color: var(--white);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  display: block;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
}

/* CTA SECTION */
.cta-section {
  background: var(--brown);
  color: var(--white);
  padding: 56px 24px;
}

.cta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.cta-heading {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-heading);
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}

.cta-phone {
  color: var(--white);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.cta-phone-icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-actions { display: flex; gap: 16px; margin-top: 20px; }

.btn-teal-solid {
  background: var(--teal);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-teal-solid:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--brown);
  color: var(--white);
  padding: 48px 24px 28px;
}

footer h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.footer-logo .dot {
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }

.footer-col li { margin-bottom: 12px; font-size: 14px; }

.footer-bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.footer-copy { display: block; margin-bottom: 12px; }

/* CONTACT SECTION */
.contact-section { padding: 56px 0; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 24px;
  background: var(--light-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
  font-family: var(--font-heading);
}

.info-card p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.6;
}

.info-card a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.info-card a:hover { text-decoration: underline; }

.phone-card a {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,107,94,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: var(--teal);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}

.form-submit:hover { background: var(--teal-dark); transform: translateY(-2px); }

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-disclosure {
  font-size: 12px;
  color: #6B7280;
  margin-top: 8px;
}

/* MAP SECTION */
.map-section { padding: 56px 0; }

.map-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.map-address {
  font-size: 16px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 28px;
}

/* EMERGENCY SECTION */
.emergency-section {
  background: var(--light-bg);
  padding: 48px 24px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 56px;
}

.emergency-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.emergency-section p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }

  .hero {
    height: auto;
    min-height: 580px;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .hero-proof {
    position: static;
    margin: 20px 24px 0;
    display: inline-flex;
  }

  .services-grid { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  
  .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
  
  .stats-bar { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  
  .cta-section .container { flex-direction: column; gap: 24px; }
  .cta-right { width: 100%; }
}

@media (max-width: 640px) {
  .hero { min-height: 480px; padding-top: 96px; }
  .hero h1 { font-size: clamp(24px, 6vw, 48px); }
  
  .logo-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo-bar-label { padding-right: 0; border-right: none; margin-right: 0; margin-bottom: 12px; }
  .logo-bar-items { gap: 12px; }
  
  .services-grid { gap: 16px; }
  .service-card { height: 240px; }
  
  .features-grid { gap: 16px; }
  
  .feature-card { padding: 20px; }
  
  .hero-proof { display: none; }
}
