/* Spencer Hallett Plumbing & Heating — custom styles */

:root {
  --navy: #123a5c;
  --navy-dark: #0a2740;
  --navy-darker: #071b2e;
  --amber: #d97706;
  --amber-dark: #b45f04;
  --cream: #f6f4ef;
  --ink: #1c2733;
  --slate: #4b5a68;
  --border: rgba(18, 58, 92, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

h1, h2, h3, h4, .display-heading {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 0.85rem;
}

.section-pad {
  padding: 5.5rem 0;
}

.btn-amber {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
}
.btn-amber:hover, .btn-amber:focus {
  background-color: var(--amber-dark);
  border-color: var(--amber-dark);
  color: #fff;
}

.btn-outline-light-nav {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.7rem;
}
.btn-outline-light-nav:hover {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
}

/* Navbar */
.navbar-wfw {
  background-color: var(--navy);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.navbar-wfw .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.navbar-wfw .navbar-brand img {
  height: 42px;
  width: auto;
}
.navbar-wfw .navbar-brand-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.navbar-wfw .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}
.navbar-wfw .nav-link:hover {
  color: var(--amber) !important;
}
.navbar-wfw .nav-hiring-badge {
  background: var(--amber);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.navbar-wfw .nav-phone {
  color: #fff !important;
  font-weight: 600;
  white-space: nowrap;
}

/* Hero: split panel */
.hero {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
}
.hero-photo {
  flex: 1 1 58%;
  min-width: 0;
  min-height: 340px;
  background: url('img/hero.webp') center/cover no-repeat;
}
.hero-panel {
  flex: 1 1 42%;
  min-width: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-darker) 100%);
  display: flex;
  align-items: center;
  padding: 4rem 3rem;
}
.hero-panel-inner {
  width: 100%;
  max-width: 480px;
}
.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: 2.9rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-subtitle {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.hero-tagline {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

@media (max-width: 991.98px) {
  .hero {
    flex-direction: column;
  }
  .hero-panel {
    order: 1;
    padding: 3.5rem 1.75rem;
  }
  .hero-photo {
    order: 2;
    min-height: 300px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

/* Services */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18,58,92,0.12);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--slate);
  margin-bottom: 0;
}

/* Cape Cod banner strip */
.strip-banner {
  position: relative;
  background: url('img/capecod-banner.webp') center/cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strip-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,39,64,0.82) 0%, rgba(10,39,64,0.55) 55%, rgba(10,39,64,0.82) 100%);
}
.strip-banner-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  padding: 0 1rem;
}

/* Gallery */
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  height: 320px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* About */
.about-photo-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(18,58,92,0.18);
}
.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}
.nonprofit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
}
.nonprofit-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 0.9rem;
}
.nonprofit-card p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* Careers */
.careers-section {
  background: var(--cream);
}
.careers-badge-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
}
.careers-copy h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}
.careers-copy p {
  color: var(--slate);
}

/* Contact */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-item .bi {
  color: var(--amber);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-info-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.contact-info-item p, .contact-info-item a {
  color: var(--slate);
  margin-bottom: 0;
}
.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem rgba(18,58,92,0.15);
}

/* Footer */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo-chip {
  background: #f6f4ef;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
}
.footer-logo-chip img {
  height: 44px;
  width: auto;
}
.site-footer h5 {
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--amber);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-right: 0.6rem;
  font-size: 1.1rem;
}
.footer-social a:hover {
  background: var(--amber);
  color: #fff;
}
.footer-powered {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}
.footer-powered a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
}
