/* ===== 513 Plumbing & Gas Solutions — Global Styles ===== */
/* Fonts loaded in HTML for performance */

:root {
  --navy:        #0f3d73;
  --midnight:    #0a1f33;
  --orange:      #f26a21;
  --orange-dark: #d4581c;
  --blue-light:  #5191ff;
  --bg:          #f4f6f8;
  --warm-cream:  #fdf9f5;
  --warm-border: #e8ddd2;
  --white:       #ffffff;
  --text:        #1c1c1c;
  --gray:        #6b7a8d;
  --border:      #dde4ed;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

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

img {
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--orange);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container,
.section-container,
.content-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Typography — Headings (Playfair) */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--midnight);
}

h1 { font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

/* Section eyebrows */
.section-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: middle;
}

.section-eyebrow.centered::before { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 106, 33, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-size: 17px;
  font-weight: 800;
}

.btn-ghost-white:hover {
  background: var(--white);
  color: var(--midnight);
}

/* Form styles */
.ghl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 61, 115, 0.1);
}

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 800;
  padding: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 12px 16px;
  color: #2e7d32;
  font-size: 14px;
}

.form-error {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: 4px;
  padding: 12px 16px;
  color: #c62828;
  font-size: 14px;
}

.form-error a { color: #c62828; text-decoration: underline; }

/* Card base */
.card {
  background: var(--warm-cream);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  background: var(--white);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10, 31, 51, 0.08);
}

.card.card-orange-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
  border-radius: 8px 8px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card.card-orange-bar:hover::before {
  transform: scaleX(1);
}

.card { position: relative; }

/* Icon circle */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 28px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.icon-circle.orange {
  background: var(--orange);
}

.icon-circle.light {
  background: var(--bg);
  color: var(--navy);
}

.icon-circle-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--white);
}

/* Phosphor Icons sizing and color control */
.icon-sm  { font-size: 20px; }
.icon-md  { font-size: 28px; }
.icon-lg  { font-size: 40px; }
.icon-xl  { font-size: 56px; }

.icon-orange { color: var(--orange); }
.icon-navy   { color: var(--navy); }
.icon-white  { color: var(--white); }
.icon-gray   { color: var(--gray); }

/* Avatar circle for reviews */
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero h1       { animation: fadeUp 0.55s 0.1s ease both; }
.hero-tagline  { animation: fadeUp 0.55s 0.2s ease both; }
.hero-btns     { animation: fadeUp 0.55s 0.3s ease both; }
.hero-trust    { animation: fadeUp 0.55s 0.4s ease both; }
.form-card     { animation: fadeUp 0.65s 0.15s ease both; }

/* ===== Homepage section layouts ===== */
.hero {
  background: var(--warm-cream);
  border-bottom: 1px solid var(--warm-border);
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-content { max-width: 560px; }

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: middle;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--midnight);
  margin-bottom: 16px;
}

.hero h1 em { font-style: italic; color: var(--orange); }

.hero-tagline {
  font-size: 18px;
  color: var(--gray);
  font-style: italic;
  border-left: 4px solid var(--orange);
  padding-left: 16px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.hero-trust-item .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  flex-shrink: 0;
}

.form-card-wrap {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(10, 31, 51, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
}

.form-card-wrap .card-body { padding: 24px 28px; }
.form-card-wrap .card-header { background: var(--navy); padding: 20px 24px; }
.form-card-wrap .card-header h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.form-card-wrap .card-header p { font-size: 13px; color: #a8bdd4; }

/* Trust bar */
.trust-bar {
  background: #1a4d8c; /* Slightly lighter than navy for better icon contrast */
  padding: 20px 0;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}

.trust-bar-item {
  text-align: center;
}

.trust-bar-item .icon { font-size: 26px; margin-bottom: 4px; }
.trust-bar-item .icon.icon-bright { filter: brightness(1.2); }
.trust-bar-item .label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7a9ab8;
}

.trust-bar-item .value {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}

/* Services overview */
.section-services {
  background: var(--white);
  padding: 80px 0;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 28px;
}

.section-header .section-eyebrow { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray); max-width: 640px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.service-card {
  list-style: none;
}

.service-card .card { height: 100%; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 12px; }
.service-card .desc { color: var(--gray); margin-bottom: 16px; font-size: 15px; }
.service-card ul {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card li {
  padding: 4px 0 4px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.service-card a {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--orange);
}

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

/* Specialty grid */
.section-specialty {
  background: var(--bg);
  padding: 80px 0;
}

.section-header.centered { text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.specialty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.specialty-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(10, 31, 51, 0.08);
  transform: translateY(-2px);
}

.specialty-card .icon { font-size: 40px; margin-bottom: 12px; }
.specialty-card h3 { font-size: 16px; margin-bottom: 8px; }
.specialty-card p { font-size: 12px; color: var(--gray); }

/* Why Andrew */
.section-why {
  background: var(--white);
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.why-content h2 { margin-bottom: 16px; }
.why-content > p { color: var(--gray); margin-bottom: 28px; }

.why-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-point {
  padding: 20px;
  background: var(--warm-cream);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
}

.why-point h4 { font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.why-point p { font-size: 14px; color: var(--gray); }

.andrew-card {
  background: var(--warm-cream);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  padding: 36px;
  position: relative;
}

.andrew-card .quote::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.andrew-card .quote {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--midnight);
  margin-bottom: 24px;
}

.andrew-card .signature {
  border-top: 1px solid var(--warm-border);
  padding-top: 20px;
}

.andrew-card .signature .name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.andrew-card .signature .title { font-size: 13px; color: var(--gray); }
.andrew-card .badge { display: inline-block; margin-top: 12px; padding: 6px 12px; background: rgba(242, 106, 33, 0.15); color: var(--orange); font-size: 12px; font-weight: 700; border-radius: 20px; }

.andrew-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--warm-border);
}

.andrew-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Offers */
.section-offers {
  background: var(--navy);
  padding: 80px 0;
}

.section-offers .section-eyebrow { color: #7a9ab8; }
.section-offers .section-header h2 { color: var(--white); }
.section-offers .section-header h2 em { font-style: italic; color: var(--orange); }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.offer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
}

.offer-card .price { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.offer-card h3 { font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 800; color: var(--white); text-transform: uppercase; margin-bottom: 12px; }
.offer-card p { font-size: 13px; color: #7a9ab8; margin-bottom: 20px; }
.offer-card .btn { font-size: 13px; padding: 12px 24px; }

/* Service areas */
.section-areas {
  background: var(--warm-cream);
  padding: 80px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 14px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.area-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.area-card:hover .area-card-label { color: rgba(255,255,255,0.8); }
.area-card:hover .icon-circle-sm { background: var(--orange); }

.area-card .icon-wrap { margin-bottom: 12px; display: flex; justify-content: center; }
.area-card h3 { font-size: 15px; margin-bottom: 4px; }
.area-card-label { font-size: 11px; font-weight: 600; color: var(--gray); }

/* Reviews */
.section-reviews {
  background: var(--white);
  padding: 80px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.review-card {
  background: var(--warm-cream);
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  padding: 28px;
}

.review-card .stars { color: #f5a623; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card .quote { font-family: 'Playfair Display', serif; font-size: 15px; font-style: italic; color: var(--text); margin-bottom: 20px; line-height: 1.5; }
.review-card .author { border-top: 1px solid var(--warm-border); padding-top: 16px; display: flex; align-items: center; gap: 12px; }
.review-card .author .name { font-weight: 700; color: var(--navy); }
.review-card .author .loc { font-size: 13px; color: var(--gray); }

.reviews-cta { text-align: center; margin-top: 40px; }
.reviews-cta .btn { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }

/* Bottom CTA */
.cta-banner {
  background: var(--midnight);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue-light), var(--orange));
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner h2 em { font-style: italic; color: var(--orange); }
.cta-banner p { font-size: 18px; color: #7a9ab8; margin-bottom: 28px; }
.cta-banner .btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* SEO content */
.seo-content {
  background: var(--bg);
  padding: 80px 0;
}

.seo-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

.seo-content h2 { margin-bottom: 24px; }
.seo-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.25rem; }
.seo-content p { margin-bottom: 16px; color: var(--text); }

/* Utility */
.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;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .form-card-wrap { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding-bottom: 54px; }
  .hero h1 { font-size: 34px; }
  .hero-grid { text-align: left; }
  .hero-trust { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
  .section-title { font-size: 28px; }
  .cta-banner h2 { font-size: 30px; }
  .services-grid,
  .offers-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
