/* ============================================
   DoniHelms.com — Clean, modern restyle
   Inspired by the calm, spacious flow of
   CyberTalkForBoomers.com
   ============================================ */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --border: #e7e5e4;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

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

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

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

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

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

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

.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

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

/* ---------- Sections ---------- */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Philosophy / Beliefs ---------- */
.beliefs-list {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
}

.belief-item {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  box-shadow: var(--card-shadow);
}

.belief-item p {
  margin: 0;
  color: var(--text);
}

/* ---------- Music page ---------- */
.music-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.music-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.music-hero p {
  opacity: 0.85;
  max-width: 32rem;
  margin: 0 auto;
}

.story-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.story-block:last-child {
  border-bottom: none;
}

.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.story-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.story-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ---------- About / Doni Who ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 5.5rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--card-shadow);
}

.bio-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cert-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.cert-group h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cert-group ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cert-group li {
  padding: 0.2rem 0;
}

.cert-group li::before {
  content: "• ";
  color: var(--accent);
}

/* ---------- Student Links ---------- */
.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-item:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow);
}

.resource-icon {
  width: 42px;
  height: 42px;
  background: #eff6ff;
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.resource-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.resource-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.download-btn {
  margin-left: auto;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.download-btn:hover {
  background: var(--accent-hover);
}

.note-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #d6d3d1;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .story-block {
    grid-template-columns: 1fr;
  }

  .story-photo {
    max-width: 180px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .resource-item {
    flex-wrap: wrap;
  }

  .download-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
