/* ============================================
   BC Consulting — Styles
   Light theme: warm southern vibes
   Dark theme: navy (matching CV)
   ============================================ */

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

:root {
  /* Light theme (default) */
  --bg: #F5F0E8;
  --bg-alt: #EDE6D8;
  --text: #2D2A26;
  --text-muted: #6B6560;
  --primary: #C4663A;
  --primary-hover: #A85530;
  --secondary: #D4B896;
  --accent: #5B9BD5;
  --border: #D8D0C4;
  --card-bg: #FFFFFF;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(245, 240, 232, 0.92);
  --toggle-bg: #EDE6D8;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #1A1F2E;
  --bg-alt: #222838;
  --text: #E8E4DC;
  --text-muted: #9A9590;
  --primary: #C4663A;
  --primary-hover: #D4784A;
  --secondary: #D4B896;
  --accent: #5B9BD5;
  --border: #2E3548;
  --card-bg: #222838;
  --card-shadow: rgba(0, 0, 0, 0.25);
  --header-bg: rgba(26, 31, 46, 0.92);
  --toggle-bg: #2E3548;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hero-content {
  max-width: 600px;
}

.hero-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 32px var(--card-shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---------- About ---------- */
.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--card-shadow);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.3s ease;
}

.footer p {
  margin-bottom: 4px;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero {
    min-height: 70vh;
    padding: 60px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

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

  .service-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1rem;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}
