/* ============================================================
   IT'S BEAUTIFUL HOME CARE — Web App Stylesheet
   Colors pulled directly from itsbeautifulhomecareservices.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --navy:         #0a1628;
  --navy-mid:     #0d1f3c;
  --royal:        #1a3a6e;
  --royal-light:  #2451a3;
  --sky:          #4a7ec7;
  --sky-light:    #a8c4e8;
  --white:        #ffffff;
  --off-white:    #f8f9fc;
  --silver:       #c8d4e8;
  --silver-light: #e8edf5;
  --text-dark:    #0a1628;
  --text-mid:     #2c3e5a;
  --text-light:   #6b7fa0;
  --success:      #1e6b3e;
  --success-bg:   #eaf4ee;
  --error:        #8b1a1a;
  --error-bg:     #fdf0f0;
  --warn-bg:      #f0f4ff;

  --grad-blue:    linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%);
  --grad-btn:     linear-gradient(135deg, #1a3a6e 0%, #2451a3 100%);
  --shadow:       0 4px 24px rgba(10,22,40,.12);
  --shadow-lg:    0 8px 40px rgba(10,22,40,.18);
  --radius:       14px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(.4,0,.2,1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Senior-friendly sizing */
  --tap-min:      52px;
  --text-base:    1.05rem;
  --text-lg:      1.18rem;
  --text-xl:      1.35rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }

/* ── LAYOUT ── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeIn .3s var(--ease);
}
.page.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── HEADER ── */
.app-header {
  background: var(--navy);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.header-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}
.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-brand-text .brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.header-brand-text .brand-sub {
  font-size: .62rem;
  color: var(--sky-light);
  letter-spacing: .07em;
}
.header-back-btn {
  display: none;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  color: var(--sky-light);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .6rem;
  border-radius: var(--radius-sm);
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  transition: color .2s, background .2s;
}
.header-back-btn:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-back-btn.visible { display: flex; }
.header-call-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--royal-light);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  min-height: 40px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.header-call-btn:hover { background: var(--sky); transform: scale(1.03); }

/* ── LAUNCH SCREEN ── */
.launch-screen {
  background: var(--grad-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem 1.5rem;
  position: fixed;
  inset: 0;
  z-index: 999;
  transition: opacity .5s var(--ease);
}
.launch-screen.hidden { opacity: 0; pointer-events: none; }
.launch-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.launch-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: .6rem;
  line-height: 1.2;
}
.launch-tagline {
  font-size: 1rem;
  color: var(--sky-light);
  font-style: italic;
  margin-bottom: .4rem;
}
.launch-location {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  margin-bottom: 2.5rem;
}
.launch-enter-btn {
  background: var(--royal-light);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  min-height: var(--tap-min);
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
}
.launch-enter-btn:hover { background: var(--sky); transform: scale(1.03); }
.launch-skip {
  margin-top: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ── HOME DASHBOARD ── */
.home-hero {
  background: var(--grad-blue);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: .6rem;
  line-height: 1.2;
}
.home-hero p {
  color: var(--sky-light);
  font-size: var(--text-base);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}
.home-cards {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.5rem 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.home-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver-light);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  min-height: var(--tap-min);
  text-align: left;
  width: 100%;
  border-left: 4px solid var(--royal-light);
}
.home-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-left-color: var(--sky); }
.home-card:active { transform: translateY(0); }
.home-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.home-card-text { flex: 1; }
.home-card-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .18rem;
  line-height: 1.2;
}
.home-card-desc {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.45;
}
.home-card-arrow {
  font-size: 1.1rem;
  color: var(--sky);
  flex-shrink: 0;
}

/* ── PAGE HEADERS ── */
.page-header {
  background: var(--grad-blue);
  padding: 2rem 1.25rem 1.6rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.page-header p {
  color: var(--sky-light);
  font-size: var(--text-base);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* ── CONTENT AREA ── */
.page-content {
  flex: 1;
  padding: 1.5rem 1.25rem 6rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ── INFO BLOCKS ── */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver-light);
}
.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.25;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--royal);
  margin-bottom: .4rem;
}
.info-card p {
  font-size: var(--text-base);
  color: var(--text-mid);
  line-height: 1.72;
}
.info-card p + p { margin-top: .75rem; }

.notice-box {
  background: var(--warn-bg);
  border: 1px solid var(--sky-light);
  border-left: 4px solid var(--royal-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.notice-box p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.notice-box strong { color: var(--navy); }

.warning-box {
  background: var(--error-bg);
  border: 1px solid #e8b4b4;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.warning-box p {
  font-size: .92rem;
  color: var(--error);
  line-height: 1.65;
}

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver-light);
  margin-bottom: 1rem;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--silver-light);
}
.form-group { margin-bottom: 1.15rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .42rem;
}
.form-label .req {
  color: var(--royal-light);
  margin-left: .18rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--text-dark);
  background: var(--off-white);
  border: 2px solid var(--silver-light);
  border-radius: var(--radius-sm);
  min-height: var(--tap-min);
  outline: none;
  transition: border-color .22s, box-shadow .22s, background .22s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--royal-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(36,81,163,.1);
}
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7fa0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field-hint { font-size: .8rem; color: var(--text-light); margin-top: .3rem; line-height: 1.45; }
.field-error { font-size: .8rem; color: var(--error); margin-top: .3rem; display: none; }
.field-error.visible { display: block; }

/* ── CHECKBOXES / MULTI-SELECT ── */
.checkbox-group { display: flex; flex-direction: column; gap: .55rem; margin-top: .2rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .9rem;
  background: var(--off-white);
  border: 2px solid var(--silver-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  min-height: var(--tap-min);
}
.checkbox-item:hover { border-color: var(--royal-light); background: var(--silver-light); }
.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--royal-light);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"]:checked + .checkbox-label { color: var(--navy); font-weight: 600; }
.checkbox-item:has(input:checked) { border-color: var(--royal-light); background: #eef2fb; }
.checkbox-label { font-size: var(--text-base); color: var(--text-mid); line-height: 1.35; }

/* ── PROGRESS INDICATOR ── */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.25rem;
  background: var(--navy-mid);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.2);
  transition: all .3s;
}
.step-circle.active { background: var(--royal-light); color: var(--white); border-color: var(--royal-light); }
.step-circle.done { background: var(--success); color: var(--white); border-color: var(--success); }
.step-label { font-size: .72rem; color: rgba(255,255,255,.5); font-weight: 500; }
.step-label.active { color: var(--sky-light); }
.step-divider { width: 24px; height: 2px; background: rgba(255,255,255,.15); border-radius: 2px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .95rem 1.8rem;
  border-radius: 50px;
  border: none;
  min-height: var(--tap-min);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s;
  width: 100%;
  text-align: center;
}
.btn-primary {
  background: var(--grad-btn);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(26,58,110,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,58,110,.42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--silver); color: var(--text-light); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: var(--white);
  color: var(--royal);
  border: 2px solid var(--royal);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--silver-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-call {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--sky-light);
  box-shadow: var(--shadow);
}
.btn-call:hover { background: var(--royal); transform: translateY(-2px); }
.btn-sm { font-size: .88rem; padding: .7rem 1.4rem; min-height: 42px; }
.btn-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}
.btn-row {
  display: flex;
  gap: .75rem;
}
.btn-row .btn { flex: 1; }

/* ── CONFIRMATION SCREENS ── */
.confirmation-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 6rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.confirm-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--royal), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.6rem;
  box-shadow: 0 6px 24px rgba(26,58,110,.3);
}
.confirm-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .8rem;
  line-height: 1.2;
}
.confirm-body {
  font-size: var(--text-lg);
  color: var(--text-mid);
  line-height: 1.72;
  margin-bottom: .6rem;
}
.confirm-note {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── CONTACT PAGE ── */
.contact-items { display: flex; flex-direction: column; gap: .85rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver-light);
  min-height: var(--tap-min);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-item-text { flex: 1; }
.contact-item-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); }
.contact-item-value { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--silver-light);
}
.hours-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .75rem; }
.hours-row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--silver-light); font-size: .96rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--text-light); }
.hours-row .time { font-weight: 600; color: var(--navy); }
.areas-text { font-size: .88rem; color: var(--text-light); line-height: 1.65; text-align: center; margin-top: .5rem; }

/* ── BOTTOM NAV BAR ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  z-index: 90;
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .55rem .25rem;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 58px;
  gap: .22rem;
  transition: background .2s;
  text-decoration: none;
}
.bottom-nav-item:hover { background: rgba(255,255,255,.07); }
.bottom-nav-item.active { background: rgba(255,255,255,.1); }
.nav-icon { font-size: 1.3rem; line-height: 1; }
.nav-label { font-size: .62rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.bottom-nav-item.active .nav-label { color: var(--sky-light); }

/* ── CALL STRIP ── */
.call-strip {
  background: var(--royal);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.call-strip p {
  font-size: .88rem;
  color: var(--sky-light);
  line-height: 1.4;
}
.call-strip strong { color: var(--white); }
.call-strip-btn {
  flex-shrink: 0;
  background: var(--white);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
  padding: .55rem 1.2rem;
  border-radius: 50px;
  border: none;
  min-height: 40px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: background .2s, transform .2s;
}
.call-strip-btn:hover { background: var(--sky-light); transform: scale(1.03); }

/* ── SPINNER ── */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: .8rem 1.5rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.section-gap { margin-bottom: 1rem; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .4rem;
}
.divider { height: 1px; background: var(--silver-light); margin: 1.2rem 0; }

/* ── LOADING STATE ── */
.btn-loading .btn-text { display: none; }
.btn-loading .spinner { display: inline-block; }
.btn:not(.btn-loading) .spinner { display: none; }

/* ── DESKTOP ADJUST ── */
@media (min-width: 640px) {
  .home-hero { padding: 3rem 2rem 2.5rem; }
  .page-header { padding: 2.5rem 2rem 2rem; }
  .page-content { padding: 2rem 2rem 7rem; }
  .form-card { padding: 2rem; }
  .info-card { padding: 2rem; }
}
@media (min-width: 900px) {
  .bottom-nav { display: none; }
  .app-header { position: sticky; }
  body { padding-bottom: 0; }
  .page-content { padding-bottom: 3rem; }
}
