/* =====================================================
   DrDaveRogers.com — Site Stylesheet
   ===================================================== */

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

:root {
  --navy:    #1a2744;
  --navy-lt: #243460;
  --accent:  #2e6da4;
  --accent-lt: #4a90c8;
  --gold:    #c9a84c;
  --text:    #2c2c2c;
  --text-lt: #555;
  --bg:      #ffffff;
  --bg-alt:  #f4f6f9;
  --border:  #dce3ee;
  --max-w:   1100px;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

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

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }
.section-alt{ background: var(--bg-alt); }

/* --- Header / Nav --- */
header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.site-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-title span { color: var(--gold); }

nav { display: flex; gap: 0; }

nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 1.1rem;
  height: 64px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover, nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}

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

/* --- Hero Banner --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero-text .tagline {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: 1.7;
}

.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

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

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; color: #fff; }

/* --- Section Headings --- */
.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-subheading {
  font-size: 1rem;
  color: var(--text-lt);
  margin-bottom: 2.5rem;
}

.section-heading-line {
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* --- Experience Cards --- */
.experience-list { display: flex; flex-direction: column; gap: 1.5rem; }

.exp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.exp-logo {
  width: 100px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #f8f8f8;
  padding: 6px;
  flex-shrink: 0;
}

.exp-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.exp-body .company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.exp-body .dates {
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-bottom: 0.6rem;
}

.exp-body p { font-size: 0.93rem; color: var(--text); }

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

.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.edu-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.edu-card .school { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-bottom: 0.15rem; }
.edu-card .dates  { font-size: 0.82rem; color: var(--text-lt); margin-bottom: 0.5rem; }
.edu-card p       { font-size: 0.9rem; }

/* --- Skills Grid --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.skill-group h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
}

.skill-group ul { list-style: none; padding: 0; }
.skill-group ul li {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-left: 1rem;
  position: relative;
}
.skill-group ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- Analytics Approach: Feature Cards --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.approach-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.approach-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.approach-card-body { padding: 1.4rem; flex: 1; }

.approach-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.approach-card-body .card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.approach-card-body p { font-size: 0.92rem; color: var(--text); }

.approach-card-body ul {
  margin: 0.75rem 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.approach-card-body ul li { margin-bottom: 0.35rem; }

/* --- Architecture page --- */
.arch-content { max-width: 780px; margin: 0 auto; }
.arch-content img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem 0; width: 100%; }
.arch-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 2rem 0 0.75rem; }
.arch-content p  { margin-bottom: 1rem; }

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

.portfolio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-decoration: none;
}

.portfolio-card-thumb {
  height: 180px;
  background: var(--navy-lt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.portfolio-card-body { padding: 1.25rem; flex: 1; }

.portfolio-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.portfolio-card-body p { font-size: 0.88rem; color: var(--text-lt); }

.portfolio-card-body .read-more {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
}

/* --- Portfolio Detail --- */
.case-study { max-width: 760px; margin: 0 auto; }
.case-study h1 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.25; }

.case-block { margin-bottom: 1.5rem; }
.case-block h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.case-block p  { font-size: 1rem; color: var(--text); }
.case-block ul { margin-left: 1.2rem; font-size: 1rem; color: var(--text); }
.case-block ul li { margin-bottom: 0.35rem; }

.case-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 600px; }

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand h2 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.footer-brand p  { font-size: 0.88rem; }

.footer-contact p { font-size: 0.9rem; margin-bottom: 0.35rem; }
.footer-contact a { color: var(--gold); }
.footer-contact a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Resume download badge --- */
.resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}
.resume-badge:hover { background: #d4af5c; color: var(--navy); text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-photo { width: 140px; height: 170px; }
  .hero-actions { justify-content: center; }

  .exp-card { grid-template-columns: 1fr; }
  .exp-logo { width: 80px; height: 42px; }

  .footer-inner { flex-direction: column; }

  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-lt);
    flex-direction: column;
    padding: 0.5rem 0;
  }
  nav.open { display: flex; }
  nav a { height: 48px; padding: 0 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); border-left: 3px solid transparent; }
  nav a:hover, nav a.active { border-bottom: 1px solid rgba(255,255,255,0.08); border-left-color: var(--gold); }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .page-hero { padding: 2rem 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
