@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Urbanist:wght@400;500;600;700;800&display=swap");

/* styles.css — Visionary Estates & Assets (Global) */
/* ✅ Fully rewritten + cleaned:
   - Single body/font definition (Urbanist + DM Serif Display)
   - True horizontal/vertical centering for home hero
   - Supports BOTH image slideshow (.bg-slide) AND video background (.hero-video)
   - Luxury grain overlay + optional slow parallax drift
   - Type-on headline support (.brand-title.type-on)
   - Global [hidden] rule (fixes modal stuck open)
   - Consolidated forms (auth + applications) with shared tokens
   - Keeps all existing class names you’re using across pages
*/

:root {
  --vea-blue: #1333b0;
  --vea-silver: #bdc0c9;
  --vea-white: #fafafc;

  --text: #0f172a;
  --muted: #5b6475;

  --card: rgba(250, 250, 252, 0.9);
  --stroke: rgba(15, 23, 42, 0.12);
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.12);

  --radius: 18px;
  --radius-lg: 26px;

  --container: 1180px;
  --nav-h: 74px;
}

/* =========================
   Reset / Base
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;

  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(19, 51, 176, 0.18), transparent 55%),
    radial-gradient(900px 700px at 85% 15%, rgba(189, 192, 201, 0.35), transparent 55%),
    linear-gradient(180deg, var(--vea-white), #ffffff);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ✅ Make sure [hidden] ALWAYS hides elements (fixes modal stuck open) */
[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.page {
  padding-bottom: 2.5rem;
}

/* =========================
   Typography
========================= */
.brand-title,
.section-title,
.panel-head h2,
.footer h3,
.auth-title,
.form-section-title,
.form-subsection-title {
  font-family: "DM Serif Display", Georgia, serif;
}

.brand-title {
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--vea-blue);
  color: var(--vea-white);
  box-shadow: 0 10px 26px rgba(19, 51, 176, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(250, 250, 252, 0.7);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(250, 250, 252, 0.92);
}

.btn-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

/* =========================
   Navbar
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(250, 250, 252, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: var(--vea-white);
  padding: 6px;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--vea-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-link {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 700;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: rgba(19, 51, 176, 0.08);
  border-color: rgba(19, 51, 176, 0.18);
}

.nav-link.active {
  background: rgba(19, 51, 176, 0.12);
  border-color: rgba(19, 51, 176, 0.22);
  color: var(--vea-blue);
}

.nav-divider {
  width: 1px;
  height: 26px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0 0.25rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.85);
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
}

/* =========================
   Hero (Base)
========================= */
.hero {
  padding: 2.2rem 0 1.2rem;
}

/* =========================
   Luxury Home Hero (Centered + Background)
   - Works with: .bg-slide (image slideshow)
   - AND/OR: .hero-video (MP4)
========================= */
.hero-elegant {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(2rem, 4vh, 3rem) 0;
}

/* Background container */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}

/* Video background (optional) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.02);
}

/* Slideshow background (optional) */
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms ease, transform 5500ms ease;
  filter: saturate(1.02) contrast(1.02);
  will-change: transform, opacity;
}

.bg-slide.is-active {
  opacity: 1;
  transform: scale(1.12);
}

/* Dark luxury overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 600px at 15% 25%, rgba(19, 51, 176, 0.30), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.50) 45%, rgba(250, 250, 252, 0.10));
}

/* Subtle animated grain overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;

  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.020) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 80% 60%, rgba(0,0,0,0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 2px);

  mix-blend-mode: overlay;
  opacity: 0.18;
  filter: contrast(120%) brightness(105%);
  transform: translate3d(0,0,0);
  animation: grainMove 7s steps(6) infinite;
}

@keyframes grainMove {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  20%  { transform: translate3d( 1%, -2%, 0) scale(1.03); }
  40%  { transform: translate3d( 2%,  1%, 0) scale(1.02); }
  60%  { transform: translate3d(-1%,  2%, 0) scale(1.03); }
  80%  { transform: translate3d(-2%,  1%, 0) scale(1.02); }
  100% { transform: translate3d( 1%, -1%, 0) scale(1.03); }
}

/* Optional “parallax drift” for video */
@media (prefers-reduced-motion: no-preference) {
  .hero-video {
    animation: heroVideoFloat 16s ease-in-out infinite alternate;
  }

  @keyframes heroVideoFloat {
    from { transform: scale(1.06) translateY(0); }
    to   { transform: scale(1.10) translateY(-1.8%); }
  }
}

/* Content layer */
.hero-elegant-inner {
  position: relative;
  z-index: 3; /* above overlay + grain */
  width: 100%;
}

/* ✅ TRUE horizontal centering for your exact element */
.hero-elegant .container.hero-elegant-inner.hero-elegant-center {
  width: min(var(--container), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text-block {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kicker pill */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(250, 250, 252, 0.10);
  border: 1px solid rgba(250, 250, 252, 0.22);
  font-weight: 800;
  color: rgba(250, 250, 252, 0.92);
  margin: 0.4rem 0 0.85rem;
}

/* MUCH larger luxury logo */
.brand-logo-lux {
  width: clamp(190px, 26vw, 320px);
  height: auto;
  margin: 0 auto 0.8rem;
  object-fit: contain;

  filter:
    drop-shadow(0 12px 30px rgba(2, 6, 23, 0.38))
    drop-shadow(0 2px 6px rgba(2, 6, 23, 0.25));
}

@media (prefers-reduced-motion: no-preference) {
  .brand-logo-lux {
    animation: logoFloat 6s ease-in-out infinite;
  }
  @keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

/* Subtitle (on dark background) */
.hero-subtitle {
  max-width: 680px;
  margin: 0.35rem auto 1.15rem;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: rgba(250, 250, 252, 0.90);
}

/* Buttons centered */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Type-on headline support (if you add a .brand-title element) */
.brand-title {
  position: relative;
  display: inline-block;
}

.brand-title.type-on {
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.08em solid rgba(250, 250, 252, 0.72);
  width: 0;

  animation:
    typeReveal var(--typeDur, 1400ms) steps(var(--typeSteps, 28), end) forwards,
    cursorBlink 850ms steps(2, end) 2;
}

@keyframes typeReveal {
  to { width: 100%; }
}

@keyframes cursorBlink {
  50% { border-right-color: transparent; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::after { animation: none; }
  .hero-video { animation: none; }
  .brand-logo-lux { animation: none; }
  .brand-title.type-on {
    animation: none;
    width: auto;
    border-right: none;
    white-space: normal;
  }
}

/* Responsive hero tweaks */
@media (max-width: 980px) {
  .hero-elegant {
    min-height: 520px;
    padding: 1.7rem 0 1.2rem;
  }
}

@media (max-width: 560px) {
  .hero-text-block {
    padding: 1.6rem 0.8rem;
  }
  .brand-logo-lux {
    width: clamp(160px, 55vw, 240px);
  }
  .kicker {
    font-size: 0.9rem;
  }
}

/* =========================
   Index Feeds (Announcements / Events)
========================= */
.feed-list {
  padding: 1.05rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.feed-item {
  border-radius: 18px;
  background: rgba(250, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 0.9rem;
}

.feed-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.feed-meta {
  margin-top: 0.35rem;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 800;
  font-size: 0.92rem;
}

.feed-body {
  margin-top: 0.6rem;
  color: rgba(15, 23, 42, 0.90);
  line-height: 1.6;
}

.feed-body :is(p, ul, ol) { margin: 0.35rem 0; }
.feed-body a { color: var(--vea-blue); text-decoration: underline; }

.feed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(19, 51, 176, 0.10);
  color: rgba(19, 51, 176, 0.95);
  font-weight: 900;
  font-size: 0.82rem;
}

.feed-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

/* =========================
   Panels
========================= */
.section-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel {
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 252, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  padding: 1.15rem 1.15rem 0.35rem;
}

.panel-head h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.empty-state {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(19, 51, 176, 0.10);
  border: 1px solid rgba(19, 51, 176, 0.18);
  font-size: 1.2rem;
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

/* =========================
   Footer
========================= */
.footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(250, 250, 252, 0.75);
  backdrop-filter: blur(14px);
}

.footer-grid {
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 1rem;
  align-items: start;
}

.footer h3 {
  font-weight: 900;
  color: var(--vea-blue);
  margin-bottom: 0.25rem;
}

.footer h4 {
  margin-bottom: 0.4rem;
}

.footer a {
  color: rgba(15, 23, 42, 0.88);
  font-weight: 700;
}

.footer a:hover {
  color: var(--vea-blue);
}

.footer-placeholder {
  color: rgba(15, 23, 42, 0.55);
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.copyright-link {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.8);
}

.copyright-link:hover {
  background: rgba(19, 51, 176, 0.08);
  border-color: rgba(19, 51, 176, 0.20);
}

/* =========================
   Auth Pages (Register/Login)
========================= */
.auth-shell {
  padding: 2rem 0;
}

.auth-card {
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 252, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.10);
  padding: 1.35rem;
}

.auth-head {
  margin-bottom: 1rem;
}

.auth-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 0.25rem;
}

.auth-links {
  margin-top: -0.2rem;
}

.link-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--vea-blue);
}

/* Avoid flash on guarded login page */
body[data-page="login"] { visibility: hidden; }
body[data-page="login"].auth-ready { visibility: visible; }

/* =========================
   Shared Forms (Auth + Applications)
   - Uses .form-grid / .field / .field-full
========================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

label,
.field label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.85);
}

input,
select,
textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(250, 250, 252, 0.92);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
}

textarea,
.field textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(19, 51, 176, 0.45);
  box-shadow: 0 0 0 4px rgba(19, 51, 176, 0.12);
}

.hint {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.62);
}

.actions,
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.form-msg {
  grid-column: 1 / -1;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.form-msg.success {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.25);
}

.form-msg.error {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.25);
}

.form-section-title {
  grid-column: 1 / -1;
  font-size: 1.35rem;
  margin-top: 0.6rem;
  margin-bottom: -0.35rem;
}

.form-subsection-title {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.conditional-block {
  grid-column: 1 / -1;
  padding: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(250, 250, 252, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================
   Profile Page
========================= */
.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.profile-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
}

.ro .ro-value {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.92);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.section-title {
  font-size: 1.25rem;
  margin: 1rem 0 0.25rem;
}

.pw-shell {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

/* =========================
   Appointments Placeholder (Profile)
========================= */
.appointments-shell {
  margin-top: 1rem;
  padding-bottom: 2rem;
}

.appointments-panel {
  padding-bottom: 0.75rem;
}

.appointments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 1.15rem 1.15rem;
}

.appointments-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* =========================
   Modal
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.30);
  padding: 1.15rem;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(250, 250, 252, 0.9);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(19, 51, 176, 0.08);
  border-color: rgba(19, 51, 176, 0.20);
}

/* =========================
   Admin Dashboard
========================= */
.admin-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.admin-tile {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(250, 250, 252, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-tile:hover {
  transform: translateY(-2px);
  background: rgba(250, 250, 252, 0.92);
  border-color: rgba(19, 51, 176, 0.22);
}

.admin-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(19, 51, 176, 0.10);
  border: 1px solid rgba(19, 51, 176, 0.18);
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.admin-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

/* =========================
   Availability (Admin)
========================= */
.avail-shell {
  margin-top: 0.5rem;
}

.avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.avail-panel {
  overflow: hidden;
}

.avail-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cal-title {
  font-weight: 900;
  color: var(--vea-blue);
  letter-spacing: 0.4px;
  font-size: 1.15rem;
  min-width: 190px;
}

.cal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  padding: 0 1.15rem 0.5rem;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 900;
  font-size: 0.85rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  padding: 0 1.15rem 1.05rem;
}

.cal-day {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.88);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0.6rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.cal-day:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 51, 176, 0.22);
}

.cal-day.is-out {
  opacity: 0.45;
}

.cal-day.is-selected {
  border-color: rgba(19, 51, 176, 0.35);
  box-shadow: 0 12px 28px rgba(19, 51, 176, 0.14);
}

.cal-day.is-today .cal-num {
  color: var(--vea-blue);
  font-weight: 900;
}

.cal-num {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.85);
}

.cal-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.cal-day.has-avail .cal-dot {
  background: rgba(19, 51, 176, 0.75);
  border-color: rgba(19, 51, 176, 0.35);
}

.cal-help {
  padding: 0 1.15rem 1.15rem;
}

.avail-subtitle {
  font-size: 1.25rem;
  font-weight: 900;
}

.avail-editor {
  padding: 0 1.15rem 1.15rem;
}

.range-head,
.slots-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.ranges-wrap {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.8rem;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.86);
}

.range-actions {
  display: flex;
  align-items: center;
}

.editor-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.soft-divider {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.slots-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slots-wrap {
  margin-top: 0.75rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.slot {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.6rem 0.65rem;
  font-weight: 900;
  cursor: pointer;
  background: rgba(250, 250, 252, 0.92);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.slot:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 51, 176, 0.22);
}

.slot.is-available {
  color: rgba(15, 23, 42, 0.88);
}

.slot.is-excluded {
  opacity: 0.55;
  text-decoration: line-through;
  color: rgba(15, 23, 42, 0.70);
  background: rgba(189, 192, 201, 0.18);
}

.slot-note {
  margin-top: 0.6rem;
}

/* =========================
   Booking
========================= */
.booking-shell {
  margin-top: 0.5rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.booking-panel {
  overflow: hidden;
}

.booking-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.booking-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin: 0 0.2rem 0 0.65rem;
}

.legend-dot.has {
  background: rgba(19, 51, 176, 0.75);
  border-color: rgba(19, 51, 176, 0.35);
}

.legend-dot.none {
  background: rgba(15, 23, 42, 0.12);
}

.book-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  padding: 0 1.15rem 0.5rem;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 900;
  font-size: 0.85rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
  padding: 0 1.15rem 1.05rem;
}

.book-blank {
  opacity: 0;
}

.book-day {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(250, 250, 252, 0.88);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 0.6rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  min-height: 78px;
}

.book-day:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 51, 176, 0.22);
}

.book-day.is-selected {
  border-color: rgba(19, 51, 176, 0.35);
  box-shadow: 0 12px 28px rgba(19, 51, 176, 0.14);
}

.book-day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.book-num {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.86);
  margin-bottom: 0.15rem;
}

.book-mdy {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 800;
}

.book-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.book-day.has-times .book-dot {
  background: rgba(19, 51, 176, 0.75);
  border-color: rgba(19, 51, 176, 0.35);
}

.book-day.no-times {
  opacity: 0.78;
}

.booking-controls {
  padding: 0 1.15rem 1.15rem;
}

.booking-summary {
  margin-top: 0.5rem;
}

.times-wrap {
  margin-top: 0.75rem;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.time-pill {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.7rem 0.75rem;
  font-weight: 900;
  cursor: pointer;
  background: rgba(250, 250, 252, 0.92);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  text-align: left;
}

.time-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 51, 176, 0.22);
}

.time-pill.is-selected {
  border-color: rgba(19, 51, 176, 0.35);
  box-shadow: 0 12px 28px rgba(19, 51, 176, 0.12);
}

.booking-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* =========================
   Responsive (Global)
========================= */
@media (max-width: 980px) {
  .section-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { justify-content: flex-start; }
  .avail-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .appointments-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .times-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 0.85rem;
    background: rgba(250, 250, 252, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);

    display: grid;
    gap: 0.55rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-divider { display: none; }
}

@media (max-width: 560px) {
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .range-row { grid-template-columns: 1fr; }
}

/* Service landing pages and reusable application forms */
.service-hero { position: relative; min-height: 430px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(110deg, rgba(6,16,50,.92), rgba(19,51,176,.62)), url('./img/house3.jpg') center/cover; color: white; }
.service-hero-asset { background-image: linear-gradient(110deg, rgba(6,16,50,.94), rgba(19,51,176,.55)), url('./img/commercial2.jpg'); }
.service-hero-credit { background-image: linear-gradient(110deg, rgba(6,16,50,.94), rgba(19,51,176,.62)), url('./img/boardroom2.jpg'); }
.service-hero-content { padding: 5rem 0; max-width: 760px; }
.service-hero h1 { font: 800 clamp(2.35rem, 5vw, 4.7rem)/1.02 "DM Serif Display", serif; margin: .6rem 0 1rem; }
.service-hero p { max-width: 680px; font-size: 1.08rem; line-height: 1.7; color: rgba(255,255,255,.88); margin-bottom: 1.4rem; }
.eyebrow { display: inline-block; color: #dbe4ff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.service-section { padding-top: 3rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.5rem; border: 1px solid var(--stroke); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.service-card h2, .service-cta h2, .form-section h2 { font-family: "DM Serif Display", serif; }
.service-card p { color: var(--muted); line-height: 1.65; flex: 1; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(19,51,176,.1); color: var(--vea-blue); font-size: 1.5rem; }
.service-cta { margin-top: 1.2rem; padding: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--stroke); background: rgba(255,255,255,.75); }
.intake-shell { padding-top: 2rem; max-width: 980px; }
.intake-form { padding: 0 1.15rem 1.3rem; display: grid; gap: 1rem; }
.form-section { padding: 1.15rem; border-radius: 20px; border: 1px solid var(--stroke); background: rgba(250,250,252,.72); }
.form-section h2 { margin-bottom: .9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.fields label { display: grid; gap: .35rem; font-weight: 700; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; border: 1px solid rgba(15,23,42,.15); border-radius: 14px; padding: .82rem .9rem; background: rgba(255,255,255,.92); font: inherit; }
.fields textarea { min-height: 115px; resize: vertical; }
.choice-row, .consent-row { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.5; font-weight: 650; }
.choice-row input, .consent-row input { width: 18px; height: 18px; margin-top: .15rem; flex: 0 0 auto; }
.intake-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.privacy-notice { margin: 0 1.15rem 1rem; padding: 1rem; border: 1px solid rgba(19,51,176,.25); border-radius: 16px; background: rgba(19,51,176,.08); line-height: 1.55; }
.optional { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .service-grid, .fields { grid-template-columns: 1fr; } .fields .full { grid-column: auto; } .service-hero { min-height: 370px; } .service-cta { align-items: flex-start; flex-direction: column; } }
