/* ==========================================
   SHIV DIAMOND – Global Styles
   Luxury Lab-Grown Diamond Website
   ========================================== */

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5AA;
  --gold-dark: #A07840;
  --ivory: #FAF8F3;
  --cream: #F2EDE4;
  --charcoal: #1A1814;
  --charcoal-mid: #2D2A24;
  --warm-gray: #7A7268;
  --warm-gray-light: #B8B0A0;
  --white: #FFFFFF;
  --black: #0A0908;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  --nav-height: 80px;
  --container-max: 1280px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 169, 110, 0.2);
}

.nav__logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  color: var(--gold);
  font-size: 1.2rem;
  animation: sparkle 3s ease-in-out infinite;
}

.nav__logo-img {
  height: 48px;
  max-width: 210px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--charcoal);
  transition: color var(--transition);
}

.nav:not(.scrolled) .logo-text,
.nav:not(.scrolled) .logo-mark {
  color: var(--white);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a:hover, .nav__links a.active { color: var(--gold); }

.nav:not(.scrolled) .nav__links a { color: rgba(255,255,255,0.8); }
.nav:not(.scrolled) .nav__links a:hover { color: var(--gold-light); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.nav:not(.scrolled) .nav__hamburger span { background: var(--white); }

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* === TYPOGRAPHY === */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.section-title.light { color: var(--white); }
.section-title.large { font-size: clamp(2.8rem, 5vw, 4.5rem); }

.section-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.body-text {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.body-text.light { color: rgba(250,248,243,0.75); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

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

.btn--white {
  background: var(--white);
  color: var(--charcoal);
}
.btn--white:hover { background: var(--gold); color: var(--white); }

/* === REVEAL ANIMATIONS === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s ease var(--delay, 0s);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0);
}

/* === PAGE SECTIONS - shared === */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.1) 0%, transparent 60%);
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}

/* === SPARKLE ANIMATION === */
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.6; transform: scale(1.2) rotate(15deg); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,169,110,0.2); }
  50% { box-shadow: 0 0 40px rgba(201,169,110,0.5); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,169,110,0.2);
}

.footer__brand .footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.footer__brand .logo-mark { color: var(--gold); font-size: 1.2rem; }
.footer__brand .logo-text {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-weight: 300;
}

.footer__logo-img {
  height: 42px;
  max-width: 190px;
  width: auto;
  display: block;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--warm-gray-light);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer__social { display: flex; gap: 1rem; }
.social-icon {
  color: var(--gold);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.social-icon:hover { color: var(--gold-light); transform: translateY(-2px); }

.footer__links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.6rem; }
.footer__col ul li a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--warm-gray-light);
  transition: color var(--transition-fast);
}
.footer__col ul li a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--warm-gray);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .nav { padding: 0 1.5rem; }
  .nav__links { gap: 1.2rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav { padding: 0 1.2rem; }

  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    z-index: 1050;
    box-shadow: -4px 0 40px rgba(0,0,0,0.3);
  }

  .nav__links.open { right: 0; }

  .nav__links a {
    color: var(--warm-gray-light);
    font-size: 0.85rem;
  }

  .nav__links a:hover { color: var(--gold); }

  .footer__links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .footer__links-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { gap: 2rem; }
}
