:root{
  --brand:#0b5a6c;
  --brand-600:#084c5b;
  --brand-700:#063e4a;
  --accent:#10b981;
  --bg:#f1f5f9;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --border:#e2e8f0;
  --radius:16px;
  --shadow:0 18px 45px rgba(15,23,42,.08);
}

*,
*::before,
*::after{box-sizing:border-box}

html, body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:16px;
  line-height:1.6;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.08), transparent 60%),
    #f8fafc;
  display:flex;
  flex-direction:column;
}

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

/* Links – no underline, subtle Apple-like hover */
a{
  color:var(--brand-700);
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease;
}
a:hover{
  text-decoration:none;
  color:var(--brand-600);
  opacity:.9;
}

/* Layout helpers */

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

main{flex:1 0 auto;min-height:50vh;}
.section{
  padding:64px 0;
}
.section-alt{
  background:linear-gradient(180deg,#f9fafb,#e2f3f5);
}

/* Header */

header{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,.90);
  border-bottom:1px solid rgba(148,163,184,.30);
  transition:box-shadow .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
header.scrolled{
  background:rgba(255,255,255,.98);
  box-shadow:0 10px 36px rgba(15,23,42,.14);
  border-color:transparent;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  height:40px;
  width:auto;
}

.menu{
  display:flex;
  gap:16px;
  align-items:center;
}
.menu a{
  position:relative;
  font-size:0.9rem;
  font-weight:600;
  color:var(--muted);
  padding:8px 2px;
}
.menu a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--brand),var(--accent));
  opacity:0;
  transform:scaleX(0.6);
  transition:opacity .18s ease, transform .18s ease;
}
.menu a:hover,
.menu a.active{
  color:var(--brand-700);
}
.menu a.active::after,
.menu a:hover::after{
  opacity:1;
  transform:scaleX(1);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:none;
  background:rgba(15,23,42,.04);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  backdrop-filter:blur(10px);
  transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.icon-btn:hover{
  background:rgba(255,255,255,.8);
  box-shadow:0 8px 20px rgba(15,23,42,.12);
}
.icon-btn:active{
  transform:scale(.97);
  box-shadow:0 4px 10px rgba(15,23,42,.10);
}

/* Login icon (person) */
.login-icon{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid var(--brand-700);
  position:relative;
}
.login-icon::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width:18px;
  height:10px;
  transform:translate(-50%, -2px);
  border-radius:999px 999px 0 0;
  border:2px solid var(--brand-700);
  border-top:none;
}

/* Hamburger */

.mobile-toggle{
  display:none;
}
.hamburger{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
}
.hamburger span{
  width:16px;
  height:2px;
  border-radius:999px;
  background:#0f172a;
}

/* Mobile menu */

.mobile-menu{
  display:none;
  padding:10px 0 14px;
  border-top:1px solid var(--border);
}
.mobile-menu a{
  display:block;
  padding:8px 0;
  font-size:0.95rem;
}

/* Buttons */

.btn{
  --radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:var(--radius);
  border:1px solid rgba(148,163,184,.45);
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 28px rgba(15,23,42,.06);
  font-weight:700;
  font-size:0.9rem;
  color:var(--brand-700);
  cursor:pointer;
  outline:none;
  position:relative;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 40px rgba(15,23,42,.10);
  background:rgba(255,255,255,.9);
}
.btn:active{
  transform:translateY(0);
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}
.btn-primary{
  background:linear-gradient(135deg,var(--brand),var(--brand-700));
  color:#f9fafb;
  border-color:rgba(6,62,74,.9);
  box-shadow:0 14px 32px rgba(6,62,74,.35);
}
.btn-primary:hover{
  background:linear-gradient(135deg,var(--brand-600),var(--brand-700));
}
.btn-block{
  width:100%;
}

/* Ripple */

.ripple{
  position:absolute;
  border-radius:50%;
  transform:scale(0);
  background:rgba(255,255,255,.6);
  opacity:0.8;
  pointer-events:none;
  animation:ripple .6s ease-out forwards;
}
@keyframes ripple{
  to{
    transform:scale(8);
    opacity:0;
  }
}

/* Hero & images */

.hero{
  padding:40px 0 30px;
}
.hero-home{
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 55%),
    #f8fafc;
}
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr);
  gap:26px;
  align-items:center;
}
.hero-sub{
  background:
    radial-gradient(circle at top left, rgba(16,185,129,.09), transparent 55%),
    #f8fafc;
  padding:42px 0 24px;
}
.hero-copy h1{
  font-size:clamp(2rem,1.3rem + 2vw,3rem);
  line-height:1.1;
  margin:10px 0 12px;
  color:var(--brand-700);
}
.lead{
  font-size:1rem;
  color:var(--muted);
  max-width:60ch;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 10px;
}
.hero-points{
  list-style:none;
  padding:0;
  margin:6px 0 0;
  font-size:0.9rem;
  color:var(--muted);
}
.hero-points li::before{
  content:"• ";
  color:var(--accent);
}

.hero-visual{
  display:flex;
  justify-content:center;
}
.hero-visual-card{
  border-radius:22px;
  overflow:hidden;
  background:#020617;
  box-shadow:0 25px 70px rgba(15,23,42,.6);
  position:relative;
}
.hero-visual-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-visual-tag{
  position:absolute;
  left:14px;
  bottom:14px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.85);
  color:#e5e7eb;
  font-size:0.78rem;
  backdrop-filter:blur(8px);
}

/* Text helpers */

.muted{color:var(--muted);}
.small{font-size:0.8rem;}
.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,.35);
  background:rgba(224,242,254,.9);
  color:#0369a1;
  font-size:0.75rem;
  font-weight:700;
}

/* Forms */

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.label{
  font-size:0.85rem;
  font-weight:600;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:4px;
}
.input,
.select,
textarea.input{
  border-radius:12px;
  border:1px solid var(--border);
  padding:10px 12px;
  font:inherit;
  outline:none;
  background:#ffffff;
  color:var(--text);
  resize:vertical;
  min-height:40px;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input:focus,
.select:focus,
textarea.input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(8,148,186,.18);
  background:#ffffff;
}
.row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.form-status{
  min-height:1.2em;
}

/* Cards & grids – subtle glass */

.card{
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(150%) blur(14px);
  border-radius:var(--radius);
  border:1px solid rgba(148,163,184,.30);
  box-shadow:0 18px 45px rgba(15,23,42,.06);
  padding:20px 20px 22px;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 55px rgba(15,23,42,.10);
  border-color:rgba(148,163,184,.45);
}

.grid{
  display:grid;
  gap:18px;
}
.grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.feature-image{
  border-radius:12px;
  margin-bottom:10px;
}

.pill-list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:0.8rem;
}
.pill-list li{
  padding:4px 9px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f8fafc;
}
.link-inline{
  font-size:0.85rem;
  font-weight:700;
}

/* Journey & stats */

.journey-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);
  gap:22px;
  align-items:flex-start;
}
.journey-list{
  padding-left:18px;
}
.journey-list li{
  margin-bottom:6px;
}
.stats-card{
  display:grid;
  gap:14px;
}
.stat{
  display:flex;
  flex-direction:column;
}
.stat-number{
  font-weight:800;
  font-size:1.1rem;
  color:var(--brand-700);
}
.stat-label{
  font-size:0.82rem;
  color:var(--muted);
}

/* Booking & contact */

.booking-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);
  gap:22px;
}
.booking-side{align-content:flex-start;}

.contact-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:22px;
}
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

/* FAQ */

.faq-wrapper h1{margin-bottom:12px;}
.faq-list{
  padding:12px 18px;
}
.faq-item{
  border-bottom:1px solid var(--border);
  padding:4px 0;
}
.faq-item:last-child{border-bottom:none;}
.faq-item summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item p{
  margin:4px 0 10px;
  font-size:0.9rem;
}

/* Portals (dark theme) */

.page-secretary main,
.page-admin main{
  background:radial-gradient(circle at top right, rgba(15,23,42,.25), transparent 60%), #020617;
  color:#e5e7eb;
}
.page-secretary .card,
.page-admin .card{
  background:rgba(15,23,42,.96);
  border-color:rgba(148,163,184,.35);
  box-shadow:0 20px 60px rgba(0,0,0,.55);
}
.page-secretary .muted,
.page-admin .muted{
  color:#9ca3af;
}
.portal-wrapper{max-width:1180px;}
.portal-header{margin-bottom:18px;}
.portal-card{margin-bottom:18px;}

.table-wrapper{overflow-x:auto;}
.table{
  width:100%;
  border-collapse:collapse;
  font-size:0.85rem;
}
.table th,
.table td{
  padding:6px 8px;
  border-bottom:1px solid rgba(148,163,184,.35);
  text-align:left;
}
.table th{
  font-weight:700;
  color:#e5e7eb;
}
.table tr:last-child td{border-bottom:none;}
.small-form .label{font-size:0.8rem;}

/* Login modal - dark blurred with fade */

.login-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.65);
  backdrop-filter:blur(18px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:80;
}
.login-backdrop[hidden]{display:none;}
.login-modal{
  width:100%;
  max-width:360px;
  border-radius:22px;
  background:radial-gradient(circle at top left, rgba(59,130,246,.22), rgba(15,23,42,.98));
  color:#e5e7eb;
  padding:20px 20px 22px;
  box-shadow:0 30px 80px rgba(0,0,0,.8);
  position:relative;
  opacity:0;
  transform:translateY(8px) scale(.98);
  animation:loginFade .26s ease-out forwards;
}
@keyframes loginFade{
  to{
    opacity:1;
    transform:none;
  }
}
.login-modal h2{
  margin:4px 0 4px;
}
.login-close{
  position:absolute;
  top:10px;
  right:10px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:none;
  background:rgba(15,23,42,.6);
  cursor:pointer;
}
.login-close::before,
.login-close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:2px;
  border-radius:999px;
  background:#e5e7eb;
}
.login-close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}
.login-close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}
.login-form .input{
  background:rgba(15,23,42,.85);
  border-color:rgba(148,163,184,.7);
  color:#e5e7eb;
}
.login-hint{
  margin-top:2px;
  opacity:0.7;
}
.login-error{
  animation:shake .28s linear;
  border-color:#f97373 !important;
  box-shadow:0 0 0 2px rgba(248,113,113,.6) !important;
}
@keyframes shake{
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-4px);}
  75%{transform:translateX(4px);}
}

/* Reveal */

.reveal{
  opacity:0;
  transform:translateY(14px);
  filter:blur(4px);
}
.reveal.show{
  opacity:1;
  transform:none;
  filter:none;
  transition:opacity .6s ease, transform .6s ease, filter .6s ease;
}

/* Footer */

footer{
  margin-top:auto;
  padding:18px 0 20px;
  border-top:1px solid rgba(148,163,184,.5);
  background:#ffffff;
}
.page-secretary footer,
.page-admin footer{
  background:#020617;
  border-top-color:rgba(15,23,42,1);
  color:#9ca3af;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:0.8rem;
  color:var(--muted);
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Responsive */

@media (max-width: 980px){
  .hero-grid,
  .journey-grid,
  .booking-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }
  .grid-3,
  .grid-4{
    grid-template-columns:1fr;
  }
  .grid-2{
    grid-template-columns:1fr;
  }
  .menu{
    display:none;
  }
  .mobile-toggle{
    display:inline-flex;
  }
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .hero{
    padding-top:28px;
  }
}



/* Alive mode — hero glow & floating card */

.hero-home{
  position:relative;
  overflow:hidden;
}

.hero-home::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at top right, rgba(56,189,248,.16), transparent 60%);
  opacity:0.9;
  pointer-events:none;
  z-index:-1;
  animation:heroGlow 22s ease-in-out infinite alternate;
}

@keyframes heroGlow{
  0%{
    transform:translate3d(-10px,0,0) scale(1);
    opacity:0.75;
  }
  50%{
    transform:translate3d(8px,-6px,0) scale(1.02);
    opacity:1;
  }
  100%{
    transform:translate3d(0,0,0) scale(1);
    opacity:0.8;
  }
}

/* Floating hero booking panel */
.hero-panel{
  border-radius:22px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  border:1px solid rgba(148,163,184,.45);
  box-shadow:0 24px 60px rgba(15,23,42,.16);
  padding:20px 20px 22px;
  transform:translateY(4px);
  animation:floatCard 10s ease-in-out infinite;
}

@keyframes floatCard{
  0%,100%{
    transform:translateY(4px) translateX(0);
  }
  50%{
    transform:translateY(-4px) translateX(2px);
  }
}





/* Alive mode — interactive cards */

.feature-card,
.service-card,
.testimonial{
  position:relative;
  overflow:hidden;
}

.feature-card::before,
.service-card::before,
.testimonial::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at top left, rgba(16,185,129,.12), transparent 60%);
  opacity:0;
  transform:translate3d(-10px,10px,0);
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
}

.feature-card:hover::before,
.service-card:hover::before,
.testimonial:hover::before{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* Slight extra lift & scale for these cards specifically */
.feature-card:hover,
.service-card:hover,
.testimonial:hover{
  transform:translateY(-4px) scale(1.01);
  box-shadow:0 26px 60px rgba(15,23,42,.14);
}





/* Alive mode — button micro-interaction */

.btn{
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease,
    opacity .16s ease,
    translate .16s ease;
}

.btn:hover{
  translate:0 -1px;
}

.btn-primary:hover{
  translate:0 -2px;
  box-shadow:0 18px 40px rgba(6,62,74,.38);
}






/* Alive mode — stat tiles */

.stats-card .stat{
  transition:transform .18s ease, color .18s ease;
}

.stats-card .stat:hover{
  transform:translateY(-2px);
}

.stats-card .stat:hover .stat-number{
  color:var(--brand);
}


/* Status pill (portals) */
.pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.75rem;
  font-weight:700;
  border:1px solid rgba(148,163,184,.6);
  background:rgba(248,250,252,.9);
  color:var(--brand-700);
}


/* Secretary portal controls + actions */
.portal-controls{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:end;
  margin:12px 0 14px;
}
.portal-controls .control{
  min-width:220px;
  flex:1 1 220px;
}
.portal-controls .input{
  width:100%;
  margin-top:6px;
}

/* Status badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  border:1px solid rgba(2, 6, 23, .12);
  background:rgba(248,250,252,.8);
}
.badge::before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(15, 23, 42, .45);
}
.badge--pending::before{ background:rgba(245, 158, 11, .95); }
.badge--confirmed::before{ background:rgba(34, 197, 94, .95); }
.badge--completed::before{ background:rgba(59, 130, 246, .95); }
.badge--cancelled::before{ background:rgba(239, 68, 68, .95); }

.table .cell-notes input{
  width:100%;
  min-width:180px;
}

.table .cell-actions{
  white-space:nowrap;
}
.table .btn-mini{
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
}
.table .btn-ghost{
  background:rgba(248,250,252,.6);
  border:1px solid rgba(2,6,23,.12);
}
.table .btn-ghost:hover{
  background:rgba(248,250,252,.9);
}

.input--compact{
  padding:10px 12px;
  font-size:13px;
  border-radius:12px;
}
.mt-6{ margin-top:6px; }


/* ------------------------------------------------------------
   Portal table controls & actions (Admin / Secretary)
------------------------------------------------------------ */

.table-controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  margin:10px 0 14px;
}
.table-controls .control{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:180px;
}
.table-controls .control--right{
  margin-left:auto;
  min-width:auto;
}
.label--sr{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.btn--sm{
  padding:8px 12px;
  font-size:0.85rem;
}
.btn--ghost{
  background:rgba(255,255,255,.36);
  border-color:rgba(148,163,184,.55);
  box-shadow:none;
}
.btn--danger{
  border-color:rgba(220,38,38,.45);
  color:#b91c1c;
}

.input--sm{
  min-height:34px;
  padding:7px 10px;
  font-size:0.9rem;
}

.select--inline{
  margin-top:8px;
  min-height:34px;
  padding:6px 10px;
  font-size:0.9rem;
}

.cell-actions{
  white-space:nowrap;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.notes-input{
  width:100%;
  min-width:220px;
}



/* =========================
   Admin portal table polish
   ========================= */

.page-admin .table .btn.btn-sm {
  padding: .45rem .6rem;
  font-size: .85rem;
  line-height: 1.1;
}

.page-admin .table .select.admin-status {
  min-width: 140px;
  padding: .45rem .6rem;
  font-size: .9rem;
}

.page-admin .table textarea.admin-note {
  min-width: 220px;
  resize: vertical;
  padding: .45rem .6rem;
  font-size: .9rem;
}

.page-admin .table td {
  vertical-align: top;
}
