/* ==========================================================================
   All Care Contracting Co — Water Damage Restoration Service, Brooklyn NY
   assets/css/style.css
   ========================================================================== */

:root {
  --navy: #12243d;
  --navy-800: #1b3355;
  --navy-700: #24446e;
  --blue: #3f7ea6;
  --blue-dark: #336887;
  --blue-tint: #eef4f8;
  --gray-900: #202832;
  --gray-700: #4c5866;
  --gray-500: #6b7683;
  --gray-300: #c9d1d9;
  --gray-200: #e2e7ec;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gap: 28px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 61, .08);
  --shadow-md: 0 12px 32px rgba(18, 36, 61, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover, a:focus { color: var(--navy); text-decoration: underline; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
.section { padding: 68px 0; }
.section--tight { padding: 48px 0; }
.section--gray { background: var(--gray-100); }
.section--tint { background: var(--blue-tint); }
.section--navy { background: var(--navy); color: #d7e2ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-dark);
  padding-left: 14px;
  border-left: 3px solid var(--blue);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #8fb9d3; border-color: #8fb9d3; }
.lead { font-size: 1.1rem; color: var(--gray-700); }
.section--navy .lead { color: #c6d5e4; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #c4d3e3;
  font-size: .9rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
  min-height: 40px;
}
.topbar a { color: #e6eef6; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { flex: none; opacity: .85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: saturate(140%) blur(6px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover, .brand:focus { text-decoration: none; }
.brand img { width: 42px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: .01em;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 13px;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--navy);
  display: block;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__link {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link:focus { text-decoration: none; border-bottom-color: var(--blue); }
.nav__link[aria-current="page"] { border-bottom-color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn--primary { background: var(--blue-dark); color: #fff; 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: #fff; border-color: var(--navy); }
.btn--dark:hover, .btn--dark:focus { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover, .btn--outline:focus { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover, .btn--light:focus { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--navy); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover, .btn--ghost-light:focus { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.header__cta { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--white); padding: 56px 0 0; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    linear-gradient(180deg, var(--gray-100) 0%, rgba(244,246,248,0) 62%),
    repeating-linear-gradient(90deg, rgba(18,36,61,.045) 0 1px, transparent 1px 88px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
  padding-bottom: 60px;
}
.hero__copy { max-width: 620px; }
.hero h1 { margin-bottom: 18px; }
.hero__intro { font-size: 1.14rem; color: var(--gray-700); }
.hero__points { list-style: none; margin: 24px 0 0; display: grid; gap: 10px; }
.hero__points li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--navy);
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  max-width: 260px;
  box-shadow: var(--shadow-md);
}
.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero__badge span { font-size: .93rem; color: #bfd1e2; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--navy);
  color: #cddced;
  padding: 52px 0 46px;
  border-bottom: 6px solid var(--blue);
}
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p { max-width: 720px; color: #c6d5e4; margin: 0; }
.breadcrumbs {
  font-size: .88rem;
  color: #9fb6cc;
  margin-bottom: 16px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #6f8aa5; }
.breadcrumbs a { color: #dbe7f2; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--gap); }
.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-200);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--link:hover, .card--link:focus-within {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .99rem; }
.card__num {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card--media .card__body { padding: 22px 24px 26px; }

.list-check { list-style: none; display: grid; gap: 9px; }
.list-check li { position: relative; padding-left: 26px; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 9px;
  height: 9px;
  background: var(--blue);
  transform: rotate(45deg);
}
.section--navy .list-check li::before { background: #8fb9d3; }

/* ---------- Process ladder ---------- */
.process { list-style: none; display: grid; gap: 0; counter-reset: step; }
.process li {
  position: relative;
  padding: 0 0 30px 62px;
  border-left: 2px solid var(--gray-200);
  margin-left: 20px;
}
.process li:last-child { padding-bottom: 0; border-left-color: transparent; }
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -21px;
  top: -4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process h3 { margin-bottom: .3em; }
.process p { font-size: 1rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.split--reverse .split__media { order: 2; }

/* ---------- Service detail blocks ---------- */
.service-block {
  padding: 30px 0;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
}
.service-block:first-of-type { border-top: 0; padding-top: 6px; }
.service-block h2 { font-size: 1.5rem; margin: 0; }
.service-block__aside { font-size: .95rem; color: var(--gray-500); }

/* ---------- Area chips ---------- */
.areas { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.areas li {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
.section--navy .areas li { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { flex: none; margin-top: 4px; color: var(--blue-dark); }
.info-list dt, .info-list .label {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2px;
}
.info-list .value { color: var(--navy); font-weight: 600; }
.info-list a.value { color: var(--blue-dark); }

.hours { list-style: none; display: grid; gap: 8px; max-width: 380px; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--gray-300);
  font-size: 1rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { font-weight: 600; color: var(--navy); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(63, 126, 166, .25);
  outline-offset: 0;
}
.field__hint { font-size: .86rem; color: var(--gray-500); }
.form__note { font-size: .9rem; color: var(--gray-500); }
.form-status {
  border-left: 3px solid var(--blue);
  background: var(--blue-tint);
  padding: 12px 16px;
  font-size: .96rem;
  color: var(--navy);
}
.form-status[hidden] { display: none; }

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

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #d7e2ee;
  padding: 52px 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #c6d5e4; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1c30;
  color: #a9bdd2;
  font-size: .97rem;
  padding: 52px 0 0;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 1.12rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer a { color: #d5e3f0; }
.site-footer a:hover { color: #fff; }
.footer__list { list-style: none; display: grid; gap: 9px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 40px; }
.footer__brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .9rem;
  color: #8ea5bd;
}
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 9px 12px;
  gap: 10px;
}
.callbar .btn { flex: 1; padding: 12px 10px; font-size: 1rem; }

/* ---------- Reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .card--link:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__badge { position: static; margin-top: 16px; max-width: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--gray-200); }
  .nav__link { display: block; padding: 14px 0; border-bottom: 0; }
  .nav__link[aria-current="page"] { color: var(--blue-dark); }
  .header__cta { margin-top: 16px; }
  .header__cta .btn { width: 100%; }
  .site-header { position: relative; }
  .header__inner { position: relative; }
  .topbar__inner { justify-content: center; text-align: center; }
  .service-block { grid-template-columns: 1fr; gap: 14px; }
  .callbar { display: flex; }
  body { padding-bottom: 68px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .section { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .brand__name { font-size: 1.22rem; }
  .brand img { width: 36px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .map-frame iframe { height: 300px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .callbar, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
