:root{
  --bg:#eef0f3;          /* page background */
  --card:#ffffff;       /* white cards */
  --card2:#f8fafc;
  --text:#2d3748;       /* main headings */
  --muted:#4a5568;      /* paragraph text */
  --accent:#1f6fd6;     /* brand blue */
  --accent2:#f59e0b;    /* brand orange */
  --stroke:rgba(0,0,0,.08);
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}


a{
  color:var(--accent);
  text-decoration:none;
}
a:hover{
  color:#174ea6;
}

img{ max-width:100%; display:block; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:16px;
}

/* ---------- Sticky Top Bar ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#f2f3f5;
  border-bottom:1px solid rgba(0,0,0,.08);
}


.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  max-width:1200px;
  margin:0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.brand img{
  width:44px;
  height:44px;
  object-fit:contain;
}

.brand-text .name{
  font-family: 'Marcellus', serif;
  font-weight:400;
  letter-spacing:2px;
  font-size:24px;
  text-transform:uppercase;
}


.brand-text .tagline{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  letter-spacing:.3px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.nav a{
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:999px;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.nav a:hover{
  border-color: var(--stroke);
  color:var(--text);
  background: rgba(255,255,255,.04);
}
.nav a.primary{
  color:#081018;
  background: linear-gradient(135deg, var(--accent), #67d5ff);
  border:none;
}
.nav a.primary:hover{ filter:brightness(1.05); }

.qr{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:170px;
  justify-content:flex-end;
}
.qr img{
  width:56px;
  height:56px;
  border-radius:12px;
  background:#fff;
  padding:6px;
}
.qr .qr-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:right;
}
.qr .qr-text .small{ font-size:11px; color:var(--muted); }
.qr .qr-text .bold{ font-size:13px; font-weight:700; }

/* ---------- 3-column Layout ---------- */
.page{
  padding:18px 16px 28px;
  max-width:1200px;
  margin:0 auto;
}
.grid{
  display:grid;
  grid-template-columns: 260px 1fr 320px;
  gap:16px;
  align-items:start;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .card-head{
  padding:14px 16px;
  border-bottom:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}
.card .card-head h3{
  margin:0;
  font-size:14px;
  color:var(--muted);
  letter-spacing:.2px;
  font-weight:800;
  text-transform:uppercase;
}
.card .card-body{ padding:16px; }

.sidebar ul{
  list-style: none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.sidebar li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--text);
  opacity:.95;
}
.sidebar li::before{
  content:"•";
  color: var(--accent2);
  font-size:18px;
  line-height:1;
  margin-top:1px;
}

/* ---------- Main content ---------- */
.hero h1{
  margin:0 0 8px;
  font-size:28px;
  letter-spacing:.2px;
}
.hero p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.6;
  font-size:15px;
}
.badge-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.badge{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
.btn-primary{
  background: var(--accent2);   /* orange */
  color:#ffffff;
  border:none;
}
.btn-primary:hover{
  background:#e38b06;
}

.btn-outline{
  border-color: var(--stroke);
  background: rgba(255,255,255,.03);
  color:var(--text);
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

/* ---------- Forms ---------- */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
label{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}
input, textarea, select{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid #d1d5db;   /* light grey border */
  background:#ffffff;         /* white background */
  color:#2d3748;              /* dark text */
  outline:none;
  transition: all .2s ease;
}

input:focus, textarea:focus, select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31,111,214,.15);
}

textarea{ min-height:90px; resize:vertical; }
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.row3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:10px 0 14px;
}
.checkbox input{ width:auto; margin-top:3px; }

/* ---------- Calendar placeholders ---------- */
.cal-box{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-size:13px;
}
.big-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.big-logo img{
  width:220px;
  height:auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}

/* ---------- Modal ---------- */
.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:100;
}
.modal.open{ display:flex; }
.modal-card{
  width:min(520px, 100%);
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#ffffff;          /* white popup */
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  overflow:hidden;
}

.modal-card .m-head{
  padding:14px 16px;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#f9fafb;   /* light grey header */
}

.modal-card .m-head strong{ font-size:14px; letter-spacing:.3px; }
.modal-card .m-body{
  padding:16px;
  color:#4a5568;
  line-height:1.6;
}

.icon-x{
  border:none;
  background:transparent;
  color:#374151;
  font-size:22px;
  cursor:pointer;
}
.icon-x:hover{
  color:var(--accent);
}


/* ---------- Footer ---------- */
.footer{
  margin-top:16px;
  color:rgba(255,255,255,.45);
  font-size:12px;
  text-align:center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px){

  .topbar-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .brand{
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .nav{
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;      /* 🔥 prevents wrapping */
    white-space: nowrap;    /* extra safety */
  }


  .qr{
    display: none;
  }

  .grid{
    display: flex;
    flex-direction: column;
  }

  /* Welcome first */
  .grid > :nth-child(1){ order: 2; }
  .grid > :nth-child(2){ order: 1; }
  .grid > :nth-child(3){ order: 3; }

  /* Details page mobile reorder */
.details-page .grid{
  display: flex;
  flex-direction: column;
}

/* Order for details page */
.details-page .grid > :nth-child(1){ order: 3; } /* Services */
.details-page .grid > :nth-child(2){ order: 1; } /* Enter Details */
.details-page .grid > :nth-child(3){ order: 2; } /* Availability */

/* Hide sidebar and logo card on Services page (mobile only) */
.services-page .grid > :nth-child(1),   /* Sidebar */
.services-page .grid > :nth-child(3) {  /* Logo card */
  display: none;
}

/* Make main content full width */
.services-page .grid{
  display: block;
}
/* Hide sidebar and logo on Contact page (mobile only) */
.contact-page .grid > :nth-child(1),   /* Sidebar */
.contact-page .grid > :nth-child(3) {  /* Logo card */
  display: none;
}

/* Make contact content full width */
.contact-page .grid{
  display: block;
}



}


/* Flatpickr mini calendar (availability) */
#miniCalendar + .flatpickr-calendar .flatpickr-day.disabled{
  background: #fee2e2;      /* light red */
  color: #991b1b;
  border-color: #fecaca;
}
.services-content{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.service-block h2{
  font-size:18px;
  margin:0 0 6px;
  color:var(--text);
}

.service-block p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}
.contact-content{
  text-align:center;
}

.contact-content h2{
  font-size:22px;
  margin-bottom:6px;
}

.contact-content p{
  margin:8px 0;
  font-size:16px;
  color:var(--muted);
}

/* Center big calendar inside card */
#bigCalendar + .flatpickr-calendar {
  margin: 0 auto;        /* center horizontally */
}
