/* ==========================================================================
   RIZWA — Global Design System
   Wellness. Lifestyle. Community.
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-deep: #091e27;
  --color-teal: #48f0e7;
  --color-white: #ffffff;
  --color-offwhite: #f6fbfb;
  --color-deep-soft: #123241;
  --color-teal-soft: #d6fbf8;

  /* Text */
  --text-dark: #0d1f26;
  --text-muted: #55707a;
  --text-on-dark: #eaf7f6;
  --text-on-dark-muted: #a9c7c5;

  /* Gradient */
  --gradient-hero: linear-gradient(45deg, #091e27 0%, #0f3a44 45%, #48f0e7 100%);
  --gradient-brand: linear-gradient(45deg, #091e27, #48f0e7);
  --gradient-teal-glow: linear-gradient(135deg, rgba(72, 240, 231, 0.25), rgba(9, 30, 39, 0.05));

  /* Effects */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;
  --shadow-soft: 0 20px 45px -20px rgba(9, 30, 39, 0.25);
  --shadow-card: 0 12px 30px -12px rgba(9, 30, 39, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.24);

  /* Layout */
  --container-w: 1180px;
  --section-pad: clamp(64px, 9vw, 120px);

  /* Fonts */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
p { line-height: 1.7; margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--gradient-hero);
  color: var(--text-on-dark);
}
.section--dark p { color: var(--text-on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }

.section--tint {
  background: var(--color-offwhite);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-deep);
  opacity: 0.6;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--color-teal); opacity: 0.9; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #0f3a44, #48f0e7);
  color: var(--color-white);
  box-shadow: 0 14px 30px -10px rgba(72, 240, 231, 0.45);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(72, 240, 231, 0.6); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* Bold white ring — used to make CTAs pop against the gradient */
.btn-ringed {
  position: relative;
}
.btn-ringed::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.85);
  pointer-events: none;
}


.btn-outline-dark {
  background: transparent;
  color: var(--color-deep);
  border: 1.5px solid rgba(9,30,39,0.25);
}
.btn-outline-dark:hover { background: rgba(9,30,39,0.06); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.35s ease;
  background: linear-gradient(180deg, rgba(9,30,39,0.55), rgba(9,30,39,0));
}
.navbar.is-scrolled {
  padding: 12px 0;
  background: rgba(9, 30, 39, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
}
.brand span { color: var(--color-teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--text-on-dark);
  font-size: 0.94rem;
  font-weight: 600;
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--color-teal);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
  padding-top: 100px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg, rgba(9,30,39,0.92), rgba(9,30,39,0.35) 60%, rgba(72,240,231,0.25));
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }
.hero-inner .eyebrow { color: var(--color-teal); opacity: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: var(--color-white);
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-page { min-height: 52vh; padding-top: 140px; padding-bottom: 60px; }
.hero-page h1 { margin-bottom: 12px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(9,30,39,0.05);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--gradient-teal-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(72,240,231,0.18);
  color: #0a6b64;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* Photo-based card icon (used on homepage "What You'll Find") */
.card-photo {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,30,39,0) 40%, rgba(9,30,39,0.25));
}
.card-featured {
  border: 1.5px solid rgba(72,240,231,0.5);
  box-shadow: 0 16px 40px -18px rgba(72,240,231,0.5);
}


/* Event / Photo Cards */
.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.photo-card .photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.photo-card .photo .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(9,30,39,0.65);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.photo-card .content { padding: 22px 22px 26px; }
.photo-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 12px;
}
.meta-row span { display: flex; align-items: center; gap: 6px; }

/* ---------- Featured Tool ---------- */
.tool-banner {
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background: var(--gradient-hero);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.tool-banner::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(72,240,231,0.35), transparent 70%);
  top: -120px; right: -100px;
}
.tool-banner .tool-content { position: relative; z-index: 2; max-width: 560px; }
.tool-banner h2 { color: var(--color-white); }
.tool-banner p { color: var(--text-on-dark-muted); }

/* Faded calculator readout mockup — decorative background element */
.calc-mockup {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.16;
  overflow: hidden;
}
.calc-mockup .mockup-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 7rem;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}
.calc-mockup .mockup-unit {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-left: 10px;
}
.calc-mockup .mockup-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.calc-mockup .mockup-macros {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 18px;
}
.calc-mockup .mockup-macros span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
}
@media (max-width: 900px) { .calc-mockup { display: none; } }


/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep);
  color: var(--text-on-dark-muted);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--color-teal); }
.social-row { display: flex; gap: 14px; margin-top: 4px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.social-row a:hover { background: rgba(72,240,231,0.15); border-color: var(--color-teal); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(9,30,39,0.12);
  background: var(--color-offwhite);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  background: var(--color-white);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Chips / Pills (used widely by calculator + filters) ---------- */
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(9,30,39,0.12);
  background: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--color-teal); }
.chip.active {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: var(--color-white);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--color-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 36px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .tool-banner { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 36px; }

  .hero-page { padding-top: 110px; padding-bottom: 44px; }

  /* Allow buttons to wrap onto 2 lines instead of overflowing on narrow screens */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .btn { padding: 13px 22px; font-size: 0.88rem; }
  .hero-page { padding-top: 96px; }
  .container { padding: 0 16px; }
}

