/* ============================================================
   shared.css — Thaistayandfly
   Shared styles: variables, base, topbar, nav, footer, wa-float
   ============================================================ */

/* ─── CSS VARIABLES ─── */
:root {
  --ink:    #0F1A14;
  --forest: #1C3528;
  --gold:   #B8924A;
  --gold-l: #D4AA6A;
  --cream:  #F4EFE6;
  --warm:   #EDE5D8;
  --mist:   #F9F6F1;
  --smoke:  #EDE5D8;
  --muted:  #7A7268;
  --white:  #FFFFFF;
  --text:   #0F1A14;
  --coral:  #C05A3A;
  --green:  #2A6B47;
  --blue:   #1A5FA3;
  --teal:   #0D7A8F;
  --purple: #5E4A9E;
  --amber:  #C47A0B;
  --thai-red:    #C0392B;
  --thai-green:  #27735A;
  --thai-blue:   #1A5FA3;
  --thai-teal:   #0D7A8F;
  --thai-purple: #5E4A9E;
  --thai-amber:  #C47A0B;
  --thai-cyan:   #0891B2;
  --thai-rose:   #B5334A;
  --thai-forest: #2D6A2D;
}

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

html { scroll-behavior: smooth; }
iframe { display: block; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--mist);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
}

/* grain overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,26,20,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(184,146,74,0.2);
}

.agency-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.logo-text { line-height: 1.15; }

.logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 17px; font-weight: 400;
  color: var(--white); letter-spacing: 0.3px;
}

.logo-tagline {
  font-size: 9px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ─── NAV LINKS (between pages) ─── */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}

.nav-link {
  font-family: 'Heebo', sans-serif;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.58);
  text-decoration: none; padding: 6px 12px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--gold); }

/* ─── TOPBAR CTA BUTTON ─── */
.topbar-btn {
  background: transparent;
  border: 1px solid rgba(184,146,74,0.45);
  color: var(--gold); border-radius: 3px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  font-family: 'Heebo', sans-serif; letter-spacing: 0.5px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: all 0.22s;
  flex-shrink: 0;
}

.topbar-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* on mobile: wrap nav to a second row below logo + CTA */
@media (max-width: 500px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 16px 0;
  }
  .agency-logo { flex: 1; }
  .nav-links {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(184,146,74,0.12);
    margin-top: 8px;
    padding: 4px 0;
  }
  .nav-link {
    font-size: 12px;
    padding: 8px 12px;
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.wa-float {
  position: fixed; bottom: 24px; left: 22px; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  animation: waPulse 3.5s ease-in-out infinite;
}

.wa-float:hover { transform: scale(1.1); }

@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.65); }
}

/* ─── FOOTER ─── */
.footer { background: var(--ink); padding: 36px 20px 60px; width: 100%; }
.footer-inner { max-width: 740px; margin: 0 auto; }

.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-mark {
  width: 40px; height: 40px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}

.footer-logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 19px; font-weight: 400; color: var(--white);
}

.footer-logo-sub {
  font-size: 10px; color: rgba(255,255,255,0.28);
  margin-top: 2px; letter-spacing: 0.5px;
}

.footer-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 18px;
}

.footer-contact-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 11px 14px;
  text-decoration: none; display: flex;
  align-items: center; gap: 9px; transition: background 0.2s;
}

.footer-contact-item:hover { background: rgba(255,255,255,0.09); }

.fci-icon {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center;
  justify-content: center; font-size: 14px; flex-shrink: 0;
}

.fci-text { line-height: 1.3; }

.fci-label {
  font-size: 9px; color: rgba(255,255,255,0.35);
  font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
}

.fci-value { font-size: 12px; color: var(--white); font-weight: 500; direction: ltr; }

.footer-whatsapp {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; background: #25D366; color: var(--white);
  text-decoration: none; border-radius: 4px;
  padding: 13px; font-size: 14px; font-weight: 600;
  margin-bottom: 18px; transition: background 0.2s;
  font-family: 'Heebo', sans-serif;
}

.footer-whatsapp:hover { background: #1eb557; }

.footer-bottom {
  text-align: center; font-size: 10.5px;
  color: rgba(255,255,255,0.2); line-height: 1.6; letter-spacing: 0.3px;
}

.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ─── COLLAPSIBLE ACTIVITY CARDS ─── */
.activity-card { cursor: pointer; }

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.card-title::after {
  content: '▾';
  font-family: sans-serif;
  font-size: 18px;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1.3;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.activity-card.open .card-title::after {
  transform: rotate(180deg);
}

.card-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.activity-card.open .card-collapsible {
  max-height: 600px;
}

/* ─── CITY WHATSAPP CTA ─── */
.city-cta {
  text-align: center;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid rgba(15,26,20,0.07);
}
.city-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'Heebo', sans-serif;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid rgba(184,146,74,0.35);
  border-radius: 4px;
  transition: all 0.2s;
}
.city-cta-btn:hover { background: var(--gold); color: var(--white); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 380px) {
  .footer-contact-grid { grid-template-columns: 1fr; }
}
