@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&display=swap");

/* HydroSeal Pavers — styles.css (FULL FILE) */

:root{
  --navy:#0B2D4A;
  --blue:#0F6EA8;
  --teal:#28B6C8;

  --text:#111827;
  --muted:#6b7280;

  --bg:#ffffff;
  --line:#e5e7eb;

  --radius:18px;
  --shadow: 0 10px 30px rgba(17,24,39,.10);

  /* sticky header sizing (used to prevent overlap) */
  --sticky-offset: 116px; /* approx header+nav height on desktop */

  /* brand accent */
  --water-blue:#39BFEA;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1120px;margin:0 auto;padding:0 16px}

/* Buttons */
.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:.01em;
  transition:opacity .15s ease, transform .15s ease; /* fixed typo */
}
.btn:hover{opacity:.92}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--blue);color:#fff}
.btn-ghost{border:1px solid var(--line);background:#fff;color:var(--text)}
.btn-wide{width:100%;text-align:center}

/* Pills / badges */
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef6ff;
  color:var(--navy);
  font-weight:900;
  font-size:12px;
}

/* Top bar (scrolls away by default — cleaner) */
.topbar{
  background:var(--navy);
  color:#fff;
  font-weight:900;
  font-size:14px;
}
.topbar .container{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
}

/* Sticky header + nav (always visible) */
.header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 20px rgba(17,24,39,.08);
}
.header .container{padding:0;}
.nav{
  background:#fff;
  border-top:1px solid var(--line);
  position:relative;
  z-index:9999;
}
/* NOTE: keep this generic so it doesn't fight .nav-menu */
.nav .container{
  display:block;
  padding:0;
}

/* Prevent anchor/content hiding behind sticky header */
main{scroll-margin-top:var(--sticky-offset)}
section{scroll-margin-top:var(--sticky-offset)}

/* Basic hero (simple) */
.hero{
  background:var(--navy);
  color:#fff;
  padding:56px 0;
}
.hero h1{margin:0;font-size:42px;line-height:1.1;letter-spacing:-.02em}
.hero p{margin:14px 0 0;color:rgba(255,255,255,.85);font-size:18px;max-width:720px}
.hero .cta{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px}

/* BIG HERO (photo opener) */
.hero2{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:center;
  background:#071d2f;
  overflow:hidden;
  padding-top:18px; /* avoids feeling tucked under sticky header */
}
.hero2::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,29,47,.90) 0%, rgba(7,29,47,.70) 45%, rgba(7,29,47,.35) 100%),
    url("/assets/hero/pavers-hero.jpg") center/cover no-repeat;
  transform:scale(1.02);
  pointer-events:none; /* critical: never block clicks */
}
.hero2 .container{
  position:relative;
  z-index:2;
  padding:56px 16px;
}
.hero2 h1{
  margin:10px 0 0;
  font-size:50px;
  line-height:1.05;
  letter-spacing:-.02em;
  color:#fff;
  max-width:760px;
}
.hero2 p{
  margin:14px 0 0;
  color:rgba(255,255,255,.86);
  font-size:18px;
  max-width:720px;
}
.hero2 .chips{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .85fr;
  gap:18px;
  align-items:start;
}
@media (max-width:980px){
  :root{ --sticky-offset: 128px; } /* a bit taller on smaller screens */
  .hero-grid{grid-template-columns:1fr}
  .hero2 h1{font-size:40px}
}

/* Instant Quote card (homepage) */
.quote-card{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(10px);
  padding:16px;
  color:#fff;
}
.quote-card h3{margin:0;font-size:18px}
.quote-card label{
  display:block;
  margin-top:12px;
  font-weight:900;
  font-size:12px;
  opacity:.9;
}
.quote-card input,
.quote-card select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(7,29,47,.55);
  color:#fff;
  outline:none;
}
.quote-card input::placeholder{color:rgba(255,255,255,.65)}
.quote-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:520px){ .quote-row{grid-template-columns:1fr} }
.subtle{opacity:.82;font-size:12px;margin-top:10px;line-height:1.35}

/* Sections / grids */
.section{padding:44px 0}
.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:900px){
  .grid-3,.grid-2{grid-template-columns:1fr}
}

/* Cards */
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  background:#fff;
  box-shadow:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.card h3{margin:0 0 6px;font-size:18px;letter-spacing:-.01em}
.card p{margin:0;color:var(--muted)}

/* ===== Services thumbnails: shorter images ===== */
.service-thumb{
  width:100%;
  height:210px;           /* shorter than square */
  object-fit:cover;
  border-radius:14px;
  display:block;
}

/* Slight tightening for service cards */
.card.service-card{ padding:16px; }

/* ===== Premium card hover + image zoom ===== */
.card img{
  transition: transform .35s ease;
  will-change: transform;
  transform: scale(1);
}

.card:hover,
.card:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(17,24,39,.16);
  border-color: rgba(15,110,168,.35);
}

.card:hover img,
.card:focus-within img{
  transform: scale(1.04);
}

/* keyboard focus ring */
.card:focus-within{
  outline: 3px solid rgba(40,182,200,.35);
  outline-offset: 3px;
}

/* responsive tweak */
@media (max-width:900px){
  .service-thumb{ height:220px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .card,
  .card img{
    transition: none !important;
  }
}

/* Small kicker */
.kicker{
  color:var(--teal);
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
}

/* Trust bar */
.trustbar{
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.trustbar .container{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
}
.trust-item{font-weight:900;color:var(--navy);font-size:13px}

/* Headings helpers */
.section-title{font-size:28px;margin:0;letter-spacing:-.02em}
.section-sub{color:var(--muted);margin:10px 0 0;max-width:820px}

/* Notice box */
.notice{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  background:#f9fafb;
}

/* Footer */
.footer{
  margin-top:50px;
  background:var(--navy);
  color:#fff;
}
.footer .container{padding:46px 16px}
.footer-grid{display:grid;gap:20px;grid-template-columns:2fr 1fr 1fr}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr}}
.footer a{color:rgba(255,255,255,.85)}
.small{font-size:13px;color:rgba(255,255,255,.75)}
.hr{border-top:1px solid rgba(255,255,255,.15);margin-top:22px;padding-top:18px}

/* ===== Dropdown Navigation (FINAL) ===== */
.nav-menu{
  display:flex;
  gap:18px;
  align-items:center;
  padding:10px 16px;
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
  position:relative;
  z-index:9999;
  overflow:visible; /* allow dropdowns to show */
}

/* group wrapper */
.nav-group{
  position:relative;
  display:inline-flex;
  align-items:center;
}

/* nav links */
.nav-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
}

/* Remove boxed caret buttons entirely */
.nav-caret-btn{ display:none !important; }

/* Dropdown */
.dropdown{
  position:absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  max-width: 240px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:8px;
  display:none;
  z-index:3000;
  margin-top:8px;
}

.dropdown::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-10px;
  height:10px;
}

.dropdown a{
  display:block;
  padding:9px 10px;
  border-radius:12px;
  font-weight:900;
  color:var(--text);
}

.dropdown .small-note{
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:800;
  font-size:12px;
  background:#f9fafb;
  border:1px solid var(--line);
  margin-top:8px;
}

/* Desktop hover support */
@media (hover:hover){
  .nav-group:hover .dropdown{ display:block; }
}

/* Mobile: allow horizontal scroll for nav items */
@media (max-width:900px){
  .nav-menu{ overflow:auto; }
}

/* CTA styling */
.nav-cta{
  background:var(--blue);
  color:#fff !important;
}
.nav-cta:hover{
  background:var(--blue) !important;
  opacity:.92;
}

/* ===== Header row layout: logo + nav + CTAs on one line ===== */
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
}

/* Brand logo */
.brand{ display:flex; align-items:center; }

/* Nav sits in the middle and stretches */
.header-nav{ flex:1; }
.header-nav .nav-menu{
  justify-content:center;
  gap:18px;
}

/* CTAs on the right */
.header-ctas{
  display:flex;
  gap:10px;
  align-items:center;
  flex:0 0 auto;
}

/* Remove the old "nav bar row" look since nav is now inside header row */
.nav{
  border-top:0;
  background:transparent;
}
.nav .container{ padding:0; }

/* Mobile behavior */
@media (max-width:980px){
  .header-row{ flex-wrap:wrap; }
  .header-nav{ flex: 1 1 100%; order: 3; }
  .header-ctas{ order: 2; margin-left:auto; }
  .brand{ order: 1; }
  .header-nav .nav-menu{
    justify-content:flex-start;
    overflow:auto;
    padding:10px 0;
  }
}

/* ===== Brand logo sizing (50% larger) ===== */
.brand-logo{
  height:90px;
  width:auto;
  display:block;
}
@media (max-width:980px){
  .brand-logo{ height:68px; }
}

/* ===== Dropdown: remove note text blocks ===== */
.dropdown .small-note{ display:none !important; }

/* ===== Brand water-drop hover color (logo matched) ===== */
.nav-link:hover{
  background: rgba(57,191,234,.22) !important;
}
.dropdown a:hover{
  background: rgba(57,191,234,.18) !important;
}

/* ===== Header/Nav typography: logo-like font ===== */
.header, .nav, .nav-menu, .nav-link, .dropdown a, .header-ctas .btn{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.nav-link, .dropdown a{
  letter-spacing: .01em;
}

/* ===== Call button hover: water-blue fill + light gray outline ===== */
.header-ctas .btn-ghost{
  border-color: var(--line);
}
.header-ctas .btn-ghost:hover{
  background: rgba(57,191,234,.22);
  border-color: var(--line);
  color: var(--navy);
}

/* ===== Mobile Call Bar ===== */
.mobile-callbar{
  display:none;
}

@media (max-width: 900px){
  .mobile-callbar{
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;

    background: var(--blue);
    color:#fff;
    font-weight:900;
    border-radius:16px;
    padding:14px 16px;
    box-shadow: 0 12px 30px rgba(17,24,39,.22);
  }

  /* prevent content being hidden behind the callbar */
  body{ padding-bottom: 84px; }
}
