/* ============================================================
   KAYLA'S CLEAN & SWEEP CO. — style.css
   Brand palette pulled from logo:
     Purple:    #6B3FA0
     Lavender:  #C4A8E8
     Soft white:#FAF8FF
     Near-black:#1A1225
     Grey:      #6D6580
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #6B3FA0;
  --purple-deep: #4A2870;
  --lavender: #C4A8E8;
  --lavender-lt: #EDE4F9;
  --white: #FAF8FF;
  --near-black: #1A1225;
  --grey: #6D6580;
  --grey-lt: #E8E3F0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(107, 63, 160, 0.08);
  --shadow-md: 0 8px 32px rgba(107, 63, 160, 0.14);
  --shadow-lg: 0 20px 60px rgba(107, 63, 160, 0.18);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.65;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--near-black);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 460px;
  margin: 0 auto;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--near-black);
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--grey);
  font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107, 63, 160, 0.30);
}

.btn--primary:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107, 63, 160, 0.40);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--lavender);
}

.btn--ghost:hover {
  background: var(--lavender-lt);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* ---------- PLACEHOLDER for missing images ---------- */
.img--placeholder {
  background: linear-gradient(135deg, var(--lavender-lt) 0%, var(--lavender) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
}

.img--placeholder::after {
  content: "📸 Add your photo here\A(img/ folder)";
  white-space: pre;
  display: block;
}

.img--placeholder img {
  display: none;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-color: var(--grey-lt);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--purple);
}

.nav__cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
  box-shadow: 0 4px 16px rgba(107, 63, 160, 0.25);
}

.nav__cta:hover {
  background: var(--purple-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(107, 63, 160, 0.35) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg-shape {
  position: absolute;
  top: -100px;
  right: 0;
  transform: translateX(35%);
  width: 700px;
  height: 700px;
  max-width: 100vw;
  background: radial-gradient(circle, var(--lavender-lt) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--near-black);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__headline em {
  font-style: italic;
  color: var(--purple);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--grey);
  font-weight: 500;
  flex-wrap: wrap;
}

.hero__trust .dot {
  color: var(--lavender);
}

.hero__image {
  min-width: 0;
}

.hero__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero__img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Placeholder state for hero image */
.hero__img-wrap.img--placeholder {
  height: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.badge__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.badge__label {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
}

.hero__scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--grey);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--lavender), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }

  100% {
    opacity: 0;
  }
}

/* ---------- STATS BAND ---------- */
.stats-band {
  background: var(--purple);
  padding: 52px 0;
}

.stats-band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lavender);
  line-height: 1;
}

.stat__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--grey-lt);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  min-width: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--lavender-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  color: var(--near-black);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card--cta {
  background: var(--lavender-lt);
  border-color: var(--lavender);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.service-card--cta p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--near-black);
}

/* ---------- WHY KAYLA'S ---------- */
.why {
  background: var(--near-black);
  overflow: hidden;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.why__image {
  position: relative;
  min-width: 0;
}

.why__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.why__img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Placeholder state for about image */
.why__img-wrap.img--placeholder {
  height: 520px;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.why__img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--purple);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.why__content {
  min-width: 0;
}

.why__content .eyebrow {
  color: var(--lavender);
}

.why__content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.why__content>p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.why__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why__check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  margin-top: 2px;
}

.why__list li div {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.why__list li strong {
  color: var(--white);
  font-weight: 600;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--lavender-lt);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--near-black);
  font-style: italic;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--lavender-lt);
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--near-black);
}

.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--near-black);
  overflow: hidden;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
  width: 100%;
}

.contact__text {
  min-width: 0;
}

.contact__text .eyebrow {
  color: var(--lavender);
}

.contact__text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact__text>p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact__link:hover {
  color: var(--lavender);
}

.contact__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Form --- */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--near-black);
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--grey-lt);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--near-black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--grey);
  opacity: 0.6;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: -4px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #110d1c;
  padding: 72px 0 0;
  overflow: hidden;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer__brand {
  min-width: 0;
}

.footer__brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer__nav h4,
.footer__contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer__nav a,
.footer__contact a,
.footer__contact span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--lavender);
}

.footer__bottom {
  padding: 24px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: center;
}

.footer__bottom span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- ANIMATE ON SCROLL ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__text {
    text-align: center;
    align-items: center;
    order: 1;
  }

  .hero__sub {
    text-align: center;
  }

  .hero__image {
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero__bg-shape {
    display: none;
  }

  .hero__img-badge {
    bottom: -12px;
    left: 0;
  }

  .why__img-accent {
    bottom: 0;
    right: 0;
  }

  .stats-band__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--grey-lt);
    box-shadow: var(--shadow-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1rem;
    color: var(--near-black);
  }

  .nav__cta {
    align-self: flex-start;
  }

  .nav__burger {
    display: flex;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__trust {
    justify-content: center;
  }

  .hero__img-badge {
    bottom: -12px;
    left: 0;
  }

  .why__img-accent {
    bottom: 0;
    right: 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .stats-band__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero__headline {
    font-size: 2.2rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}