/* ==========================================
   JATIN JEWELLERS - Main Stylesheet
   Theme: Royal Dark Gold Premium
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-dark:    #9A7A2E;
  --gold-pale:    #F7F0DC;
  --gold-dim:     rgba(201,168,76,0.15);
  --black:        #080600;
  --dark:         #100E06;
  --dark2:        #1C1912;
  --dark3:        #252010;
  --cream:        #FAF7F0;
  --cream-dark:   #F2EAD5;
  --white:        #FFFFFF;
  --text:         #281E08;
  --text-muted:   #7A6A4A;
  --border:       rgba(201,168,76,0.2);
  --border-light: rgba(201,168,76,0.1);
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body:    'Jost', 'Segoe UI', sans-serif;
  --transition:   all 0.38s cubic-bezier(0.4,0,0.2,1);
  --shadow:       0 16px 56px rgba(0,0,0,0.16);
  --shadow-gold:  0 8px 32px rgba(201,168,76,0.32);
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.1);
  --radius:       2px;
  --radius-md:    6px;
  --radius-lg:    12px;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--font-body); background:var(--cream); color:var(--text); line-height:1.75; overflow-x:hidden; }
img  { max-width:100%; display:block; }
a    { text-decoration:none; color:inherit; }
ul   { list-style:none; }

/* ---- UTILITY ---- */
.container   { max-width:1240px; margin:0 auto; padding:0 32px; }
.section     { padding:100px 0; }
.text-center { text-align:center; }

.section-badge {
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.65rem; font-weight:500; letter-spacing:0.24em; text-transform:uppercase;
  color:var(--gold); background:rgba(201,168,76,0.08);
  padding:8px 22px; border-radius:50px; margin-bottom:20px;
  border:1px solid rgba(201,168,76,0.25);
}
.section-title {
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,3.4rem);
  font-weight:300; letter-spacing:0.03em;
  margin-bottom:16px; color:var(--dark);
  line-height:1.15;
}
.section-sub   { font-size:0.9rem; color:var(--text-muted); max-width:520px; line-height:1.85; }
.section-sub.center { margin:0 auto; }

.gold-line {
  width:52px; height:1px;
  background:linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, transparent 100%);
  margin:16px 0 40px;
}
.gold-line.center { margin:16px auto 40px; }

/* ---- BUTTONS ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 36px; font-family:var(--font-body);
  font-size:0.75rem; font-weight:500; letter-spacing:0.16em; text-transform:uppercase;
  border-radius:var(--radius); cursor:pointer; border:none;
  transition:var(--transition); position:relative; overflow:hidden;
  white-space:nowrap;
}
.btn::before {
  content:''; position:absolute; inset:0;
  background:rgba(255,255,255,0); transition:background 0.3s;
}
.btn:hover::before { background:rgba(255,255,255,0.08); }

.btn-gold   { background:var(--gold); color:var(--black); }
.btn-gold:hover { background:var(--gold-light); transform:translateY(-2px); box-shadow:var(--shadow-gold); }
.btn-outline { background:transparent; color:var(--gold); border:1px solid rgba(201,168,76,0.5); }
.btn-outline:hover { background:var(--gold); color:var(--black); border-color:var(--gold); }
.btn-dark   { background:var(--black); color:var(--white); }
.btn-dark:hover { background:var(--dark3); transform:translateY(-2px); }
.btn-wa     { background:#25D366; color:#fff; }
.btn-wa:hover { background:#1ebe57; transform:translateY(-2px); box-shadow:0 6px 20px rgba(37,211,102,0.3); }

/* FIX: Single .btn-sm definition — removed duplicate from home.css */
.btn-sm     { padding:10px 22px; font-size:0.7rem; }

/* ---- NAVBAR ---- */
/* ===== TOP BAR ===== */
.navbar-topbar {
  background: var(--gold);
  padding: 5px 0;
  width: 100%;
  overflow: hidden;
  max-height: 28px;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}
.navbar-topbar .container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: auto !important;
  padding: 0 16px;
  flex-wrap: nowrap;
}
.topbar-item {
  font-size: 0.52rem;
  font-weight: 700;
  color: #0D0B05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-dot {
  width: 3px; height: 3px;
  background: #0D0B05;
  border-radius: 50%;
  opacity: 0.35;
  flex-shrink: 0;
}
.topbar-hide-mobile { display: inline; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,5,1,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(4,3,0,0.99);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
  border-bottom-color: rgba(201,168,76,0.25);
}
.navbar.scrolled .navbar-main .container { height: 62px; }
.navbar.scrolled .nav-logo img { height: 42px; }
.navbar.scrolled .nav-logo-text .brand { font-size: 1.4rem; }
.navbar.scrolled .nav-logo-text .tagline { display: none; }

.navbar-main { width: 100%; }
.navbar .container { display:flex; align-items:center; justify-content:space-between; height:72px; }

/* LOGO */
.nav-logo { display:flex; align-items:center; gap:16px; }
.nav-logo img {
  height:56px; width:auto;
  filter:drop-shadow(0 2px 8px rgba(201,168,76,0.3));
  transition:var(--transition);
}
.nav-logo:hover img { filter:drop-shadow(0 4px 16px rgba(201,168,76,0.5)); transform:scale(1.04); }
.nav-logo-text { display:flex; flex-direction:column; gap:3px; }
.nav-logo-text .brand {
  font-family:var(--font-display); font-size:1.85rem; font-weight:600;
  color:var(--gold-light); letter-spacing:0.08em; line-height:1;
}
.nav-logo-text .tagline {
  font-size:0.48rem; letter-spacing:0.2em; text-transform:uppercase;
  color:rgba(201,168,76,0.48);
  display:flex; align-items:center; gap:6px;
  white-space:nowrap;
}
.nav-logo-text .tagline::before {
  content:''; display:inline-block;
  width:16px; height:1px; background:rgba(201,168,76,0.35);
}
.nav-logo-text .tagline::after {
  content:''; display:inline-block;
  width:16px; height:1px; background:rgba(201,168,76,0.35);
}

/* NAV LINKS */
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a {
  font-size:0.7rem; letter-spacing:0.16em; text-transform:uppercase;
  color:rgba(255,255,255,0.55); transition:var(--transition);
  position:relative; padding-bottom:3px;
  font-weight:400;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0; right:0;
  height:1px; background:linear-gradient(90deg, var(--gold), var(--gold-light));
  transform:scaleX(0); transform-origin:center; transition:var(--transition);
}
.nav-links a:hover { color:var(--gold-light); }
.nav-links a.active { color:var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); }

/* ACTIONS */
.nav-actions { display:flex; align-items:center; gap:10px; }
#lang-toggle {
  background:transparent; border:1px solid rgba(201,168,76,0.25);
  color:var(--gold-light); padding:8px 18px; border-radius:50px;
  font-size:0.68rem; cursor:pointer; letter-spacing:0.1em;
  transition:var(--transition); font-family:var(--font-body);
  display:flex; align-items:center; gap:6px;
}
#lang-toggle:hover { background:rgba(201,168,76,0.1); border-color:rgba(201,168,76,0.55); }
.nav-wa-btn {
  display:flex; align-items:center; gap:7px; background:#25D366; color:#fff;
  padding:10px 22px; border-radius:50px;
  font-size:0.68rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase;
  transition:var(--transition);
  box-shadow:0 2px 12px rgba(37,211,102,0.25);
}
.nav-wa-btn:hover { background:#1ebe57; transform:translateY(-1px); box-shadow:0 6px 20px rgba(37,211,102,0.35); }

/* HAMBURGER */
.hamburger {
  display:none; flex-direction:column; gap:6px; cursor:pointer;
  padding:8px; border:none; background:transparent;
  /* FIX: z-index added so it stays above open menu overlay */
  position:relative; z-index:1002;
}
.hamburger span { display:block; width:26px; background:var(--gold-light); transition:var(--transition); border-radius:2px; }
.hamburger span:nth-child(1) { height:1.5px; }
.hamburger span:nth-child(2) { height:1.5px; width:18px; }
.hamburger span:nth-child(3) { height:1.5px; }
.hamburger:hover span { background:var(--gold); }
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); width:26px; }
.hamburger.active span:nth-child(2) { opacity:0; transform:translateX(-8px); }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); width:26px; }

/* ---- PAGE HERO ---- */
.page-hero {
  min-height:46vh; display:flex; align-items:center; justify-content:center;
  text-align:center;
  background:linear-gradient(160deg,#080600 0%,#1A1408 45%,#080600 100%);
  padding:140px 28px 80px; position:relative; overflow:hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 65%, rgba(201,168,76,0.12) 0%, transparent 60%);
}
.page-hero h1 {
  font-family:var(--font-display); font-size:clamp(2.6rem,5vw,4.4rem);
  font-weight:300; color:var(--white); position:relative; letter-spacing:0.05em;
}
.page-hero h1 span { color:var(--gold-light); font-style:italic; }
.page-hero p { font-size:0.96rem; color:rgba(255,255,255,0.5); margin-top:16px; position:relative; letter-spacing:0.05em; }

/* ---- FOOTER ---- */
.footer { background:#060400; color:rgba(255,255,255,0.55); padding:80px 0 0; border-top:1px solid rgba(201,168,76,0.15); }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:56px; padding-bottom:56px; }
.footer-brand .logo-wrap { display:flex; align-items:center; gap:13px; margin-bottom:20px; }
.footer-brand .logo-wrap img { height:52px; }
.footer-brand .brand-name { font-family:var(--font-display); font-size:1.55rem; color:var(--gold-light); letter-spacing:0.08em; }
.footer-brand p { font-size:0.86rem; line-height:1.9; color:rgba(255,255,255,0.5); }
.footer h4 { font-size:0.68rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); margin-bottom:24px; }
.footer ul li { margin-bottom:12px; }
.footer ul li a { font-size:0.86rem; transition:var(--transition); color:rgba(255,255,255,0.5); display:inline-block; }
.footer ul li a:hover { color:var(--gold-light); transform:translateX(4px); }
.footer-contact-item { display:flex; gap:12px; margin-bottom:15px; font-size:0.86rem; align-items:flex-start; }
.footer-contact-item .icon { color:var(--gold); margin-top:3px; flex-shrink:0; }
.footer-bottom { border-top:1px solid rgba(201,168,76,0.1); padding:24px 0; display:flex; align-items:center; justify-content:space-between; }
.footer-bottom p { font-size:0.76rem; color:rgba(255,255,255,0.3); }
.footer-wa { display:flex; align-items:center; gap:7px; background:#25D366; color:#fff; padding:9px 20px; border-radius:var(--radius); font-size:0.74rem; font-weight:500; transition:var(--transition); }
.footer-wa:hover { background:#1ebe57; }

/* ---- FLOATING WA ---- */
#float-wa { position:fixed; bottom:28px; right:28px; z-index:999; width:58px; height:58px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 24px rgba(37,211,102,0.4); cursor:pointer; transition:var(--transition); border:none; }
#float-wa:hover { transform:scale(1.1); background:#1ebe57; }
#float-wa svg { width:26px; height:26px; fill:#fff; }
.float-wa-pulse { position:absolute; width:100%; height:100%; border-radius:50%; background:rgba(37,211,102,0.25); animation:pulse 2.4s infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:1} 100%{transform:scale(2);opacity:0} }

/* ---- BOTTOM NAV ---- */
/* FIX: Removed display:flex from here — mobile.css handles it at correct 768px breakpoint */
/* Base state: always hidden */
.bottom-nav {
  display: none;
  position:fixed; bottom:0; left:0; right:0;
  z-index:900;
  background:rgba(6,5,1,0.97);
  backdrop-filter:blur(20px);
  border-top:1px solid rgba(201,168,76,0.16);
  padding:8px 0;
}
.bottom-nav a { display:flex; flex-direction:column; align-items:center; gap:3px; flex:1; font-size:0.6rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); transition:var(--transition); padding:4px 0; }
.bottom-nav a .nav-icon { font-size:1.3rem; }
.bottom-nav a.active, .bottom-nav a:hover { color:var(--gold-light); }
.bottom-nav a.nav-wa { color:#25D366; }

/* ---- CARD ---- */
.card { background:var(--white); border-radius:var(--radius); border:1px solid rgba(201,168,76,0.08); transition:var(--transition); overflow:hidden; }
.card:hover { box-shadow:var(--shadow-sm); }

/* ---- LOADING RING ---- */
/* FIX: Renamed keyframe to spin-ring to avoid conflict with mobile.css spin */
.loading-ring { width:36px; height:36px; border:2px solid rgba(201,168,76,0.2); border-top-color:var(--gold); border-radius:50%; animation:spin-ring 0.8s linear infinite; margin:0 auto; }
@keyframes spin-ring { to { transform:rotate(360deg); } }

/* ---- REVEAL ANIMATION ---- */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ---- RESPONSIVE NAVBAR ---- */
@media (max-width:900px) {
  .nav-links, .nav-wa-btn { display:none; }
  .hamburger { display:flex; }
  .nav-links {
    display:flex; flex-direction:column; position:fixed;
    top:0; left:0;
    /* FIX: explicit width + min-height instead of right/bottom — 
       guarantees full screen on all mobile browsers */
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height — handles mobile browser chrome */
    background:rgba(5,4,1,0.99);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    padding:110px 28px 40px; gap:0;
    transform:translateX(-100%);
    transition:transform 0.38s cubic-bezier(0.4,0,0.2,1);
    box-shadow:0 12px 40px rgba(0,0,0,0.5);
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .nav-links.open { transform:translateX(0); }
  .nav-links a {
    font-size:0.88rem; color:rgba(255,255,255,0.65);
    padding:16px 0; letter-spacing:0.18em;
    border-bottom:1px solid rgba(201,168,76,0.07);
  }
  .nav-links a:last-child { border-bottom:none; }
  .nav-links a.active, .nav-links a:hover { color:var(--gold-light); padding-left:8px; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; gap:14px; text-align:center; }
  .section { padding:68px 0; }
}

@media (max-width:600px) {
  .navbar .container { height:auto; padding-top:10px; padding-bottom:12px; }
  .nav-logo img { height:42px; }
  .nav-logo-text .brand { font-size:1.4rem; }
  .navbar-topbar { padding: 4px 0; }
  .topbar-item { font-size: 0.55rem; letter-spacing:0.12em; }
  .topbar-hide-mobile { display: inline !important; }
  .topbar-dot:last-of-type { display: none !important; }
  .container { padding:0 18px; }

  /* FIX: lang-toggle hidden on small mobile — too big, clutters navbar */
  #lang-toggle { display: none; }

  /* FIX: Removed body padding-bottom and bottom-nav display from here
     mobile.css handles both at 768px breakpoint — no conflict */
}