/* Rosegaard Numerologi - Elite Mobile UX Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #FAF8F5;
  --bg-card: #FFFFFF;
  --primary-forest: #2C4A3E;
  --primary-forest-light: #3D6454;
  --sage-green: #6E8B7D;
  --gold-accent: #D4AF37;
  --gold-glow: #F9EBC8;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5D77F 50%, #C59A27 100%);
  --text-dark: #1E2D27;
  --text-muted: #53645B;
  --border-light: rgba(44, 74, 62, 0.12);
  --shadow-soft: 0 8px 24px rgba(44, 74, 62, 0.08);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 31px;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding-bottom: 90px; /* Safe space for bottom action bar */
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1, h2, h3, h4, .font-serif, p, span, a, li, label, button, input {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--primary-forest);
  line-height: 1.2;
}

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

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

#stardust-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.site-wrapper {
  position: relative;
  z-index: 2;
}

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

/* Mobile Sticky Navbar */
.mobile-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-logo i {
  color: var(--gold-accent);
  font-size: 1.1rem;
}

.mobile-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-size-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(44, 74, 62, 0.06);
  padding: 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(44, 74, 62, 0.15);
}

.text-size-btn {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-forest);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.text-size-btn:active {
  background: var(--gold-accent);
  color: #FFF;
}

.mobile-menu-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 74, 62, 0.08);
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Fullscreen Mobile Overlay Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF8F5;
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 20px 40px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.drawer-close {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(44, 74, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-forest);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}

.drawer-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.drawer-link.active {
  border-color: var(--gold-accent);
  background: rgba(245, 230, 179, 0.2);
  color: var(--primary-forest);
}

.drawer-footer {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.drawer-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Touch-Friendly Mobile Buttons */
.btn-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px; /* Optimal touch target */
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  transition: var(--transition);
}

.btn-mobile-gold {
  background: var(--gold-gradient);
  color: var(--primary-forest);
  box-shadow: var(--shadow-gold);
}

.btn-mobile-primary {
  background: var(--primary-forest);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(44, 74, 62, 0.2);
}

.btn-mobile-outline {
  border: 1.5px solid var(--primary-forest);
  color: var(--primary-forest);
  background: transparent;
}

.btn-mobile:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Hero Section */
.mobile-hero {
  padding-top: 76px;
  padding-bottom: 24px;
}

.hero-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-soft);
}

.hero-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(44, 74, 62, 0.05);
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-overlay i {
  color: var(--gold-accent);
}

.hero-body {
  padding: 20px 16px;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--gold-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Mobile Cards Stack & Segmented Control */
.mobile-section-header {
  text-align: center;
  margin: 24px 0 20px;
}

.mobile-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sage-green);
  font-weight: 700;
}

.mobile-title {
  font-size: 1.9rem;
  margin-top: 4px;
}

.mobile-card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.mobile-card.featured {
  border: 2px solid var(--gold-accent);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EE 100%);
}

.mobile-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold-gradient);
  color: var(--primary-forest);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.mobile-card-title {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.mobile-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* iOS Style Segmented Control Tab Switcher */
.segmented-control {
  display: flex;
  background: #F0ECE4;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.segmented-tab {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  white-space: nowrap;
}

.segmented-tab.active {
  background: #FFF;
  color: var(--primary-forest);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-weight: 700;
}

.segmented-tab span.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-forest);
}

.mobile-price-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-forest);
  margin-bottom: 14px;
}

.mobile-price-display span {
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-muted);
  font-weight: 400;
}

.mobile-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mobile-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-card-features i {
  color: var(--sage-green);
  font-size: 0.85rem;
}

/* Contact Box */
.mobile-contact-box {
  background: linear-gradient(135deg, var(--primary-forest) 0%, #172B23 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  margin-top: 30px;
}

.mobile-contact-box h3 {
  color: #FFF;
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.mobile-contact-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.mobile-email-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-glow);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
}

.mobile-social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.mobile-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Fixed Bottom Mobile Bar with Safe Area Inset */
.fixed-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
}

/* Bottom Sheet Mobile Order Modal */
.mobile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 35, 28, 0.75);
  backdrop-filter: blur(8px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-modal-sheet {
  background: #FFF;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px 18px 40px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.mobile-modal-overlay.active .mobile-modal-sheet {
  transform: translateY(0);
}

.mobile-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(44, 74, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.m-form-group {
  margin-bottom: 14px;
}

.m-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-forest);
  margin-bottom: 4px;
}

.m-form-input {
  width: 100%;
  min-height: 48px; /* Prevents iOS zoom on focus */
  padding: 12px 14px;
  border: 1px solid rgba(44, 74, 62, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px; /* Critical for iOS Safari: >=16px prevents zoom on input focus! */
  background: #FAF8F5;
}

.m-form-input:focus {
  border-color: var(--gold-accent);
  outline: none;
  background: #FFF;
}

.mobile-footer {
  text-align: center;
  padding: 30px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Accessibility & SEO Skip Link for Mobile */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--primary-forest);
  color: #FFF;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  top: 10px;
}

/* Touch Target & Tap Active Feedback Enhancements */
.btn-mobile, .segmented-tab, .text-size-btn, .mobile-menu-btn, .mobile-social-icon {
  min-height: 48px;
  touch-action: manipulation;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-mobile:active, .segmented-tab:active, .text-size-btn:active, .mobile-menu-btn:active, .mobile-social-icon:active {
  transform: scale(0.96);
  opacity: 0.9;
}

