/* =========================================
   Taylor Maid Services — Clean CSS (FINAL)
   Multi-page, responsive, fast.
   Home = video logo (body.home)
   All other pages = image logo
   ========================================= */

:root{
  --navy:#0C1A3D;
  --blue:#71B9DE;
  --pink:#F3B6C6;
  --bg:#ffffff;
  --text:#111827;
  --muted:#6B7280;
  --border:rgba(12,26,61,.14);
  --shadow:0 14px 34px rgba(12,26,61,.12);
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(113,185,222,.18), transparent 60%),
    radial-gradient(900px 450px at 70% 10%, rgba(243,182,198,.18), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92vw); margin-inline:auto; }

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  background:#fff; padding:10px 12px; border-radius:10px;
  border:1px solid var(--border); z-index:9999;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid rgba(12,26,61,.08);
  will-change: transform;
}

.header-inner{
  padding:14px 0 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* Brand/logo wrapper */
.site-header .brand{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* Nav */
.nav-wrap{ width:100%; display:flex; justify-content:center; }
.nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  padding:0;
  margin:0;
  list-style:none;
}

.nav a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(113,185,222,.22), rgba(243,182,198,.18));
  box-shadow: 0 10px 22px rgba(12,26,61,.10);
  font-weight:800;
  letter-spacing:.2px;
  color:var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.nav a:hover{
  background: rgba(12,26,61,.92);
  color:#fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(12,26,61,.22);
}

.nav a[aria-current="page"]{
  background: rgba(12,26,61,.92);
  color:#fff;
  border-color: rgba(12,26,61,.22);
}

.nav a::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--blue), var(--pink));
  box-shadow: 0 0 0 3px rgba(255,255,255,.6);
}

/* Main */
main{ padding:28px 0 64px; }

.hero{
  padding:22px 0 6px;
  text-align:center;
}

.h1{
  font-size: clamp(28px, 3.8vw, 46px);
  line-height:1.1;
  margin:0 0 10px;
  color:var(--navy);
}

.lead{
  margin:0 auto;
  max-width: 72ch;
  color:var(--muted);
  font-size: 16.5px;
  line-height:1.55;
}

/* Buttons */
.cta-row{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(12,26,61,.18);
  font-weight:800;
  letter-spacing:.2px;
  cursor:pointer;
  background:#fff;
  color:var(--navy);
  box-shadow: 0 10px 22px rgba(12,26,61,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn.primary{ background: rgba(12,26,61,.92); color:#fff; }
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(12,26,61,.18); }

/* Cards / grid */
.grid{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

.card{
  grid-column: span 12;
  background: rgba(255,255,255,.82);
  border:1px solid rgba(12,26,61,.10);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.card h2{ margin:0 0 8px; color:var(--navy); }
.card p, .card ul{ margin:0; color:var(--muted); line-height:1.6; }
.card ul{ padding-left:18px; }

@media (min-width: 860px){
  .card.one-third{ grid-column: span 4; }
  .card.half{ grid-column: span 6; }
}

/* Badges */
.badge-row{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
  margin-top:14px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(12,26,61,.12);
  background: rgba(255,255,255,.72);
  color:var(--navy);
  font-weight:750;
}

/* Footer */
.footer{
  border-top:1px solid rgba(12,26,61,.10);
  background: rgba(255,255,255,.78);
  padding:22px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}
.footer a{ text-decoration:underline; }

/* Mobile tweaks */
@media (max-width:520px){
  .nav a{ padding:10px 12px; font-weight:800; min-height:48px; }
  .nav a::before{ width:9px; height:9px; }
}

/* ======================================
   LOGO SYSTEM (NO MANUAL INNER CLASSES)
   Default (all non-home): show IMAGE
   Home only (body.home): show VIDEO
   ====================================== */

/* Hide both by default */
.site-header .logo-video,
.site-header .logo-image{
  display:none;
}

/* DEFAULT (all non-home pages): show image logo */
body:not(.home) .site-header .brand img{
  display:block;
  width:160px;
  max-width:160px;
  height:auto;
  margin:0 auto;
}

/* DEFAULT (all non-home pages): hide video */
body:not(.home) .site-header .logo-video{
  display:none !important;
}

/* HOME: show video */
body.home .site-header .logo-video{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
}

/* Home video sizes */
@media (max-width:768px){
  body.home .site-header .logo-video{ max-width: 360px; }
}
@media (min-width:769px){
  body.home .site-header .logo-video{ max-width: 980px; }
}

/* Hide iOS play overlay controls (helps a bit) */
.logo-video::-webkit-media-controls,
.logo-video::-webkit-media-controls-start-playback-button{
  display:none !important;
}

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

/* -----------------------------------------
   HOME hero highlights — plain text (not pills)
   ----------------------------------------- */
body.home .badge-row{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-top:14px;
  flex-wrap:wrap;
  font-size:0.95rem;
  color:var(--muted);
}

body.home .badge-row .badge{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:500;
  cursor:default;
  pointer-events:none;
}

body.home .badge-row .badge::before{
  content:"•";
  opacity:.4;
}
body.home .badge-row .badge:first-child::before{
  content:"";
}

/* =========================
   Setmore booking embed
   Mobile-friendly sizing
   ========================= */

.booking-embed{
  width:100%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
}

.booking-iframe{
  width:100%;
  height:820px;
  border:0;
  display:block;
  -webkit-overflow-scrolling: touch;
}

@media (max-width:600px){
  .booking-iframe{ height:980px; }
  .booking-embed{ margin-top:-8px; }
}

@media (max-width:380px){
  .booking-iframe{ height:1100px; }
}

.booking-fallback{
  margin-top:12px;
  text-align:center;
}

/* =========================================
   CONTACT.PHP — PHP form wizard styling
   (moved from inline into CSS)
   ========================================= */

#tmsContactForm{ margin-top:14px; }

/* Step pills */
.wizard-steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
  justify-content:flex-start;
}
.wizard-pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.72);
  color: var(--navy);
  font-weight:800;
  font-size:13px;
  opacity:.55;
  user-select:none;
}
.wizard-pill.active{
  opacity:1;
  background: linear-gradient(135deg, rgba(113,185,222,.22), rgba(243,182,198,.18));
  box-shadow: 0 10px 22px rgba(12,26,61,.08);
}

/* Steps */
.step{ display:none; animation: fadeIn .15s ease; }
.step.active{ display:block; }

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(2px); }
  to{ opacity:1; transform: translateY(0); }
}

.step-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:12px;
}

/* Labels/inputs */
#tmsContactForm label{
  display:block !important;
  font-weight:800;
  color: var(--navy);
}
#tmsContactForm label .hint{
  display:block;
  font-weight:600;
  color: var(--muted);
  margin-top:4px;
  font-size:13px;
}

#tmsContactForm input[type="text"],
#tmsContactForm input[type="email"],
#tmsContactForm input[type="tel"],
#tmsContactForm input[type="date"],
#tmsContactForm select,
#tmsContactForm textarea{
  width:100% !important;
  display:block;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font:inherit;
  box-shadow: 0 10px 22px rgba(12,26,61,.06);
  margin-top:8px;
}
#tmsContactForm textarea{ resize:vertical; min-height:120px; }

/* Extras checklist */
.checklist{
  margin-top:8px;
  border:1px solid rgba(12,26,61,.10);
  border-radius:14px;
  background: rgba(255,255,255,.75);
  padding:10px 12px;
}
.checklist label{
  display:flex !important;
  align-items:center;
  gap:10px;
  margin:10px 0;
  font-weight:700 !important;
  color: var(--muted) !important;
}
.checklist input[type="checkbox"]{
  width:auto !important;
  box-shadow:none !important;
  margin:0;
}

/* Actions */
.wizard-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
  align-items:center;
  justify-content:flex-start;
}
.wizard-actions .btn{ min-height:48px; }

/* Errors */
.error{
  color:#b91c1c;
  font-weight:800;
  margin-top:10px;
  display:none;
}
.server-error{
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(185,28,28,.25);
  background: rgba(185,28,28,.06);
  color:#7f1d1d;
  font-weight:700;
}
.field-error{
  border-color: rgba(185,28,28,.55) !important;
  box-shadow: 0 0 0 3px rgba(185,28,28,.10) !important;
}

/* Honeypot helper class */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ===== Contact form (multi-step) polish ===== */
.form-steps{
  max-width: 760px;
  margin: 0 auto;
}

.form-steps form{
  background: #fff;
  border: 1px solid rgba(12,26,61,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(12,26,61,.08);
}

.progress{
  font-size: 14px;
  color: rgba(0,0,0,.65);
  margin-bottom: 10px;
}

.step{ display:none; }
.step.is-active{ display:block; }

.field{ margin: 14px 0; }
.field label{ display:block; margin-bottom:6px; font-weight:600; }

.form-steps input,
.form-steps select,
.form-steps textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(12,26,61,.18);
  background: #fff;
}

.form-steps textarea{ min-height: 120px; resize: vertical; }

.step-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(12,26,61,.20);
  background: #fff;
  color: #0C1A3D;          /* force visible text */
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary{
  background: #0C1A3D;
  color: #fff !important;  /* force visible text */
  border-color: #0C1A3D;
}

.btn:disabled{
  opacity: .65;
  cursor: not-allowed;
}

.checkline{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 600;
}

.checkline input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
}


/* ===== Contact form (multi-step) polish + FORCE visible buttons ===== */
.form-steps{ max-width:760px; margin:0 auto; }
.form-head h1{ margin:0 0 6px; }
.form-head p{ margin:0 0 14px; color: rgba(0,0,0,.65); }

.tms-form{
  background:#fff;
  border:1px solid rgba(12,26,61,.14);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 14px 34px rgba(12,26,61,.08);
}

.progress{ font-size:14px; color: rgba(0,0,0,.65); margin: 0 0 10px; }
.error{ color:#b00020; margin: 10px 0; }

.step{ display:none; }
.step.is-active{ display:block; }

.field{ margin:14px 0; }
.field label{ display:block; margin-bottom:6px; font-weight:700; }

.tms-form input,
.tms-form select,
.tms-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(12,26,61,.18);
  background:#fff;
}

.tms-form textarea{ min-height:120px; resize:vertical; }

.step-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(12,26,61,.20);
  background:#fff;
  color:#0C1A3D !important;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}

.btn.primary{
  background:#0C1A3D !important;
  color:#fff !important;
  border-color:#0C1A3D !important;
}

.btn:disabled{ opacity:.65; cursor:not-allowed; }

.checkline{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  font-weight:700;
}
.checkline input[type="checkbox"]{
  width:18px !important;
  height:18px !important;
  margin:0 !important;
}

.sr-only{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
