/* ==========================================================================
   Srivin Holidays — Theme layer (v2)
   Loaded after custom.css. Brings the site onto the logo's plum + gold
   palette, adds the display typeface and fixes the mobile layout.
   ========================================================================== */

:root {
  --color-primary: #83216a;
  --color-primary-light: #c46aa9;
  --color-primary-dark: #5a1549;
  --color-secondary: #d0628f;
  --color-secondary-light: #f3b6cf;
  --color-accent: #d9a441;
  --color-accent-light: #f1cf7d;
  --color-dark: #1c0f1a;
  --color-dark-secondary: #2b1a28;
  --color-light: #fbf8f6;
  --color-text: #3d3340;
  --color-text-muted: #75697a;
  --color-border: #ece4e8;
  --cream: #f6efe9;
  --shadow-sm: 0 1px 2px rgba(28, 15, 26, .05), 0 2px 8px rgba(28, 15, 26, .04);
  --shadow-md: 0 6px 18px rgba(28, 15, 26, .08);
  --shadow-lg: 0 16px 40px rgba(28, 15, 26, .12);
  --shadow-xl: 0 24px 60px rgba(28, 15, 26, .18);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

body { background-color: var(--color-light); color: var(--color-text); }
::selection { background: var(--color-primary); color: #fff; }

/* ---------- Typography ---------- */
.sr-hero-content h1,
.sr-page-hero-content h1,
.sr-section-header h2,
.sr-display,
section h2.font-heading.text-3xl,
section h2.font-heading.text-2xl {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sr-hero-content h1 em,
.sr-section-header h2 em { font-style: italic; color: var(--color-accent-light); }
.sr-section-header h2 em { color: var(--color-primary); }

.sr-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-size: 13px;
  letter-spacing: .16em;
}
.sr-subtitle::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.sr-section-header:not(.text-left) .sr-subtitle::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.sr-section-header h2 { color: var(--color-dark); }
.sr-section-header p { color: var(--color-text-muted); }

/* ---------- Navigation ---------- */
.sr-nav-top { background: var(--color-dark); }
.sr-nav-main { background: rgba(255, 255, 255, .9); border-bottom-color: rgba(131, 33, 106, .08); }
.sr-nav-brand { background: var(--color-primary); border-radius: 10px; padding: 4px 8px; }
.sr-nav-link { font-weight: 500; color: var(--color-dark); }
.sr-nav-link:hover,
.sr-nav-link.active { color: var(--color-primary); background: rgba(131, 33, 106, .08); }
.sr-nav-cta,
.sr-btn-accent {
  background: linear-gradient(135deg, #e6b65a, var(--color-accent));
  color: #2b1a10;
  box-shadow: 0 6px 18px rgba(217, 164, 65, .35);
}
.sr-nav-cta:hover,
.sr-btn-accent:hover { color: #2b1a10; box-shadow: 0 10px 26px rgba(217, 164, 65, .45); }

/* ---------- Buttons, badges, cards ---------- */
.sr-btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: 0 6px 18px rgba(131, 33, 106, .28);
}
.sr-btn-primary:hover { box-shadow: 0 10px 26px rgba(131, 33, 106, .36); }
.sr-btn:focus-visible,
.sr-nav-link:focus-visible,
a:focus-visible,
button:focus-visible { outline: 3px solid rgba(217, 164, 65, .6); outline-offset: 2px; }
.sr-badge-primary { background: rgba(131, 33, 106, .1); color: var(--color-primary); }
.sr-card-img .sr-badge-primary,
.relative > .sr-badge-primary { background: rgba(255, 255, 255, .92); color: var(--color-primary); backdrop-filter: blur(6px); }
.sr-badge-accent { background: rgba(217, 164, 65, .18); color: var(--color-accent-light); border: 1px solid rgba(241, 207, 125, .35); }

.sr-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sr-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(131, 33, 106, .15); }

.sr-search-field input:focus,
.sr-search-field select:focus,
.sr-input:focus,
.sr-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(131, 33, 106, .12); }

/* ---------- Home hero ---------- */
.sr-hero { min-height: min(100vh, 860px); padding: 150px 0 120px; }
.sr-hero-bg img { animation: sr-kenburns 24s ease-in-out infinite alternate; }
@keyframes sr-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .sr-hero-bg img { animation: none; } }
.sr-hero-overlay {
  background:
    radial-gradient(1000px 500px at 50% 110%, rgba(131, 33, 106, .55), transparent 70%),
    linear-gradient(180deg, rgba(28, 15, 26, .72) 0%, rgba(28, 15, 26, .35) 45%, rgba(28, 15, 26, .8) 100%);
}
.sr-hero-content { max-width: 820px; }
.sr-hero-content h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.08; text-wrap: balance; }
.sr-hero-content p { text-wrap: pretty; }

/* Search card floats over the hero edge */
.sr-search-card {
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(28, 15, 26, .22);
  padding: 22px;
}
.sr-search-btn .sr-btn { border-radius: 14px; min-height: 48px; }

/* ---------- Page hero (inner pages, includes/page-hero.php) ---------- */
.sr-page-hero {
  padding: 188px 0 84px;
  min-height: 0;
  background: var(--color-dark) !important;
  isolation: isolate;
}
.sr-page-hero::before {
  background:
    radial-gradient(900px 380px at 50% 120%, rgba(131, 33, 106, .55), transparent 70%),
    linear-gradient(180deg, rgba(28, 15, 26, .78) 0%, rgba(28, 15, 26, .45) 55%, rgba(28, 15, 26, .7) 100%);
  z-index: 1;
}
.sr-page-hero-bg img { animation: sr-kenburns 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .sr-page-hero-bg img { animation: none; } }
.sr-page-hero-content { z-index: 3; }
.sr-page-hero-content h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; margin-bottom: 14px; text-wrap: balance; }
.sr-page-hero-content p { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 auto; text-wrap: pretty; }
.sr-page-hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 207, 125, .45);
  background: rgba(217, 164, 65, .16);
  color: var(--color-accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sr-page-hero-crumbs { margin-top: 26px; }
.sr-page-hero-crumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 18px;
  list-style: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}
.sr-page-hero-crumbs a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.sr-page-hero-crumbs a:hover { color: #fff; }
.sr-page-hero-crumbs .sep { display: flex; opacity: .55; }
.sr-page-hero-crumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Bands & stats ---------- */
.sr-stat-number { font-family: var(--font-display); color: var(--color-accent-light) !important; }
.sr-pricing.featured { border-color: var(--color-accent); box-shadow: 0 24px 60px rgba(131, 33, 106, .18); }
.sr-pricing-badge { background: linear-gradient(135deg, #e6b65a, var(--color-accent)); color: #2b1a10; }
.sr-pricing-feature svg { color: var(--color-primary); }

.sr-testimonial { border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sr-testimonial-quote { font-family: var(--font-display); font-size: 17px; font-style: italic; color: var(--color-dark); line-height: 1.65; }
.sr-testimonial svg[viewBox="0 0 20 20"] { color: var(--color-accent); }

.sr-accordion-item { border-radius: 14px; border-color: var(--color-border); }
.sr-accordion-item.open { border-color: rgba(131, 33, 106, .3); box-shadow: var(--shadow-md); }

/* Trust chips (home "Our Network") */
.sr-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sr-trust-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}
.sr-trust-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(131, 33, 106, .25); }

/* Soft cream for alternating sections */
.bg-slate-50 { background-color: var(--cream) !important; }

/* ---------- Footer ---------- */
.sr-footer { background: var(--color-dark) !important; position: relative; }
.sr-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

/* ---------- Modal ---------- */
.sr-modal-header { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }

/* ---------- Mobile bottom navigation ---------- */
.sr-bottom-nav {
  background: rgba(28, 15, 26, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -8px 30px rgba(28, 15, 26, .25);
}
.sr-bottom-nav > a,
.sr-bottom-nav > button { min-width: 0; }
.sr-bottom-nav > button .text-dark { color: var(--color-accent-light) !important; }
.sr-bottom-nav > button > div { background: linear-gradient(135deg, #e6b65a, var(--color-accent)); color: #2b1a10; border: 4px solid var(--color-dark); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1023.98px) {
  .sr-search-card { margin-top: -40px; }
}

@media (max-width: 768px) {
  /* The bottom bar markup has its items as direct children: lay them out in a row */
  .sr-bottom-nav { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
  /* The bottom bar already has Call; keep WhatsApp and back-to-top clear of it */
  a.fixed[href^="tel:"].bottom-40 { display: none !important; }
  a.fixed[href*="wa.me"].bottom-24 { bottom: calc(84px + env(safe-area-inset-bottom)) !important; left: 14px !important; width: 50px !important; height: 50px !important; }
  #back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 14px !important; width: 44px !important; height: 44px !important; }

  .sr-hero { min-height: 0; padding: 130px 0 96px; }
  .sr-hero-content h1 { font-size: clamp(32px, 9vw, 42px); }
  .sr-hero-content p { font-size: 15.5px; }
  .sr-hero-actions { gap: 12px; }
  .sr-hero-actions .sr-btn { width: 100%; max-width: 320px; }
  .sr-page-hero { padding: 136px 0 64px; }
  .sr-page-hero-content p { font-size: 15.5px; }
  .sr-page-hero-crumbs { margin-top: 20px; }
  .sr-search-card { padding: 18px; border-radius: 20px; }
  .sr-search-btn, .sr-search-btn .sr-btn { width: 100%; }
  .sr-subtitle { font-size: 12px; letter-spacing: .14em; }
  .sr-subtitle::before, .sr-section-header:not(.text-left) .sr-subtitle::after { width: 18px; }
}

/* Never let a stray wide element create sideways scrolling on phones */
html, body { max-width: 100%; overflow-x: clip; }

/* ---------- Enquiry modal ---------- */
.sr-modal-overlay { background: rgba(28, 15, 26, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px; }
.sr-modal-split {
  max-width: 920px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  max-height: calc(100vh - 40px);
  box-shadow: var(--shadow-xl);
}
.sr-modal-aside { position: relative; color: #fff; min-height: 100%; }
.sr-modal-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.sr-modal-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(28, 15, 26, .15) 0%, rgba(90, 21, 73, .7) 55%, rgba(28, 15, 26, .92) 100%);
}
.sr-modal-aside-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.sr-modal-aside-title { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 16px; color: #fff; }
.sr-modal-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.sr-modal-aside li { display: flex; align-items: center; gap: 10px; }
.sr-modal-aside li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-light); flex: none; }
.sr-modal-main { overflow-y: auto; padding: 28px 30px 30px; }
.sr-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sr-modal-head h3 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--color-dark); margin: 0 0 4px; }
.sr-modal-head p { margin: 0; font-size: 14px; color: var(--color-text-muted); }
.sr-modal-split .sr-modal-close {
  position: static;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--color-dark);
}
.sr-modal-split .sr-modal-close:hover { background: rgba(131, 33, 106, .12); color: var(--color-primary); }
.sr-modal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sr-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sr-field > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--color-text-muted); }
.sr-field .sr-input,
.sr-field .sr-select { min-height: 46px; border-radius: 12px; background: #fff; }
.sr-field-full { grid-column: 1 / -1; }
.sr-modal-form button[type="submit"] { margin-top: 6px; min-height: 50px; border-radius: 14px; }

@media (max-width: 860px) {
  .sr-modal-split { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sr-modal-aside { display: none; }
}
@media (max-width: 560px) {
  .sr-modal-overlay { padding: 0; align-items: flex-end; }
  .sr-modal-split { border-radius: 22px 22px 0 0; max-height: 92vh; }
  .sr-modal-main { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sr-modal-head h3 { font-size: 24px; }
  .sr-modal-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
