/* ==========================================================================
   Paul's Plumbing & Heating LLC — site stylesheet
   Design tokens + component styles translated from the Paul's Plumbing &
   Heating Design System (Barlow substituting for DIN Alternate).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
  /* ---- Base brand colors ---- */
  --brand-royal-blue: #2B53A3;
  --brand-rust-red:   #D5573B;
  --brand-steel-grey: #93A3B1;
  --brand-amber-gold: #FFBF46;
  --brand-black:      #000000;
  --brand-white:      #FFFFFF;

  /* ---- Royal Blue ramp ---- */
  --blue-900: #16305e;
  --blue-800: #1c3d78;
  --blue-700: #234690;
  --blue-600: #2B53A3;
  --blue-500: #3963b8;
  --blue-400: #5c81c6;
  --blue-300: #8ba4d8;
  --blue-200: #bccde8;
  --blue-100: #dde5f3;
  --blue-50:  #eff3f9;

  /* ---- Rust Red ramp ---- */
  --rust-900: #6e2c1c;
  --rust-800: #8f3924;
  --rust-700: #b0472d;
  --rust-600: #D5573B;
  --rust-500: #dd7057;
  --rust-400: #e58d78;
  --rust-300: #eeac9d;
  --rust-200: #f6cec4;
  --rust-100: #fbe6e0;

  /* ---- Steel Grey ramp (neutral scale) ---- */
  --grey-900: #212a30;
  --grey-800: #33404a;
  --grey-700: #495764;
  --grey-600: #63727e;
  --grey-500: #93A3B1;
  --grey-400: #adb9c4;
  --grey-300: #c8d0d8;
  --grey-200: #e1e6ea;
  --grey-100: #eff2f4;
  --grey-50:  #f7f9fa;

  /* ---- Amber Gold ramp ---- */
  --amber-700: #b3800a;
  --amber-600: #d99e1f;
  --amber-500: #FFBF46;
  --amber-300: #ffd786;
  --amber-100: #fff3d9;

  /* ---- Semantic aliases ---- */
  --surface-page:       var(--brand-white);
  --surface-sunken:     var(--grey-50);
  --surface-card:       var(--brand-white);
  --surface-inverse:    var(--grey-900);
  --surface-brand:      var(--blue-600);
  --surface-brand-dark: var(--blue-900);

  --text-body:       var(--brand-black);
  --text-muted:      var(--grey-700);
  --text-faint:      var(--grey-500);
  --text-inverse:    var(--brand-white);
  --text-link:       var(--blue-600);
  --text-link-hover: var(--blue-700);

  --border-default: var(--grey-300);
  --border-strong:  var(--grey-500);
  --border-inverse: rgba(255,255,255,0.24);

  --action-primary:        var(--blue-600);
  --action-primary-hover:  var(--blue-700);
  --action-primary-active: var(--blue-800);
  --action-primary-text:   var(--brand-white);

  --action-accent:        var(--rust-600);
  --action-accent-hover:  var(--rust-700);
  --action-accent-active: var(--rust-800);
  --action-accent-text:   var(--brand-white);

  --action-secondary-border: var(--grey-500);
  --action-secondary-text:   var(--grey-800);
  --action-secondary-hover:  var(--grey-100);

  --highlight-bg:   var(--amber-500);
  --highlight-text: var(--grey-900);

  --focus-ring: var(--blue-600);

  --shadow-card:   0 1px 2px rgba(20, 26, 31, 0.06), 0 2px 8px rgba(20, 26, 31, 0.08);
  --shadow-raised: 0 4px 16px rgba(20, 26, 31, 0.12);

  /* ---- Type ---- */
  --font-body:    'Barlow', 'DIN Alternate', 'Arial Narrow', Arial, sans-serif;
  --font-display: 'Barlow', 'DIN Alternate', 'Arial Narrow', Arial, sans-serif;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    800;

  --font-size-body: 17px;

  --line-height-tight:   1.08;
  --line-height-heading: 1.18;
  --line-height-body:    1.5;
  --line-height-loose:   1.65;

  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.12em;

  /* ---- Spacing / radius / layout / motion ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --content-max-width: 1200px;
  --container-pad: 24px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-standard: 180ms;
}

/* ---- Base resets ---- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-heading);
  letter-spacing: var(--tracking-tight);
}

p { margin: 0; }

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

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

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

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

/* ==========================================================================
   Layout shell
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  position: relative;
}

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--container-pad);
  gap: 24px;
  flex-wrap: wrap;
}

.site-header__brand-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-header__logo {
  height: 44px;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-body);
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--action-primary); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header__phone {
  color: var(--text-body);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16px;
  text-decoration: none;
}
.site-header__phone:hover { text-decoration: underline; }

main { flex: 1; }

/* ---- Footer ---- */
.site-footer {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: 48px var(--container-pad) 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.site-footer__logo {
  height: 72px;
  margin-bottom: 14px;
}

.site-footer__blurb {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-300);
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}

.site-footer__col {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col-title {
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  margin-bottom: 2px;
}

.site-footer__bottom {
  max-width: var(--content-max-width);
  margin: 32px auto 0;
  border-top: 1px solid var(--border-inverse);
  padding-top: 18px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--grey-500);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 64px var(--container-pad); }
.section--tight { padding: 40px var(--container-pad) 64px; }
.section--sunken {
  padding: 28px var(--container-pad);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-default);
}
.section--brand { background: var(--surface-brand); padding: 56px var(--container-pad); }
.section--brand-dark { background: var(--surface-brand-dark); padding: 56px var(--container-pad); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--action-primary);
  margin-bottom: 10px;
}
.eyebrow--on-dark { color: var(--amber-500); }

.hero {
  background: var(--surface-brand-dark);
  padding: 72px var(--container-pad) 88px;
}
.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: var(--line-height-tight);
  color: white;
  margin: 0 0 20px;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--blue-100);
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: white;
  margin: 0 0 10px;
}
.page-subheading {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--blue-100);
  max-width: 560px;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 32px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--services { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--testimonials { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--testimonials-narrow { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--values { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--catalog { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.grid--contact-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 32px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 48px;
  align-items: center;
}

.cta-band {
  background: var(--surface-brand);
  padding: 40px var(--container-pad);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: white;
  margin: 0;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* ---- Button ---- */
.btn {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--duration-standard) var(--ease-standard),
              border-color var(--duration-standard) var(--ease-standard),
              color var(--duration-standard) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
  font-size: 16px;
  padding: 11px 22px;
}
.btn:hover { text-decoration: none; }

.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-md { font-size: 16px; padding: 11px 22px; }
.btn-lg { font-size: 18px; padding: 14px 28px; }

.btn-primary {
  background: var(--action-primary);
  color: var(--action-primary-text);
  border-color: var(--action-primary);
}
.btn-primary:hover { background: var(--action-primary-hover); color: var(--action-primary-text); }
.btn-primary:active { background: var(--action-primary-active); }

.btn-accent {
  background: var(--action-accent);
  color: var(--action-accent-text);
  border-color: var(--action-accent);
}
.btn-accent:hover { background: var(--action-accent-hover); color: var(--action-accent-text); }
.btn-accent:active { background: var(--action-accent-active); }

.btn-secondary {
  background: transparent;
  color: var(--action-secondary-text);
  border-color: var(--action-secondary-border);
}
.btn-secondary:hover { background: var(--action-secondary-hover); color: var(--action-secondary-text); }

.btn-ghost {
  background: transparent;
  color: var(--action-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-sunken); color: var(--action-primary); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-neutral   { background: var(--grey-100); color: var(--grey-800); }
.badge-primary   { background: var(--blue-100); color: var(--blue-700); }
.badge-accent    { background: var(--rust-100); color: var(--rust-700); }
.badge-highlight { background: var(--highlight-bg); color: var(--highlight-text); }

/* ---- Tag ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  padding: 6px 10px 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-muted);
}

/* ---- Card ---- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-body);
}
.card--elevated { box-shadow: var(--shadow-raised); }
.card--clickable { cursor: pointer; border: none; text-align: left; width: 100%; }
.card--clickable:hover { border-color: var(--border-strong); }

.card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 4px;
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-body);
  margin: 0;
}
.card__body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: var(--line-height-body);
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: var(--space-6);
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-body);
}
.tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 2px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-standard);
}
.tab[aria-selected="true"] {
  font-weight: var(--weight-semibold);
  color: var(--action-primary);
  border-bottom-color: var(--action-primary);
}

/* ---- Testimonial card ---- */
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0 0 10px;
}
.testimonial__quote--sm { font-size: 16px; margin-bottom: 8px; }
.testimonial__name {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Details / FAQ accordion ---- */
.topic {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface-page);
}
.topic > summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-body);
}
.topic__body {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* ---- Team ---- */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
}
.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-body);
  margin-bottom: 2px;
}
.team-card__role {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--action-primary);
  margin-bottom: 10px;
}
.team-card__bio {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Form fields ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  width: 100%;
  margin-bottom: var(--space-5);
}
.form-label {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}
.form-required { color: var(--action-accent); }

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: var(--border-width-sm) solid var(--border-default);
  background: var(--surface-page);
  color: var(--text-body);
  transition: border-color var(--duration-fast) var(--ease-standard);
  width: 100%;
}
.form-textarea { resize: vertical; line-height: var(--line-height-body); }
.form-select { color: var(--text-faint); }
.form-select:valid { color: var(--text-body); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--blue-100);
  border-color: var(--action-primary);
}

.radio-group {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: 4px;
}
.radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-body);
  cursor: pointer;
}
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}
.radio-option__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.radio-option input[type="radio"]:checked + .radio-option__dot {
  border-color: var(--action-primary);
}
.radio-option input[type="radio"]:checked + .radio-option__dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--action-primary);
}
.radio-option input[type="radio"]:focus-visible + .radio-option__dot {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.form-actions { margin-top: var(--space-2); }

@media (max-width: 560px) {
  .team-card { grid-template-columns: 1fr; }
  .hero__title { font-size: 38px; }
}
