/*
Theme Name: Tidy Sparkles
Theme URI: https://tidysparkles.com
Author: Tidy Sparkles
Description: Custom cleaning service website for Tidy Sparkles.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: tidy-sparkles
*/

:root {
  --ink: #061b49;
  --muted: #526789;
  --line: #d7e6fb;
  --paper: #ffffff;
  --mist: #eef7ff;
  --mint: #d9ecff;
  --teal: #087bff;
  --teal-dark: #062e7f;
  --coral: #00a6ff;
  --sun: #37c8ff;
  --shadow: 0 20px 60px rgba(6, 27, 73, 0.14);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-family, var(--wp--preset--font-family--system-font, system-ui));
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 230, 251, 0.95);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 176px;
  height: 86px;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: #233b69;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.nav-toggle svg {
  margin: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 34px rgba(8, 123, 255, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.86);
}

.button-outline {
  color: var(--teal-dark);
  border-color: rgba(8, 123, 255, 0.24);
  background: #fff;
}

.hero {
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(3, 15, 52, 0.92) 0%, rgba(5, 28, 89, 0.78) 44%, rgba(6, 67, 154, 0.28) 100%),
    url("assets/hero-cleaning.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #f5fbff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--sun);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.92rem;
  font-weight: 650;
}

.trust-chip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #5bd7ff;
}

main section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-lede {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.service-card,
.plan-card,
.review-card,
.contact-panel,
.process-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  min-height: 230px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 8px;
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-card h3,
.plan-card h3,
.review-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.service-card p,
.plan-card p,
.review-card p,
.process-step p {
  margin: 0;
  color: var(--muted);
}

.band {
  background: var(--mist);
}

.plans {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 2rem;
  align-items: start;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  padding: 1.35rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--ink);
}

.price strong {
  font-size: 2.2rem;
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 0.62rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  gap: 0.55rem;
  color: var(--muted);
}

.plan-card li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.48rem;
  flex: 0 0 auto;
  background: var(--teal);
  border-radius: 50%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.process-step {
  padding: 1.35rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 850;
}

.process-step h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.2rem;
}

.reviews {
  background: #061b49;
  color: #fff;
}

.reviews .section-heading,
.reviews .section-lede {
  color: #fff;
}

.reviews .section-lede {
  color: rgba(255, 255, 255, 0.76);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.review-card {
  min-height: 240px;
  padding: 1.35rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.stars {
  color: var(--sun);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.review-card p {
  color: rgba(255, 255, 255, 0.82);
}

.review-card h3 {
  color: #fff;
}

.contact {
  background: linear-gradient(180deg, #fff, var(--mist));
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.contact-list a {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-panel {
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-wide {
  grid-column: 1 / -1;
}

label {
  color: #263d69;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbdbf2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 0.8rem 0.9rem;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 123, 255, 0.13);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.74);
  background: #041334;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: #fff;
  font-weight: 750;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    inset: 92px 16px auto;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links .button {
    width: 100%;
  }

  .nav-toggle {
    display: grid;
  }

  .service-grid,
  .plan-grid,
  .process-grid,
  .review-grid,
  .plans,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-wrap,
  .section-inner,
  .hero-content,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .nav-wrap {
    min-height: 82px;
  }

  .brand-mark {
    width: 138px;
    height: 72px;
  }

  .nav-links {
    inset: 82px 12px auto;
  }

  .hero {
    min-height: 76vh;
    background-position: 62% center;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.7rem);
  }

  .hero-actions,
  .trust-row,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .estimate-form {
    grid-template-columns: 1fr;
  }
}
