/* ==========================================================
   Anbu Pattasu — Brand Theme
   Palette derived from the logo: deep red + festive gold on a
   clean, professional ivory body with a dramatic dark hero/footer.
   ========================================================== */

:root {
  /* Brand */
  --color-red: #c81e1e;
  --color-red-dark: #941613;
  --color-gold: #f2b705;
  --color-gold-dark: #c99304;

  /* Dark sections (hero, footer) */
  --color-ink: #170605;
  --color-ink-alt: #230a08;
  --color-on-dark: #f7efe8;
  --color-on-dark-muted: #cbb8b2;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* Light sections (about, products, contact, body) */
  --color-cream: #fdf9f4;
  --color-cream-alt: #f6ece0;
  --color-surface: #ffffff;
  --color-text: #241b1a;
  --color-text-muted: #6e5f5b;
  --color-border: rgba(36, 27, 26, 0.10);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --shadow-soft: 0 20px 50px rgba(23, 6, 5, 0.12);
  --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.45);
  --transition: all 0.35s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.section { padding: 110px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.9rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(200, 30, 30, 0.28);
  transition: var(--transition);
}
.btn-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(200, 30, 30, 0.38);
  color: #fff;
}

/* ---------- Navbar ---------- */
.site-navbar {
  padding: 18px 0;
  background: transparent;
  transition: var(--transition);
  z-index: 1030;
}
.site-navbar.scrolled {
  background: rgba(23, 6, 5, 0.94);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.brand-logo { height: 40px; width: auto; margin-right: 10px; border-radius: 6px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-on-dark);
}
.navbar-nav .nav-link {
  color: var(--color-on-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--color-gold) !important;
}
.navbar-toggler {
  border-color: var(--color-border-dark);
}
.navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--color-ink-alt);
    margin-top: 12px;
    padding: 16px;
    border-radius: 12px;
  }
}

/* ---------- Hero / Swiper ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  width: 100%;
  background: var(--color-ink);
}
.hero-swiper, .hero-swiper .swiper-slide {
  height: 100vh;
  min-height: 560px;
  position: relative;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,6,5,0.55) 0%, rgba(23,6,5,0.6) 40%, rgba(23,6,5,0.94) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-text { max-width: 720px; }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}
.hero-empty { height: 100vh; }

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--color-gold);
  --swiper-navigation-size: 22px;
  background: rgba(0,0,0,0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-gold);
  opacity: 1;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  z-index: 3;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* ---------- About ---------- */
.about-section { background: var(--color-cream); }
.about-description { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.about-pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.about-pillar:hover { transform: translateY(-6px); border-color: var(--color-gold-dark); }
.about-pillar-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(242, 183, 5, 0.16);
  color: var(--color-red);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.about-pillar p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
.about-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--color-surface);
  outline: 1px solid var(--color-border);
}
.about-image { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Products ---------- */
.products-section { background: var(--color-cream-alt); }
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-gold-dark);
}
.product-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-cream-alt);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  color: var(--color-ink);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.product-play-btn:hover { transform: scale(1.1); background: var(--color-red); color: #fff; }
.product-body { padding: 1.25rem; }
.product-name { margin-bottom: 0.5rem; font-size: 1.05rem; }
.product-desc { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-section { background: var(--color-cream); }
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.contact-form .form-label { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.contact-form .form-control {
  background: var(--color-cream-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
}
.contact-form .form-control:focus {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-red);
  box-shadow: 0 0 0 0.2rem rgba(200, 30, 30, 0.14);
}
.form-feedback { padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.9rem; }
.form-feedback.success { background: rgba(46, 163, 94, 0.12); color: #1f8145; }
.form-feedback.error { background: rgba(200, 30, 30, 0.10); color: var(--color-red-dark); }

.contact-details-card {
  background: var(--color-ink);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--color-on-dark);
}
.contact-details-card h5 { color: var(--color-on-dark); }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--color-on-dark-muted);
}
.contact-info-list i { color: var(--color-gold); font-size: 1.1rem; margin-top: 0.15rem; }
.map-embed-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--color-border); }
.map-embed-wrap iframe { width: 100%; display: block; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); padding: 70px 0 30px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-on-dark); }
.footer-text { color: var(--color-on-dark-muted); font-size: 0.9rem; }
.footer-heading { color: var(--color-on-dark); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.7rem; color: var(--color-on-dark-muted); font-size: 0.92rem; }
.footer-contact li i { color: var(--color-gold); margin-right: 8px; }
.footer-links a { color: var(--color-on-dark-muted); }
.footer-links a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-on-dark);
}
.footer-social a:hover { background: var(--color-gold); color: var(--color-ink); }
.footer-divider { border-color: var(--color-border-dark); margin: 2.5rem 0 1.5rem; }
.footer-copy { color: var(--color-on-dark-muted); font-size: 0.85rem; text-align: center; margin: 0; }

/* ---------- Floating buttons ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-ink);
  border: none;
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  box-shadow: var(--shadow-dark);
  cursor: pointer;
}
.back-to-top.show { display: flex; }

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-dark);
}

/* ---------- Misc ---------- */
::selection { background: var(--color-gold); color: var(--color-ink); }
