/* =============================================
   Keys2Clean — style.css
   ============================================= */

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

:root {
  --navy:        #1a3a5c;
  --navy-dark:   #102540;
  --gold:        #f0a500;
  --gold-light:  #ffc533;
  --white:       #ffffff;
  --off-white:   #f8f9fa;
  --light-gray:  #e9ecef;
  --text:        #2c3e50;
  --text-muted:  #6c757d;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --transition:  0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none !important; }


/* ─── Buttons ─────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all var(--transition);
}

.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,165,0,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-cart { background: var(--gold); color: var(--navy-dark); }
.btn-cart:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-sm   { padding: 0.55rem 1.1rem; font-size: 0.84rem; }
.btn-full { width: 100%; }


/* ─── Header / Hero ───────────────────────── */

.header {
  /* TODO: swap the Unsplash URL for your own photo if you have one */
  background:
    linear-gradient(140deg, rgba(16,37,64,0.82) 0%, rgba(30,74,120,0.76) 100%),
    url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1600&q=80&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding-bottom: 5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--white);
  text-decoration: none;
}
.logo-icon   { font-size: 1.8rem; }
.logo-accent { color: var(--gold); }

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.nav-phone:hover { background: rgba(255,255,255,0.25); }

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-accent { color: var(--gold); }

.hero-sub {
  font-size: 1.12rem;
  opacity: 0.92;
  margin-bottom: 2.2rem;
  line-height: 1.75;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── Trust Bar ───────────────────────────── */

.trust-bar {
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  padding: 0.9rem 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-right: 1px solid rgba(26,58,92,0.18);
}
.trust-item:last-child { border-right: none; }


/* ─── Sections ────────────────────────────── */

section { padding: 5rem 0; }

.services { background: var(--white); }
.pricing  { background: var(--off-white); }
.contact  { background: var(--navy); color: var(--white); }
.areas    { background: var(--white); }

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.6rem;
}
.contact h2 { color: var(--white); }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.contact .section-sub { color: rgba(255,255,255,0.68); }


/* ─── Services ────────────────────────────── */

.services-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.service-item {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.service-icon { font-size: 1.9rem; display: block; margin-bottom: 0.6rem; }
.service-item h4 { color: var(--navy); font-size: 0.97rem; margin-bottom: 0.35rem; }
.service-item p  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

.checkout-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.8rem 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.checkout-banner-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.checkout-banner-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.checkout-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  line-height: 1.65;
}


/* ─── 3-Way Toggle ────────────────────────── */

.three-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.8rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.three-toggle {
  display: inline-flex;
  background: var(--light-gray);
  border-radius: 50px;
  padding: 5px;
  gap: 3px;
  flex-shrink: 0;
}

.toggle-tab {
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.toggle-tab:hover:not(.active) { color: var(--navy); }
.toggle-tab.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(26,58,92,0.35);
}


/* ─── Info Note ───────────────────────────── */

.info-note {
  background: #e8f4fd;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-note--gold { background: #fff8e1; border-left-color: var(--gold); }


/* ─── Pricing Grids ───────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.pricing-grid--wide {
  grid-template-columns: repeat(5, 1fr);
}

.bath-note {
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  border-top: 3px solid var(--light-gray);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.price-card--popular { border-top-color: var(--gold); }

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
}

.price-card h4 { color: var(--navy); font-size: 0.98rem; margin-bottom: 0.6rem; }

.price { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.price strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 800;
  display: block;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.1rem;
  flex: 1;
}
.price-card ul li { font-size: 0.8rem; color: var(--text-muted); padding: 0.2rem 0; }

.card-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-actions--center { justify-content: center; }

.pricing-disclaimer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}


/* ─── Agent View ──────────────────────────── */

.agent-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.agent-benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.agent-benefit span { font-size: 2rem; display: block; margin-bottom: 0.7rem; }
.agent-benefit h4   { color: var(--navy); margin-bottom: 0.45rem; font-size: 1rem; }
.agent-benefit p    { color: var(--text-muted); font-size: 0.9rem; }

.agent-form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.agent-form-wrapper h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 0.4rem; }
.agent-form-wrapper > p { color: var(--text-muted); margin-bottom: 1.6rem; font-size: 0.95rem; }


/* ─── Forms (shared) ──────────────────────── */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; }

.form-success {
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}


/* ─── Contact Section ─────────────────────── */

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

.contact-info h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 1.6rem; }

.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-detail > span { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }

.contact-detail strong {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.22rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-detail a,
.contact-detail div > span { color: var(--white); text-decoration: none; font-size: 0.97rem; }
.contact-detail a:hover { color: var(--gold); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
}


/* ─── Areas ───────────────────────────────── */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.area-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.5rem; }
.postcodes { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

.area-card--cta {
  background: var(--navy);
  border-top-color: var(--gold);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}
.area-card--cta h3 { color: var(--white); }
.area-card--cta p  { color: rgba(255,255,255,0.78); font-size: 0.95rem; }


/* ─── Footer ──────────────────────────────── */

.footer {
  background: var(--navy-dark, #102540);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 3rem 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer p        { margin-bottom: 0.45rem; font-size: 0.93rem; }
.footer-areas    { color: rgba(255,255,255,0.42); font-size: 0.85rem; }
.footer-copy     { margin-top: 1.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.32); }


/* ─── Cart Modal ──────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--light-gray);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--navy); color: var(--white); }

.modal-title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-package-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.modal-base-price {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.modal-base-price strong { color: var(--navy); font-size: 1rem; }

.addons-section h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.addon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.addon-label { flex: 1; min-width: 0; }
.addon-label span { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.addon-label em   { font-style: normal; font-size: 0.8rem; color: var(--text-muted); }

.addon-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 0.95rem;
}

.addon-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.qty-control { display: flex; align-items: center; gap: 0.5rem; }

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition);
  line-height: 1;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--navy); color: var(--white); }

.qty-display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  min-width: 1.4rem;
  text-align: center;
  color: var(--navy);
}

.modal-total {
  background: var(--off-white);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-total strong { font-size: 1.6rem; color: var(--navy); }

.stripe-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.mattress-controls { display: flex; flex-direction: column; gap: 0.4rem; }
.mattress-row      { display: flex; align-items: center; gap: 0.6rem; justify-content: flex-end; }
.mattress-label    { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }


/* ─── Fade-in animations ──────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ─── Notes field in modal ────────────────── */

.notes-group {
  margin-top: 1.2rem;
  margin-bottom: 0;
}
.notes-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.notes-group textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.notes-group textarea:focus { border-color: var(--navy); }
.notes-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}


/* ─── Responsive ──────────────────────────── */

@media (max-width: 1000px) {
  .pricing-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }

  .services-top-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-banner   { flex-direction: column; text-align: center; padding: 1.5rem; gap: 0.75rem; }

  .nav { flex-wrap: nowrap; gap: 0.5rem; padding: 1rem; }
  .logo { font-size: 1.3rem; }
  .logo-icon { font-size: 1.4rem; }
  .nav-phone { font-size: 0.78rem; padding: 0.35rem 0.75rem; white-space: nowrap; }

  .trust-item {
    flex: 1 1 50%;
    border-right: 1px solid rgba(26,58,92,0.18);
    border-bottom: 1px solid rgba(26,58,92,0.18);
    text-align: center;
    font-size: 0.78rem;
    padding: 0.65rem 0.5rem;
  }

  /* toggle stacks vertically on mobile */
  .three-toggle-wrapper { padding: 0 1rem; }
  .three-toggle {
    flex-direction: column;
    border-radius: 14px;
    width: 100%;
    max-width: 300px;
  }
  .toggle-tab { border-radius: 10px; text-align: center; }

  /* keep 2-column grid on mobile */
  .pricing-grid       { grid-template-columns: 1fr 1fr; }
  .pricing-grid--wide { grid-template-columns: 1fr 1fr; }
  .price-card--popular { transform: none; }

  /* tighter card padding on small screens */
  .price-card { padding: 1rem 0.85rem; }
  .price strong { font-size: 1.4rem; }
  .price-card ul li { font-size: 0.75rem; }
  .btn-sm { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
}

@media (max-width: 400px) {
  .trust-item { flex: 1 1 100%; border-right: none; }
  .hero-ctas  { flex-direction: column; align-items: center; }
  .nav-phone span.phone-text { display: none; }
}
