/* ===================================== */
/*            BASE STYLES               */
/* ===================================== */
:root {
  --primary: #2B7A78;
  --primary-light: #3AAFA9;
  --primary-lightest: #DEF2F1;
  --white: #FEFFFF;
  --dark: #17252A;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --gray-dark: #4B5563;
  --accent: #DEF2F1;
  --yellow: #F59E0B;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================== */
/*             BUTTONS                  */
/* ===================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid transparent;
}

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

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

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--primary-lightest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: var(--white);
}

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

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

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* Loader overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-lightest); /* site background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Rolling Rock Loader */
.loader {
  position: relative;
  font-size: 16px;
  width: 5.5em;
  height: 5.5em;
}

.loader:before {
  content: '';
  position: absolute;
  transform: translate(-50%, -50%) rotate(45deg);
  height: 100%;
  width: 4px;
  background: #ccc; /* light grey stick */
  left: 50%;
  top: 50%;
  border-radius: 2px;
}

.loader:after {
  content: '';
  position: absolute;
  left: 0.2em;
  bottom: 0.18em;
  width: 1em;
  height: 1em;
  background-color: var(--primary, #2a9d8f); /* your brand green */
  border-radius: 15%;
  animation: rollingRock 2.5s cubic-bezier(.79, 0, .47, .97) infinite;
}

@keyframes rollingRock {
  0%   { transform: translate(0, -1em) rotate(-45deg) }
  5%   { transform: translate(0, -1em) rotate(-50deg) }
  20%  { transform: translate(1em, -2em) rotate(47deg) }
  25%  { transform: translate(1em, -2em) rotate(45deg) }
  30%  { transform: translate(1em, -2em) rotate(40deg) }
  45%  { transform: translate(2em, -3em) rotate(137deg) }
  50%  { transform: translate(2em, -3em) rotate(135deg) }
  55%  { transform: translate(2em, -3em) rotate(130deg) }
  70%  { transform: translate(3em, -4em) rotate(217deg) }
  75%  { transform: translate(3em, -4em) rotate(220deg) }
  100% { transform: translate(0, -1em) rotate(-225deg) }
}

/* Text under loader */
.loader-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary, #2a9d8f);
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* ===================================== */
/*             NAVIGATION               */
/* ===================================== */
.main-nav {
  background-color: var(--primary-lightest);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.nav-brand:hover .nav-logo {
  transform: rotate(-5deg) scale(1.05);
}

.desktop-nav {
  display: none;
  gap: 1.5rem;
}

.desktop-nav a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.desktop-nav a:hover {
  color: teal
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color:teal;
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}
.desktop-nav a.active {
  color: teal;
}

.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: teal;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  transform: translateX(0);
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary-light);
  padding-left: 1.5rem;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-dark);
}

/* Messages */
.messages {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 400px;
  width: 90%;
}

.message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background-color: var(--primary-lightest);
  color: var(--dark);
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease-out;
}

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

/* Footer */
.main-footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 1rem 2rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-about h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-light);
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.social-links a {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: rgba(43, 122, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(43, 122, 120, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  transition: var(--transition);
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--primary-lightest);
  transform: translateX(5px);
}

.footer-contact address {
  font-style: normal;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--primary-lightest);
}

.footer-copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: row;
  }

  .values-grid,
  .services-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-about {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .hero-container {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .hero-content {
    text-align: left;
    margin-bottom: 0;
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }
  
  .nav-brand {
    font-size: 1.5rem;
  }
  
  .nav-logo {
    height: 50px;
  }
}

@media (min-width: 1024px) {
  .values-grid,
  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: 6rem 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-about {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  section + section {
    margin-top: 3rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}

/* mobile tweaks */
@media (max-width: 576px) {
  .hero-section {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .image-circle {
    width: 220px;
    height: 220px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-header,
  .section-title,
  .section-subtitle {
    text-align: center !important;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  html {
    font-size: 15px;
  }
}

/* Animation Classes */
[data-aos] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="fade-in"] {
  opacity: 0;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

[data-aos="zoom-in"] {
  transform: scale(0.95);
  opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

/* === Chat Now Banner === */
.chat-now-banner {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  z-index: 9999;
  text-align: right;
}

/* Chat button */
.chat-now-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ec407a, #d81b60);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: floaty 3s ease-in-out infinite;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Hover effect for button */
.chat-now-btn:hover {
  background: linear-gradient(135deg, #d81b60, #c2185b);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* WhatsApp icon container */
.whatsapp-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease;
  border-radius: 50%; /* Keep the container circular for shadow */
}

/* WhatsApp SVG icon */
.whatsapp-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

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

/* Subtle floating animation */
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* === Tooltip styling === */
.chat-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #1f1f1f;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  border: 1px solid #333;
}

/* Tooltip arrow */
.chat-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 12px;
  border: 6px solid transparent;
  border-bottom-color: #1f1f1f;
}

/* Show tooltip on hover */
.chat-now-banner:hover .chat-tooltip {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive behavior === */
@media (max-width: 768px) {
  .chat-now-banner {
    top: auto;
    bottom: 1rem;
    right: 1rem;
  }

  .chat-now-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .chat-now-btn p {
    display: none;
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }

  .whatsapp-icon svg {
    width: 22px;
    height: 22px;
  }

  .chat-tooltip {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .chat-now-banner {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .chat-now-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}
