/* main.css — Tingulli Pro Max Design System */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;800&family=Noto+Sans:wght@400;500;600&display=swap');

:root {
  --p: #001A2C;       /* Midnight Navy */
  --s: #A0D9D9;       /* Soft Aqua */
  --acc: #14B8A6;     /* Teal Wellness */
  --bg: #F8FAFC;
  --bg2: #F1F5F9;
  --white: #FFFFFF;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --nav-h: 80px;
  --container: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a[href^="tel"] { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Figtree', sans-serif; color: var(--p); line-height: 1.2; }
.skip-link { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); background: var(--acc); color: var(--white); padding: 12px 24px; border-radius: 0 0 16px 16px; font-weight: 700; text-decoration: none; z-index: 9999; transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.skip-link:focus { top: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 120px 0; }
.section-title-wrap { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 48px; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; }

.badge { display: inline-block; padding: 6px 16px; background: rgba(160, 217, 217, 0.2); color: var(--p); border-radius: 100px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 100px; font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; gap: 10px; }
.btn-p { background: var(--p); color: var(--white); }
.btn-p:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); opacity: 0.9; }
.btn-acc { background: var(--acc); color: var(--white); }
.btn-acc:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--p); color: var(--p); }
.btn-outline:hover { background: var(--p); color: var(--white); }

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar { height: 64px; position: fixed; top: 16px; left: 16px; right: 16px; z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); }
#navbar.scrolled { top: 8px; background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); }
#navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; color: var(--p); text-decoration: none; }
.nav-brand img { height: 50px; width: auto; transition: var(--transition); }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a { padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--p); text-decoration: none; transition: all 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--p); background: rgba(255, 255, 255, 0.4); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--p); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.nav-mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
#home { min-height: 100vh; padding-top: 80px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #001A2C; }
#home::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 26, 44, 0.75), rgba(0, 26, 44, 0.8)), url('/assets/img/hero.jpg') no-repeat center center / cover; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; color: var(--white); width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-content { max-width: 800px; padding: 0 24px; width: 100%; }
.hero-title { font-size: clamp(38px, 8vw, 72px); font-weight: 800; margin-bottom: 24px; color: var(--white); text-shadow: 0 4px 20px rgba(0,0,0,0.3); line-height: 1.1; white-space: pre-wrap !important; }
.hero-desc { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.9); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; white-space: pre-wrap !important; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── About ─────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about-img-box { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 12px solid var(--white); background: var(--white); }
.about-img-box img { display: block; width: 100%; height: auto; border-radius: 20px; }
.spec-subtitle { font-weight: 700; color: var(--acc); font-size: 18px; margin-bottom: 24px; }
.about-content p { white-space: pre-wrap; }
.spec-features { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 32px 0; }
.spec-feat-item { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--p); }

/* ── Services ──────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { background: var(--white); padding: 48px; border-radius: var(--radius); border: 1px solid var(--border); transition: var(--transition); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--s); }
.service-icon { width: 64px; height: 64px; background: var(--bg2); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; color: var(--p); transition: var(--transition); }
.service-icon svg { width: 32px; height: 32px; }
.card:hover .service-icon { background: var(--p); color: var(--white); }
.card h3 { font-size: 24px; margin-bottom: 16px; }
.card p { color: var(--muted); font-size: 15px; white-space: pre-line; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); overflow: hidden; transition: var(--transition); }
.faq-q { width: 100%; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; background: none; border: none; text-align: left; font-size: 17px; font-weight: 700; color: var(--p); cursor: pointer; }
.faq-chevron { width: 20px; height: 20px; transition: transform 0.4s; color: var(--muted); }
.faq-item.open { border-color: var(--s); box-shadow: var(--shadow); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--p); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: var(--bg); }
.faq-a-content { padding: 0 32px 24px; color: var(--muted); font-size: 15px; white-space: pre-line; }

/* ── Booking ───────────────────────────────────────────────── */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calendar-card { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.cal-month { font-weight: 800; font-size: 18px; color: var(--p); }
.cal-header button { background: var(--bg2); border: none; padding: 10px; border-radius: 50%; cursor: pointer; color: var(--p); transition: var(--transition); }
.cal-header button:hover { background: var(--s); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.cal-day-label { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 12px; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border-radius: 12px; cursor: pointer; transition: var(--transition); }
.cal-day:hover:not(.disabled) { background: var(--bg2); color: var(--p); }
.cal-day.today { color: var(--acc); background: rgba(20,184,166,0.1); }
.cal-day.selected { background: var(--p) !important; color: var(--white) !important; }
.cal-day.disabled { opacity: 0.2; cursor: not-allowed; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; }
.slot { padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; transition: var(--transition); }
.slot.available:hover { border-color: var(--p); background: var(--bg2); }
.slot.chosen { background: var(--p); color: var(--white); border-color: var(--p); }
.slot.booked, .slot.blocked, .slot.past { opacity: 0.3; cursor: not-allowed; background: var(--bg2); }

.form-group { margin-bottom: 24px; }
.label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--p); }
.input { width: 100%; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--border); font-family: inherit; transition: var(--transition); background: var(--bg); }
.input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(0,26,44,0.05); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-item { display: flex; gap: 24px; margin-bottom: 32px; align-items: center; }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--s); color: var(--p); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 24px; height: 24px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--p); color: var(--white); padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.footer-brand img { height: 64px; filter: brightness(0) invert(1); }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; transition: var(--transition); }
.footer-links a:hover { color: var(--s); padding-left: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; text-align: center; color: rgba(255,255,255,0.5); font-size: 14px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-msg { display:none; padding:16px; border-radius:12px; font-size:14px; font-weight:600; margin-top:20px; text-align:center; }
.form-msg.success { display:block; background:rgba(20,184,166,0.1); color:#0D9488; border:1px solid rgba(20,184,166,0.2); }
.form-msg.error { display:block; background:rgba(239,68,68,0.1); color:#DC2626; border:1px solid rgba(239,68,68,0.2); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-pad { padding: 80px 0; }
  .section-title { font-size: 38px; }
  .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand img { height: 44px; }
  .nav-mobile-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 24px; border-radius: 24px; box-shadow: var(--shadow-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #navbar { top: 12px; left: 12px; right: 12px; height: 56px; }
  .nav-cta { display: none; }
  #home { min-height: 80vh; padding: 120px 0 60px; }
  #home::before { background-position: center; }
  .section-pad { padding: 60px 0; }
  .section-title { font-size: 32px; }
  .section-title-wrap { margin-bottom: 40px; }
  .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; gap: 12px; }
  .btn { width: 100%; padding: 12px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .calendar-card { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; margin-bottom: 32px; }
  .cal-grid { gap: 5px; }
  .cal-day { font-size: 12px; }
}

/* ── Toasts ───────────────────────────────────────────────── */
#toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; max-width: 400px; pointer-events: none; }
.toast { padding: 16px 32px; background: var(--p); color: var(--white); border-radius: 100px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; pointer-events: auto; border: 1px solid rgba(255,255,255,0.1); }
.toast.error { background: #DC2626; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── Animations ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
