:root {
  --primary: #0f3b5e;
  --primary-light: #1a5276;
  --primary-dark: #0a2740;
  --accent: #0ea5a0;
  --accent-light: #14b8b3;
  --accent-dark: #0b7e7a;
  --bg: #f8fafc;
  --bg-alt: #eef2f6;
  --bg-dark: #0f1a2e;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #8899aa;
  --text-on-dark: #e2e8f0;
  --border: #dde3ea;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(15, 59, 94, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 59, 94, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --nav-height: 68px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.navbar .logo svg { flex-shrink: 0; }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

.nav-links .btn-nav {
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-links .btn-nav::after { display: none; }
.nav-links .btn-nav:hover { background: var(--accent-dark); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav { display: none; }

/* Page Hero Band */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 160, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

.section-title.light { color: var(--white); }
.section-sub.light { color: rgba(255,255,255,0.7); }

/* Hero (home) */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%, #0a1e33 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,160,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Value Props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Services Grid (Home preview + Services page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(14, 165, 160, 0.1);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Credentials Strip */
.credentials {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.credentials .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-mid);
}

.cred-item strong {
  color: var(--primary);
  font-weight: 600;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(14, 165, 160, 0.08);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

/* About Strip (home page) */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-strip .visual {
  display: flex;
  gap: 16px;
}

.about-strip .visual-block {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.about-strip .visual-block .big-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.about-strip .visual-block h4 {
  font-size: 1.3rem;
  font-weight: 700;
}

.about-strip .visual-block p {
  font-size: 0.85rem;
  opacity: 0.85;
}

.about-strip h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-strip p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* CTA Strip */
.cta-strip {
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.cta-strip h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-strip p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* About / Contact / Legal pages layout */
.content-section {
  padding: 60px 0 80px;
}

.content-block {
  max-width: 820px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 36px 0 12px;
}

.content-block h2:first-child { margin-top: 0; }

.content-block h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 28px 0 8px;
}

.content-block p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-block ul {
  margin: 12px 0 20px 24px;
  color: var(--text-mid);
}

.content-block ul li { margin-bottom: 8px; line-height: 1.6; }

.content-block strong { color: var(--text-dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.about-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

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

.contact-detail h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail p { color: var(--text-mid); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg);
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.1);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .btn { width: 100%; justify-content: center; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.footer .legal-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer .legal-meta strong { color: var(--text-on-dark); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Active page highlighting via body class */
body.page-home .nav-links a[href="index.html"],
body.page-about .nav-links a[href="about.html"],
body.page-services .nav-links a[href="services.html"],
body.page-contact .nav-links a[href="contact.html"] {
  color: var(--primary);
}

body.page-home .nav-links a[href="index.html"]::after,
body.page-about .nav-links a[href="about.html"]::after,
body.page-services .nav-links a[href="services.html"]::after,
body.page-contact .nav-links a[href="contact.html"]::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hamburger { display: flex; }

  .mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 16px 24px;
  }

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

  .mobile-nav ul { list-style: none; }

  .mobile-nav ul li { margin-bottom: 4px; }

  .mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav ul li:last-child a { border-bottom: none; }

  .mobile-nav ul li a.active { color: var(--primary); }

  .mobile-nav .btn-nav-mobile {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
  }

  .hero h1 { font-size: 2rem; }
  .hero { padding: 110px 0 60px; }
  .hero p { font-size: 1rem; }

  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }

  .value-grid { grid-template-columns: 1fr; gap: 20px; }

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

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

  .about-strip { grid-template-columns: 1fr; gap: 32px; }

  .about-strip .visual { order: -1; }

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

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

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

  .credentials .container { gap: 20px; justify-content: flex-start; }

  .section { padding: 48px 0; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

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