/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #ff9800;
  --dark-blue: #112244;
  --white: #ffffff;
  --light-gray: #ececec;
  --text-gray: rgba(0, 0, 0, 0.7);
  --white-transparent: rgba(255, 255, 255, 0.8);
  --navbar-bg: rgba(17, 34, 68, 0.32);

  /* Typography Scale - Viyamar Elite */
  --font-family: "Outfit", sans-serif;
  --font-size-display: 40px;
  --font-size-h1: 48px;
  --font-size-h2: 32px;
  --font-size-h3: 20px;
  --font-size-body-lead: 18px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-btn: 18px;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-base: 1.5;
  --lh-relaxed: 1.6;
}

body {
  font-family: var(--font-family);
  color: var(--dark-blue);
  overflow-x: hidden;
  background-color: var(--white);
  font-size: var(--font-size-body);
  line-height: var(--lh-base);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 40px; /* Reduced from 65px for zoom-out feel */
  left: 50%;
  width: 80%; /* Increased from 70% to match new proportions */
  transform: translateX(-50%);
  z-index: 1000;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.navbar-content {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.logo img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(
      180deg,
      rgba(17, 34, 68, 0.8) 0%,
      rgba(17, 34, 68, 0.6) 0%
    ),
    url("./hero-image.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 10%;
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo img {
  width: 280px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: var(--font-size-body-lead);
  font-weight: 400;
  color: var(--white-transparent);
  margin-bottom: 32px;
  line-height: var(--lh-relaxed);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  font-size: var(--font-size-btn);
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Features Section */
.features-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 64px 10%;
  background: var(--white);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  max-width: 240px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
}

.feature-item p {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.3;
}

/* CTA Banner */
.cta-banner {
  background: var(--dark-blue);
  padding: 80px 10%;
  position: relative;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.cta-text {
  max-width: 700px;
}

.cta-text h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  line-height: var(--lh-tight);
}

.cta-logo img {
  width: 220px;
}

/* Services Section */
.services-section {
  padding: 80px 10%;
  background: var(--white);
}

.services-section h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid rgba(17, 34, 68, 0.1);
  border-radius: 24px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 34, 68, 0.05);
  transition: all 0.3s ease;
  min-height: 480px; /* Reduced and more balanced */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17, 34, 68, 0.12);
  border-color: var(--primary-color);
}

.service-icon {
  height: 80px; /* Standardized height */
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-icon svg {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.service-content {
  flex-grow: 1; /* Pushes the link to the bottom */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-content h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.3;
}

.service-content p {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.6;
}

.service-link {
  margin-top: 32px;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.service-link:hover {
  transform: translateX(5px);
}

/* Benefits Section */
.benefits-section {
  background: var(--primary-color);
  padding: 80px 10%;
  position: relative;
  overflow: hidden;
}

.benefits-section h2 {
  font-size: var(--font-size-display);
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 56px;
}

.benefits-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.benefit-item img {
  width: 32px;
  height: 32px;
}

.benefit-item h3 {
  font-size: var(--font-size-h2);
  font-weight: 300;
  color: var(--dark-blue);
}

.benefits-logo {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.benefits-logo img {
  width: 280px;
  opacity: 0.2; /* Reduced opacity for more subtle/premium look */
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 10%;
  background: var(--white);
}

.testimonials-section h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--dark-blue);
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  height: 600px;
}

.testimonial-card {
  position: absolute;
  background: var(--light-gray);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card:nth-child(1) {
  left: 0;
  top: 0;
}

.testimonial-card:nth-child(2) {
  left: 380px;
  top: 40px;
}

.testimonial-card:nth-child(3) {
  left: 760px;
  top: 0;
}

.testimonial-card:nth-child(4) {
  left: 380px;
  top: 380px;
}

.testimonial-card:nth-child(5) {
  left: 760px;
  top: 340px;
}

.testimonial-text {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--dark-blue);
  line-height: var(--lh-relaxed);
  font-style: italic;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars span {
  font-size: 18px;
  color: var(--primary-color);
}

.testimonial-author {
  font-size: var(--font-size-small);
  font-weight: 700;
  color: var(--dark-blue);
}

/* FAQ Section */
.faq-section {
  background: var(--dark-blue);
  padding: 80px 10%;
}

.faq-section h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 54px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.faq-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s ease;
}

.faq-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-card h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.faq-card p {
  font-size: var(--font-size-body);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--lh-relaxed);
}

/* Contact Section */
.contact-section {
  padding: 64px 10%;
  background: var(--white);
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1110px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item img {
  width: 24px;
  height: 24px;
}

.contact-info h4 {
  font-size: var(--font-size-h3);
  font-weight: 400;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.contact-info p {
  font-size: var(--font-size-body);
  font-weight: 400;
  color: var(--dark-blue);
}

/* Footer */
.footer {
  background: var(--white);
  padding: 64px 10% 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.footer-logo img {
  width: 60px;
}

.footer-brand {
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1110px;
  display: flex;
  justify-content: center;
}

.footer-brand img {
  width: 200px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-section,
  .features-section,
  .services-section,
  .benefits-section,
  .testimonials-section,
  .faq-section,
  .contact-section,
  .footer,
  .cta-banner {
    padding-left: 5%;
    padding-right: 5%;
  }

  .testimonials-grid {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .testimonial-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    width: 90%;
    top: 20px;
  }

  .navbar-content {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    padding: 160px 5% 80px;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .features-section {
    flex-direction: column;
    gap: 48px;
  }

  .feature-item {
    max-width: 100%;
  }

  .cta-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

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

  .benefits-content {
    flex-direction: column;
    text-align: center;
  }

  .benefit-item {
    justify-content: center;
  }

  .benefits-logo {
    display: none;
  }

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

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

  .contact-grid {
    flex-direction: column;
    gap: 40px;
  }
}

/* Phone & Email Links */
.phone-link, .email-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.phone-link:hover, .email-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

@media (max-width: 480px) {
  :root {
    --font-size-h1: 32px;
    --font-size-h2: 24px;
    --font-size-h3: 18px;
    --font-size-display: 28px;
  }

  .hero-content h1 {
    line-height: 1.2;
  }

  .btn-primary {
    width: 100%;
  }
}
