/* ==========================================================================
   David Ruzumna — clean rebuild
========================================================================== */

/* ---- self-hosted fonts (latin subsets only) ---- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/roboto.woff2') format('woff2');
}

/* ---- design tokens ---- */
:root {
  --color-brand: #1188cd;    /* "David" blue */
  --color-active: #1088cd;   /* active nav + button */
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-footer-bg: #000000;
  --color-footer-text: #ffffff;
  --color-muted: #666666;

  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 96px;

  --max-width: 1140px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1.25em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- shared header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
}
.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand span { display: block; }
.site-header .brand { color: var(--color-brand); }
.site-header .brand span { color: var(--color-text); }

.nav ul {
  display: flex;
  gap: var(--space-3);
}
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  padding: 4px 0;
  position: relative;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--color-active); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-active);
}

/* burger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---- sections ---- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

/* ---- hero / two-column (text left, image right) ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.25em;
}
.hero p strong { font-weight: 700; }
.hero .hero-image { border-radius: 12px; overflow: hidden; }

/* ---- about page ---- */
.about h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; }
.about h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--space-3);
}
.about .about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
  align-items: start;
}
.about .about-image { border-radius: 12px; overflow: hidden; }

/* ---- in the news ---- */
.news h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; }
.news-list { display: grid; gap: 10px; list-style: disc; padding-left: 0; }
.news-list li { list-style: disc; margin-left: 1.2em; }
.news-list li::marker { color: var(--color-brand); }
.news-list a {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}
.news-list a:hover { color: var(--color-active); }

/* ---- testimonials ---- */
.testimonials h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; }
.testimonials .quote {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: #f7f9fb;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 8px 8px 0;
}
.testimonials .quote p { margin: 0 0 1em; }
.testimonials .quote p:last-child { margin-bottom: 0; }
.testimonials .quote footer {
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--color-muted);
}

/* ---- contact form ---- */
.contact h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; }
.contact-form { max-width: 640px; margin-top: var(--space-3); }
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.contact-form label span { color: #c02b0a; font-weight: 400; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  margin-bottom: var(--space-3);
  padding: 12px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-active);
  border-color: var(--color-active);
}
.contact-form button {
  background: var(--color-brand);
  color: #fff;
  border: none;
  font: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
}
.contact-form button:hover { background: var(--color-active); }
.contact-form .form-status {
  display: none;
  margin-top: var(--space-2);
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* ---- shared footer ---- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-4) var(--space-3);
}
.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.site-footer .brand { color: var(--color-brand); }
.site-footer .brand span { color: var(--color-footer-text); }
.site-footer .copyright { margin: 0; color: #ccc; font-size: 0.9rem; }
.footer-nav ul { display: flex; gap: var(--space-3); }
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-footer-text);
}
.footer-nav a:hover { color: var(--color-brand); }

/* ---- responsive (single DOM, reflowed via media queries) ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .about .about-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav--open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: var(--space-3); box-shadow: 0 8px 16px rgba(0,0,0,.1); z-index: 50; }
  .nav--open ul { flex-direction: column; gap: var(--space-2); }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .footer-nav ul { flex-wrap: wrap; gap: var(--space-2); }
}
