/* ==========================================================================
   JEWELIFY — LUXURY DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

:root {
  --primary-emerald: #075E3D;
  --primary-dark: #0B2B20;
  --primary-deep: #051A13;
  --primary-light: #E8F0EC;
  --primary-border: #D1DFD9;

  --accent-gold: #D4AF37;
  --accent-gold-light: #FBF6E9;
  --accent-gold-dark: #997D25;

  --bg-main: #F8FAF9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F3;

  --text-main: #111B17;
  --text-muted: #4A5450;
  --text-light: #76807C;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(11, 43, 32, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Ambient Background Blobs */
.bg-blob-1, .bg-blob-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
  animation: floatAnim 12s ease-in-out infinite alternate;
}
.bg-blob-1 {
  width: 450px;
  height: 450px;
  background: #DCE8E2;
  top: -120px;
  right: -100px;
}
.bg-blob-2 {
  width: 380px;
  height: 380px;
  background: #FFF5DD;
  bottom: -100px;
  left: -80px;
  animation-delay: -6s;
}

@keyframes floatAnim {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.06); }
}

/* Top Notification / Ticker Bar */
.top-ticker {
  background: var(--primary-deep);
  color: #E2ECE7;
  font-size: 0.82rem;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.top-ticker span.highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(209, 223, 217, 0.6);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.86rem;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-emerald);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-emerald);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(7, 94, 61, 0.25);
}
.btn-primary:hover {
  background: #064C32;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 94, 61, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #B89326 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #E0BE4A 0%, #C9A334 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary-emerald);
  border: 1.5px solid var(--primary-emerald);
}
.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.btn-pwa-install {
  display: inline-flex;
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.88rem;
  padding: 8px 16px;
}
.btn-pwa-install:hover {
  background: #F4ECCF;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-emerald);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Page Hero */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 60px 24px 40px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 16px 0;
}
.page-hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Content Container */
.content-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

/* Policy & Legal Documents */
.policy-card {
  background: var(--bg-card);
  border: 1px solid #E5ECE8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
  margin-bottom: 40px;
}
.policy-card h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EEF3F0;
}
.policy-card h2:first-of-type {
  margin-top: 0;
}
.policy-card p, .policy-card li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.policy-card ul, .policy-card ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.policy-card li {
  margin-bottom: 8px;
}

/* Highlight Box / Compliance Note */
.compliance-box {
  background: #F3F8F5;
  border-left: 4px solid var(--primary-emerald);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}
.compliance-box p {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid #E5ECE8;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item:last-child {
  margin-bottom: 0;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.contact-details p, .contact-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.contact-details a:hover {
  color: var(--primary-emerald);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid #E5ECE8;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D5DFDC;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #FAFCFB;
  transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-emerald);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(7, 94, 61, 0.12);
}

/* Pricing Card */
.pricing-wrapper {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #D4AF37 0%, #B89326 100%);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.price-display {
  margin: 24px 0;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
.price-period {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 32px 0;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #EEF3F0;
  font-size: 0.96rem;
  color: var(--text-muted);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features svg {
  color: var(--primary-emerald);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: #CFD9D5;
  padding: 60px 24px 30px;
  margin-top: auto;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p {
  color: #9AA8A2;
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-heading {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #A6B5AF;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-contact-info {
  font-size: 0.88rem;
  color: #A6B5AF;
  line-height: 1.7;
}
.footer-contact-info b {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #7D8E87;
}
.footer-bottom a {
  color: #A6B5AF;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--accent-gold);
}

/* Responsive Overrides */
@media (max-width: 960px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1100px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--primary-border);
    gap: 16px;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .policy-card {
    padding: 28px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* PWA Install Modal */
.pwa-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 43, 32, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pwa-modal-overlay.active {
  display: flex;
}
.pwa-modal-card {
  background: #FFFFFF;
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 100%;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.25s ease;
  position: relative;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.pwa-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}
.pwa-step-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  margin: 18px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.pwa-step-box ol {
  padding-left: 20px;
  margin-top: 6px;
}
.pwa-step-box li {
  margin-bottom: 6px;
}
