/* ============================================
   damionasaunders.com — Main Stylesheet
   Colour: #882433 (burgundy/crimson)
   Font:   Open Sans (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #882433;
  --accent-dark:   #5e1824;
  --accent-light:  rgba(136, 36, 51, 0.08);
  --text-primary:  #1a1a1a;
  --text-secondary:#555;
  --text-muted:    #888;
  --bg-primary:    #ffffff;
  --bg-secondary:  #f7f5f2;
  --bg-dark:       #111111;
  --border:        rgba(0,0,0,0.1);
  --border-light:  rgba(0,0,0,0.06);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --nav-h:         56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-logo {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-logo span { color: rgba(255,255,255,0.6); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.55);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* --- Page header band --- */
.page-header {
  background: var(--accent);
  padding: 36px 32px 30px;
}
.page-header h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}
.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  margin-top: 6px;
}

/* Dark page header variant */
.page-header--dark {
  background: var(--bg-dark);
}

/* Green page header variant (Wales) */
.page-header--green {
  background: linear-gradient(160deg, #0d2b0d 0%, #1e5c1e 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 160px;
}

/* --- Section utility --- */
.section { padding: 40px 32px; }
.section + .section { border-top: 1px solid var(--border-light); }
.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* --- Cards --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

/* --- Grid helpers --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* --- Pill / badge --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.pill--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* --- Footer --- */
.footer {
  background: var(--accent);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer p { color: rgba(255,255,255,0.55); font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* --- Timeline --- */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.tl-year { font-size: 12px; color: var(--text-muted); padding-top: 4px; text-align: right; }
.tl-right {
  padding-bottom: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
  position: relative;
}
.tl-right::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
}
.tl-right--current { border-left-color: var(--accent); }
.tl-place { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tl-place--current { color: var(--accent); }
.tl-desc { font-size: 13px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--accent-dark); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 20px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .page-header { padding: 24px 16px 20px; }
  .section { padding: 28px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 10px; text-align: center; }
}
