/* ============================================
   MUTHU HOMES — Global Design System
   Colors: Sage Green + Cream White + Charcoal
   ============================================ */

   @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');


:root {
  --sage: #7D9B76;
  --sage-dark: #5a7a53;
  --sage-light: #a8c4a0;
  --sage-pale: #e8f0e6;
  --cream: #F5F0E8;
  --cream-dark: #ede6d6;
  --charcoal: #2D2D2D;
  --charcoal-light: #555555;
  --white: #ffffff;
  --border: rgba(125,155,118,0.2);
  --shadow: 0 4px 32px rgba(45,45,45,0.08);
  --shadow-hover: 0 12px 48px rgba(45,45,45,0.14);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  transition: opacity var(--transition);
}

img.lazy { opacity: 0; }
img.loaded { opacity: 1; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }
ul { list-style: none; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--sage);
}

/* ============ LAYOUT ============ */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125,155,118,0.35);
}

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

.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ============ NAVBAR ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(245,240,232,0.98);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* LOGO IMAGE */
.nav-logo-img {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo-img img {
  height: 56px;   /* adjust if needed */
  width: auto;
  object-fit: contain;
  display: block;
}



.nav-logo-text span:first-child {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  line-height: 0.95;
}

/* .nav-logo-text span:last-child {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
} */

.nav-links a {
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-cta {
  font-size: 1rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}


.nav-links a:hover,
.nav-links a.active {
  color: var(--sage-dark);
  background: var(--sage-pale);
}



.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
}

/* ---- DROPDOWN ---- */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 16px 0 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: all var(--transition);
  z-index: 100;
  list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--charcoal-light);
  transition: all var(--transition);
  border-radius: 0;
  background: none;
}

.nav-dropdown-menu li a:hover {
  color: var(--sage-dark);
  background: var(--sage-pale);
}

.nav-mobile-section {
  font-weight: 500;
  color: var(--charcoal) !important;
  pointer-events: none;
}

.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all var(--transition);
  display: block;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: all var(--transition);
}

.nav-mobile a:hover { background: var(--sage-pale); color: var(--sage-dark); }
.nav-mobile .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ============ WHATSAPP FLOAT ============ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ============ POPUP ============ */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,45,45,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-card {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
  position: relative;
}

.popup-overlay.active .popup-card {
  transform: translateY(0) scale(1);
}

.popup-header {
  background: var(--sage);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
}

.popup-header p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.popup-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.popup-close:hover { background: rgba(255,255,255,0.35); }

.popup-body { padding: 28px; }

.popup-thankyou {
  display: none;
  text-align: center;
  padding: 40px 28px;
}

.popup-thankyou.show { display: block; }
.popup-thankyou.show ~ .popup-form-wrap { display: none; }

.popup-thankyou .ty-icon {
  width: 64px;
  height: 64px;
  background: var(--sage-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.popup-thankyou h3 {
  font-size: 1.6rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.popup-thankyou p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

/* ============ FORMS ============ */

.form-group { margin-bottom: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sage);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }

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

/* ============ CARDS ============ */

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sage-light);
}

/* ============ SKELETON LOADER ============ */

.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ SCROLL REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ TRUST BADGES ============ */

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--sage-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.trust-badge h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.trust-badge p {
  font-size: 0.78rem;
  color: var(--charcoal-light);
  line-height: 1.4;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-contact-item span:first-child {
  color: var(--sage-light);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--sage-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}


.footer-logo-img {
  width: 56px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}
/* ============ PAGE HERO ============ */

.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--sage-pale);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 12px; }

.page-hero p {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  max-width: 520px;
}

/* ============ RESPONSIVE ============ */

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

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
