/* =====================================================
   FOX CLEANING — style.css
   Palette: Navy blue + crisp white + sky accent
   Type: Sora (headings) + Inter (body)
   ===================================================== */

/* ---------- TOKENS ---------- */
:root {
  --green:        #1a3f6f;
  --green-mid:    #1f6fff;
  --green-light:  #eaf1ff;
  --amber:        #5bb8f5;
  --dark:         #0f172a;
  --mid:          #4a5568;
  --light:        #f7f9ff;
  --white:        #ffffff;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
  padding: 0;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  transition: box-shadow 0.3s ease;
}

nav.nav-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.logo-text-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 40px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-mid) !important;
  transform: scale(1.03);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--green);
  cursor: pointer;
  line-height: 1;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 950;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--mid);
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.mobile-link:hover {
  color: var(--green);
}

.mobile-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 1.1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,92,58,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 1rem;
}

/* ---------- SECTION COMMONS ---------- */
.section {
  padding: 96px 0;
}

.section-tinted {
  background: var(--green-light);
}

.section-dark {
  background: var(--dark);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.section-label.light {
  color: var(--amber);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

h2.light {
  color: var(--white);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 52px;
  line-height: 1.7;
}

.section-sub.light {
  color: rgba(255,255,255,0.7);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #4f8cff 100%);
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--amber);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid #d6e4ff;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 16px;
  line-height: 1.65;
}

.service-card ul li {
  font-size: 0.85rem;
  color: var(--mid);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- REASONS ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.reason {
  padding: 24px 0;
  opacity: 0;
  transform: translateY(16px);
}

.reason.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reason-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.reason h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.reason p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ---------- AREAS ---------- */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.area-tag {
  background: var(--white);
  border: 1.5px solid #b3ccf5;
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 40px;
  opacity: 0;
  transform: scale(0.95);
}

.area-tag.revealed {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.areas-note {
  font-size: 0.9rem;
  color: var(--mid);
}

/* ---------- TRUST STRIP ---------- */
.trust-section {
  padding: 48px 0;
  background: var(--green-light);
  border-top: 1px solid #c8d9f5;
  border-bottom: 1px solid #c8d9f5;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 32px;
  opacity: 0;
  transform: translateY(10px);
}

.trust-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trust-item strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--mid);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: #b8cee8;
  flex-shrink: 0;
}

/* ---------- CONTACT ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Form */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.required { color: var(--amber); }
.optional  { color: rgba(255,255,255,0.45); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group select option {
  background: var(--dark);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,0.09);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-top: -8px;
}

/* Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-link {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--amber);
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

.contact-promise {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* Flash messages */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.flash-success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.4);
  color: #6ee7a8;
}

.flash-error {
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ffaaaa;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cols h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer-cols a,
.footer-cols span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--amber);
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-card {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  nav {
    padding: 14px 20px;
  }

  .hero {
    padding: 100px 24px 70px;
    text-align: center;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

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

  .trust-divider {
    display: none;
  }

  .trust-strip {
    gap: 8px;
  }

  .trust-item {
    padding: 12px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    gap: 28px;
  }
}

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .services-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    flex-direction: column;
  }
}

/* ---------- ACCORDION SERVICE CARDS ---------- */
.accordion-card {
  cursor: pointer;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-header h3 {
  flex: 1;
  margin: 0;
}

.arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-mid);
  transition: transform 0.3s ease;
  line-height: 1;
  flex-shrink: 0;
}

.service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  opacity: 0;
}

.accordion-card.active .service-content {
  max-height: 200px;
  opacity: 1;
}

.accordion-card.active .arrow {
  transform: rotate(45deg);
}

/* When accordion is open, add top margin to the list */
.service-content ul {
  margin-top: 16px;
}

/* ---------- HERO FLOAT-IN ---------- */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner {
  animation: floatIn 1s ease both;
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}