/* =====================================================
   Sri Mahalaxmi Enterprises – Stylesheet
   Color scheme: Deep Blue #0d47a1 (primary), Orange #ff6f00 (accent)
   Font: Inter (Google Fonts)
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d47a1;
  --primary-dark: #08316f;
  --primary-light: #1565c0;
  --accent: #ff6f00;
  --accent-dark: #e65100;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(13, 71, 161, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky navbar */
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  margin-top: 22px;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 71, 161, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 2px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

/* Hamburger button */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 71, 161, 0.92), rgba(8, 49, 111, 0.95)),
    url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  padding: 80px 24px;
  overflow: hidden;
}

.hero::before {
  /* subtle accent glow */
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.25) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  max-width: 880px;
  z-index: 2;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title-telugu {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 24px;
  color: #ffe2c2;
}

.hero-tagline {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: #e8eef9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 111, 0, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 111, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-3px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* =====================================================
   HIGHLIGHTS BAR
   ===================================================== */
.highlights {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.highlight-info {
  display: flex;
  flex-direction: column;
}

.highlight-info strong {
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.2;
}

.highlight-info span {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  padding: 30px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-icon {
  margin-bottom: 14px;
  display: block;
  transition: transform var(--transition);
}

.product-icon svg {
  display: inline-block;
}

.product-card:hover .product-icon {
  transform: scale(1.12) rotate(-4deg);
}

.product-card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* =====================================================
   BRANDS
   ===================================================== */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.brand-pill {
  padding: 12px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  cursor: default;
  transition: all var(--transition);
}

.brand-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(13, 71, 161, 0.25);
}

/* =====================================================
   FEATURES (Why Choose Us)
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  padding: 32px 26px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =====================================================
   REVIEWS
   ===================================================== */
.rating-summary {
  text-align: center;
  margin: 0 auto 50px;
  padding: 30px;
  background: #fff;
  max-width: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.rating-number {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.rating-stars {
  color: var(--accent);
  font-size: 1.6rem;
  margin: 8px 0;
  letter-spacing: 4px;
}

.rating-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-header strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.reviewer-tag {
  font-size: 0.78rem;
  color: var(--text-light);
}

.review-stars {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.95rem;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-alt);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 0.96rem;
}

.contact-list li strong {
  color: var(--text);
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.hours-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-light);
}

.hours-note {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* =====================================================
   MAP
   ===================================================== */
.map-section {
  width: 100%;
  line-height: 0;
}

.map-section iframe {
  width: 100%;
  display: block;
  filter: grayscale(0%) contrast(1.05);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--primary-dark);
  color: #cdd5e6;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4,
.footer-title {
  color: #fff;
  margin-bottom: 14px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-telugu {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer a {
  color: #cdd5e6;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #9aa6c2;
}

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

@keyframes pulse {
  0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}

.back-to-top {
  position: fixed;
  bottom: 95px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition),
    background var(--transition);
  z-index: 998;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

/* =====================================================
   SCROLL REVEAL ANIMATION
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Tablets */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 1.8rem;
  }

  /* Mobile nav */
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 6px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  /* Grids collapse */
  .product-grid,
  .features-grid,
  .reviews-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .back-to-top {
    bottom: 82px;
    right: 22px;
  }
}

/* Extra small */
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .nav-container {
    padding: 12px 16px;
  }
  .section-title {
    font-size: 1.55rem;
  }
}
