/* ============================================================
   Ciardi Plumbing & Heating — style.css
   Color scheme: charcoal navy (#1C2B3A) + copper orange (#E07B39)
   Fonts: Oswald (headings) + Inter (body)
   ============================================================ */

:root {
  --navy:   #1C2B3A;
  --navy2:  #243347;
  --accent: #E07B39;
  --accent-dark: #C26520;
  --light-gray: #F4F6F8;
  --text:   #2D3748;
  --text-muted: #6B7A8D;
  --white:  #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.01em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

#mainNav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}

#mainNav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.7rem;
  transition: color 0.2s;
}

#mainNav .nav-link:hover {
  color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.5rem 1.3rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-dark-nav {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.6rem 1.6rem;
  transition: background 0.2s, color 0.2s;
}
.btn-dark-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28, 43, 58, 0.80) 0%,
    rgba(28, 43, 58, 0.50) 60%,
    rgba(28, 43, 58, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.text-accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
}

.hero-angle {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--light-gray);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--light-gray);
  padding: 2.5rem 0;
}

.trust-grid {
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.trust-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid #e0e4ea;
  transition: background 0.2s;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: #fef9f5; }

@media (max-width: 767px) {
  .trust-item { border-bottom: 1px solid #e0e4ea; }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

.trust-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.trust-stat {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.trust-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section-pad {
  padding: 5rem 0;
}

.bg-light-gray {
  background: var(--light-gray);
}

.section-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-eyebrow.light { color: var(--accent); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(28,43,58,0.08);
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(28,43,58,0.14);
}

.service-img-wrap {
  height: 200px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.service-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  background: var(--white);
}

.why-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: var(--text);
}
.why-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  opacity: 0.92;
}
.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 200px);
  }
}
@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 170px);
  }
}

/* ============================================================
   ABOUT / TEAM
   ============================================================ */
.about-dark {
  background: var(--navy);
}

.about-dark .section-title {
  color: var(--white);
}

.team-card {
  background: var(--navy2);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s;
}
.team-card:hover {
  border-color: var(--accent);
}

.team-img-wrap {
  height: 220px;
  overflow: hidden;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-icon-wrap {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224,123,57,0.1);
  font-size: 4rem;
  color: var(--accent);
}

.team-body {
  padding: 1.4rem 1.5rem 1.75rem;
}
.team-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.team-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-block {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 2rem 2rem 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e4ea;
}
.contact-row:first-child { padding-top: 0; }
.contact-row:last-of-type { border-bottom: none; }

.contact-icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }

.social-row { display: flex; align-items: center; }
.social-link {
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.social-link:hover { color: var(--accent); }

.map-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(28,43,58,0.12);
}
.map-wrap iframe { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,0.65);
}

.footer-brand {
  text-decoration: none;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.footer-brand:hover { color: var(--accent); }

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-social a {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-left: 0.75rem;
  transition: color 0.2s;
}
.footer-social a:first-child { margin-left: 0; }
.footer-social a:hover { color: var(--accent); }

.footer-powered {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-powered a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.footer-powered a:hover { text-decoration: underline; }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 1.5rem 0 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-headline { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .why-img { max-height: 320px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 3.5rem 0; }
  .hero-angle { height: 50px; }
}

@media (max-width: 575px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .trust-stat { font-size: 1.8rem; }
  .contact-info-block { padding: 1.5rem 1.25rem 1rem; }
}
