/* =========================================================
   Flawless Finish Cleaning — styles
   Palette pulled from the logo:
     gold  #d4af37   maroon #892850   plum #5e3b46 / #4a2e38
   Mobile-first. Layout scales up at 700px / 960px.
   ========================================================= */

:root {
  --plum: #4a2e38;
  --plum-deep: #3a2229;
  --maroon: #892850;
  --rose: #a54956;
  --gold: #d4af37;
  --gold-deep: #b8932e;

  --ink: #2a2024;
  --muted: #6b5d62;
  --cream: #faf8f5;
  --line: #ece5e0;
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(58, 34, 41, 0.08);
  --shadow-md: 0 12px 30px rgba(58, 34, 41, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--plum);
  font-weight: 600;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.6rem;
}

.section__eyebrow--gold {
  color: var(--gold);
}

.section__title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
}

.section__lede {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section--plum {
  background: var(--plum);
}
.section--plum .section__title {
  color: var(--white);
}

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  text-align: center;
}

.btn--primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.header__logo {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  list-style: none;
  padding: 0;
}

/* mobile menu: collapsed by default */
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 0;
  display: none;
  box-shadow: var(--shadow-md);
}
.nav__menu.is-open {
  display: flex;
}
.nav__menu li {
  width: 100%;
}
.nav__menu a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--plum);
  font-weight: 600;
  border-top: 1px solid var(--line);
}
.nav__menu a:hover {
  background: var(--cream);
}
.nav__cta {
  color: var(--maroon) !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--plum-deep);
  background-image: url("../assets/floor-cleaning.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(58, 34, 41, 0.92) 0%,
    rgba(74, 46, 56, 0.82) 45%,
    rgba(74, 46, 56, 0.55) 100%
  );
  z-index: -1;
}
.hero__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 600;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__lede {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.9);
}
.hero__badges {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero__badges svg {
  width: 22px;
  height: 22px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* quote card */
.quote-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow-md);
}
.quote-card__title {
  font-size: 1.5rem;
}
.quote-card__sub {
  color: var(--muted);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ---------- form ---------- */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum);
}
.field label span {
  color: var(--maroon);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(137, 40, 80, 0.12);
}
.field textarea {
  resize: vertical;
}
.field input.is-invalid,
.field select.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.field__error {
  color: #c0392b;
  font-size: 0.8rem;
  min-height: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quote-form__status {
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.quote-form__status.is-success {
  color: #1e7e4f;
}
.quote-form__status.is-error {
  color: #c0392b;
}

/* ---------- services cards ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--maroon), var(--rose));
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
}
.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- why us ---------- */
.why__grid {
  display: grid;
  gap: 1.5rem 2.5rem;
}
.why__item h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.why__item p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- service area ---------- */
.areas__grid {
  display: grid;
  gap: 1.25rem;
}
.areas__county {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.areas__county h3 {
  color: var(--maroon);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.areas__county p {
  color: var(--muted);
  font-size: 0.97rem;
}
.areas__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- FAQ ---------- */
.container--narrow {
  max-width: 760px;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--maroon);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item summary:hover {
  color: var(--maroon);
}
.faq__answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.85);
}
.footer__inner {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}
.footer__logo {
  height: 54px;
  width: auto;
  /* The logo's plum/maroon tones disappear on the dark footer, so we flatten
     it to a clean reversed (white) mark. Swap for a real white logo export
     if you want to keep the gold. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer__tag {
  margin-top: 0.9rem;
  max-width: 32ch;
  font-size: 0.95rem;
}
.footer__contact h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.footer__contact a {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}
.footer__contact p {
  margin-bottom: 0.35rem;
}
.footer__badge {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- sticky mobile call bar ---------- */
.mobile-call {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.mobile-call svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

/* =========================================================
   RESPONSIVE — tablet & up
   ========================================================= */
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .areas__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
  }

  /* desktop nav: show inline, hide hamburger */
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav__menu li {
    width: auto;
  }
  .nav__menu a {
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 8px;
  }
  .nav__menu a:hover {
    background: var(--cream);
  }
  .nav__cta {
    border: 2px solid var(--maroon);
  }
  .nav__cta:hover {
    background: var(--maroon) !important;
    color: #fff !important;
  }

  /* the sticky mobile call button is redundant on desktop */
  .mobile-call {
    display: none;
  }
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
