/*
Theme Name:  Riyaz Visa Premium
Template:    astra
Description: Child theme for RiyazVisa.com — Ultra Premium Edition v3
Version:     3.0
Author:      Riyaz Tour & Travels
Author URI:  https://riyazvisa.com
*/

/* ============================================================
   GOOGLE FONTS — Editorial Luxury Pairing
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --rv-ink:           #0D1117;   /* Near-black — primary text */
  --rv-ink-soft:      #2C3340;   /* Headings */
  --rv-gold:          #C9922A;   /* Primary gold */
  --rv-gold-2:        #E8B84B;   /* Gold highlight */
  --rv-gold-pale:     #FDF6E8;   /* Gold tint bg */
  --rv-gold-border:   #E8D5A3;   /* Gold border */

  /* Neutrals */
  --rv-white:         #FFFFFF;
  --rv-warm-white:    #FEFCF8;   /* Warm off-white */
  --rv-pearl:         #F7F3EC;   /* Section bg */
  --rv-stone:         #EDE8DF;   /* Dividers & borders */
  --rv-text:          #3D3530;   /* Body text — warm dark */
  --rv-muted:         #7A7068;   /* Secondary text */
  --rv-muted-2:       #ADA49A;   /* Placeholder / hints */

  /* Accent */
  --rv-navy:          #0F2644;   /* Deep navy for contrast sections */
  --rv-green:         #1A7A50;
  --rv-green-bg:      #E8F5EE;

  /* Typography */
  --font-display:     'DM Serif Display', Georgia, serif;
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-body:        'DM Sans', system-ui, sans-serif;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:  0 1px 4px rgba(13,17,23,0.06);
  --sh-sm:  0 2px 12px rgba(13,17,23,0.07);
  --sh-md:  0 6px 28px rgba(13,17,23,0.09);
  --sh-lg:  0 16px 56px rgba(13,17,23,0.11);
  --sh-gold:0 4px 24px rgba(201,146,42,0.22);

  /* Spacing */
  --sp-section: 96px;
  --sp-section-sm: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--rv-text);
  background: var(--rv-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--rv-ink-soft);
  letter-spacing: -0.02em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--rv-ink-soft);
}

h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
h4 { font-size: 17px; }

p { margin-bottom: 1em; color: var(--rv-text); }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rv-gold); }

em { font-style: italic; }
strong { font-weight: 600; color: var(--rv-ink-soft); }

/* ============================================================
   LAYOUT
   ============================================================ */
.rv-section       { padding: var(--sp-section) 0; }
.rv-section-sm    { padding: var(--sp-section-sm) 0; }
.rv-section-pearl { background: var(--rv-pearl); }
.rv-section-navy  { background: var(--rv-navy); }
.rv-section-gold  { background: var(--rv-gold-pale); }

.rv-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   EYEBROW / LABEL
   ============================================================ */
.rv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rv-gold);
  margin-bottom: 16px;
}

.rv-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--rv-gold);
  flex-shrink: 0;
}

/* ============================================================
   GOLD RULE DIVIDER
   ============================================================ */
.rv-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--rv-gold), var(--rv-gold-2));
  border: none;
  margin: 20px 0 32px;
}
.rv-rule-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   SECTION HEADING GROUP
   ============================================================ */
.rv-heading-group { margin-bottom: 56px; }
.rv-heading-group.center { text-align: center; }
.rv-heading-group.center .rv-eyebrow { justify-content: center; }
.rv-heading-group.center .rv-rule { margin-left: auto; margin-right: auto; }

.rv-heading-group h2 { margin-bottom: 14px; }

.rv-heading-group .rv-sub {
  font-size: 16px;
  color: var(--rv-muted);
  max-width: 540px;
  line-height: 1.8;
}

.rv-heading-group.center .rv-sub { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary */
.rv-btn-primary {
  background: var(--rv-gold);
  color: #fff;
  box-shadow: var(--sh-gold);
}
.rv-btn-primary:hover {
  background: var(--rv-gold-2);
  color: #fff;
  box-shadow: 0 8px 32px rgba(201,146,42,0.34);
  transform: translateY(-2px);
}
.rv-btn-primary:active { transform: translateY(0); }

/* Outlined */
.rv-btn-outline {
  background: transparent;
  color: var(--rv-ink-soft);
  border: 1.5px solid var(--rv-stone);
}
.rv-btn-outline:hover {
  border-color: var(--rv-gold);
  color: var(--rv-gold);
  background: var(--rv-gold-pale);
}

/* Ghost Navy */
.rv-btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.rv-btn-ghost-white:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* WhatsApp */
.rv-btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.rv-btn-wa:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--rv-gold-pale);
  color: var(--rv-gold);
  border: 1px solid var(--rv-gold-border);
  letter-spacing: 0.2px;
}

.rv-tag-ink {
  background: rgba(13,17,23,0.05);
  color: var(--rv-ink-soft);
  border-color: var(--rv-stone);
}

.rv-tag-white {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

/* ============================================================
   CARDS
   ============================================================ */
.rv-card {
  background: var(--rv-white);
  border: 1px solid var(--rv-stone);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, border-color 0.25s;
}

.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--rv-gold-border);
}

.rv-card-sm { padding: 22px 24px; }

/* Gold accent top */
.rv-card-gold-top { border-top: 3px solid var(--rv-gold); }

/* Filled pearl */
.rv-card-pearl {
  background: var(--rv-pearl);
  border-color: var(--rv-stone);
}

/* ============================================================
   ICON BOX
   ============================================================ */
.rv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--rv-gold-pale);
  border: 1px solid var(--rv-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rv-gold);
  font-size: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.rv-card:hover .rv-icon {
  background: var(--rv-gold);
  color: #fff;
  border-color: var(--rv-gold);
}

/* ============================================================
   STAT NUMBER
   ============================================================ */
.rv-stat {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  color: var(--rv-ink-soft);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rv-stat em { color: var(--rv-gold); font-style: normal; }

.rv-stat-lbl {
  font-size: 12.5px;
  color: var(--rv-muted);
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 400;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.rv-stars {
  color: var(--rv-gold-2);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.rv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rv-gold-pale);
  border: 2px solid var(--rv-gold-border);
  color: var(--rv-gold);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  flex-shrink: 0;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.rv-field {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--rv-stone);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--rv-text);
  background: var(--rv-warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.rv-field:focus {
  border-color: var(--rv-gold);
  box-shadow: 0 0 0 3.5px rgba(201,146,42,0.14);
  background: #fff;
}

.rv-field::placeholder { color: var(--rv-muted-2); }

.rv-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rv-muted);
  margin-bottom: 6px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.rv-topbar {
  background: var(--rv-ink);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.2px;
}

.rv-topbar a { color: var(--rv-gold-2); }
.rv-topbar a:hover { color: #fff; }

.rv-topbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.rv-nav {
  background: var(--rv-warm-white);
  border-bottom: 1px solid var(--rv-stone);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--sh-xs);
}

.rv-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
}

.rv-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--rv-ink-soft);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.rv-logo em {
  font-style: italic;
  color: var(--rv-gold);
}

.rv-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--rv-muted);
  list-style: none;
}

.rv-nav-links a {
  color: var(--rv-muted);
  transition: color 0.2s;
}

.rv-nav-links a:hover,
.rv-nav-links .current a {
  color: var(--rv-ink-soft);
}

/* Astra overrides */
.site-header, #masthead {
  background: var(--rv-warm-white) !important;
  border-bottom: 1px solid var(--rv-stone) !important;
  box-shadow: var(--sh-xs) !important;
}

.site-branding .site-title,
.site-branding .site-title a {
  font-family: var(--font-display) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: var(--rv-ink-soft) !important;
  letter-spacing: -0.02em !important;
}

.main-header-menu .menu-item > a,
.main-navigation .menu-item > a {
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: var(--rv-muted) !important;
  letter-spacing: 0.1px !important;
  transition: color 0.2s !important;
}

.main-header-menu .menu-item > a:hover,
.main-navigation .current-menu-item > a {
  color: var(--rv-ink-soft) !important;
}

.ast-sticky-active {
  box-shadow: 0 2px 24px rgba(13,17,23,0.09) !important;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.rv-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rv-pearl);
  border: 2px solid var(--rv-stone);
  color: var(--rv-muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.rv-card:hover .rv-step-dot {
  background: var(--rv-gold);
  border-color: var(--rv-gold);
  color: #fff;
}

/* ============================================================
   COUNTRY CARD
   ============================================================ */
.rv-country {
  background: var(--rv-white);
  border: 1px solid var(--rv-stone);
  border-radius: var(--r-md);
  padding: 20px 14px;
  text-align: center;
  cursor: default;
  transition: all 0.22s;
  box-shadow: var(--sh-xs);
}

.rv-country:hover {
  border-color: var(--rv-gold-border);
  box-shadow: var(--sh-sm);
  transform: translateY(-3px);
}

.rv-country-flag { font-size: 30px; margin-bottom: 8px; display: block; }
.rv-country-name { font-size: 13px; font-weight: 500; color: var(--rv-ink-soft); line-height: 1.3; }
.rv-country-type { font-size: 11px; color: var(--rv-muted-2); margin-top: 4px; }

/* ============================================================
   HERO — new layout
   ============================================================ */
.rv-hero {
  background: var(--rv-warm-white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Large decorative circle */
.rv-hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rv-gold-pale) 0%, transparent 68%);
  pointer-events: none;
}

/* Bottom line */
.rv-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rv-stone), transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.rv-footer {
  background: var(--rv-ink);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 0;
}

.rv-footer-logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.rv-footer-logo em { color: var(--rv-gold-2); font-style: italic; }

.rv-footer h5 {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.35) !important;
  margin-bottom: 20px !important;
}

.rv-footer a {
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
  transition: color 0.2s;
}

.rv-footer a:hover { color: var(--rv-gold-2); }

.rv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rv-footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 18px;
  margin-right: 8px;
  transition: all 0.2s;
}

.rv-footer-social a:hover {
  background: var(--rv-gold);
  border-color: var(--rv-gold);
  color: #fff;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.rv-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.42);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.rv-wa-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

.rv-wa-float::before {
  content: 'Chat on WhatsApp';
  position: absolute;
  right: 70px;
  background: var(--rv-ink);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-body);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.rv-wa-float:hover::before { opacity: 1; }

/* ============================================================
   ELEMENTOR & ASTRA OVERRIDES
   ============================================================ */
.elementor-section.elementor-section-full_width { width: 100% !important; }

.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
  color: var(--rv-ink-soft);
}

.elementor-widget-text-editor {
  font-family: var(--font-body);
  color: var(--rv-text);
}

.elementor-button.rv-btn-primary {
  background: var(--rv-gold) !important;
  border-color: var(--rv-gold) !important;
}

.elementor-button.rv-btn-primary:hover {
  background: var(--rv-gold-2) !important;
}

.e-con-inner { max-width: 1180px !important; }

body {
  --e-global-color-primary: var(--rv-ink-soft);
  --e-global-color-secondary: var(--rv-gold);
  --e-global-color-text: var(--rv-text);
  --e-global-color-accent: var(--rv-gold-2);
  --e-global-typography-primary-font-family: 'DM Serif Display';
  --e-global-typography-secondary-font-family: 'DM Sans';
  --e-global-typography-text-font-family: 'DM Sans';
}

/* Astra full width */
.ast-page-builder-template .site-content,
.ast-full-width-layout .site-content {
  padding: 0 !important;
  max-width: 100% !important;
}

.ast-page-builder-template .entry-content,
.ast-full-width-layout .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
}

.ast-page-builder-template .entry-header { display: none !important; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-gold    { color: var(--rv-gold) !important; }
.text-ink     { color: var(--rv-ink-soft) !important; }
.text-muted   { color: var(--rv-muted) !important; }
.text-white   { color: #fff !important; }
.bg-pearl     { background: var(--rv-pearl) !important; }
.bg-gold-pale { background: var(--rv-gold-pale) !important; }
.bg-ink       { background: var(--rv-ink) !important; }
.font-display { font-family: var(--font-display) !important; }
.font-serif   { font-family: var(--font-serif) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rv-fade-up { animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) both; }
.rv-delay-1 { animation-delay: 0.1s; }
.rv-delay-2 { animation-delay: 0.2s; }
.rv-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --sp-section: 72px; --sp-section-sm: 48px; }

  [style*="grid-template-columns:1fr 360px"],
  [style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(5,1fr);"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .rv-topbar { font-size: 11px; }
}

@media (max-width: 640px) {
  :root { --sp-section: 52px; --sp-section-sm: 36px; }

  .rv-container { padding: 0 18px; }

  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="display:flex;gap:32px"],
  [style*="display:flex;gap:24px"] {
    flex-wrap: wrap !important;
    gap: 20px !important;
  }

  [style*="display:flex;justify-content:center;gap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .rv-topbar { display: none; }

  .rv-wa-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }

  .rv-wa-float::before { display: none; }

  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
