:root {
  --primary: #1B3A5C;
  --primary-light: #2C4F74;
  --accent: #D4A843;
  --accent-hover: #B8912E;
  --bg: #F9F7F2;
  --bg-alt: #EFEBE0;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-light: #FFFFFF;
  --text-muted: #6B7280;
  --border: #D0CDB8;
  --link: #1B3A5C;
  --link-hover: #D4A843;
  --shadow-sm: 0 1px 4px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.10);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1120px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.navbar-logo:hover {
  color: var(--primary-light);
}

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.navbar-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--primary);
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary), var(--primary-light));
  color: var(--text-light);
}

.hero h1 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-light);
}

.hero .hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-dark);
}

.hero .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-dark);
}

.hero .btn-outline {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-light);
  color: var(--text-light);
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== CREDENTIALS STRIP ===== */
.credentials {
  background: var(--primary);
  color: var(--text-light);
  padding: 40px 0;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.credential-item h4 {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.credential-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  text-align: center;
  padding: 48px 0;
  background: var(--bg-alt);
}

.cta-strip h2 {
  margin-bottom: 16px;
}

.cta-strip p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cta-strip .cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 48px 0 40px;
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.page-hero h1 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-content p {
  margin-bottom: 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  max-width: 560px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item p {
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a,
  .navbar-links .btn {
    width: 100%;
    text-align: center;
  }

  .navbar-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 0 48px;
  }

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

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

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

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

  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-strip .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }

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

  .navbar-logo {
    font-size: 0.8rem;
  }
}