/* ====================================
   AURELIA MINERALS - Custom Stylesheet
   Navy, Cream & Gold Luxury Theme
   ==================================== */

:root {
  --navy: #2c3e50;
  --navy-deep: #1f2d3d;
  --navy-soft: #3a4d63;
  --gold: #d4af37;
  --gold-bright: #f4cf47;
  --gold-dark: #a8860d;
  --gold-soft: #e8c547;
  --cream: #faf6ed;
  --cream-warm: #f5ecd9;
  --ivory: #fffdf7;
  --paper: #f9f4e8;
  --text-dark: #1f2d3d;
  --text-body: #3a4d63;
  --text-muted: #6b7a8c;
  --border-soft: rgba(44, 62, 80, 0.12);
  --border-gold: rgba(212, 175, 55, 0.35);
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  /* Legacy aliases — kept to keep older inline styles working in the current cream/navy theme */
  --black: var(--cream);
  --black-soft: var(--paper);
  --black-elevated: var(--cream-warm);
  --charcoal: var(--paper);
  --white-warm: var(--navy-deep);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  background-color: var(--cream);
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.serif-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
}

.sans-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.gold-text { color: var(--gold-dark); }

.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navy-text { color: var(--navy-deep); }
.cream-bg { background-color: var(--cream); }
.paper-bg { background-color: var(--paper); }
.navy-bg { background-color: var(--navy-deep); color: var(--cream); }
.navy-bg h1, .navy-bg h2, .navy-bg h3, .navy-bg h4, .navy-bg h5, .navy-bg h6 { color: var(--cream); }

/* Navigation */
.navbar-aurelia {
  background-color: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 0;
  transition: all 0.4s ease;
}

.navbar-aurelia.scrolled {
  padding: 0.6rem 0;
  background-color: rgba(250, 246, 237, 0.98);
  box-shadow: 0 2px 24px rgba(31, 45, 61, 0.08);
}

.navbar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-deep) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.navbar-brand .brand-text { line-height: 1.1; }
.navbar-brand .brand-text small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 2px;
}

.navbar-aurelia .nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-body) !important;
  padding: 0.5rem 1.1rem !important;
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-aurelia .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navbar-aurelia .nav-link:hover,
.navbar-aurelia .nav-link.active {
  color: var(--navy-deep) !important;
}

.navbar-aurelia .nav-link:hover::after,
.navbar-aurelia .nav-link.active::after {
  width: 24px;
}

.navbar-toggler {
  border: 1px solid var(--border-gold);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232c3e50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dark));
  color: var(--navy-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: none;
  border-radius: 2px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: left 0.6s ease;
}
.btn-gold:hover {
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}
.btn-gold:hover::before { left: 100%; }

.btn-outline-gold {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.1rem;
  border-radius: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.1rem;
  border-radius: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-cream:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(44, 62, 80, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
  padding: 8rem 0 6rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 62, 80, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.24 0 0 0 0 0.31 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  color: var(--navy-deep);
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-dark);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ornament {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.hero-ornament svg { width: 100%; height: auto; }

.rotate-slow { animation: rotate 60s linear infinite; transform-origin: center; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Section base */
section { padding: 6rem 0; position: relative; }

.section-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
}
.section-title .accent {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 300;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 640px;
  line-height: 1.7;
}

/* Stats */
.stats-row {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 2.5rem 0;
}
.stat-block { text-align: center; padding: 1rem; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--navy-deep);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number .gold-suffix { color: var(--gold-dark); }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* Mineral cards */
.mineral-card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.5s ease;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}
.mineral-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.mineral-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(31, 45, 61, 0.12);
}
.mineral-card:hover::before { opacity: 1; }
.mineral-card .mineral-symbol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.mineral-card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.mineral-card .mineral-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.mineral-card p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}
.mineral-illustration {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.mineral-illustration svg { max-height: 100%; max-width: 100%; }

/* Features */
.feature-frame {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  height: 100%;
  border-radius: 4px;
  transition: all 0.4s ease;
}
.feature-frame:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(31, 45, 61, 0.1);
}
.feature-frame::before, .feature-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
}
.feature-frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.feature-frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.feature-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-dark);
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem;
}
.feature-frame h4 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--navy-deep);
}

/* Value pillars */
.value-pillar { text-align: center; padding: 2rem 1.5rem; }
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.value-pillar h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.value-pillar p { color: var(--text-body); font-size: 0.98rem; }

/* Timeline */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-gold);
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 3rem;
  padding-bottom: 3rem;
  align-items: flex-start;
}
.timeline-year {
  width: 110px;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-dark);
  text-align: right;
  padding-right: 1.5rem;
  font-weight: 400;
}
.timeline-dot {
  position: absolute;
  left: 105px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--border-gold);
}
.timeline-content h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--navy-deep);
}
.timeline-content p { color: var(--text-body); margin-bottom: 0; }

/* Product detail */
.product-detail {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.product-detail:last-child { border-bottom: none; }

.product-illustration-wrap {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  padding: 3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
}
.product-illustration-wrap::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
  border-radius: 2px;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.product-spec dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.product-spec dd {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--navy-deep);
  margin-bottom: 0;
  font-weight: 500;
}

/* Service cards */
.service-card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  padding: 2.5rem 2rem;
  height: 100%;
  border-radius: 4px;
  transition: all 0.4s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(31, 45, 61, 0.12);
}
.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.service-card h4 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-body); font-size: 0.98rem; margin-bottom: 0; }

/* Methodology */
.method-step {
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border-soft);
  height: 100%;
}
.method-step.first { border-left: none; }
.method-roman {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--gold-dark);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1;
}
.method-step h5 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--navy-deep);
}
.method-step p { font-size: 0.95rem; color: var(--text-body); }

/* Clientele */
.client-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  padding: 2.25rem 1.75rem;
  height: 100%;
  border-radius: 4px;
  text-align: center;
}
.client-card .client-icon {
  font-size: 1.8rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.client-card h5 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.client-card p { font-size: 0.95rem; color: var(--text-body); margin-bottom: 0; }

/* Forms */
.form-section { background: var(--paper); }
.contact-form .form-floating > label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form .form-control,
.contact-form .form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 1.5rem 0 0.75rem;
  color: var(--navy-deep);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  transition: border-color 0.3s;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--gold);
  color: var(--navy-deep);
}
.contact-form textarea.form-control { min-height: 120px; }
.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}
.form-check-label { font-size: 0.95rem; color: var(--text-body); }

/* Contact info cards */
.contact-card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  padding: 2rem 1.75rem;
  height: 100%;
  border-radius: 4px;
}
.contact-card .contact-flag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.contact-card h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-card .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
}
.contact-card .contact-detail i {
  color: var(--gold-dark);
  margin-top: 4px;
  width: 16px;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  color: var(--cream);
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.10) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2,
.cta-section h3 { color: var(--cream); }
.cta-section p { color: rgba(250, 246, 237, 0.85); }
.cta-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.cta-quote::before, .cta-quote::after {
  content: '"';
  color: var(--gold);
  font-size: 1.5em;
  vertical-align: -0.2em;
}
.cta-attribution {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 237, 0.75);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer .footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.footer p { font-size: 0.95rem; line-height: 1.7; color: rgba(250, 246, 237, 0.7); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a {
  color: rgba(250, 246, 237, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 2rem;
  margin-top: 3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.55);
}

/* Page header */
.page-header {
  padding-top: 9rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--navy-deep);
}
.page-header h1 .accent {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 300;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 640px;
}
.breadcrumb-custom {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-custom a:hover { color: var(--gold-dark); }
.breadcrumb-custom .separator { margin: 0 0.6rem; color: var(--gold-dark); }
.breadcrumb-custom .current { color: var(--navy-deep); }

/* Accordion */
.accordion-aurelia .accordion-item {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  margin-bottom: 0.75rem;
  border-radius: 4px;
  overflow: hidden;
}
.accordion-aurelia .accordion-button {
  background: var(--ivory);
  color: var(--navy-deep);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}
.accordion-aurelia .accordion-button:not(.collapsed) {
  background: var(--paper);
  color: var(--navy-deep);
  border-bottom: 1px solid var(--border-gold);
}
.accordion-aurelia .accordion-button::after {
  filter: invert(58%) sepia(64%) saturate(385%) hue-rotate(8deg) brightness(95%) contrast(86%);
}
.accordion-aurelia .accordion-button:focus {
  box-shadow: none;
  border-color: var(--border-gold);
}
.accordion-aurelia .accordion-body {
  background: var(--paper);
  color: var(--text-body);
  padding: 1.25rem 1.5rem;
}

/* ============== Enhanced Contact Form ============== */
.form-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  position: relative;
}
.form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 62, 80, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.form-section .container { position: relative; z-index: 1; }

/* Contact method tiles in left column */
.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-method:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.08);
}
.contact-method.contact-method-static {
  cursor: default;
}
.contact-method.contact-method-static:hover {
  transform: none;
}
.contact-method.contact-method-wa {
  border-color: rgba(37, 211, 102, 0.25);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), var(--ivory));
}
.contact-method.contact-method-wa:hover {
  border-color: var(--whatsapp);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.18);
}
.contact-method .cm-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-method-wa .cm-icon {
  background: var(--whatsapp);
  color: white;
  font-size: 1.25rem;
}
.contact-method .cm-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-method .cm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-weight: 600;
}
.contact-method .cm-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--navy-deep);
  font-weight: 500;
  word-break: break-word;
}
.contact-method .cm-value small {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* The form card */
.form-card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 3rem 3rem 2.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 80px rgba(31, 45, 61, 0.12),
    0 8px 24px rgba(31, 45, 61, 0.06);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 0 0 4px 4px;
}
.form-card-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.form-card-header .sans-mono {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.form-card-header h3 {
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--navy-deep);
}
.form-card-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}
.req {
  color: var(--gold-dark);
  font-weight: 700;
}

/* Fields */
.aurelia-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aurelia-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.aurelia-form input,
.aurelia-form select,
.aurelia-form textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--border-soft);
  border-radius: 4px;
  padding: 0.95rem 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--navy-deep);
  transition: all 0.25s ease;
  outline: none;
}
.aurelia-form input::placeholder,
.aurelia-form textarea::placeholder {
  color: rgba(107, 122, 140, 0.65);
  font-style: italic;
}
.aurelia-form input:focus,
.aurelia-form select:focus,
.aurelia-form textarea:focus {
  background: var(--ivory);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}
.aurelia-form input:hover:not(:focus),
.aurelia-form select:hover:not(:focus),
.aurelia-form textarea:hover:not(:focus) {
  border-color: var(--border-gold);
}
.aurelia-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8860d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
}
.aurelia-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Consent */
.aurelia-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px dashed var(--border-soft);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
.aurelia-form .consent:hover {
  border-color: var(--border-gold);
}
.aurelia-form .consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Submit row meta */
.form-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.form-meta i { color: var(--gold-dark); margin-right: 0.4rem; }

@media (max-width: 767px) {
  .form-card { padding: 2rem 1.5rem; }
  .form-card-header h3 { font-size: 1.5rem; }
}

/* Honeypot — visually hidden but still submittable */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Form status messages */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.5;
  border: 1.5px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-direction: row;
  flex-wrap: wrap;
}
.form-status[hidden] { display: none; }
.form-status i { font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.form-status small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.85;
  flex-basis: 100%;
}
.form-status a { font-weight: 600; }
.form-status-success {
  background: #f0f9eb;
  border-color: #b6e09b;
  color: #2d5d1c;
}
.form-status-success a { color: #2d5d1c; }
.form-status-error {
  background: #fef2f0;
  border-color: #f0b8a8;
  color: #7d2d1c;
}
.form-status-error a { color: #7d2d1c; }

/* Field error state (when server returns field-level errors) */
.aurelia-form .field.has-error input,
.aurelia-form .field.has-error select,
.aurelia-form .field.has-error textarea {
  border-color: #d04a2a !important;
  background: #fef2f0;
}
.aurelia-form .field.has-error label {
  color: #d04a2a;
}

/* Spinner button states */
.aurelia-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp);
  color: white;
  padding: 14px 22px 14px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.2);
}
.whatsapp-float .wa-icon {
  width: 28px;
  height: 28px;
  background: white;
  color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.whatsapp-float:hover .wa-icon { color: var(--whatsapp-dark); }

@media (max-width: 575px) {
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 14px; }
}

.whatsapp-inline {
  color: var(--whatsapp-dark);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.whatsapp-inline:hover { color: var(--whatsapp); }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Utility */
.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.divider-gold.center { margin-left: auto; margin-right: auto; }

::selection { background: var(--gold); color: var(--navy-deep); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============== Legacy Class Compatibility ==============
   Aliases for older class names used across pages so they
   inherit the navy/cream/gold theme styling. */

.page-header-content { text-align: center; max-width: 900px; margin: 0 auto; }
.page-header-content .breadcrumb-custom { justify-content: center; }
.page-header .page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--navy-deep);
}
.page-header .page-title em {
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 300;
}
.page-header .text-muted {
  color: var(--text-body) !important;
}
.breadcrumb-custom span:not(.current) {
  margin: 0 0.6rem;
  color: var(--gold-dark);
}

/* Section label = section-eyebrow */
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* Product detail cards (used in minerals.html) */
.product-detail-card {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.product-detail-card:last-child { border-bottom: none; }
.product-detail-card .row { align-items: center; }
.product-detail-image {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  padding: 3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
}
.product-detail-image::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
  border-radius: 3px;
}
.product-detail-image svg { max-width: 100%; max-height: 100%; }
.product-detail-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--navy-deep);
}
.product-detail-content .formula,
.product-detail-content .product-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.product-detail-content p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Specs table */
.specs-table {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border-soft);
  gap: 1rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.spec-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--navy-deep);
  font-weight: 500;
  text-align: right;
}

/* Footer aliases */
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.footer-text { color: rgba(250, 246, 237, 0.7); font-size: 0.95rem; }
.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(250, 246, 237, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  color: rgba(250, 246, 237, 0.78);
  font-size: 0.95rem;
}
.footer-contact-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* About page extras */
.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--navy-deep);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}
.timeline-text { color: var(--text-body); margin-bottom: 0; }

@media (max-width: 991px) {
  .navbar-aurelia { background-color: rgba(250, 246, 237, 0.98); }
  .navbar-collapse {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-soft);
    margin-top: 1rem;
  }
  .timeline::before { left: 8px; }
  .timeline-item { gap: 1.5rem; flex-direction: column; padding-left: 32px; }
  .timeline-year { width: auto; text-align: left; padding-right: 0; }
  .timeline-dot { left: 3px; top: 12px; }
  section { padding: 4rem 0; }
  .hero { padding: 7rem 0 4rem; min-height: auto; }
}
