/*
Theme Name: Rai - Beauty and Wellness
Author: Abdul Fatha
Description: A clean, custom base theme with full HTML flexibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: #
*/

/* ========================================== */
/* ADD YOUR CUSTOM CSS STYLES BELOW THIS LINE */
/* ========================================== */

:root {
  /* Brand */
  --teal: #19494C;
  --teal-deep: #0F3033;
  --teal-soft: #2D6266;
  --teal-mist: #E8EFEE;
  --sand: #CBB69C;
  --sand-soft: #DDC9B2;
  --sand-pale: #EBDFCD;
  --clay: #94573D;
  --clay-deep: #7A4530;
  --clay-soft: #B07050;
  --cream: #FAF6F1;
  --cream-deep: #F2EAE0;
  --rose-gold: #C18C6F;

  --ink: #1F1916;
  --ink-soft: #4A3F38;
  --ink-mute: #7A6D63;
  --line: rgba(31, 25, 22, 0.10);
  --line-soft: rgba(31, 25, 22, 0.06);
  --white: #FFFFFF;

  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--teal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { color: var(--ink-soft); line-height: 1.75; }
a { color: var(--teal); text-decoration: none; transition: color 0.25s; }
img { max-width: 100%; display: block; }

.shell { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--clay-soft);
}
.eyebrow.left::before { display: none; }
.eyebrow.right::after { display: none; }

.italic {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

/* ============== TOP RIBBON ============== */
.ribbon {
  background: var(--teal);
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 9px 0;
  text-align: center;
}
.ribbon-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ribbon-item { color: rgba(250, 246, 241, 0.78); }
.ribbon-item strong { color: var(--cream); font-weight: 500; letter-spacing: 0.18em; }
.ribbon-dot { color: var(--sand); }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.nav-left a:hover, .nav-right a:hover { color: var(--clay); }
.nav-has-sub { position: relative; cursor: pointer; }
.nav-has-sub > a::after {
  content: '⌄';
  margin-left: 6px;
  font-size: 0.85rem;
  opacity: 0.55;
  display: inline-block;
  transform: translateY(-2px);
}
.nav-sub {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 0;
  min-width: 220px;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(31, 25, 22, 0.10);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.nav-has-sub:hover .nav-sub { opacity: 1; visibility: visible; top: 100%; }
.nav-sub li a {
  display: block;
  padding: 9px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink);
  font-weight: 400;
}
.nav-sub li a:hover { background: var(--cream); color: var(--clay); }

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.nav-mark-emblem {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--clay);
  font-weight: 500;
  position: relative;
}
.nav-mark-emblem::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 0.5px solid var(--sand);
  border-radius: 50%;
}
.nav-mark-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav-mark-text-sub {
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 400;
  margin-top: 2px;
}

.nav-cta {
  background: var(--teal);
  color: var(--cream) !important;
  padding: 11px 22px !important;
  border-radius: 999px;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em !important;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--clay) !important; color: var(--cream) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--teal);
  cursor: pointer;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-fill { background: var(--teal); color: var(--cream); }
.btn-fill:hover { background: var(--clay); color: var(--cream); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(148, 87, 61, 0.28); }
.btn-clay { background: var(--clay); color: var(--cream); }
.btn-clay:hover { background: var(--teal); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--teal); }
.btn-cream:hover { background: var(--white); transform: translateY(-2px); }



/* ============== FOOTER ============== */
.footer {
  background: var(--teal-deep);
  color: rgba(250, 246, 241, 0.72);
  padding: 90px 0 36px;
}
.footer-shell { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(250, 246, 241, 0.5);
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 24px 32px;
  border: 1px solid rgba(250, 246, 241, 0.1);
  border-radius: 4px;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250, 246, 241, 0.1);
  margin-bottom: 30px;
}

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-brand-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sand);
  margin-bottom: 18px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(250, 246, 241, 0.65);
  max-width: 360px;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(250, 246, 241, 0.7);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--sand); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(250, 246, 241, 0.7);
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--sand);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(250, 246, 241, 0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(250, 246, 241, 0.5); }
.footer-bottom-links a:hover { color: var(--sand); }



/* ============== MOBILE DRAWER ============== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 25, 22, 0.45);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 88vw);
  background: var(--cream);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 100%;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--clay); }

.mobile-nav-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-links > li > a,
.mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.mobile-nav-links > li > a:hover,
.mobile-sub-toggle:hover { color: var(--clay); }

.mobile-sub-arrow {
  font-size: 1.1rem;
  color: var(--ink-mute);
  transition: transform 0.25s;
  display: inline-block;
}
.mobile-sub-toggle[aria-expanded="true"] .mobile-sub-arrow {
  transform: rotate(90deg);
}

.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-sub.open {
  max-height: 500px;
}
.mobile-sub li a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s;
}
.mobile-sub li a:hover { color: var(--clay); }

.mobile-nav-cta {
  margin-top: 32px;
  width: 100%;
  text-align: center;
}

/* prevent body scroll when drawer is open */
body.nav-open { overflow: hidden; }


/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .nav-shell { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: block; text-align: right; }
  .nav-mark { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .ribbon-inner { gap: 14px; font-size: 0.66rem; }
  .ribbon-dot { display: none; }
  .nav-shell { padding: 14px 24px; }
  .nav-mark-emblem { width: 32px; height: 32px; font-size: 1rem; }
  .nav-mark-text { font-size: 1.15rem; }
  .nav-mark-text-sub { font-size: 0.52rem; }

  .shell, .hero-shell, .intro-shell, .member-shell, .footer-shell, .faq-shell, .bcta-shell, .trust-shell, .founder-shell { padding: 0 24px; }
  .footer { padding: 70px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}