/**
 * Tirupati Cement Articles - 3-Color Signature UI Theme
 * Pure White (#FFFFFF) + Teal Green (#0D9488 / #042F2E) + Mustard Yellow (#CA8A04 / #EAB308)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  /* 1. Pure White */
  --color-white: #FFFFFF;
  
  /* 2. Teal Green */
  --teal-primary: #0D9488;
  --teal-dark: #0F766E;
  --teal-deep: #042F2E;
  --teal-light: #2DD4BF;
  --teal-glow: rgba(13, 148, 136, 0.4);
  
  /* 3. Mustard Yellow */
  --mustard-primary: #CA8A04;
  --mustard-bright: #EAB308;
  --mustard-dark: #A16207;
  --mustard-light: #FEF08A;
  --mustard-glow: rgba(202, 138, 4, 0.4);
}

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

html {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0F172A;
  background-color: #FFFFFF;
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* Custom Mustard Yellow & Teal Green Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #042F2E;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #EAB308 0%, #0D9488 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FDE047 0%, #2DD4BF 100%);
}

/* Mustard Yellow Text Gradient */
.text-gradient-mustard,
.text-gradient-gold {
  background: linear-gradient(135deg, #FEF08A 0%, #EAB308 50%, #A16207 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Vibrant Teal Green Text Gradient */
.text-gradient-teal {
  background: linear-gradient(135deg, #5EEAD4 0%, #0D9488 50%, #042F2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sticky Main Navbar */
.navbar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Floating Clean Navbar (Pure White) */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(202, 138, 4, 0.25) !important;
}

/* Hero Search/Quick Quote Bar */
.hero-search-bar {
  background: #FFFFFF;
  border-radius: 50px;
  box-shadow: 0 20px 40px -10px rgba(4, 47, 46, 0.4);
  padding: 6px 8px;
  border: 2px solid rgba(202, 138, 4, 0.4);
}

/* Radial Diagram Component */
.radial-node {
  transition: all 0.3s ease;
}
.radial-node:hover {
  transform: scale(1.08);
}

/* Circular Avatar Network */
.avatar-network {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .avatar-network {
    width: 380px;
    height: 380px;
  }
}
.avatar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EAB308 0%, #0D9488 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(202, 138, 4, 0.6);
  z-index: 10;
}
.avatar-orbit-item {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #CA8A04;
  box-shadow: 0 6px 15px rgba(4, 47, 46, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.avatar-orbit-item:hover {
  transform: scale(1.2) !important;
  z-index: 20;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.6);
}

/* Phone Mockup Frame */
.phone-mockup {
  border: 10px solid #042F2E;
  border-radius: 36px;
  background: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(4, 47, 46, 0.35);
  overflow: hidden;
}

/* Gallery Photo Stream */
.photo-stream-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.photo-stream-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-stream-item:hover img {
  transform: scale(1.15);
}

/* Floating Action Buttons (Fixed at Bottom Right) */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: white;
  text-decoration: none;
}
.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.btn-whatsapp { 
  background: #25D366; 
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.btn-phone { 
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); 
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}
.btn-scroll-top { 
  background: #042F2E; 
  border: 2px solid #CA8A04;
  display: none; 
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 47, 46, 0.97);
  backdrop-filter: blur(14px);
}
.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  margin: auto;
  border-radius: 14px;
  border: 2px solid rgba(202, 138, 4, 0.4);
}

/* FAQ Accordion */
.faq-header {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}
.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #CA8A04;
}

/* Video Badge Floating Card in Hero */
.hero-video-card {
  background: rgba(4, 47, 46, 0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(202, 138, 4, 0.4);
  border-radius: 16px;
  transition: transform 0.3s ease;
}
.hero-video-card:hover {
  transform: translateY(-4px);
  border-color: #EAB308;
  background: rgba(4, 47, 46, 0.98);
}

/* ==========================================================================
   Mobile-Only Overflow & Layout Fixes (Prevents Horizontal Scroll & Blank Space)
   ========================================================================== */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    touch-action: pan-y;
  }

  /* Prevent AOS offscreen translations from creating horizontal scroll on mobile */
  [data-aos] {
    overflow-x: clip !important;
  }
  [data-aos="fade-left"],
  [data-aos="fade-right"],
  [data-aos="slide-left"],
  [data-aos="slide-right"] {
    transform: none !important;
  }

  /* Ensure all sections, images, cards, and tables fit 100% within mobile viewport */
  section, header, footer, main, nav, div {
    max-width: 100% !important;
  }

  img, video, iframe, canvas, svg {
    max-width: 100% !important;
    height: auto;
  }

  /* Adjust floating actions on small screens */
  .floating-actions {
    bottom: 14px;
    right: 14px;
    gap: 8px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
}

