/* Global Reset and Variables */
:root {
  /* Color System */
  --primary-navy: #3c5a70;
  --primary-navy-dark: #2a3f52;
  --primary-gray: #f5f5f5;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.4);
  --overlay-light: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.3);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #3c5a70 0%, #2a3f52 100%);
  --gradient-contact: linear-gradient(225deg, #3c5a70 0%, #2a3f52 100%);

  /* Shadows */
  --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-padding: 5rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-navy);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-brand:hover {
  transform: translateY(-2px);
}

.nav-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  transition: var(--transition-smooth);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-navy);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.carousel-caption {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  z-index: 10;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 20;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator.active {
  background: white;
  transform: scale(1.1);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.hero-content .container {
  text-align: center;
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.hero-kicker::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #8ee4ff;
  box-shadow: 0 0 0 4px rgba(142, 228, 255, 0.35);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

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

.btn-submit {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Section Styles */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title-white {
  color: white;
}

/* Services Section */
.services-section {
  padding: var(--section-padding) 0;
  background: white;
}

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

.service-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

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

.service-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-title {
  color: var(--primary-navy);
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Process Section */
.process-section {
  padding: var(--section-padding) 0;
  background: #f8f9fa;
}

.process-header {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

.process-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.process-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.process-flow {
  position: relative;
  margin-top: 3rem;
  padding: 2.75rem 2.25rem;
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: var(--shadow-elegant);
  overflow: hidden;
  isolation: isolate;
}

.process-flow::before,
.process-flow::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: -1;
}

.process-flow::before {
  top: -120px;
  left: -60px;
  background: rgba(60, 90, 112, 0.3);
}

.process-flow::after {
  bottom: -140px;
  right: -80px;
  background: rgba(42, 63, 82, 0.4);
}

.process-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-navy);
  margin-bottom: 2rem;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  z-index: 1;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(60, 90, 112, 0),
    rgba(60, 90, 112, 0.35),
    rgba(60, 90, 112, 0)
  );
  opacity: 0;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .process-card {
    max-width: 320px;
  }

  .process-grid::before {
    opacity: 1;
  }
}

.process-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(60, 90, 112, 0.12);
  padding: 1.75rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 45px rgba(30, 41, 59, 0.08);
  transition: var(--transition-smooth);
  width: 100%;
  margin: 0 auto;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 90, 112, 0.35);
  box-shadow: 0 25px 50px rgba(30, 41, 59, 0.15);
}

.process-number {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #3c5a70, #5c7fa0);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(60, 90, 112, 0.35);
}

.process-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.process-text {
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.process-tag {
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(60, 90, 112, 0.12);
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.process-tag svg {
  width: 1rem;
  height: 1rem;
}

/* Why Section */
.why-section {
  padding: var(--section-padding) 0;
  background: white;
}

.why-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.why-card {
  background: #f9fafb;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(60, 90, 112, 0.12);
  box-shadow: 0 15px 35px rgba(30, 41, 59, 0.08);
  transition: var(--transition-smooth);
  height: 100%;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 90, 112, 0.25);
  box-shadow: 0 25px 45px rgba(30, 41, 59, 0.15);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(60, 90, 112, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
}

.why-icon svg {
  stroke-width: 1.5;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.why-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--gradient-contact);
  position: relative;
  overflow: hidden;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 75rem;
  margin: 0 auto;
}

.contact-info {
  color: white;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-value:hover {
  color: white;
}

.contact-logo-section {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.contact-benefits {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
}

.benefits-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.benefits-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Contact Form */
.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
}

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

.form-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-input.error,
.form-textarea.error {
  border-color: #ff6b6b;
}

.form-input.error + .form-error,
.form-textarea.error + .form-error {
  display: block;
}

/* Footer */
.footer {
  background: #1a2332;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

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

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: -100px;
  right: 2rem;
  background: white;
  box-shadow: var(--shadow-elegant);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  min-width: 300px;
  z-index: 2000;
  transition: bottom 0.3s ease;
}

.toast.show {
  bottom: 2rem;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-message {
  color: var(--text-primary);
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

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

  .carousel-control {
    display: none;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

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

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

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

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

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

  .hero-description {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem;
  }

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

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

/* Print Styles */
@media print {
  .header,
  .carousel-control,
  .carousel-indicators,
  .toast {
    display: none;
  }

  .hero-section {
    height: auto;
    min-height: auto;
  }

  .carousel-item img {
    display: none;
  }

  .hero-content {
    position: static;
    background: none;
  }

  .hero-title,
  .hero-description {
    color: var(--text-primary);
  }
}
