/* ============================================================
   RGA INTERNATIONAL — main.css
   Shared styles: reset, tokens, nav, drawer, footer,
   chat widget, booking modal, utilities, responsive
   ============================================================ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #C0272D;
  --red-dark:  #8B1A1E;
  --red-light: #E8474D;
  --red-bg:    #FDF2F2;
  --black:     #111111;
  --warm:      #1A1A1A;
  --cream:     #FAF9F7;
  --border:    #E8E4DF;
  --muted:     #6B6360;
  --radius:    12px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 3.5rem);
  height: 62px;
  border-bottom: 1px solid rgba(192,39,45,0.25);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-pill { height: 38px; display: flex; align-items: center; background: #fff; border-radius: 6px; padding: 4px 9px; }
.logo-rg { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: var(--red); line-height: 1; }
.logo-a  { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: var(--black); line-height: 1; }
.logo-tagline { font-size: 10px; letter-spacing: .07em; color: rgba(255,255,255,0.35); text-transform: uppercase; margin-left: 6px; line-height: 1.3; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.62); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red-light); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-donate { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; transition: color .2s; }
.nav-donate:hover { color: #fff; }
.nav-cta {
  background: var(--red); color: #fff; border: none;
  padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px; }

/* ── MOBILE DRAWER ── */
.mob-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.mob-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.mob-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--black);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--red);
}
.mob-drawer.open { pointer-events: all; }
.mob-drawer.open .mob-overlay { background: rgba(0,0,0,0.6); }
.mob-drawer.open .mob-panel { transform: translateX(0); }
.mob-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer; align-self: flex-end; margin-bottom: 2rem; }
.mob-links { list-style: none; display: flex; flex-direction: column; }
.mob-links li a {
  display: block; color: rgba(255,255,255,0.75); text-decoration: none;
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .2s;
}
.mob-links li a:hover { color: var(--red-light); }
.mob-cta {
  margin-top: 2rem; background: var(--red); color: #fff; border: none;
  padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; width: 100%;
}

/* ── PAGE HERO (shared pattern) ── */
.page-hero { background: var(--black); padding: clamp(3.5rem,8vw,6rem) clamp(1.5rem,8vw,5.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--red-light), var(--red)); }
.hero-watermark {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(150px, 25vw, 340px);
  font-weight: 700; color: rgba(192,39,45,0.05); line-height: 1; user-select: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.3); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb span { color: var(--red-light); }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem,7vw,5.5rem); font-weight: 600; color: #fff; line-height: 1.05; margin-bottom: 1.25rem; }
.page-hero h1 em { color: var(--red-light); font-style: normal; }
.page-hero p { color: rgba(255,255,255,0.52); font-size: 15px; max-width: 520px; font-weight: 300; line-height: 1.9; }

/* ── SECTION UTILITIES ── */
.section-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); font-weight: 500; margin-bottom: .9rem;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

/* ── FILTER BAR (shared) ── */
.filter-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 8vw, 5.5rem);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  position: sticky; top: 62px; z-index: 90; min-height: 56px;
}
.filter-tabs { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; padding: .6rem 0; }
.ftab {
  padding: 6px 14px; border-radius: 100px; font-size: 13px;
  border: 1px solid transparent; cursor: pointer; background: none;
  color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all .18s; white-space: nowrap;
}
.ftab:hover { color: var(--red); background: var(--red-bg); }
.ftab.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 500; }
.search-wrap { position: relative; flex-shrink: 0; }
.search-wrap input {
  border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 14px 7px 34px; font-size: 13px;
  font-family: 'DM Sans', sans-serif; outline: none; width: 180px;
  transition: all .2s; background: var(--cream); color: var(--black);
}
.search-wrap input:focus { border-color: var(--red); width: 220px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--red); color: #fff; padding: 13px 26px; border-radius: 8px;
  font-weight: 500; font-size: 15px; text-decoration: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--black); padding: 13px 26px; border-radius: 8px;
  font-weight: 400; font-size: 15px; text-decoration: none; border: 1px solid var(--border);
  transition: all .2s; cursor: pointer; font-family: 'DM Sans', sans-serif; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-white {
  background: #fff; color: var(--red); padding: 13px 26px; border-radius: 8px;
  font-weight: 500; font-size: 15px; text-decoration: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .2s;
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: #fff; padding: 13px 26px; border-radius: 8px;
  font-size: 15px; text-decoration: none; border: 2px solid rgba(255,255,255,0.4);
  transition: all .2s; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── AUDIO BUTTON (shared) ── */
.audio-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: #fff; padding: 9px 18px;
  border-radius: 100px; font-size: 13px; font-weight: 400; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.audio-btn:hover, .audio-btn.playing { background: var(--red); }
.play-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.audio-btn.playing .play-dot { background: rgba(255,255,255,0.2); }
.play-dot svg { width: 9px; height: 9px; fill: #fff; margin-left: 1px; }
.dur-lbl { font-size: 12px; }
.wave-mini { display: none; align-items: center; gap: 2px; }
.audio-btn.playing .wave-mini { display: flex; }
.audio-btn.playing .dur-lbl { display: none; }
.wm { width: 3px; background: rgba(255,255,255,0.75); border-radius: 2px; animation: wv .9s ease-in-out infinite; }
.wm:nth-child(1){height:7px} .wm:nth-child(2){height:13px;animation-delay:.12s}
.wm:nth-child(3){height:9px;animation-delay:.24s} .wm:nth-child(4){height:15px;animation-delay:.06s}
.wm:nth-child(5){height:7px;animation-delay:.18s}
@keyframes wv { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(0.35)} }

/* ── BOOKING MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-hd h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--black); }
.modal-hd button { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.fg { margin-bottom: 1.1rem; }
.fg label { display: block; font-size: 12px; font-weight: 500; color: var(--black); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--black);
  outline: none; transition: border-color .2s; background: #fff;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--red); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-submit {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 13px; border-radius: 8px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.modal-submit:hover { background: var(--red-dark); }
.modal-confirm { display: none; text-align: center; padding: .5rem 0; }
.confirm-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.modal-confirm h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--black); margin-bottom: .5rem; }
.modal-confirm p { color: var(--muted); font-size: 14px; }

/* ── AI CHAT WIDGET ── */
.chat-bubble {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; background: var(--red);
  border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(192,39,45,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: transform .2s;
}
.chat-bubble:hover { transform: scale(1.08); }
.chat-badge { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; background: #22C55E; border: 2px solid #0A0A0A; border-radius: 50%; }
.chat-window {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 150;
  width: min(360px, calc(100vw - 2rem)); background: #fff;
  border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  display: none; flex-direction: column; border: 1px solid #EEE; max-height: 500px;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--black); padding: .85rem 1rem; border-radius: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--red);
}
.ch-left { display: flex; align-items: center; gap: 8px; }
.ch-logo { height: 26px; background: #fff; border-radius: 4px; padding: 2px 5px; display: flex; align-items: center; }
.ch-rg { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 16px; color: var(--red); }
.ch-a  { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 16px; color: var(--black); }
.ch-title { color: #fff; font-size: 13px; font-weight: 500; }
.ch-sub { color: rgba(255,255,255,0.35); font-size: 11px; }
.close-chat { background: none; border: none; color: rgba(255,255,255,0.45); font-size: 17px; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-height: 160px; }
.msg { max-width: 83%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.65; }
.msg.bot { background: #F4F2EF; color: var(--black); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: dot 1.2s infinite; }
.typing-dots span:nth-child(2){animation-delay:.2s} .typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes dot { 0%,60%,100%{opacity:.3;transform:scale(.8)} 30%{opacity:1;transform:scale(1)} }
.chat-input-row { display: flex; gap: 7px; padding: .6rem .8rem; border-top: 1px solid #EEE; }
.chat-input-row input { flex: 1; border: 1px solid #DDD; border-radius: 100px; padding: 7px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; }
.chat-input-row input:focus { border-color: var(--red); }
.chat-send { background: var(--red); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.chat-send:hover { background: var(--red-dark); }
.chat-send svg { width: 13px; height: 13px; fill: #fff; }

/* ── FOOTER ── */
footer { background: #0A0A0A; padding: clamp(3rem,5vw,4rem) clamp(1.5rem,8vw,5.5rem) 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.ft-rg { color: var(--red); font-weight: 700; font-size: 26px; font-family: 'Cormorant Garamond', serif; }
.ft-a  { color: #fff;       font-weight: 700; font-size: 26px; font-family: 'Cormorant Garamond', serif; }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 13px; line-height: 1.8; max-width: 260px; margin-top: .6rem; }
.footer-contact { margin-top: .85rem; }
.footer-contact a { display: block; color: rgba(255,255,255,0.35); font-size: 12px; text-decoration: none; margin-bottom: 3px; transition: color .2s; }
.footer-contact a:hover { color: var(--red-light); }
.footer-socials { display: flex; gap: .6rem; margin-top: .85rem; }
.fsoc { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 12px; text-decoration: none; color: rgba(255,255,255,0.4); transition: all .2s; }
.fsoc:hover { border-color: var(--red); color: var(--red-light); }
.footer-col h4 { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .85rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a { color: rgba(255,255,255,0.35); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--red-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.22); flex-wrap: wrap; gap: .5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-donate { display: none; }
  .hamburger { display: block; }
  .filter-bar { top: 62px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .fg-row { grid-template-columns: 1fr; }
}
