/* Swenmoh Educational Platform - Core Styles
   Calm, professional design for practical digital & data skills education */

:root {
  --color-navy: #1e2a3a;
  --color-navy-light: #2d3e50;
  --color-slate: #4a5568;
  --color-slate-light: #718096;
  --color-gray-100: #f7fafc;
  --color-gray-200: #edf2f7;
  --color-gray-300: #e2e8f0;
  --color-white: #ffffff;
  --color-accent: #2b7a78;
  --color-accent-hover: #236663;
  --color-border: #cbd5e0;
  --color-text: #2d3748;
  --color-text-muted: #4a5568;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --max-width: 1120px;
  --header-height: 72px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.65;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.15rem; color: var(--color-text); }

.lead {
  font-size: 1.15rem;
  color: var(--color-slate);
  line-height: 1.7;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background-color: var(--color-gray-100); }
.section-title { margin-bottom: 0.5rem; }
.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--color-slate);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-300);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}

.logo:hover { text-decoration: none; color: var(--color-navy); }

.logo span {
  font-weight: 400;
  color: var(--color-slate-light);
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-slate);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--color-navy);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.hero-content .lead { margin-bottom: 1.75rem; }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-navy-light);
  color: var(--color-white);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-gray-100);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-image {
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.6rem; }
.card-body p {
  font-size: 0.95rem;
  color: var(--color-slate);
  margin-bottom: 1rem;
}

.card-link { font-size: 0.9rem; font-weight: 500; }

/* Disclaimer */
.disclaimer {
  background: var(--color-gray-100);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--color-slate);
}

.disclaimer strong { color: var(--color-navy); }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member { text-align: center; }

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-gray-200);
}

.team-member h4 { margin-bottom: 0.25rem; }
.team-role {
  font-size: 0.9rem;
  color: var(--color-slate-light);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-slate);
  text-align: left;
}

/* Module list */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.module-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
}

.module-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.module-content h3 { margin-bottom: 0.5rem; }
.module-content p {
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.module-topics {
  font-size: 0.9rem;
  color: var(--color-slate);
}

.module-topics strong { color: var(--color-navy); }

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-details {
  background: var(--color-gray-100);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-details h3 { margin-bottom: 1.25rem; }

.contact-item { margin-bottom: 1.25rem; }

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-slate-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: #a0aec0;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 0;
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a { color: #a0aec0; }

/* Legal */
.legal-content { max-width: 48rem; }
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content h3 { margin-top: 1.75rem; }
.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  color: var(--color-text);
}

/* Success */
.success-box {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}

.success-box h1 { margin-bottom: 1rem; }

/* Breadcrumb & page header */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-slate-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-slate-light); }

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-gray-300);
  margin-bottom: 2.5rem;
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header .lead {
  margin-bottom: 0;
  max-width: 40rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-image { order: -1; }
  .hero-image img { height: 240px; }
  .module-item { grid-template-columns: 1fr; }
  .module-number { margin-bottom: 0.25rem; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-gray-300);
    gap: 1rem;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  h1 { font-size: 1.85rem; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}
