/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --brand:    #2C3E6B;
  --accent:   #C8A45A;
  --dark:     #1A1A2E;
  --text:     #333333;
  --muted:    #666666;
  --light:    #F8F6F1;
  --white:    #FFFFFF;
  --border:   #E5E0D8;
  --success:  #1A8A4A;
  --error:    #CC3333;
  --radius:   8px;
  --shadow:   0 4px 24px rgba(44,62,107,0.08);
  --transition: 0.3s ease;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: var(--transition); }
ul   { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { margin-bottom: 1rem; }
em { font-style: italic; color: var(--accent); }

/* ─── CONTAINER ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn, .btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: var(--radius); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
}
.btn-primary  { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--dark); border-color: var(--dark); }
.btn-accent   { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover  { background: #b8943a; border-color: #b8943a; }
.btn-outline  { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn-ghost    { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover  { background: var(--white); color: var(--brand); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ─── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-logo .logo-text { font-family: var(--font-head); font-size: 1.6rem; color: var(--brand); font-weight: 600; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; color: var(--text); font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); background: var(--light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-nav-link { font-size: 0.9rem; color: var(--muted); padding: 8px 14px; }
.btn-nav-link:hover { color: var(--brand); }
.btn-nav-cta { background: var(--brand); color: var(--white); padding: 10px 22px; border-radius: var(--radius); font-size: 0.88rem; }
.btn-nav-cta:hover { background: var(--dark); }
.btn-nav-user { background: var(--light); color: var(--brand); padding: 8px 16px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; }
.btn-cart { position: relative; font-size: 1.2rem; padding: 4px; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; transition: var(--transition); }

/* ─── FLASH MESSAGES ─────────────────────────────── */
.flash { padding: 14px 0; margin-top: 72px; font-size: 0.9rem; font-weight: 500; }
.flash-success { background: #E8F8EF; color: var(--success); border-bottom: 1px solid #b8e8cc; }
.flash-error   { background: #FEE8E8; color: var(--error);   border-bottom: 1px solid #f5b8b8; }
.flash-info    { background: #E8EDF5; color: var(--brand);   border-bottom: 1px solid #b8c8e8; }

/* ─── HERO ───────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 60%, #4a6491 100%); padding-top: 72px; }
.hero-bg { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag { display: inline-block; background: rgba(200,164,90,0.2); color: var(--accent); border: 1px solid rgba(200,164,90,0.4); padding: 6px 18px; border-radius: 100px; font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── SECTIONS ───────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-bg { background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag { display: inline-block; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; }
.section-header p { color: var(--muted); max-width: 540px; margin: 16px auto 0; font-size: 1.05rem; }
.divider { width: 48px; height: 2px; background: var(--accent); margin: 16px auto; }

/* ─── CARDS ──────────────────────────────────────── */
.card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(44,62,107,0.12); }
.card-body { padding: 28px; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ─── GRID LAYOUTS ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

/* ─── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--dark); margin-bottom: 8px; letter-spacing: 0.03em; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--white); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(44,62,107,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--error); font-size: 0.82rem; margin-top: 4px; }
.form-hint  { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ─── AUTH PAGES ─────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; background: var(--light); padding: 100px 0 48px; }
.auth-box { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 48px; max-width: 480px; width: 100%; margin: 0 auto; }
.auth-box h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-box .subtitle { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.auth-footer a { color: var(--brand); font-weight: 500; }
.errors-list { background: #FEE8E8; border: 1px solid #f5b8b8; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.errors-list li { color: var(--error); font-size: 0.88rem; margin-bottom: 4px; }
.errors-list li:last-child { margin: 0; }

/* ─── SERVICES CARDS ─────────────────────────────── */
.service-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 36px 28px; text-align: center; transition: var(--transition); }
.service-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(200,164,90,0.12); }
.service-card .price { font-size: 2rem; font-family: var(--font-head); color: var(--brand); font-weight: 600; margin: 16px 0; }
.service-card .price span { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }
.service-card .sessions { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.service-card.featured { border-color: var(--brand); background: var(--brand); color: var(--white); }
.service-card.featured h3, .service-card.featured .price { color: var(--white); }
.service-card.featured .sessions { color: rgba(255,255,255,0.7); }

/* ─── BLOG ───────────────────────────────────────── */
.post-card .post-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.post-card .post-category { color: var(--accent); font-weight: 500; }
.post-card h3 { margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 0.92rem; }
.post-card .read-more { color: var(--brand); font-weight: 500; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; }
.post-card .read-more:hover { color: var(--accent); }

/* ─── TESTIMONIALS ───────────────────────────────── */
.testimonial-card { background: var(--white); border-radius: 12px; padding: 32px; border-left: 4px solid var(--accent); box-shadow: var(--shadow); }
.testimonial-card blockquote { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--dark); margin-bottom: 20px; line-height: 1.6; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .author-role { color: var(--muted); font-size: 0.82rem; }
.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 12px; }

/* ─── FOOTER ─────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-size: 1.8rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 4px; }
.social-links a:hover { color: var(--accent); border-color: var(--accent); }
.footer-links h4 { color: var(--white); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 500; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-links ul a:hover { color: var(--accent); }
.footer-contact h4 { color: var(--white); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 500; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 6px; }
.btn-footer { display: inline-block; margin-top: 16px; background: var(--accent); color: var(--white); padding: 10px 22px; border-radius: var(--radius); font-size: 0.88rem; }
.btn-footer:hover { background: #b8943a; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ─── WHATSAPP ───────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ─── COOKIE BANNER ──────────────────────────────── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 998; background: var(--dark); color: rgba(255,255,255,0.85); padding: 16px 0; border-top: 2px solid var(--accent); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-inner p { font-size: 0.88rem; margin: 0; }
.cookie-inner a { color: var(--accent); }
.btn-cookie { background: var(--accent); color: white; border: none; padding: 10px 24px; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); font-size: 0.88rem; white-space: nowrap; }

/* ─── DASHBOARD ──────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); margin-top: 72px; }
.sidebar { background: var(--dark); padding: 32px 0; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.06); color: var(--white); border-left: 3px solid var(--accent); }
.sidebar-user { padding: 0 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.sidebar-user .name { color: var(--white); font-weight: 500; font-size: 0.95rem; }
.sidebar-user .role { color: rgba(255,255,255,0.45); font-size: 0.78rem; }
.dashboard-content { padding: 40px; background: var(--light); }
.dashboard-content h1 { font-size: 1.8rem; margin-bottom: 4px; }
.dashboard-content .subtitle { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.kpi-card { background: var(--white); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.kpi-card .kpi-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kpi-card .kpi-value { font-size: 2rem; font-family: var(--font-head); font-weight: 600; color: var(--brand); }

/* ─── ADMIN ──────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--brand); padding: 0; position: fixed; top: 0; left: 0; bottom: 0; width: 240px; overflow-y: auto; z-index: 100; }
.admin-sidebar .sidebar-brand { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .sidebar-brand .logo-text { color: white; font-size: 1.3rem; }
.admin-nav-group { margin: 8px 0; }
.admin-nav-group-label { padding: 12px 24px 4px; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.admin-nav a { display: block; padding: 10px 24px; color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: white; border-left: 3px solid var(--accent); }
.admin-main { margin-left: 240px; min-height: 100vh; background: #F0F2F5; }
.admin-topbar { background: var(--white); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
.admin-topbar h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; color: var(--dark); }
.admin-body { padding: 28px 32px; }
.admin-card { background: var(--white); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.admin-card-body { padding: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 4px solid var(--brand); }
.stat-card.accent { border-color: var(--accent); }
.stat-card.success { border-color: var(--success); }
.stat-card.error   { border-color: var(--error); }
.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 1.8rem; font-family: var(--font-head); font-weight: 600; color: var(--dark); }

/* ─── TABLES ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { background: var(--light); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tr:hover td { background: #FAFAFA; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 500; }
.badge-success { background: #E8F8EF; color: var(--success); }
.badge-error   { background: #FEE8E8; color: var(--error); }
.badge-warning { background: #FEF3E2; color: #C47A00; }
.badge-info    { background: #E8EDF5; color: var(--brand); }
.badge-muted   { background: var(--light); color: var(--muted); }

/* ─── PAGINATION ─────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.88rem; }
.pagination a:hover { background: var(--brand); color: white; border-color: var(--brand); }
.pagination .current { background: var(--brand); color: white; border-color: var(--brand); }

/* ─── UTILITY ────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-brand  { color: var(--brand); }
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px} .mb-4{margin-bottom:32px}
.pt-4{padding-top:32px} .pb-4{padding-bottom:32px}
.d-flex{display:flex} .align-center{align-items:center} .justify-between{justify-content:space-between} .gap-2{gap:16px} .gap-3{gap:24px}
.w-100{width:100%}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-nav-link, .nav-actions .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow); border-top: 1px solid var(--border); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .hero-actions { flex-direction: column; }
  .auth-box { padding: 28px 20px; }
}
