/* ============================================================
   House Painting Long Island — Premium Theme
   Palette carried over from existing site:
   blue #3182CE / #2B6CB0  ·  orange #FF8E3C / #F76A0C
   ============================================================ */

:root {
  --blue:        #3182CE;
  --blue-dark:   #2B6CB0;
  --blue-deep:   #1E4E8C;
  --navy:        #16233B;
  --navy-2:      #0F1B2D;
  --orange:      #FF8E3C;
  --orange-dark: #F76A0C;
  --ink:         #1A202C;
  --body:        #4A5568;
  --muted:       #718096;
  --line:        #E2E8F0;
  --soft:        #F4F7FB;
  --soft-2:      #EDF2F7;
  --white:       #ffffff;

  --shadow-sm: 0 2px 8px rgba(22,35,59,.06);
  --shadow:    0 12px 30px rgba(22,35,59,.10);
  --shadow-lg: 0 24px 60px rgba(22,35,59,.18);

  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --ease: cubic-bezier(.4,.16,.2,1);

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; }
em { font-style: italic; color: var(--blue-dark); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(247,106,12,.28); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247,106,12,.36); }
.btn--ghost { background: transparent; color: var(--blue-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--phone { font-weight: 700; }

/* ---------- Utility bar ---------- */
.utilbar { background: var(--navy-2); color: #cfd9e8; font-size: .85rem; }
.utilbar__inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.util-item { display: inline-flex; align-items: center; gap: .4rem; }
.util-item strong { color: #fff; }
.util-item--muted { color: #93a3bc; }
.util-item--phone { color: #fff; font-weight: 700; }
.util-divider { width: 1px; height: 16px; background: rgba(255,255,255,.18); margin: 0 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--soft-2); border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.brand__sub { font-size: .68rem; letter-spacing: .22em; color: var(--blue); font-weight: 700; margin-top: 3px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__mark { background: rgba(255,255,255,.08); }

.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav > a, .nav__toggle { font-weight: 500; font-size: .96rem; color: var(--ink); transition: color .2s; }
.nav > a:hover, .nav__toggle:hover { color: var(--blue); }
.nav__dropdown { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.caret { font-size: .7rem; }
.nav__menu {
  position: absolute; top: 150%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: .5rem; min-width: 230px; opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.nav__dropdown:hover .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { display: block; padding: .7rem .9rem; border-radius: 9px; font-size: .94rem; font-weight: 500; color: var(--ink); }
.nav__menu a:hover { background: var(--soft); color: var(--blue-dark); }

.header__cta { display: flex; align-items: center; gap: .6rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dark); margin-bottom: 1rem;
}
.eyebrow--light { color: #ffd9b8; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head p { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,27,45,.92) 0%, rgba(15,27,45,.72) 42%, rgba(15,27,45,.30) 100%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 92px 24px 96px; }
.hero__content { max-width: 620px; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
.hero__title em { color: var(--orange); font-style: italic; }
.hero__lead { margin-top: 1.4rem; font-size: 1.18rem; color: #dbe4f0; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; list-style: none; }
.hero__badges li { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; color: #cdd8e8; font-weight: 500; }
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,142,60,.22); }

.hero__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; color: var(--ink); }
.hero__card-head { margin-bottom: 1.2rem; }
.hero__card-head strong { display: block; font-family: var(--font-head); font-size: 1.4rem; }
.hero__card-head span { font-size: .9rem; color: var(--muted); }
.quote-form { display: flex; flex-direction: column; gap: .8rem; }
.quote-form input, .quote-form select {
  width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--soft); transition: border-color .2s;
}
.quote-form input:focus, .quote-form select:focus { outline: none; border-color: var(--blue); background: #fff; }
.quote-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.quote-form__fine { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .2rem; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); }
.trustbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 26px 24px; }
.trust { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 120px; color: #fff; }
.trust strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--orange); }
.trust span { font-size: .86rem; color: #aeb9cc; margin-top: 2px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__img { height: 200px; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.service-card:hover .service-card__img { transform: scale(1.06); }
.service-card__body { padding: 24px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.service-card__body p { color: var(--muted); font-size: .96rem; }
.service-card__link { margin-top: auto; padding-top: .6rem; color: var(--blue-dark); font-weight: 600; font-size: .94rem; transition: gap .2s; }
.service-card:hover .service-card__link { color: var(--orange-dark); }
.service-card--feature { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; justify-content: center; }
.service-card--feature h3 { color: #fff; }
.service-card--feature p { color: rgba(255,255,255,.85); }
.service-card--feature .service-card__body { gap: 1rem; }

/* ---------- Split / Why us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.split__badge {
  position: absolute; bottom: 24px; left: -24px; background: #fff; padding: 18px 22px;
  border-radius: 14px; box-shadow: var(--shadow); max-width: 230px;
}
.split__badge strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--blue-dark); }
.split__badge span { font-size: .86rem; color: var(--muted); }
.split__content h2 { margin-bottom: 1rem; }
.split__content > p { font-size: 1.08rem; margin-bottom: 1.6rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.feature-list li { display: flex; gap: 1rem; }
.feature-list__icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(49,130,206,.12);
  color: var(--blue-dark); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.feature-list strong { color: var(--ink); font-size: 1.02rem; }
.feature-list p { font-size: .94rem; color: var(--muted); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding: 32px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.process-step__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: rgba(49,130,206,.18); display: block; margin-bottom: .4rem; }
.process-step h3 { margin-bottom: .5rem; }
.process-step p { font-size: .94rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery__item { position: relative; border-radius: var(--radius); background-size: cover; background-position: center; overflow: hidden; }
.gallery__item--lg { grid-column: span 2; grid-row: span 1; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,27,45,.78), rgba(15,27,45,0) 55%); }
.gallery__item figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 2; color: #fff; font-size: .98rem; font-weight: 500; }
.gallery__item figcaption span { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--orange); padding: 3px 9px; border-radius: 99px; margin-bottom: .5rem; }

/* ---------- Stat band ---------- */
.statband { background: linear-gradient(135deg, var(--blue-deep) 0%, var(--navy-2) 100%); color: #fff; padding: 84px 0; }
.statband__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.statband__text h2 { color: #fff; }
.statband__text p { margin-top: 1rem; color: #c2cee0; font-size: 1.08rem; }
.statband__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.statband__grid div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 26px; text-align: center; }
.statband__grid strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--orange); display: block; }
.statband__grid span { font-size: .9rem; color: #c2cee0; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.area-col h3 { font-family: var(--font-body); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dark); padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 2px solid var(--soft-2); }
.area-col ul { list-style: none; columns: 1; }
.area-col li { margin-bottom: .35rem; }
.area-col a { font-size: .92rem; color: var(--body); transition: color .18s, padding-left .18s; }
.area-col a:hover { color: var(--orange-dark); padding-left: 4px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-sm); }
.review__stars { color: #F6B100; letter-spacing: 2px; }
.review p { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.review footer { margin-top: auto; }
.review footer strong { display: block; color: var(--ink); }
.review footer span { font-size: .86rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq__intro p { margin-top: 1rem; color: var(--muted); }
.faq__intro a { color: var(--blue-dark); font-weight: 600; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; transition: box-shadow .25s; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(49,130,206,.3); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); transition: transform .25s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 22px; }
.faq-item__body p { color: var(--body); }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(30,78,140,.95), rgba(15,27,45,.86)); }
.cta__inner { position: relative; text-align: center; padding: 92px 24px; max-width: 720px; }
.cta h2 { color: #fff; }
.cta p { margin: 1rem auto 2rem; color: #d7e1ef; font-size: 1.12rem; max-width: 560px; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: #aeb9cc; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 24px 48px; }
.footer__brand p { margin: 1.2rem 0 1.5rem; font-size: .94rem; max-width: 320px; }
.footer__col h4, .footer__contact h4 { color: #fff; font-family: var(--font-body); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col ul, .footer__contact ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer__col a, .footer__contact a, .footer__contact li { font-size: .94rem; color: #aeb9cc; transition: color .18s; }
.footer__col a:hover, .footer__contact a:hover { color: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 22px 24px; font-size: .84rem; color: #8595af; }

/* ---------- Floating call ---------- */
.floating-call { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); color: #fff; display: none; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 24px rgba(247,106,12,.45); z-index: 90; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--lg { grid-column: span 2; }
  .statband__inner { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: .2rem; background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow);
  }
  .nav.open > a, .nav.open .nav__toggle { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--soft-2); }
  .nav.open .nav__menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .hamburger { display: flex; }
  .floating-call { display: grid; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .services-grid, .process-grid, .reviews-grid, .gallery { grid-template-columns: 1fr; }
  .gallery__item--lg { grid-column: span 1; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split__badge { left: 16px; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .statband__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .utilbar__left { display: none; }
  .utilbar__inner { justify-content: center; }
  .hero__actions .btn { flex: 1; }
}
