/* ============================================================
   MADHU MAKHI PALAN — Global Design System
   ============================================================ */

/* ── Custom Properties ── */
:root {
  /* Brand Palette */
  --color-golden:       #F5A623;
  --color-golden-dark:  #D4891A;
  --color-golden-light: #FFC85A;
  --color-golden-glow:  rgba(245, 166, 35, 0.20);
  --color-black:        #1A1A1A;
  --color-brown:        #8B4513;
  --color-brown-light:  #A0522D;
  --color-cream:        #FFF8E7;
  --color-cream-dark:   #FFF0CC;

  /* Neutrals */
  --color-white:      #FFFFFF;
  --color-gray-100:   #F9F6F0;
  --color-gray-200:   #EDE8DF;
  --color-gray-400:   #9E9070;
  --color-gray-600:   #5C5248;
  --color-gray-800:   #2E2820;

  /* Semantic */
  --color-text-primary: var(--color-black);
  --color-text-muted:   var(--color-gray-600);
  --color-bg-light:     var(--color-cream);
  --color-border:       rgba(139, 69, 19, 0.15);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  /* Type Scale (fluid with clamp) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 3vw, 2rem);
  --text-4xl:  clamp(2rem, 4vw, 2.5rem);
  --text-5xl:  clamp(2.5rem, 5vw, 3.5rem);
  --text-hero: clamp(3rem, 6vw, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --section-py:    clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-px:  clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(139, 69, 19, 0.08);
  --shadow-md:   0 8px 24px rgba(139, 69, 19, 0.12);
  --shadow-lg:   0 20px 60px rgba(139, 69, 19, 0.16);
  --shadow-gold: 0 12px 40px rgba(245, 166, 35, 0.25);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index */
  --z-base:      1;
  --z-dropdown:  10;
  --z-sticky:    100;
  --z-overlay:   200;
  --z-modal:     300;
  --z-toast:     400;
  --z-whatsapp:  500;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-black);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

/* Custom scrollbar */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-golden); border-radius: var(--radius-pill); }
::selection               { background: var(--color-golden); color: var(--color-black); }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Section ── */
.section { padding-block: var(--section-py); }

.section-alt {
  background-color: #FEFAF2;
}

.section-dark {
  background-color: var(--color-black);
  color: var(--color-cream);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-cream);
}

.section-brown {
  background-color: var(--color-brown);
  color: var(--color-cream);
}

.section-brown h1,
.section-brown h2,
.section-brown h3,
.section-brown h4 {
  color: var(--color-cream);
}

.section-gold {
  background: linear-gradient(135deg, var(--color-golden) 0%, var(--color-golden-dark) 100%);
  color: var(--color-black);
}

/* ── Section Header ── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-golden-dark);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.section-dark .section-eyebrow,
.section-brown .section-eyebrow {
  color: var(--color-golden-light);
  background: rgba(245, 166, 35, 0.15);
  border-color: rgba(245, 166, 35, 0.30);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
}

.section-title span {
  background: linear-gradient(135deg, var(--color-golden), var(--color-brown));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .section-title span,
.section-brown .section-title span {
  background: linear-gradient(135deg, var(--color-golden-light), var(--color-golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-dark .section-subtitle,
.section-brown .section-subtitle {
  color: rgba(255, 248, 231, 0.75);
}

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

.section-header-center .section-subtitle {
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.8em 1.8em;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--color-golden);
  color: var(--color-black);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--color-golden-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-golden);
  border: 2px solid var(--color-golden);
}
.btn-outline:hover {
  background: var(--color-golden);
  color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(255, 248, 231, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 248, 231, 0.15);
  border-color: var(--color-cream);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--color-black);
  color: var(--color-cream);
}
.btn-dark:hover {
  background: var(--color-gray-800);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.55em 1.2em;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1em 2.4em;
  font-size: var(--text-lg);
}

/* ── Honeycomb Pattern ── */
.honeycomb-bg {
  position: relative;
}
.honeycomb-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69.28' viewBox='0 0 60 69.28'%3E%3Cpolygon points='30,1 59,17.14 59,52.14 30,68.28 1,52.14 1,17.14' fill='none' stroke='rgba(245,166,35,0.12)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 60px 69.28px;
  pointer-events: none;
  z-index: 0;
}
.honeycomb-bg > * { position: relative; z-index: 1; }

.honeycomb-dark::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='69.28' viewBox='0 0 60 69.28'%3E%3Cpolygon points='30,1 59,17.14 59,52.14 30,68.28 1,52.14 1,17.14' fill='none' stroke='rgba(245,166,35,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ── Hex Icon ── */
.hex-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-golden);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 1.6rem;
  color: var(--color-black);
  flex-shrink: 0;
  transition: var(--transition-base);
}
.hex-icon-sm {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}
.hex-icon-lg {
  width: 88px;
  height: 88px;
  font-size: 2.2rem;
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Stat Counter ── */
.stat-num {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-hex {
  width: 56px;
  height: 56px;
  background: var(--color-golden);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: loaderPulse 0.9s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.1);  opacity: 1; }
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: var(--z-whatsapp);
  transition: var(--transition-base);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: waPulse 1.8s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-golden);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  z-index: var(--z-whatsapp);
  transition: var(--transition-base);
  opacity: 0;
  visibility: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--color-golden-dark);
  transform: translateY(-3px);
}

/* ── Mini Page Hero (inner pages) ── */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(139, 69, 19, 0.80) 60%,
    rgba(245, 166, 35, 0.40) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&h=600&fit=crop&q=80&auto=format') center/cover no-repeat;
  color: var(--color-cream);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'%3E%3Cpolygon points='40,2 78,22 78,70 40,90 2,70 2,22' fill='none' stroke='rgba(245,166,35,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 92px;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-4);
}

.page-hero-title span {
  background: linear-gradient(135deg, var(--color-golden-light), var(--color-golden));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 248, 231, 0.75);
  max-width: 520px;
  margin-bottom: var(--space-6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 248, 231, 0.65);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--color-golden-light); }
.breadcrumb a:hover { color: var(--color-golden); }
.breadcrumb i { font-size: 0.7rem; }

/* ── Footer ── */
.footer {
  background: var(--color-black);
  color: rgba(255, 248, 231, 0.8);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-8);
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-brand .brand-logo .hex-icon {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.2;
}

.footer-brand .brand-tagline {
  font-size: var(--text-xs);
  color: var(--color-golden);
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  color: rgba(255, 248, 231, 0.65);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 248, 231, 0.7);
  transition: var(--transition-base);
}
.footer-social a:hover {
  background: var(--color-golden);
  color: var(--color-black);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 248, 231, 0.65);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links a:hover {
  color: var(--color-golden);
  padding-left: var(--space-2);
}
.footer-links a::before {
  content: '›';
  color: var(--color-golden);
  font-size: 1.1rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact-item {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 248, 231, 0.65);
}

.footer-contact-item i {
  color: var(--color-golden);
  font-size: 1rem;
  margin-top: 0.15em;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 248, 231, 0.4);
}

.footer-bottom a {
  color: rgba(255, 248, 231, 0.55);
  transition: var(--transition-fast);
}
.footer-bottom a:hover { color: var(--color-golden); }

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  max-width: 380px;
  font-size: var(--text-sm);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--color-golden);
}
.toast.show { transform: translateX(0); }
.toast-success { border-left-color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast i { font-size: 1.2rem; }
.toast-success i { color: #22c55e; }
.toast-error   i { color: #ef4444; }
.toast-default i { color: var(--color-golden); }

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--color-golden);
  outline-offset: 3px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Touch devices ── */
@media (hover: none) {
  .btn:hover { transform: none; }
}

/* ── Responsive Utilities ── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    gap: var(--space-4);
  }
  .page-hero-title {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 768px) {
  .hide-tablet-up { display: none !important; }
}
