/* CSS Variables from design system */
:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #3e8ae5 ;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
}

/* Typography */
h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

.text-primary {
  color: var(--primary);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}

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

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

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

.btn-outline:hover {
  background-color: var(--accent);
}

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

.btn-secondary:hover {
  background-color: var(--secondary);
  opacity: 0.9;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: var(--font-weight-medium);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.nav-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-link-mobile {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link-mobile:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 40rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-image {
  position: relative;
}

.hero-image-container {
  background: linear-gradient(to right, #3e8ae5, #c8ebfe);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(3, 2, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.badge-title {
  font-weight: var(--font-weight-medium);
}

.badge-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: rgba(236, 236, 240, 0.3);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-subtitle {
  font-size: 1.5rem;
}

.about-paragraph {
  color: var(--muted-foreground);
}

.quote-box {
  background-color: rgba(3, 2, 19, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
}

.quote-text {
  font-style: italic;
  color: var(--foreground);
}

.quote-author {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.about-img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background);
  border-radius: var(--radius);
}

.value-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(3, 2, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.value-title {
  margin-bottom: 1rem;
}

.value-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Team Section */
.team {
  padding: 5rem 0;
}

.team-carousel {
  position: relative;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.carousel-btn {
  width: 3rem;
  height: 3rem;
  background-color: rgba(3, 2, 19, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  color: var(--primary);
}

.carousel-btn:hover:not(:disabled) {
  background-color: rgba(3, 2, 19, 0.2);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.team-card {
  flex: 0 0 calc(33.333% - 1.333rem);
  margin: 0 0.667rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.team-card-content {
  padding: 1.5rem;
  text-align: center;
}

.team-member-image {
  position: relative;
  margin-bottom: 1.5rem;
}

.member-photo {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid rgba(3, 2, 19, 0.1);
  transition: border-color 0.3s ease;
}

.team-card:hover .member-photo {
  border-color: rgba(3, 2, 19, 0.2);
}

.member-badge {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.member-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.member-title {
  color: var(--primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
}

.member-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.member-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(3, 2, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: background-color 0.2s;
}

.member-link:hover {
  background-color: rgba(3, 2, 19, 0.2);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dot.active {
  background-color: var(--primary);
}

.carousel-dot:not(.active) {
  background-color: rgba(3, 2, 19, 0.2);
}

.carousel-dot:not(.active):hover {
  background-color: rgba(3, 2, 19, 0.4);
}

/* Team CTA */
.team-cta {
  text-align: center;
  margin-top: 4rem;
}

.team-cta-content {
  background-color: rgba(3, 2, 19, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  margin: 0 auto;
}

.team-cta-title {
  margin-bottom: 1rem;
}

.team-cta-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.team-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-image {
  position: relative;
}

.service-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.service-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-content {
  padding: 1.5rem;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
}

.service-arrow {
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.service-card:hover .service-arrow {
  color: var(--primary);
  transform: translateX(0.25rem);
}

.service-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1rem;
}

.service-features li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.service-features li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* Impact Section */
.impact {
  padding: 5rem 0;
  background-color: rgba(236, 236, 240, 0.3);
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.impact-stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background);
  border-radius: var(--radius);
}

.impact-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(3, 2, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.impact-number {
  font-size: 2rem;
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.impact-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
}

.impact-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonials {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 3rem;
}

.testimonials-title {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: rgba(236, 236, 240, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-quote {
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: var(--font-weight-medium);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form-title {
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: var(--font-weight-medium);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input-background);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: rgba(236, 236, 240, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(3, 2, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-title {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
}

.contact-info-detail {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.emergency-card {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.emergency-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emergency-title {
  color: var(--primary-foreground);
}

.emergency-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  text-decoration: none;
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-title {
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary-foreground);
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-foreground);
  font-size: 0.875rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  padding: 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
}

.newsletter-btn:hover {
  background-color: var(--secondary);
  opacity: 0.9;
}

.footer-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--primary-foreground);
}

.footer-tax-info {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-tax-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

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

  .mobile-menu-btn {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  /* Team responsive */
  .team-card {
    flex: 0 0 calc(50% - 1rem);
  }

  .team-cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
  }

  /* Team mobile */
  .team-card {
    flex: 0 0 calc(100% - 2rem);
  }

  .team-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .team-cta-buttons .btn {
    width: 100%;
  }
}