/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --secondary-color: #98fb98; /* Mint Green */
  --accent-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f4f7f6;
  --gradient-blue: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --gradient-mint: linear-gradient(135deg, #98fb98 0%, #76e876 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header & Nav */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

nav, .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping gracefully if needed */
  gap: 10px; /* Add gap for wrapped items */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: "Playfair Display", serif;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
}

.nav-links a:hover {
.no-op-placeholder {
  /* This is a no-op placeholder for locating file context */
}
  color: var(--primary-color);
}

.nav-cta {
  background: var(--gradient-blue);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping */
  flex-shrink: 0; /* Prevent button from shrinking */
}


.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-switcher button {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.lang-switcher button.active {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Tablet / Medium Screen Optimization */
@media (max-width: 1150px) {
  nav, .nav {
    flex-wrap: wrap; /* Ensure wrapping is enabled */
    justify-content: unset; /* Disable space-between to allow margin-auto to work */
  }

  .logo {
    order: 1; /* First item */
  }

  /* Force Button to the Right Side and move up */
  .nav-cta {
    order: 2;
    margin-left: auto; /* Pushes button to the far right */
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .lang-switcher {
      order: 1;
      margin-right: 15px;
  }


  /* Move Links to the bottom row */
  .nav-links {
    order: 3;
    width: 100%; /* Take full width */
    justify-content: center; /* Center links in the new row */
    margin-top: 15px;
    gap: 20px;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  /* Increased padding to account for the taller stacked header */
  padding-top: 220px; 
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("../images/hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* Removed fixed margin-top to avoid conflicts with padding */
  margin-top: 0;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center; /* Center headings, paragraphs and buttons */
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0 auto 30px;
  color: var(--text-light);
  max-width: 54ch; /* Keep long lines readable and avoid overly wide buttons */
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center; /* Center the button group */
  flex-wrap: wrap; /* Allow buttons to wrap on narrow screens */
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  white-space: normal; /* Allow text wrap for long copy */
  text-align: center;
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  white-space: normal; /* Allow text wrap for long copy */
  text-align: center;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  background: #1a1a1a;
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links h4 {
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #ccc;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Make hero buttons stack and fit nicely on small screens */
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Lead Gen Pop-up */
.popup {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: bottom 0.5s ease, opacity 0.2s ease;
  max-width: 520px;
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.popup.show {
  /* Lift popup above floating controls (WhatsApp, etc.) */
  bottom: 90px;
}

.popup-close {
  cursor: pointer;
  font-weight: bold;
}

/* Popup stacking & sizing on narrow screens */
@media (max-width: 480px) {
  .popup {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 16px;
    width: calc(100% - 32px);
    left: 50%;
    transform: translateX(-50%);
  }

  .popup .btn-primary {
    width: 100%;
    max-width: 340px;
    padding: 10px 12px !important;
  }

  .popup.show {
    bottom: 110px; /* give extra room on very small screens */
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 1s ease forwards;
}

/* Smile Motif */
.smile-btn:hover::after {
  content: " \263A";
  opacity: 1;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 20px;
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-author {
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
}

/* Our Story / Journey Map - ensure image centers and scales on small screens */
.journey-map {
  text-align: center;
  margin-top: 50px; /* default spacing for desktop */
}
.journey-map img {
  width: 100% !important; /* override inline max-width to make responsive */
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 480px) {
  .journey-map {
    margin-top: 30px;
    padding: 0 12px;
  }
  .journey-map img {
    max-width: 100% !important;
    border-radius: 14px;
  }
}
