/* ============================================================
   SRI MUTHU AUTO AGENCIES — Professional Light Theme
   Redesigned for a Clean, Corporate & Premium Experience
   ============================================================ */

:root {
  /* Colors - Light Theme */
  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --primary: #002D72;
  /* Yamaha Blue */
  --primary-light: #0046AD;
  --primary-soft: rgba(0, 45, 114, 0.05);

  --accent: #E40521;
  /* Yamaha Red for highlights */
  --accent-soft: rgba(228, 5, 33, 0.1);

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --white: #ffffff;
  --black: #000000;
  --border: #e2e8f0;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

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

  /* Layout */
  --container-max: 1280px;
  --nav-height: 85px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 45, 114, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 45, 114, 0.12);
}

/* ── Base ────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.accent-text {
  color: var(--primary-light);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ── Reusable Components ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mobile-only {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary,
.btn-glow {
  /* mapping old btn-glow to new primary */
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-glow:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  height: 75px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 38px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary);
}

.brand-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  background: var(--primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.85rem;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: scale(1.02);
}

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

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 4rem);
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge-line {
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.visual-main {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slider {
  width: 100%;
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: var(--transition-slow);
  filter: drop-shadow(0 15px 30px rgba(0, 45, 114, 0.1));
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.visual-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10vw;
  color: rgba(0, 45, 114, 0.03);
  z-index: 1;
  pointer-events: none;
}

.hero-slider-nav {
  position: absolute;
  bottom: -1rem;
  left: 0;
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 30px;
  height: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 60px;
}

/* ── About Section ────────────────────────────────────────── */
.about {
  padding: 8rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-item h4 {
  font-size: 1.05rem;
  color: var(--primary);
}

.feature-item p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.about-visuals {
  position: relative;
}

.visual-box-1 {
  width: 90%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.visual-box-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-box-2 {
  position: absolute;
  bottom: -2rem;
  right: 0;
  background: var(--primary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  text-align: center;
}

.tag-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.tag-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Products Section ─────────────────────────────────────── */
.products {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

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

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

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  position: relative;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-specs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-specs span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--primary-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.8rem;
}

/* ── Services Section ─────────────────────────────────────── */
.services {
  padding: 8rem 0;
  background: var(--white);
}

.section-header.center {
  text-align: center;
  justify-content: center;
  margin-bottom: 4rem;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.bento-item:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.bento-item.main {
  grid-column: span 2;
  background: var(--primary);
  color: var(--white);
}

.bento-item.main h3,
.bento-item.main i,
.bento-item.main p,
.bento-item.main li {
  color: var(--white);
}

.bento-item.main:hover {
  background: var(--primary-light);
}

.bento-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.bento-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.bento-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bento-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bento-list li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-list li::before {
  content: '✓';
  font-weight: 800;
}

/* ── Contact Section ──────────────────────────────────────── */
.contact {
  padding: 8rem 0;
  background: var(--bg-secondary);
}

.contact-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.contact-info {
  padding: 4rem;
  background: var(--primary);
  color: var(--white);
}

.contact-info .section-title,
.contact-info p,
.contact-info .accent-text {
  color: var(--white);
}

.info-items {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--white);
  opacity: 0.8;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

.social-links {
  margin-top: 4rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--white);
  color: var(--primary);
}

.contact-form {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 5rem 0 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.gst-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-social .social-links {
  margin-top: 0;
  display: flex;
  gap: 0.8rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ── Animations ───────────────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {

  .hero-container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 3rem;
  }

  .services-bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-item.main {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) - 10px);
    right: 1.5rem;
    width: 240px;
    height: auto;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transform: translateY(10px);
    transition: var(--transition);
  }

  .nav-links.open {
    display: flex;
    transform: translateY(0);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

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

  .brand-tag {
    font-size: 0.5rem;
  }

  .mobile-only {
    display: block;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-slider {
    height: 300px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .visual-box-2 {
    padding: 1rem;
    bottom: -1rem;
  }

  .tag-num {
    font-size: 1.5rem;
  }

  .tag-text {
    font-size: 0.6rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .bento-item.main {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}