/* ===== CSS Variables / Theme ===== */
:root {
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(215, 25%, 27%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 27%);
  --primary: hsl(222, 84%, 11%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 40%, 96.1%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(217, 91%, 60%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 32%, 91%);
  --input: hsl(214, 32%, 91%);
  --radius: 0.5rem;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-heading: Inter, system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

main { flex: 1; }

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

/* ===== Header / Nav ===== */
header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo-link {
  flex-shrink: 0;
  display: inline-flex;
}

.logo-link img {
  height: 5rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

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

.nav-links a, .nav-contact a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.15s ease;
}

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

.nav-divider {
  width: 1px;
  height: 1.25rem;
  background-color: var(--border);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-contact a { color: var(--muted-foreground); }
.nav-contact a:hover { color: var(--accent); }

/* Mobile hamburger */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
}

/* Mobile nav */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--card);
  padding-bottom: 1rem;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

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

.nav-mobile-contact {
  padding: 0.75rem 1.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-mobile-contact a { color: var(--muted-foreground); }
.nav-mobile-contact a:hover { color: var(--accent); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
  margin-top: auto;
}

.footer-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-section h3,
.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-section p,
.footer-section address {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-section .contact-list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-section .contact-list a {
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.footer-section .contact-list a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.footer-bottom p + p { margin-top: 0.75rem; }

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

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

.btn-accent:hover { background-color: hsl(217, 91%, 52%); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(to bottom right, var(--primary), hsl(222, 84%, 16%));
  color: var(--primary-foreground);
}

.hero-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

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

.hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero p { font-size: 1.125rem; }
}

/* ===== Section padding ===== */
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* ===== Cards ===== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ===== Home page sections ===== */
.intro-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.intro-section p {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.75;
}

.services-overview {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-overview-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.services-overview h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-item:hover {
  border-color: hsla(217, 91%, 60%, 0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.service-item .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.service-item .icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-item span {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* Who We Work With */
.clients-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.clients-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.clients-section > p {
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.bullet-list li .dot {
  color: var(--accent);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Approach cards */
.approach-section {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

.approach-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
}

.approach-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.approach-card p {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.75;
}

/* CTA section */
.cta-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cta-section p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* ===== Services Page ===== */
.services-page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.services-page-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.services-page-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.services-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-card-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.service-card li .dot {
  color: var(--accent);
  font-size: 0.625rem;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

/* ===== How It Works Page ===== */
.how-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.how-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--accent-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* ===== About Page ===== */
.about-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.about-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.about-section .body-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.75;
}

/* ===== Contact Page ===== */
.contact-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-section > p {
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-info {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 2;
}

.contact-info a {
  color: var(--accent);
  transition: text-decoration 0.15s;
}

.contact-info a:hover { text-decoration: underline; }

.contact-form {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.form-field textarea { resize: vertical; min-height: 6rem; }

/* ===== Privacy / Terms Pages ===== */
.legal-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.legal-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.75;
}

.legal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted-foreground);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.legal-meta strong { color: var(--foreground); }

/* ===== 404 ===== */
.notfound-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.notfound-section h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.notfound-section p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
