@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #c45c26;
  --color-neutral: #4a5568;
  --color-bg: #f7fafc;
  --color-bg-alt: #edf2f7;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.font-display {
  font-family: 'DM Serif Display', Georgia, serif;
}

.bg-flat-primary { background-color: var(--color-primary); }
.bg-flat-accent { background-color: var(--color-accent); }
.text-flat-primary { color: var(--color-primary); }
.text-flat-accent { color: var(--color-accent); }

.card-flat {
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-flat:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.btn-flat {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  transition: background-color 0.2s;
}
.btn-flat:hover {
  background-color: var(--color-primary-light);
}
.btn-flat-accent {
  background-color: var(--color-accent);
}
.btn-flat-accent:hover {
  background-color: #a04a1f;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  left: -15px;
}
.logo-brand img {
  display: block;
  vertical-align: middle;
  bottom: -2px;
  position: relative;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { bottom: -6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  .main-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav li:last-child {
    border-bottom: none;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem;
  }
  .nav-open .main-nav {
    display: flex !important;
  }
}
@media (min-width: 768px) {
  .main-nav {
    display: flex !important;
  }
}

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

.contact-card {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 2rem 2rem 2rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.contact-card .contact-label {
  font-size: 0.8125rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.contact-card address,
.contact-card .contact-value {
  color: #475569;
  line-height: 1.5;
}
.contact-card a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contact-card a:hover {
  border-bottom-color: var(--color-primary);
}
.contact-card .contact-block + .contact-block {
  margin-top: 1.5rem;
}
.contact-map-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
}
.contact-map-wrap img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.contact-map-caption {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.contact-email-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.btn-copy-email:hover {
  color: var(--color-primary);
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.btn-copy-email.copied {
  color: #0f766e;
  background: #ccfbf1;
  border-color: #99f6e4;
}
.btn-copy-icon {
  display: inline-flex;
  line-height: 0;
}

.hero-with-bg {
  min-height: 65vh;
  max-height: 560px;
}

.hero-under-header {
  margin-top: -5rem;
  padding-top: 5rem;
}

.hero-bg-image {
  background-image: url('../images/header.jpeg');
  background-size: cover;
  background-position: 50% 45%;
  background-repeat: no-repeat;
}

.image-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral);
  font-size: 0.875rem;
}

.site-footer {
  position: relative;
  background: black;
  color: #e5e5e5;
  overflow: hidden;
}
.footer-accent {
  height: 28px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-bottom: -1px;
}
.footer-accent-organic {
  height: 40px;
  border-radius: 60% 40% 50% 50% / 0 0 30% 70%;
  margin-bottom: -1px;
}
.footer-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}
.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.footer-col a,
.footer-col p {
  color: #e5e5e5;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.footer-col a:hover {
  color: #fff;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s, border-color 0.2s;
}
.footer-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-legal {
  font-size: 0.75rem;
  color: #6b7280;
}
.footer-pill-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px;
}
.footer-pill-nav a {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #d1d5db;
  transition: background 0.2s, color 0.2s;
}
.footer-pill-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.footer-pill-nav a.is-active {
  background: #fff;
  color: #1a1a1a;
}
@media (max-width: 767px) {
  .footer-pill-nav {
    display: none;
  }
}

.equipment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 3rem;
  max-width: 48rem;
}
.equipment-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #374151;
}
.equipment-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.equipment-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-primary);
}
@media (max-width: 640px) {
  .equipment-list {
    grid-template-columns: 1fr;
  }
}

.personnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 56rem;
}
@media (max-width: 768px) {
  .personnel-grid {
    grid-template-columns: 1fr;
  }
}
.personnel-list.equipment-list {
  grid-template-columns: 1fr;
  gap: 0.35rem 0;
}
.personnel-list-nested {
  list-style: none;
  padding: 0;
  margin: 0;
}
.personnel-list-nested > li {
  margin-bottom: 0.75rem;
}
.personnel-list-nested ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0 1.5rem;
}
.personnel-list-nested ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: #374151;
  margin-bottom: 0.2rem;
}
.equipment-dot-sm {
  width: 0.35rem;
  height: 0.35rem;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0;
}
.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #374151;
}
.cert-bullet {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--color-accent);
  margin-top: 0.35rem;
}
.cert-list li:last-child {
  margin-bottom: 0;
}

.cert-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-accent);
  margin-top: 0.4rem;
}

.atestate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.atestate-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #374151;
  line-height: 1.5;
}
.atestate-list li:last-child {
  margin-bottom: 0;
}

.services-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-detail-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.services-detail-item .equipment-icon {
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.services-detail-item h2 {
  margin-top: 0;
}
.services-detail-item p {
  margin: 0;
  line-height: 1.6;
}
