/* ============================================
   Defensible Group — Website Styles
   Dark mode minimalist · Geist Sans · v1.0
   ============================================ */

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

:root {
  /* Color tokens */
  --bg-primary: #0A1628;
  --bg-surface: #0F1F3A;
  --bg-elevated: #14264A;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --border: #1E2A4A;
  --border-strong: #2A3A5A;

  /* Layout tokens */
  --max-width: 1200px;
  --content-width: 800px;

  /* Type scale */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   Header / Nav
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

/* ============================================
   Hero
   ============================================ */

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--bg-surface);
}

/* ============================================
   Section base
   ============================================ */

section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lede {
  color: var(--text-secondary);
  font-size: 1.075rem;
  margin-bottom: 3rem;
  max-width: 36rem;
}

/* ============================================
   Services
   ============================================ */

.services {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

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

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.tier {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  flex-grow: 1;
}

.price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   About
   ============================================ */

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  max-width: 38rem;
  line-height: 1.65;
}

.about-text p:first-of-type {
  color: var(--text-primary);
  font-size: 1.125rem;
}

.about-text .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  font-style: normal;
}

/* ============================================
   Contact
   ============================================ */

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 36rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
  }

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

  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .services,
  .about,
  .contact {
    padding: 4rem 1.5rem;
  }

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

  .about-photo {
    max-width: 200px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
