/* Xcelent Contractor — Water Damage Restoration, Brooklyn NY
   assets/css/style.css */

:root {
  --navy: #0f2440;
  --navy-deep: #0a1a30;
  --navy-soft: #1c3a60;
  --blue: #3d7ea6;
  --blue-dark: #2f6485;
  --blue-tint: #eef4f8;
  --gray-900: #1e2430;
  --gray-700: #48505e;
  --gray-500: #6d7684;
  --gray-300: #d5dae1;
  --gray-150: #e9edf1;
  --gray-50: #f6f8fa;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 64, .08);
  --shadow: 0 4px 16px rgba(15, 36, 64, .09);
  --maxw: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.15rem; }
li { margin-bottom: .4em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tint { background: var(--gray-50); }
.section--blue { background: var(--blue-tint); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p, .section--navy li { color: #cdd7e3; }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .7em;
}
.section--navy .eyebrow { color: #7fb3d0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c8d4e2;
  font-size: .875rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: #ffffff; }
.topbar-list { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-150);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.015em;
}
.brand-tag {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.nav-toggle-bars span,
.nav-toggle-bars span::before,
.nav-toggle-bars span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
  content: "";
}
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars span::before { top: -5px; }
.nav-toggle-bars span::after { top: 5px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--gray-900);
  font-weight: 600;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list a:focus { text-decoration: none; border-bottom-color: var(--blue); }
.nav-list a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn--primary { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.btn--primary:hover, .btn--primary:focus { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--dark:hover, .btn--dark:focus { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover, .btn--outline:focus { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover, .btn--light:focus { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--navy); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover, .btn--ghost-light:focus { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #d3dde9; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  padding: 64px 0;
}
.hero h1 { color: var(--white); margin-bottom: .5em; }
.hero-lead { font-size: 1.09rem; color: #ccd8e6; max-width: 40em; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 8px;
}
.hero-points li {
  position: relative;
  padding-left: 26px;
  color: #dbe4ee;
  font-size: .98rem;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
}
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
}
.hero-media img { width: 100%; }

/* ---------- Info strip ---------- */
.strip { background: var(--gray-50); border-bottom: 1px solid var(--gray-150); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 26px 0;
}
.strip-item h3 { font-size: 1rem; margin-bottom: .3em; }
.strip-item p { margin: 0; font-size: .95rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; }

.media-card {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.media-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-card-body { padding: 20px 22px 24px; }
.media-card-body h3 { margin-bottom: .4em; }
.media-card-body p:last-child { margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0;
}
.steps li h3 { margin-bottom: .4em; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps li p:last-child { margin-bottom: 0; }

/* ---------- Split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-media img { border-radius: var(--radius-lg); width: 100%; }
.split-body p:last-child { margin-bottom: 0; }

/* ---------- Service list (services page) ---------- */
.service-block {
  border-top: 1px solid var(--gray-150);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
}
.service-block:first-of-type { border-top: none; padding-top: 4px; }
.service-block h3 { margin-bottom: .35em; }
.service-block p:last-child { margin-bottom: 0; }
.service-block-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
}

/* ---------- Areas ---------- */
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  font-size: .96rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 0 0 22px; }
.info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-150);
  margin: 0;
}
.info-list li:last-child { border-bottom: none; }
.info-label { font-weight: 700; color: var(--navy); font-size: .93rem; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-150);
}
.hours-table th { color: var(--navy); font-weight: 600; width: 55%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }

form { margin: 0; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: .93rem;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .85rem; color: var(--gray-500); margin: 6px 0 0; }
.form-note { font-size: .88rem; color: var(--gray-500); margin-top: 14px; }
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--blue-tint);
  border: 1px solid #cfe0ea;
  color: var(--navy);
  font-size: .95rem;
  display: none;
}
.form-status.is-visible { display: block; }

.map-frame {
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #d3dde9; padding: 52px 0; }
.cta-band h2 { color: var(--white); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.cta-copy { max-width: 620px; }
.cta-copy p:last-child { margin-bottom: 0; }

/* ---------- Page header ---------- */
.page-head { background: var(--navy); color: #ccd8e6; padding: 52px 0 46px; }
.page-head h1 { color: var(--white); margin-bottom: .45em; }
.page-head p { max-width: 62ch; margin-bottom: 0; color: #ccd8e6; }
.breadcrumb {
  font-size: .85rem;
  color: #9fb3c9;
  margin-bottom: 14px;
}
.breadcrumb a { color: #cfe0ee; }
.breadcrumb span { padding: 0 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c6d6; font-size: .95rem; padding: 48px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 34px;
}
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #dce6f0; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5em; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .88rem;
  color: #93a5b8;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
  .strip-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-block { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .section { padding: 46px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-150);
    box-shadow: var(--shadow);
    padding: 8px 20px 20px;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-150);
  }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--gray-150); color: var(--blue-dark); }
  .site-nav .btn { margin-top: 14px; width: 100%; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn-row .btn { width: 100%; }
  .topbar .container { justify-content: flex-start; }
  .info-list li { grid-template-columns: 1fr; gap: 2px; }
  .callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 9px 12px;
    gap: 10px;
  }
  .callbar .btn { flex: 1; padding: 12px 10px; font-size: .95rem; }
  body { padding-bottom: 68px; }
}
