/* ============================================================
   SANGHVI AGENCY — Custom Styles
   Beyond Tailwind: animations, transitions, special components
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #C65B24;
  --accent: #FF9A3D;
  --dark: #181818;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --border-gray: #E4E4E4;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-orange: 0 4px 30px rgba(198,91,36,0.3);
}

/* ---------- Global Reset Additions ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.05s linear;
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth),
              padding var(--transition-smooth);
  padding: 1rem 0;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

#navbar.scrolled .nav-link {
  color: var(--dark) !important;
}

#navbar.scrolled .nav-logo-text {
  color: var(--dark) !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Dropdown Menu ---------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
  border: 1px solid var(--border-gray);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--light-gray);
  color: var(--primary);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--dark);
  z-index: 2000;
  transition: right var(--transition-smooth);
  padding: 2rem;
  overflow-y: auto;
}

#mobile-menu.open {
  right: 0;
}

#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth);
}

#mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  display: block;
  padding: 0.9rem 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-link:hover {
  color: var(--accent);
  padding-left: 8px;
}

/* Hamburger icon */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7.5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(24,24,24,0.85) 0%,
    rgba(24,24,24,0.6) 50%,
    rgba(198,91,36,0.2) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(198,91,36,0.15);
  border: 1px solid rgba(198,91,36,0.3);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Inner page hero (smaller) */
.hero-inner {
  min-height: 45vh;
  padding-top: 100px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

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

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

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

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

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gray);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-orange);
  border-color: var(--primary);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover img {
  transform: scale(1.05);
}

/* ---------- Stats Counter ---------- */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Why Choose Us Cards ---------- */
.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(198,91,36,0.1), rgba(255,154,61,0.1));
  border-radius: 16px;
  color: var(--primary);
  font-size: 1.5rem;
}

/* ---------- Brand Badges ---------- */
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #999;
  background: var(--white);
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-badge:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: scale(1.03);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-gray);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(198,91,36,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 2px;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:has([open]) {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item details[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--light-gray);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ---------- Contact CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* ---------- WhatsApp Floating Button ---------- */
#whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
}

#whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

/* WhatsApp pulse animation */
#whatsapp-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Back to Top Button ---------- */
#back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth);
  cursor: pointer;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition-fast);
  border: none;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------- Gallery Grid Hover ---------- */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,24,24,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Quote Form Styling ---------- */
.quote-checkbox {
  display: none;
}

.quote-checkbox + label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.quote-checkbox:checked + label {
  border-color: var(--primary);
  background: rgba(198,91,36,0.05);
}

.quote-checkbox + label .check-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-gray);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.quote-checkbox:checked + label .check-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.quote-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.quote-details.visible {
  max-height: 200px;
  padding-top: 0.75rem;
}

/* ---------- Form Inputs ---------- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-gray);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--white);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,91,36,0.1);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  border-top: 4px solid var(--primary);
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

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

.footer-heading {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* ---------- Swiper Overrides ---------- */
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
}

/* ---------- Masonry-like Grid ---------- */
.masonry-grid {
  columns: 3 300px;
  column-gap: 1rem;
}

.masonry-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* ---------- Section Divider ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }

  .masonry-grid {
    columns: 2 200px;
  }

  .hero {
    min-height: 85vh;
  }

  #whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }

  #back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }
}

/* ---------- Utility Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ---------- Print Styles ---------- */
@media print {
  #navbar, #whatsapp-btn, #back-to-top, #scroll-progress { display: none !important; }
  .hero { min-height: auto; page-break-after: always; }
}
