:root {
  --primary: #1f2041; /* Navy Blue */
  --accent: #4a90e2; /* Bright Blue */
  --bg: #ffffff; /* White Background */
  --text: #333333; /* Dark Grey Text */
  --text-light: #444444; /* Light Grey Text */
  --surface: #f8f9fa; /* Light Grey Surface */
  --border: #e2e8f0; /* Border Color */
  --radius: 8px;
  --font-main: "Inter", sans-serif;
  --shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --whatsapp-green: #25d366;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- 2. NAVBAR --- */
.navbar {
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 45px;
  width: auto; /* Allow width to scale */
  display: block; /* Remove inline gap */
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 550;
  transition: color 0.2s;
  transition: font-weight 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  font-weight: bold;
}

/* Disabled Navigation Links */
.nav-links a.disabled {
  opacity: 0.4; /* Washes out the text to look inactive */
  cursor: not-allowed; /* Shows the red circle/slash 'disabled' cursor */
}

/* Cancel out your existing hover effects for disabled items */
.nav-links a.disabled:hover {
  color: var(--text-light); /* Prevents the color from changing to primary */
  font-weight: 500; /* Prevents the text from bolding */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
}

/* --- 3. HERO & LAYOUT --- */
.hero-container {
  display: flex;
  /* Calculate min-height to ensure full screen feel, minus navbar */
  min-height: calc(100vh - 70px);
  padding: 2rem 5%;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Info Section */
.info-block {
  flex: 1;
  max-width: 600px;
}

.info-block h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.info-block p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--accent);
}

/* Form Section */
.form-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.form-header {
  margin-bottom: 1.5rem;
}
.form-header h2 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}
.form-header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.iti {
  width: 100%;
}

button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
button[type="submit"]:hover {
  background: #2c2e5e;
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Add red asterisk to labels of required fields */
.form-group label:has(+ [required])::after,
.form-group label:has(+ .iti [required])::after {
  content: " *";
  color: #dc2626; /* Match your error-msg red */
  font-weight: bold;
}

/* Invalid input */

/* Validation Messages */
#valid-msg {
  color: #16a34a;
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
  font-weight: 500;
}
#error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
  font-weight: 500;
}
.hide {
  display: none !important;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: var(--whatsapp-green);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --- 4. RESPONSIVE / MOBILE --- */
@media (max-width: 900px) {
  .navbar {
    padding: 0 1.5rem;
  }

  /* Hamburger Menu Logic */
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none; /* Hidden by default */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1.1rem;
  }

  /* Layout Reversal for Mobile */
  .hero-container {
    flex-direction: column-reverse; /* Puts Form on TOP, Info on BOTTOM */
    padding: 1.5rem;
    gap: 2.5rem;
    height: auto;
  }

  .form-card {
    width: 100%;
    max-width: 100%;
  }

  .info-block {
    text-align: center;
  }
  .info-block h1 {
    font-size: 2rem;
  }
  .features {
    text-align: left;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
  position: fixed;
  bottom: 25px; /* Aligned with WhatsApp height */
  left: 25px; /* Moved to left side */
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse; /* Newest toast appears on top */
  gap: 12px;
}

.toast {
  min-width: 280px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--primary); /* Dark text for better contrast on light bg */
  font-weight: 600;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  display: flex;
  align-items: center;
  animation: slideInLeft 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Specific translucent colors */
.toast.success {
  background-color: rgba(220, 252, 231, 0.9); /* Light translucent green */
  border-left: 5px solid #16a34a;
}

.toast.error {
  background-color: rgba(254, 226, 226, 0.9); /* Light translucent red */
  border-left: 5px solid #dc2626;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

/* --- MOBILE-FRIENDLY TOASTS --- */
@media (max-width: 600px) {
  #toast-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%); /* Centers the container */
    bottom: 90px; /* Sits above the WhatsApp button */
    width: 90%; /* Takes up most of the screen width */
    max-width: 400px;
  }

  .toast {
    min-width: 0; /* Allow it to shrink to the container width */
    width: 100%;
    font-size: 0.9rem; /* Slightly smaller text for mobile */
    padding: 0.8rem 1rem;
  }

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

/* --- HOMEPAGE SPECIFIC STYLES --- */

/* Utility Classes */
.bg-light {
  background-color: var(--surface);
}
.text-accent {
  color: var(--accent);
}

.section {
  padding: 5rem 5%;
}

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

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

/* Fluid typography for section headings */
.section-header h2,
.about-text h2,
.contact-info h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Home Hero Section - Darker Theme with Subtle Parallax */

/* Utility Classes */
.bg-light {
  background-color: var(--surface);
}
.text-accent {
  color: var(--accent);
}

.section {
  padding: 5rem 5%;
}

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

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

.section-header h2,
.about-text h2,
.contact-info h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Home Hero Section - Darker Theme (Static) */
.home-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;

  /* Split the background properties for better control */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1950&q=80");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* THE PARALLAX MAGIC */
  background-attachment: fixed;
}

/* Safari/Mobile Performance Fix: Disable parallax on touch devices */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .home-hero {
    background-attachment: scroll;
  }
}

.home-hero-content {
  max-width: 800px;
}

.home-hero-content h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.home-hero-content p {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.cta-button:hover {
  background-color: #2c2e5e;
  transform: translateY(-2px);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease; /* Keeps the simple hover effect */
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
}

.about-list li {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

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

.review-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.reviewer-name {
  color: var(--primary);
  font-weight: 700;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center; /* This is the magic line that centers it vertically */
}

/* 1. Control the spacing right below the paragraph */
.contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* 2. Tighten up the contact details list */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem; /* Reduced from 1.5rem for a tighter grouping */
  font-size: 1.05rem;
}

.contact-item i {
  color: var(--accent);
  font-size: 1.25rem;
  width: 20px; /* Ensures the icons align perfectly vertically */
  text-align: center;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent);
}

/* Responsive adjustments for Home Page */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section {
    padding: 3.5rem 5%;
  }
}
