/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand – legacy names kept for PHP compatibility, values updated */
  --navy:       #0D4F5C;
  --navy-dark:  #093F4A;
  --gold:       #F59E0B;
  --gold-light: #D97706;
  --bg:         #F4F7F8;
  --text:       #1A2E35;
  --text-muted: #4A6572;
  --success:    #10B981;
  --danger:     #EF4444;
  --warning:    #F59E0B;
  --info:       #0EA5E9;
  --white:      #ffffff;
  --border:     #E2E8F0;
  --shadow:     0 2px 8px rgba(13,79,92,.10);
  --shadow-lg:  0 8px 24px rgba(13,79,92,.16);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;

  /* New design tokens */
  --color-primary:        #0D4F5C;
  --color-primary-dark:   #093F4A;
  --color-primary-light:  #155F6E;
  --color-primary-muted:  rgba(13,79,92,.10);
  --color-accent:         #F59E0B;
  --color-accent-dark:    #D97706;
  --color-accent-light:   #FEF3C7;
  --color-accent-muted:   rgba(245,158,11,.10);
  --color-bg-page:        #F4F7F8;
  --color-bg-card:        #FFFFFF;
  --color-text-primary:   #1A2E35;
  --color-text-secondary: #4A6572;
  --color-text-muted:     #8FA3AB;
  --color-text-inverse:   #FFFFFF;
  --color-border:         #E2E8F0;
  --color-success:        #10B981;
  --color-success-light:  #D1FAE5;
  --color-success-text:   #065F46;
  --color-danger:         #EF4444;
  --color-danger-light:   #FEE2E2;
  --color-danger-text:    #991B1B;
  --color-warning:        #F59E0B;
  --color-warning-light:  #FEF3C7;
  --color-warning-text:   #92400E;
  --color-info:           #0EA5E9;
  --color-info-light:     #E0F2FE;
  --color-info-text:      #0C4A6E;
  --shadow-sm:   0 1px 3px rgba(13,79,92,.08);
  --shadow-md:   0 4px 12px rgba(13,79,92,.12);
  --shadow-card: 0 2px 8px rgba(13,79,92,.10);
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-xl:   20px;
  --radius-full: 9999px;
}

/* ─── 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(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-gold      { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.btn-gold:hover{ background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm        { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg        { padding: 1rem 2rem; font-size: 1.1rem; }

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 1px 3px rgba(13,79,92,.15);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.navbar-brand { display: flex; align-items: center; font-size: 1.4rem; font-weight: 700; }
.brand-keme   { color: var(--white); }
.brand-prop   { color: var(--gold); }
.nav-links    { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a  { color: rgba(255,255,255,.85); font-size: .95rem; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.hamburger    { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0D4F5C 0%, #0A3D47 50%, #072D36 100%);
  padding: 7rem 0 5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  top: -100px; right: -100px; border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--gold); font-size: .9rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white); line-height: 1.2; margin-bottom: 1.5rem; max-width: 800px; margin-inline: auto;
}
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats   { display: flex; gap: 3rem; justify-content: center; margin-top: 4rem; flex-wrap: wrap; }
.hero-stat    { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); }
.hero-stat span   { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ─── Section ───────────────────────────────────────────────────────────────── */
.section       { padding: 5rem 0; }
.section-alt   { background: var(--white); }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.5rem); color: var(--text); margin-bottom: .75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); border-radius: 2px; margin: .75rem auto 0; }

/* ─── Feature cards ─────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-icon {
  width: 56px; height: 56px; background: rgba(13,79,92,.08);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--navy); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.feature-card p  { color: var(--text-muted); font-size: .95rem; }

/* ─── How it works ──────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; position: relative; }
.step-card  { text-align: center; padding: 2rem 1.5rem; }
.step-num   {
  width: 60px; height: 60px; background: var(--navy); color: var(--white);
  border-radius: 50%; font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.step-card p  { color: var(--text-muted); }

/* ─── Pricing cards ─────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: start; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  border: 2px solid var(--border); box-shadow: var(--shadow); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.pricing-card.featured .pricing-header { background: var(--navy); color: var(--white); margin: -2.5rem -2rem 1.5rem; padding: 1.5rem 2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .8rem;
  padding: .3rem .9rem; border-radius: var(--radius-full); white-space: nowrap; }
.pricing-card h3   { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.pricing-price     { font-size: 2.5rem; font-weight: 800; margin: 1rem 0 .25rem; color: var(--navy); }
.pricing-price span{ font-size: 1rem; font-weight: 400; opacity: .7; }
.pricing-card.featured h3  { color: var(--white); }
.pricing-card.featured p   { color: rgba(255,255,255,.85); }
.pricing-card.featured .pricing-price { color: var(--gold); }
.pricing-features  { list-style: none; margin: 1.5rem 0 2rem; }
.pricing-features li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; display: flex; gap: .5rem; align-items: center; }
.pricing-card.featured .pricing-features li { border-bottom-color: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-card.featured .pricing-features li::before { color: var(--gold); }
.pricing-cta { display: block; text-align: center; padding: .85rem 1.5rem; border-radius: var(--radius-full); font-weight: 600; border: 2px solid var(--navy); color: var(--navy); transition: var(--transition); }
.pricing-cta:hover { background: var(--navy); color: var(--white); }
.pricing-card.featured .pricing-cta { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.pricing-card.featured .pricing-cta:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ─── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.testimonial-card  { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.testimonial-text  { font-style: italic; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; background: var(--navy); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-name   { font-weight: 600; color: var(--text); font-size: .95rem; }
.testimonial-role   { font-size: .85rem; color: var(--text-muted); }

/* ─── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, #0D4F5C, #0A3D47); padding: 5rem 0; text-align: center; }
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.5rem); color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions   { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer    { background: var(--navy-dark); color: rgba(255,255,255,.80); padding: 4rem 0 2rem; }
.footer-grid    { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: .75rem; font-size: .9rem; line-height: 1.7; }
.footer-tagline { color: var(--gold) !important; font-size: .85rem !important; margin-top: .25rem !important; }
.footer-links h4{ color: var(--white); font-size: .95rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: .5rem; }
.footer-links ul li a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--gold); }
.footer-bottom  { border-top: 1px solid rgba(255,255,255,.10); padding-top: 1.5rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.50); }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-group    { margin-bottom: 1.25rem; }
.form-label    { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-control  {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; background: #F8FAFC;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.form-control::placeholder { color: #8FA3AB; }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,79,92,.10); }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: .83rem; margin-top: .3rem; display: block; }
.form-text     { color: var(--text-muted); font-size: .83rem; margin-top: .3rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Auth pages (login/register) ───────────────────────────────────────────── */
.auth-page   { min-height: 100vh; background: linear-gradient(135deg, #0D4F5C 0%, #072D36 100%); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card   { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 3rem; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-logo   { text-align: center; margin-bottom: 2rem; }
.auth-logo .navbar-brand { justify-content: center; font-size: 1.6rem; }
.auth-title  { font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); margin-bottom: .25rem; text-align: center; }
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 2rem; font-size: .95rem; }
.auth-footer-text { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--text-muted); }
.auth-footer-text a { color: var(--navy); font-weight: 600; }

/* ─── Multi-step register ───────────────────────────────────────────────────── */
.register-page { min-height: 100vh; background: linear-gradient(135deg, #0D4F5C 0%, #072D36 100%); padding: 2rem; }
.register-card { background: var(--white); border-radius: var(--radius-lg); max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-lg); overflow: hidden; }
.register-header { background: var(--navy); padding: 2rem 2.5rem; text-align: center; }
.register-header .navbar-brand { justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.step-progress { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-item     { display: flex; flex-direction: column; align-items: center; }
.step-circle   { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; position: relative; z-index: 1; border: 2px solid rgba(255,255,255,.3); transition: var(--transition); }
.step-circle.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.step-circle.done   { background: var(--success); border-color: var(--success); }
.step-label    { color: rgba(255,255,255,.7); font-size: .75rem; margin-top: .4rem; white-space: nowrap; }
.step-item.active .step-label { color: var(--gold); }
.step-connector { flex: 1; height: 2px; background: rgba(255,255,255,.2); min-width: 40px; margin-top: -22px; }
.step-connector.done { background: var(--success); }
.register-body { padding: 2.5rem; }
.step-panel    { display: none; }
.step-panel.active { display: block; }
.step-title    { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: .5rem; }
.step-desc     { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.register-nav  { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.plan-select-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.plan-option   { border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1rem; cursor: pointer; transition: var(--transition); }
.plan-option:hover, .plan-option.selected { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(13,79,92,.10); }
.plan-option h4 { font-size: .95rem; color: var(--navy); margin-bottom: .25rem; }
.plan-option .plan-price { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.plan-option .plan-price span { font-size: .8rem; font-weight: 400; color: var(--text-muted); }
.plan-option ul { margin-top: .75rem; font-size: .8rem; color: var(--text-muted); }
.plan-option ul li { padding: .15rem 0; padding-left: 1rem; position: relative; }
.plan-option ul li::before { content: '✓'; color: var(--success); position: absolute; left: 0; }

/* ─── Alerts ────────────────────────────────────────────────────────────────── */
.alert       { padding: .9rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .93rem; border-left: 4px solid transparent; }
.alert-success { background: #D1FAE5; color: #065F46; border-left-color: #10B981; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-left-color: #EF4444; }
.alert-warning { background: #FEF3C7; color: #92400E; border-left-color: #F59E0B; }
.alert-info    { background: #E0F2FE; color: #0C4A6E; border-left-color: #0EA5E9; }

/* ─── WhatsApp float ────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: #25D366; color: var(--white); border-radius: 50%;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.4); transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ─── Pricing page ──────────────────────────────────────────────────────────── */
.pricing-page { padding: 4rem 0; }
.pricing-hero { background: linear-gradient(135deg, #0D4F5C, #072D36); padding: 4rem 0; text-align: center; margin-bottom: 3rem; }
.pricing-hero h1 { font-family: var(--font-head); font-size: 2.5rem; color: var(--white); margin-bottom: .75rem; }
.pricing-hero p  { color: rgba(255,255,255,.80); font-size: 1.05rem; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .93rem; }
.comparison-table th { background: var(--navy); color: var(--white); font-weight: 600; }
.comparison-table tr:hover td { background: rgba(13,79,92,.03); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--danger); }
.faq-section { padding: 4rem 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { padding: 1.25rem 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.faq-answer   { padding-bottom: 1.25rem; color: var(--text-muted); font-size: .93rem; line-height: 1.7; display: none; }
.faq-answer.open { display: block; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: var(--navy);
    padding: 1rem 1.5rem; gap: .75rem;
  }
  .nav-links.open { display: flex; }
  .navbar { position: relative; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .plan-select-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .hero-stats { gap: 1.5rem; }
  .register-body { padding: 1.5rem; }
  .auth-card { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .step-progress { gap: 0; }
  .step-connector { min-width: 20px; }
}
