:root {
  --primary-color: #005f73; /* Deep Teal */
  --primary-color-light: #0a9396; /* Lighter Teal */
  --light-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --dark-text: #212529;
  --muted-text: #6c757d;
  --border-color: #dee2e6;
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Lora", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  color: var(--muted-text);
  margin-bottom: 1rem;
}
p.subtitle {
  font-size: 1.25rem;
  color: var(--dark-text);
}

/* --- Animations --- */
.animate-on-load {
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}
.animate-on-load.subtitle {
  animation-delay: 0.2s;
}
.animate-on-load.btn {
  animation-delay: 0.4s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- Header --- */
.main-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-text);
  text-decoration: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.main-nav a {
  color: var(--muted-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--dark-text);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-bg);
}
.btn-primary:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 95, 115, 0.2);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 6rem 0;
  background-color: var(--secondary-bg);
}

/* --- Page Header --- */
.page-header {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--light-bg) 100%);
}

/* --- General Sections --- */
section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background-color: var(--light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}
.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* --- Stats Section --- */
.stats-section {
  background-color: var(--secondary-bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}
.stat-label {
  font-size: 1rem;
  color: var(--muted-text);
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--secondary-bg);
  text-align: center;
}
.cta-section .container {
  max-width: 700px;
}
.cta-section h2 {
  font-size: 2.2rem;
}

/* --- Services Page --- */
.service-card {
  background-color: var(--light-bg);
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* --- About Page --- */
.about-page-section .about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-page-section ul {
  list-style: none;
  padding-left: 0;
}
.about-page-section li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.about-page-section li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* --- Contact Page --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  background-color: var(--secondary-bg);
  padding: 3rem;
  border-radius: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--dark-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.contact-info p {
  margin-bottom: 1.5rem;
}
.contact-info a {
  color: var(--dark-text);
  text-decoration: none;
}
.contact-info a:hover {
  color: var(--primary-color);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 4rem 20px;
  max-width: 900px;
  min-height: 60vh;
}
.legal-page h1 {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.legal-page h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-page > p:first-of-type {
  color: var(--muted-text);
  margin-bottom: 2rem;
  font-style: italic;
}
.legal-page ul,
.legal-page ol {
  margin-left: 20px;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.main-footer {
  padding: 3rem 0 2rem;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--dark-text);
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--muted-text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  section {
    padding: 4rem 0;
  }
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
