:root {
  --navy: #10203a;
  --navy-dark: #0a1526;
  --accent: #b8860b;
  --accent-dark: #96690a;
  --text: #1c2430;
  --muted: #5a6472;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #dde2e8;
  --error: #b3261e;
  --success: #1e7a34;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; margin-top: 0; }
a { color: var(--navy); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: 640px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.site-header nav a {
  color: #cfd8e3;
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
}
.site-header nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; max-width: 700px; margin: 0 auto 16px; }
.hero-sub { color: #cfd8e3; max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.7rem; margin-bottom: 20px; }
.cta { text-align: center; }

.grid-2, .grid-3 {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: center;
}
.about-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.credentials li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn:disabled:hover { background: transparent; }

/* Classes */
.class-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.class-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}
.class-card-main { flex: 2 1 320px; }
.class-card-action {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
}
.class-meta { color: var(--muted); margin: 4px 0 12px; }
.class-price { font-size: 1.5rem; font-weight: 700; color: var(--navy); }

/* Receipt / callout */
.receipt table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.receipt td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.receipt td:first-child { color: var(--muted); width: 40%; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input, .form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.form button { margin-top: 20px; align-self: flex-start; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox-label input { width: auto; }

.inline-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.inline-form input[type="email"] {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  min-width: 260px;
}

/* Flash messages */
.flash-wrap { margin-top: 16px; }
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 500;
}
.flash-error { background: #fdecea; color: var(--error); }
.flash-success { background: #eaf7ec; color: var(--success); }

/* Admin */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.admin-actions { display: flex; gap: 12px; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--error);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cfd8e3;
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.site-footer a { color: #fff; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.footer-bottom a {
  color: #7c8aa0;
  font-size: 0.8rem;
  text-decoration: none;
}
.footer-bottom a:hover { color: #cfd8e3; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .header-inner { flex-direction: column; gap: 10px; }
  .site-header nav a { margin: 0 10px; }
}
