/* =============================================
   Prince Albert Plumbing & Heating
   Generated static site stylesheet
   ============================================= */

/* ---------- Custom Properties ---------- */
:root {
  --color-navy: #0f2744;
  --color-navy-mid: #1a3a60;
  --color-navy-light: #1e4976;
  --color-accent: #e8a020;
  --color-accent-hover: #f0b030;
  --color-surface: #f5f7fa;
  --color-surface-alt: #eef2f7;
  --color-white: #ffffff;
  --color-text: #1a2a3a;
  --color-text-muted: #4a5568;
  --color-border: #dde4ed;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --max-w: 1100px;
  --header-h: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--color-surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  height: var(--header-h);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.header-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--color-white); }
.btn-phone {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-phone:hover { background: var(--color-accent-hover); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 28, 50, 0.82) 0%,
    rgba(10, 28, 50, 0.55) 55%,
    rgba(10, 28, 50, 0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-navy);
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,0.08); }
.btn-light {
  background: var(--color-white);
  color: var(--color-navy);
}
.btn-light:hover { background: var(--color-surface); }

/* ---------- Proof Bar ---------- */
.proof-bar {
  background: var(--color-navy-mid);
  color: rgba(255,255,255,0.9);
  padding: 14px 0;
}
.proof-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.proof-sep { color: rgba(255,255,255,0.35); }

/* ---------- Section Headers ---------- */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  line-height: 1.15;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-light);
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- Split Section ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-text p {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.badge {
  display: inline-block;
  background: var(--color-surface-alt);
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery-grid img {
  border-radius: var(--radius-md);
  object-fit: cover;
  height: 200px;
  width: 100%;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.review-stars {
  display: flex;
  gap: 3px;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.review-quote {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.reviews-cta {
  text-align: center;
}

/* ---------- Contact / Location ---------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
}
.contact-row strong {
  color: var(--color-navy);
  font-weight: 700;
  padding-top: 2px;
}
.contact-row a { color: var(--color-navy-light); text-decoration: underline; }
.location-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.split-map iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  padding: 18px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding-bottom: 18px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}
.faq-answer a { color: var(--color-navy-light); text-decoration: underline; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--color-navy);
  padding: 64px 0;
}
.cta-inner {
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* mobile responsiveness guardrails */
/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-map { order: -1; }
  .gallery-grid img { height: 160px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { min-height: 85svh; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .proof-bar-inner { gap: 8px; }
  .proof-item { font-size: 0.8rem; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .location-ctas { flex-direction: column; }
  .location-ctas .btn { width: 100%; text-align: center; }
  .cta-banner { padding: 48px 0; }
}
