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

:root {
  --blue-dark: #1a3a5c;
  --blue-mid: #2b6cb0;
  --blue-light: #ebf4ff;
  --green-dark: #276749;
  --green-mid: #38a169;
  --green-light: #f0fff4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

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

a:hover {
  color: var(--green-mid);
}

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

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--green-mid);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-mid);
  border-bottom-color: var(--green-mid);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform 0.2s;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
  }
}

/* ===== Hero (Home) ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--green-light);
}

.cta-section h2 {
  color: var(--green-dark);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

/* ===== Grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card h3 {
  color: var(--blue-mid);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ===== Team Cards ===== */
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--blue-mid);
  font-size: 0.9rem;
  font-weight: 500;
  border: 3px solid var(--gray-200);
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-card > p:last-child {
  color: var(--gray-600);
  font-size: 0.93rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-card-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 1.5rem 1.75rem;
}

.service-card-header h2 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 0;
  font-weight: 600;
}

.service-card-body {
  padding: 1.75rem;
  flex: 1;
}

.service-card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.service-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card-body ul li {
  color: var(--gray-600);
  font-size: 0.93rem;
  padding-left: 1.25rem;
  position: relative;
}

.service-card-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--green-mid);
  border-radius: 50%;
}

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

/* ===== Contact Form ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.required {
  color: #e53e3e;
}

.optional {
  color: var(--gray-600);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

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

  .form-group.full-width {
    grid-column: 1;
  }
}

/* ===== Legal Content ===== */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

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

.legal-content h3 {
  font-size: 1.15rem;
  color: var(--gray-800);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--gray-600);
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2.5rem 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer p + p {
  margin-top: 0.5rem;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

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