/* Bellato Plumbers: site stylesheet */

:root {
  --navy-950: #0a1f33;
  --navy-900: #0f2c4a;
  --navy-800: #163b61;
  --navy-700: #1f4d7a;
  --blue-500: #2f6fb0;
  --amber: #f2994a;
  --amber-dark: #d97f2e;
  --ink: #16232f;
  --gray-700: #4a5c6b;
  --gray-500: #7c8a97;
  --gray-200: #e4e9ed;
  --gray-100: #f2f5f7;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(15, 44, 74, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(15, 44, 74, 0.18);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy-950);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--gray-700); }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 20px; color: var(--gray-700); }
img { max-width: 100%; display: block; height: auto; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.alt { background: var(--gray-100); }
.center { text-align: center; }
.lede { font-size: 18px; color: var(--gray-700); max-width: 700px; }
.lede.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Top bar */
.topbar { background: var(--navy-950); color: rgba(255,255,255,0.85); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; }
.topbar-phone { color: var(--white); font-weight: 600; }
.topbar-phone:hover { color: var(--amber); text-decoration: none; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand img { height: 42px; }
.nav-links { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 10px 14px; color: var(--navy-900); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--amber-dark); text-decoration: none; }
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow);
  border-radius: var(--radius-sm); padding: 8px; min-width: 230px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: 0.15s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--navy-900); font-weight: 500; font-size: 14px; }
.dropdown a:hover { background: var(--gray-100); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,0.82); }

/* Home hero */
.home-hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.home-hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 76px; padding-bottom: 76px; }
.home-hero h1 { color: var(--white); font-size: 46px; }
.home-hero .lede { color: rgba(255,255,255,0.85); font-size: 19px; }
.home-hero .hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid rgba(255,255,255,0.08); }
.home-hero .stat-row { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.home-hero .stat { }
.home-hero .stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 28px; color: var(--amber); }
.home-hero .stat span { font-size: 13px; color: rgba(255,255,255,0.7); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.icon-box .icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border-radius: var(--radius-sm); margin-bottom: 16px;
}
.icon-box .icon svg { width: 28px; height: 28px; color: var(--navy-800); }
.icon-box h3 a { color: var(--navy-950); }
.icon-box h3 a:hover { color: var(--amber-dark); text-decoration: none; }
.icon-box p:last-child { margin-bottom: 0; }

.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }

/* Service list with check icons */
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-check li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--amber-dark); font-weight: 700;
}

/* Work / portfolio gallery */
.work-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.work-filter button {
  border: 1.5px solid var(--gray-200); background: var(--white); color: var(--navy-900);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.15s ease;
}
.work-filter button.active, .work-filter button:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.work-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.work-card .work-img { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.work-card .work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-card .work-body { padding: 20px; }
.work-card h3 { font-size: 17px; margin-bottom: 6px; }
.work-card .work-meta { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.work-card p { font-size: 14.5px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  color: var(--white); border-radius: var(--radius); padding: 52px 40px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.82); }

/* Service areas */
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-pills span {
  background: var(--gray-100); border: 1px solid var(--gray-200); padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--navy-900);
}

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.assoc-row { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.assoc-row img { max-height: 90px; width: auto; border-radius: var(--radius-sm); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
.contact-form .form-row { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; color: var(--navy-900); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-500); }
.contact-details { background: var(--gray-100); border-radius: var(--radius); padding: 28px; }
.contact-details h4 { margin-bottom: 16px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14.5px; display: none; }
.form-msg.success { background: #e5f6ea; color: #1c6b32; }
.form-msg.error { background: #fdecec; color: #a4271d; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 0; font-size: 13px; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,0.55); }

/* 404 */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 96px; color: var(--navy-900); }

/* Responsive */
@media (max-width: 980px) {
  h1 { font-size: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .home-hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar-inner span:first-child { display: none; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 90px 24px 24px; gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15); transition: right 0.25s ease; overflow-y: auto;
  }
  body.nav-open .nav-links { right: 0; }
  .nav-links > li > a { padding: 12px 8px; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: none; padding-left: 12px; border-left: 2px solid var(--gray-200); margin: 4px 0 4px 8px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
}
