/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --teal:        #2CC5C5;
  --teal-light:  #4DD9D9;
  --teal-dark:   #1A9999;
  --teal-glow:   rgba(44, 197, 197, 0.25);
  --teal-border: rgba(44, 197, 197, 0.4);
  --sand:        #E8C4A0;
  --gold:        #F5A05A;
  --dark:        #071525;
  --dark-mid:    #0D1B2A;
  --dark-card:   rgba(13, 27, 42, 0.75);
  --white:       #FFFFFF;
  --text:        rgba(255,255,255,0.9);
  --text-muted:  rgba(255,255,255,0.55);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-light); }
img { max-width: 100%; display: block; }

/* ── Particle canvas ───────────────────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ── Scroll progress ───────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, var(--teal), var(--teal-light), var(--gold));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { position: relative; z-index: 1; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 21, 37, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--teal-border);
  transition: background var(--transition);
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--teal-light); }
.nav__lang { display: flex; gap: 6px; align-items: center; }
.nav__lang a {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--teal-border);
  color: var(--text-muted);
}
.nav__lang a.active { background: var(--teal); color: var(--dark); border-color: var(--teal); }
.nav__cta {
  background: var(--teal);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav__cta:hover { background: var(--teal-light) !important; color: var(--dark) !important; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/img/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero__label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--teal);
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__title span { color: var(--teal); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: var(--dark);
}
.btn-primary:hover { background: var(--teal-light); color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 32px var(--teal-glow); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--teal-border);
  color: var(--teal-light);
}
.btn-outline:hover { background: var(--teal-glow); border-color: var(--teal); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Glass card ────────────────────────────────────────────────────────────── */
.glass {
  background: var(--dark-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.glass:hover {
  border-color: var(--teal);
  box-shadow: 0 0 32px var(--teal-glow);
  transform: translateY(-4px);
}

/* ── Section ───────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}
.section-divider {
  width: 48px; height: 3px;
  background: linear-gradient(to right, var(--teal), var(--teal-light));
  border-radius: 2px;
  margin: 16px 0 48px;
}

/* ── Story grid ────────────────────────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.story-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--dark-mid);
}
.story-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-mid), rgba(44,197,197,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.story-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.story-card__date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.story-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.story-card__summary { font-size: 0.9rem; color: var(--text-muted); flex: 1; margin-bottom: 20px; }
.story-card__link { color: var(--teal); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.story-card__link::after { content: '→'; transition: transform var(--transition); }
.story-card:hover .story-card__link::after { transform: translateX(4px); }

/* ── Services grid ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card { padding: 32px 28px; }
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.service-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.service-card__desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.service-card__price .monthly { font-size: 1.4rem; font-weight: 800; color: var(--teal); }
.service-card__price .label { font-size: 0.8rem; color: var(--text-muted); }

/* ── Auth forms ────────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}
.auth-box {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
}
.auth-box h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.auth-box p { color: var(--text-muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #ff6b7a;
  margin-bottom: 20px;
}
.divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--teal-border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.btn-google:hover { background: rgba(255,255,255,0.1); border-color: var(--teal); }

/* ── Portal ────────────────────────────────────────────────────────────────── */
.portal-wrap { padding-top: 100px; min-height: 100vh; }
.portal-header { margin-bottom: 48px; }
.portal-header h1 { font-size: 2rem; font-weight: 800; }
.portal-header p { color: var(--text-muted); }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.portal-card { padding: 32px; }
.portal-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--teal); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; }
.content-list { list-style: none; }
.content-list li { padding: 10px 0; border-bottom: 1px solid rgba(44,197,197,0.1); display: flex; justify-content: space-between; align-items: center; }
.content-list li:last-child { border-bottom: none; }

/* ── Status badges ─────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-paid    { background: rgba(44,197,197,0.15); color: var(--teal); }
.badge-sent    { background: rgba(245,160,90,0.15); color: var(--gold); }
.badge-overdue { background: rgba(220,53,69,0.15);  color: #ff6b7a; }
.badge-draft   { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ── Booking slots ─────────────────────────────────────────────────────────── */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.slot-btn {
  padding: 12px;
  background: transparent;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  color: var(--teal-light);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.slot-btn:hover, .slot-btn.selected { background: var(--teal); color: var(--dark); border-color: var(--teal); }
.slot-btn.taken { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--teal-border);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer a { color: var(--teal); margin: 0 12px; }

/* ── Animations ────────────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Maintenance ───────────────────────────────────────────────────────────── */
.maintenance {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.maintenance h1 { font-size: 2.4rem; font-weight: 800; margin: 24px 0 12px; }
.maintenance p { color: var(--text-muted); max-width: 400px; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero__title { font-size: 2rem; }
  .story-grid, .services-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 32px 24px; }
}
