/* Idea Sema — Base styles (typography, layout, components) */
/* Theme colours are set in theme-*.css */

:root {
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Theme variables (overridden per theme) */
body {
  --ink: #1a1d21;
  --ink-muted: #4a5058;
  --paper: #fafaf9;
  --paper-elevated: #ffffff;
  --accent: #2c5282;
  --accent-hover: #234a73;
  --accent-soft: #ebf4f8;
  --border: #e5e4e1;
  --hero-bg: linear-gradient(145deg, #1a2744 0%, #2d3a5c 50%, #1a2744 100%);
  --hero-text: #e8eaed;
  --hero-overlay: 0.4;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper-elevated);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

.logo__img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav a:hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--paper-elevated);
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--paper-elevated);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: var(--space);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space);
  max-width: 18ch;
}

.hero__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 42rem;
  margin: 0 0 var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero .btn--primary {
  background: #fff;
  color: var(--accent);
}

.hero .btn--primary:hover {
  background: #f5f5f5;
  color: var(--accent-hover);
}

.hero .btn--secondary {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.hero .btn--secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Section headings */
.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 38rem;
  margin: 0 0 var(--space-lg);
  line-height: 1.65;
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.value-card {
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.value-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.value-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: var(--space);
  display: block;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space);
}

.pillar {
  padding: var(--space) 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar__name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.pillar__desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* Quote / testimonial */
.quote-block {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.quote-block p {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
}

.quote-block cite {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: normal;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space);
  background: var(--paper-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta-block h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}

.cta-block p {
  color: var(--ink-muted);
  margin: 0 0 var(--space-lg);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space);
}

.site-footer .logo {
  font-size: 1.25rem;
}

.site-footer small {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: var(--space);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Theme switcher (optional) */
.theme-links {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.theme-links a {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.theme-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    gap: var(--space);
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
