/* ============================================================
   dialUps — design system
   Palette: Ink #0F1B33 · Royal #2563EB · Sky #38BDF8 · Leaf #22C55E
            Amber #F59E0B · Flame #F97316 · Cloud #F5F8FE
   Type:    Plus Jakarta Sans (display) · Inter (body)
   ============================================================ */
:root {
  --ink: #0f1b33;
  --ink-soft: #47546e;
  --royal: #2563eb;
  --royal-deep: #1d4ed8;
  --sky: #38bdf8;
  --leaf: #22c55e;
  --amber: #f59e0b;
  --flame: #f97316;
  --violet: #7c3aed;
  --cloud: #f5f8fe;
  --white: #ffffff;
  --line: #e4eaf5;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 51, .06);
  --shadow-md: 0 12px 34px rgba(37, 99, 235, .14);
  --shadow-lg: 0 24px 60px rgba(15, 27, 51, .16);
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }

h1, h2, h3, .btn { font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(120deg, var(--royal), var(--royal-deep)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37,99,235,.28); }
.btn-ghost { color: var(--royal); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--royal); background: var(--cloud); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.5px; }
.logo-word .up { color: var(--royal); position: relative; }
.logo-word .up::after {
  content: ''; position: absolute; top: -7px; left: 50%; translate: -50% 0;
  border: 6px solid transparent; border-bottom-color: var(--royal); border-top: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.logo-img-main {
  width: 100%;
  max-width: 460px;
  height: auto;               
  max-height: 60vh;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(37, 99, 235, .18));
  animation: floaty 5.5s ease-in-out infinite;
}
.logo-img-bottom {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo-tag { font-size: 8.5px; letter-spacing: 2.6px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--royal); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2.5px;
  border-radius: 2px; background: var(--royal);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-user { font-weight: 700; font-size: 14px; color: var(--royal); display: none; align-items: center; gap: 10px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(37,99,235,.08), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 72px 0 46px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.09); color: var(--royal);
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--royal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.35); } }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -1.4px; font-weight: 800;
}
.hero h1 .accent { color: var(--royal); }
.hero-sub { margin: 18px 0 26px; color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; }
.badge { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.badge-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-sm);
}
.badge span small { display: block; font-weight: 500; color: var(--ink-soft); }

/* Hero art: house of services */
.hero-art { position: relative; display: grid; place-items: center; }
.house { width: min(430px, 100%); }
.tile { transition: transform .35s ease; transform-origin: center; }
.hero-art:hover .tile { transform: translateY(-4px); }
.float { animation: floaty 5.5s ease-in-out infinite; }
.float.d1 { animation-delay: .8s; } .float.d2 { animation-delay: 1.6s; } .float.d3 { animation-delay: 2.4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Booking search bar */
.searchbar {
  position: relative; z-index: 5;
  margin: 34px auto -46px;              /* overlaps into next section cleanly */
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.1fr 1.1fr 1fr auto;
  gap: 4px; padding: 10px; align-items: center;
}
.search-field {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; min-width: 0;      /* stops content overflowing the column */
  border-right: 1px solid var(--line);
}
.searchbar .search-field:nth-of-type(3) { border-right: none; }
.search-field > div { flex: 1; min-width: 0; }
.search-field svg { flex: none; color: var(--royal); }
.search-field label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 2px;
}
.search-field input, .search-field select {
  border: none; outline: none; background: none;
  width: 100%; max-width: 100%;
  font: 500 14.5px var(--font-body); color: var(--ink);
  appearance: none; -webkit-appearance: none;   /* consistent select styling */
}
.searchbar .btn { white-space: nowrap; margin-left: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0 20px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.8px; font-weight: 800; }
.section-head h2::after {
  content: ''; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--royal), var(--sky)); margin: 14px auto 0;
}
.section-head p { color: var(--ink-soft); margin-top: 16px; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card {
  --tint: var(--royal);
  background: color-mix(in srgb, var(--tint) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--tint) 16%, #fff);
  border-radius: var(--radius); padding: 30px 22px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px color-mix(in srgb, var(--tint) 22%, transparent); }
.card-icon {
  width: 78px; height: 78px; margin: 0 auto; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 14%, #fff); display: grid; place-items: center;
  color: var(--tint); transition: transform .3s ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }
.card h3 { font-size: 17px; font-weight: 800; }
.card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.card .btn { background: var(--tint); color: #fff; padding: 10px 22px; font-size: 13.5px; align-self: center; }
.card .btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.step { text-align: center; padding: 10px 14px; position: relative; }
.step:not(:last-child)::after {
  content: '›'; position: absolute; right: -12px; top: 34px;
  font-size: 30px; color: #c6d4ee; font-weight: 300;
}
.step-icon {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.step:hover .step-icon { transform: translateY(-6px) scale(1.05); }
.step h3 { font-size: 16.5px; font-weight: 800; }
.step p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Why choose ---------- */
.why {
  background: linear-gradient(180deg, #f2f7ff, #e9f1ff);
  border-radius: var(--radius-lg); padding: 56px 40px; margin-top: 90px;
}
.why h2 { text-align: center; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.6px; margin-bottom: 44px; }
.why h2 .up { color: var(--royal); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.why-item { text-align: center; padding: 0 20px; position: relative; }
.why-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: #cdddf5;
}
.why-item svg { margin: 0 auto 14px; color: var(--royal); }
.why-item:nth-child(2) svg { color: var(--leaf); }
.why-item:nth-child(3) svg { color: var(--amber); }
.why-item h3 { font-size: 15.5px; font-weight: 800; }
.why-item p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Trust strip ---------- */
.trust { text-align: center; padding: 70px 0 90px; }
.trust h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.avatars { display: flex; align-items: center; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff;
  margin-left: -12px; display: grid; place-items: center;
  font: 800 14px var(--font-display); color: #fff;
}
.avatar:first-child { margin-left: 0; }
.rating strong { font-size: 22px; font-family: var(--font-display); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 17px; }
.rating small { color: var(--ink-soft); display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px;
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-sm);
}
.pill.blue { background: #eef4ff; color: var(--royal); }
.pill.green { background: #edfbf1; color: #16a34a; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9c4dc; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer .logo-word { color: #fff; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid #26324d; padding-top: 22px; text-align: center; font-size: 13px; }

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(15,27,51,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(440px, 100%);
  padding: 34px 30px; box-shadow: var(--shadow-lg); position: relative;
  animation: modalIn .25s ease;
  max-height: 92vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 22px; color: var(--ink-soft); padding: 6px; line-height: 1; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 500 14.5px var(--font-body); color: var(--ink); outline: none; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-group :is(input, select, textarea):focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.form-msg { font-size: 13.5px; font-weight: 600; margin-top: 12px; display: none; padding: 10px 14px; border-radius: 10px; }
.form-msg.error { display: block; background: #fef1f1; color: #dc2626; }
.form-msg.success { display: block; background: #edfbf1; color: #16a34a; }
.switch-auth { text-align: center; font-size: 13.5px; margin-top: 16px; color: var(--ink-soft); }
.switch-auth button { color: var(--royal); font-weight: 700; }

/* Bookings list */
.booking-item {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px;
}
.booking-item strong { display: block; font-family: var(--font-display); }
.booking-item small { color: var(--ink-soft); }
.status-chip { font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.status-pending { background: #fff7e6; color: #b45309; }
.status-confirmed { background: #eef4ff; color: var(--royal); }
.status-completed { background: #edfbf1; color: #16a34a; }
.status-cancelled { background: #fef1f1; color: #dc2626; }
.status-in_progress { background: #f3ecff; color: var(--violet); }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; translate: -50% 0; z-index: 200;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s;
}
.toast.show { opacity: 1; translate: -50% -6px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 52px; }
  .hero-sub { margin-inline: auto; }
  .hero-badges { justify-content: center; }
  .hero-art { order: -1; }
  .house { width: min(320px, 80%); }
  .searchbar { grid-template-columns: 1fr; margin: 26px auto -30px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
  .searchbar .search-field:nth-of-type(3) { border-bottom: none; }
  .searchbar .btn { margin: 6px 4px 2px; }
  .steps, .why-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .step:not(:last-child)::after, .why-item:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    padding: 22px 6%; gap: 18px; border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .logo-img-main { max-width: 340px; max-height: 42vh; }
}
@media (max-width: 560px) {
  .steps, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn { padding: 10px 18px; font-size: 13.5px; }
  .logo-img { height: 34px; }
  .logo-img-main { max-width: 260px; }
}
