/* ============================================
   THANGA JANAKI JEWELLERS — SHARED STYLES
   Mobile First | Gold Luxury Dark Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Tamil:wght@400;600;700&family=Noto+Sans+Tamil:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-pale:   #F5EDCC;
  --gold-dark:   #8B6914;
  --gold-dim:    rgba(201,168,76,0.12);
  --deep:        #0A0800;
  --dark:        #110E00;
  --card:        #181300;
  --card2:       #201800;
  --muted:       #8A7A4A;
  --border:      rgba(201,168,76,0.15);
  --border-hover:rgba(201,168,76,0.4);
  --white:       #FFF8E7;
  --wa-green:    #25D366;
  --wa-dark:     #128C50;

  --font-tamil:  'Noto Sans Tamil', sans-serif;
  --font-serif:  'Noto Serif Tamil', serif;
  --font-display:'Playfair Display', serif;

  --radius:      8px;
  --radius-sm:   4px;
  --radius-pill: 50px;
  --transition:  0.3s ease;
  --shadow-gold: 0 8px 30px rgba(201,168,76,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--deep);
  color: var(--gold-pale);
  font-family: var(--font-tamil);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { text-decoration: none; color: inherit; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  line-height: 1.25;
}

h1 { font-size: clamp(28px, 7vw, 56px); }
h2 { font-size: clamp(22px, 5vw, 40px); }
h3 { font-size: clamp(16px, 3.5vw, 22px); }
h4 { font-size: clamp(14px, 3vw, 18px); }

p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 60px 0;
}

.section--dark { background: var(--dark); }
.section--card { background: var(--card); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }

/* ============================================
   SECTION HEADER
   ============================================ */

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

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: var(--font-tamil);
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: var(--gold-dark);
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   HEADER / NAVBAR — Mobile First
   ============================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(10,8,0,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--deep);
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(201,168,76,0.35);
}

.logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
}

.logo-sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(10,8,0,0.98);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  padding: 12px 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  width: 100%;
  text-align: center;
}

.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--gold-light);
  background: var(--gold-dim);
}

.nav-drawer .nav-wa {
  margin-top: 16px;
  background: var(--wa-green);
  color: white !important;
  font-size: 16px !important;
  padding: 14px 36px !important;
  border-radius: var(--radius-pill) !important;
}

/* Desktop nav */
.desktop-nav {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-tamil);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--deep);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--gold-dim);
}

.btn-wa {
  background: var(--wa-green);
  color: white;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
}

.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.4);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

/* ============================================
   CARDS
   ============================================ */

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

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 24px rgba(201,168,76,0.08);
}

/* ============================================
   MARQUEE TICKER
   ============================================ */

.ticker {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 22s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-size: 12px;
  font-weight: 600;
  color: var(--deep);
  font-family: var(--font-tamil);
}

.ticker-item::after {
  content: '◆';
  font-size: 7px;
  opacity: 0.5;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */

.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: wa-pulse 2.5s ease infinite;
  transition: transform var(--transition);
}

.float-wa:hover { transform: scale(1.1); }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.35); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 40px 16px 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.footer-copy {
  font-size: 11px;
  color: rgba(138,122,74,0.5);
}

.footer-copy span { color: var(--gold); }

/* ============================================
   HERO (shared base)
   ============================================ */

.hero {
  padding-top: 60px; /* header height */
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge::before { content: '✦'; color: var(--gold); font-size: 9px; }

.hero-title {
  margin-bottom: 6px;
}

.hero-sub {
  display: block;
  font-size: 0.5em;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 2px;
  font-family: var(--font-tamil);
  margin-top: 6px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  font-style: italic;
  margin: 16px 0 28px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ============================================
   PAGE BANNER (inner pages)
   ============================================ */

.page-banner {
  padding-top: 60px;
  background: var(--dark);
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  padding: 40px 16px 0;
}

.page-banner h1 {
  font-size: clamp(24px, 6vw, 44px);
}

.page-banner p {
  margin-top: 10px;
  font-size: 14px;
}

/* ============================================
   DESIGN CARDS (gallery)
   ============================================ */

.designs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.design-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px rgba(201,168,76,0.08);
}

.design-img {
  aspect-ratio: 1;
  background: var(--card2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.design-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.design-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--card2), rgba(201,168,76,0.06));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.design-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10,8,0,0.85);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

.design-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: var(--deep);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.design-body {
  padding: 12px;
}

.design-cat {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.design-name {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.design-weight {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.design-actions {
  display: flex;
  gap: 6px;
}

.design-actions .btn-wa {
  flex: 1;
  padding: 8px 10px;
  font-size: 11px;
  border-radius: 5px;
}

.btn-wish {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-wish:hover,
.btn-wish.active {
  border-color: var(--gold);
  color: #e85d5d;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-tamil);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   CONTACT ELEMENTS
   ============================================ */

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1.6;
}

.contact-value a {
  color: inherit;
  transition: var(--transition);
}

.contact-value a:hover { color: var(--white); }

/* ============================================
   BREAKPOINTS — Tablet 600px+
   ============================================ */

@media (min-width: 600px) {

  .section { padding: 80px 0; }
  .container { padding: 0 24px; }

  .hero-btns {
    flex-direction: row;
    justify-content: center;
  }

  .designs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .design-placeholder { font-size: 60px; }
  .design-name { font-size: 15px; }
  .design-body { padding: 16px; }
  .design-actions .btn-wa { font-size: 12px; padding: 10px 12px; }

  .float-wa { width: 56px; height: 56px; font-size: 28px; bottom: 28px; right: 28px; }
}

/* ============================================
   Breakpoints — Desktop 900px+
   ============================================ */

@media (min-width: 900px) {

  .header-inner { padding: 0 40px; height: 70px; }

  .hamburger { display: none; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .desktop-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--muted);
    transition: var(--transition);
    font-family: var(--font-tamil);
  }

  .desktop-nav a:hover,
  .desktop-nav a.active {
    color: var(--gold-light);
    background: var(--gold-dim);
  }

  .desktop-nav .nav-wa {
    background: var(--wa-green);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-left: 8px;
  }

  .nav-drawer { display: none !important; }

  .hero { padding-top: 70px; }
  .page-banner { padding-top: 70px; }

  .section { padding: 100px 0; }
  .container { padding: 0 40px; }

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

  .design-name { font-size: 16px; }

  .contact-card { padding: 36px 28px; }
}

/* ============================================
   ACTIVE PAGE INDICATOR
   ============================================ */

.site-header .active {
  color: var(--gold-light) !important;
}
