/* Affordable Remodels FL — brand styles
   Palette from logo: royal blue #034f9d, navy #01336a, green #3d9b0e → #05620b */

:root {
  --blue: #034f9d;
  --blue-dark: #01336a;
  --navy: #021f40;
  --green: #3d9b0e;
  --green-dark: #05620b;
  --green-grad: linear-gradient(135deg, #4caf1a 0%, #05620b 100%);
  --blue-grad: linear-gradient(135deg, #0a5cb0 0%, #01336a 100%);
  --brand-grad: linear-gradient(120deg, #034f9d 0%, #1a7c1a 100%);
  --bg: #f6f9fc;
  --surface: #ffffff;
  --text: #16263a;
  --text-soft: #4a5b70;
  --line: #dde6ef;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(2, 31, 64, .08);
  --shadow-md: 0 6px 24px rgba(2, 31, 64, .10);
  --shadow-lg: 0 18px 48px rgba(2, 31, 64, .16);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Archivo', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -.015em; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection { background: #cfe3f8; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change: transform;
}
.btn svg { flex: none; }
.btn-green { background: var(--green-grad); color: #fff; box-shadow: 0 8px 22px rgba(5, 98, 11, .35); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(5, 98, 11, .42); }
.btn-blue { background: var(--blue-grad); color: #fff; box-shadow: 0 8px 22px rgba(1, 51, 106, .30); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(1, 51, 106, .38); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--navy); color: #cfe0f2; font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-left { display: flex; gap: 18px; align-items: center; }
.topbar svg { vertical-align: -2px; margin-right: 5px; }

header.site {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
header.site .container { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 4px; }
nav.main > a {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none; padding: 10px 13px; border-radius: 8px;
  transition: color .15s, background-color .15s;
}
nav.main > a:hover { color: var(--blue); background: #eef4fb; }
nav.main > a.active { color: var(--blue); background: #e7f0fa; }
.nav-cta { margin-left: 10px; min-height: 46px; padding: 11px 22px; font-size: 15px; }

/* Services dropdown */
.dropdown { position: relative; }
.dropdown > button {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px; color: var(--text);
  background: none; border: 0; padding: 10px 13px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s, background-color .15s;
}
.dropdown > button:hover, .dropdown.open > button { color: var(--blue); background: #eef4fb; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  font-weight: 600; font-size: 14.5px; color: var(--text); text-decoration: none; border-radius: 8px;
}
.dropdown-menu a:hover { background: #eef6ea; color: var(--green-dark); }
.dropdown-menu a svg { color: var(--green); flex: none; }

/* Mobile nav */
.hamburger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
body.nav-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  display: flex; align-items: center;
  min-height: 620px;
  background-size: cover; background-position: center;
}
.hero.short { min-height: 420px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2,31,64,.88) 0%, rgba(3,79,157,.72) 45%, rgba(2,31,64,.25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61,155,14,.18); border: 1px solid rgba(110,200,70,.55);
  color: #c9f3ae; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.hero h1 .grn { color: #7ed957; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); max-width: 620px; color: #dbe8f6; margin-bottom: 34px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .crumbs { font-size: 14px; color: #b9cfe6; margin-bottom: 18px; }
.hero .crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.hero .crumbs a:hover { text-decoration: underline; }

/* Trust strip */
.trust { background: var(--navy); color: #fff; }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.trust .t-item { display: flex; align-items: center; gap: 12px; justify-content: center; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px; }
.trust .t-item svg { color: #7ed957; flex: none; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.tight { padding: 64px 0; }
.sec-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin: 0 0 42px; text-align: left; }
.eyebrow {
  display: inline-block; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark);
  background: #e7f4dd; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sec-head h2, h2.sec-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.sec-head p { color: var(--text-soft); font-size: 17px; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card .img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.svc-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.svc-card:hover .img img { transform: scale(1.05); }
.svc-card .icon {
  position: absolute; left: 18px; bottom: -26px; width: 56px; height: 56px;
  background: var(--green-grad); border-radius: 14px; display: grid; place-items: center;
  color: #fff; box-shadow: 0 8px 20px rgba(5,98,11,.35);
}
.svc-card .body { padding: 40px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.svc-card p { color: var(--text-soft); font-size: 15px; flex: 1; }
.svc-card .more {
  margin-top: 16px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14.5px;
  color: var(--blue); display: inline-flex; align-items: center; gap: 7px;
}
.svc-card:hover .more { color: var(--green-dark); }
.svc-card:hover .more svg { transform: translateX(4px); }
.svc-card .more svg { transition: transform .2s ease; }

/* Split (two column) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .img-wrap { position: relative; }
.split .img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .img-wrap::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--green); border-radius: var(--radius); z-index: -1;
}
.split h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.split p { color: var(--text-soft); margin-bottom: 14px; }

/* Checklist */
.checks { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks svg { color: var(--green); flex: none; margin-top: 3px; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfd9f1; }
.feat .f-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #e7f0fa; color: var(--blue); margin-bottom: 16px;
}
.feat:nth-child(even) .f-icon { background: #e7f4dd; color: var(--green-dark); }
.feat h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--text-soft); }

/* Stats band */
.stats { background: var(--blue-grad); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 56px; padding-bottom: 56px; text-align: center; }
.stats .num { font-family: 'Archivo', sans-serif; font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: #7ed957; }
.stats .lbl { font-weight: 600; font-size: 15px; color: #d6e6f7; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); position: relative;
}
.step .n {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: #fff;
  background: var(--blue); width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery.wide { grid-template-columns: repeat(3, 1fr); }
.gallery.wide img { aspect-ratio: 4/3; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.quote .starr { color: #f5a623; letter-spacing: 2px; font-size: 18px; margin-bottom: 14px; }
.quote p { color: var(--text-soft); font-size: 15.5px; flex: 1; }
.quote .who { margin-top: 18px; font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--navy); }
.quote .who span { display: block; font-family: 'Inter'; font-weight: 500; font-size: 13.5px; color: var(--text-soft); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16.5px; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--green); font-weight: 600; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px; color: var(--text-soft); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 85% 20%, rgba(126,217,87,.25), transparent 60%);
}
.cta-band .container { position: relative; padding-top: 76px; padding-bottom: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; max-width: 560px; }
.cta-band p { color: #e2ecf8; margin-top: 8px; max-width: 520px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-white { background: #fff; color: var(--blue-dark); }
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.c-cards { display: grid; gap: 18px; margin-bottom: 28px; }
.c-card {
  display: flex; gap: 18px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.c-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--green-grad); color: #fff; display: grid; place-items: center; flex: none; }
.c-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.c-card p, .c-card a { color: var(--text-soft); font-size: 15px; text-decoration: none; }
.c-card a.big { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; color: var(--blue); }
.c-card a:hover { color: var(--green-dark); }

form.estimate {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 36px; border-top: 6px solid; border-image: var(--brand-grad) 1;
}
form.estimate h3 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
form.estimate .sub { color: var(--text-soft); font-size: 15px; margin-bottom: 24px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 16px; }
.f-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.f-group label .req { color: #c0392b; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.f-group textarea { min-height: 120px; resize: vertical; }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3,79,157,.15);
}
form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #b9cfe6; }
footer.site .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
footer.site .f-logo img { height: 64px; margin-bottom: 18px; background: #fff; border-radius: 12px; padding: 8px 12px; }
footer.site p { font-size: 14.5px; }
footer.site h4 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
footer.site ul { list-style: none; display: grid; gap: 10px; }
footer.site ul a { color: #b9cfe6; text-decoration: none; font-size: 14.5px; transition: color .15s; }
footer.site ul a:hover { color: #7ed957; }
footer.site .f-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
footer.site .f-contact svg { color: #7ed957; flex: none; margin-top: 3px; }
footer.site .f-contact a { color: #fff; font-weight: 600; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Reveal on scroll */
/* Reveal-on-scroll: elements are only hidden when JS is running (html.js),
   so content stays visible for no-JS visitors and prerender snapshots. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.instant { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid, .feat-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  footer.site .top { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar .tb-left span.hide-sm { display: none; }
  .hamburger { display: block; }
  nav.main {
    position: fixed; inset: 78px 0 auto 0; z-index: 999;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px 20px 26px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  body.nav-open nav.main { transform: translateY(0); }
  nav.main > a { padding: 14px 12px; font-size: 17px; }
  .dropdown > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 17px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-cta { margin: 14px 0 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .img-wrap { order: -1; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  section.block { padding: 60px 0; }
  .svc-grid, .feat-grid, .quotes, .steps, .gallery, .f-row { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  footer.site .top { grid-template-columns: 1fr; }
  .logo img { height: 46px; }
}
