/* ===================================================================
   RYD Travels & Tours — Global Stylesheet
   Brand: Ride your Destination
   =================================================================== */

:root {
  --red: #d81f26;
  --blue: #2f6bff;
  --purple: #8a1fb0;
  --dark: #0e1020;
  --dark-2: #171a2e;
  --ink: #1a1c2e;
  --muted: #5b6072;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --white: #ffffff;
  --gold: #f5b301;
  --grad: linear-gradient(90deg, var(--red) 0%, var(--dark) 35%, var(--blue) 62%, var(--purple) 100%);
  --grad-btn: linear-gradient(90deg, var(--red), var(--purple));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 20, 45, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 20, 45, 0.18);
  --container: 1180px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  animation: pageFadeIn 0.5s ease both;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--ink); }
h2.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head:has(.nowrap-lg) { max-width: 900px; }
.nowrap-lg { white-space: nowrap; }
@media (max-width: 640px) { .nowrap-lg { white-space: normal; } }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px rgba(138, 31, 176, 0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(138, 31, 176, 0.42); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,20,45,0.08); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand .brand-txt { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand .brand-txt small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.96rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-btn); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Contact Us button in the nav */
.nav-links a.nav-cta {
  color: #fff;
  padding: 12px 26px;
  margin-left: 8px;
  white-space: nowrap;
  font-weight: 600;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.6px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 110px 0 60px;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,16,32,0.90) 0%, rgba(14,16,32,0.62) 45%, rgba(138,31,176,0.42) 100%);
}
.hero .container { position: relative; z-index: 2; will-change: opacity, transform; }
/* Solid dark layer that fades in as you scroll past the hero */
.hero-fade {
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-content { max-width: 720px; animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both 0.15s; }
.hero-badges { animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both 0.4s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-content, .hero-badges { animation: none; } }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero h1 .hl { background: linear-gradient(90deg, #ff6a6a, #c07bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(1.02rem, 2.2vw, 1.28rem); margin: 22px 0 34px; color: #e7e9f5; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(14,16,32,0.42);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 26px 30px;
}
.hero-badge { text-align: left; }
.hero-badge + .hero-badge { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; }
.hero-badge b { font-size: 1.9rem; display: block; font-weight: 800; line-height: 1.1; }
.hero-badge span { font-size: 0.9rem; color: #dfe1f0; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
  .hero-badge + .hero-badge { border-top: none; padding-top: 0; }
}

/* ---------- Services cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  cursor: pointer;
  background-color: var(--dark);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, background-size 0.5s ease;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  background-size: 115%;
}
.service-card:active { transform: translateY(-4px) scale(1.0); }
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,26,0.94) 8%, rgba(10,12,26,0.35) 60%, rgba(10,12,26,0.15) 100%); }
.service-card .sc-body { position: relative; z-index: 2; padding: 32px; }
.service-card .sc-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--grad-btn); display: grid; place-items: center; margin-bottom: 16px; }
.service-card .sc-icon svg { width: 28px; height: 28px; fill: #fff; }
.service-card h3 { color: #fff; font-size: 1.5rem; }
.service-card p { color: #dfe1ef; margin: 10px 0 18px; font-size: 0.98rem; }
.sc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.sc-link span { transition: transform 0.2s; }
.service-card:hover .sc-link span { transform: translateX(5px); }

/* ---------- Feature / why ---------- */
.feature {
  background: linear-gradient(150deg, rgba(216,31,38,0.06) 0%, rgba(47,107,255,0.07) 45%, rgba(138,31,176,0.12) 100%);
  border: 1px solid rgba(138,31,176,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(138,31,176,0.32); }
.feature .f-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-btn); box-shadow: 0 8px 18px rgba(138,31,176,0.30); margin-bottom: 16px; }
.feature .f-icon svg { width: 28px; height: 28px; fill: #fff; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Split about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split .lead { color: var(--muted); font-size: 1.06rem; margin: 16px 0 22px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list li::before { content: "✓"; color: #fff; background: var(--grad-btn); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }

/* ---------- Steps ---------- */
.step { text-align: center; padding: 20px; }
.step .num { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.contact-info { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; }
.contact-info .ci-media { width: 100%; flex: 1 1 auto; min-height: 130px; object-fit: cover; border-radius: 12px; margin: 24px 0 8px; display: block; }
.contact-info .ci-social { margin-top: 8px; }
.contact-info h3 { color: #fff; font-size: 1.5rem; }
.contact-info > p { color: #c9cce0; margin: 12px 0 26px; }
.ci-item { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.ci-item .ci-ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.ci-item .ci-ic svg { width: 22px; height: 22px; fill: #fff; }
.ci-item b { display: block; font-size: 0.98rem; }
.ci-item span { color: #b9bdd6; font-size: 0.92rem; word-break: break-word; }
.ci-item a { color: #b9bdd6; }
.ci-item a:hover { color: #fff; }
.ci-social { display: flex; gap: 12px; margin-top: 28px; }
.ci-social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.ci-social a:hover { background: var(--grad-btn); transform: translateY(-3px); }
.ci-social svg { width: 20px; height: 20px; fill: #fff; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.6px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,107,255,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input.invalid, .field textarea.invalid { border-color: var(--red); background: #fff5f5; }
.field .err { color: var(--red); font-size: 0.82rem; margin-top: 6px; display: none; }
.field .err.show { display: block; }
.phone-group { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }

/* Searchable country-code selector */
.country-select { position: relative; }
.country-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 12px;
  border: 1.6px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}
.country-btn:hover { border-color: #c7cbe0; }
.country-select .country-btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,0.12); background: #fff; }
.country-btn .cs-flag { font-size: 1.15rem; line-height: 1; }
.country-btn .cs-code { font-weight: 600; }
.country-btn .cs-caret { margin-left: auto; font-size: 0.7rem; color: var(--muted); }

.country-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 78vw;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.country-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.country-list { list-style: none; max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; }
.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.93rem;
}
.country-item:hover { background: var(--bg-soft); }
.country-item .ci-flag { font-size: 1.15rem; }
.country-item .ci-name { flex: 1; }
.country-item .ci-dial { color: var(--muted); font-weight: 600; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.form-note .note-ic { width: 13px; height: 13px; fill: var(--muted); vertical-align: -2px; margin-right: 3px; }
.form-status { padding: 13px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; margin-bottom: 18px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f8ee; color: #1c7a3e; border: 1px solid #b7e6c7; }
.form-status.bad { background: #fdecec; color: #b3261e; border: 1px solid #f3bcbc; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 90px;
  color: #fff;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14,16,32,0.90), rgba(138,31,176,0.55)); }
.page-hero .container { position: relative; z-index: 2; animation: heroRise 1s cubic-bezier(.2,.7,.2,1) both 0.15s; }
@media (prefers-reduced-motion: reduce) { .page-hero .container { animation: none; } }
.page-hero .crumb { font-size: 0.9rem; color: #cfd2e6; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; font-weight: 800; }
.page-hero p { margin-top: 16px; max-width: 640px; color: #e7e9f5; font-size: 1.12rem; }

/* ---------- Gallery (auto-scrolling marquee) ---------- */
.gallery {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: gallery-roll 55s linear infinite;
}
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item {
  position: relative;
  margin: 0;
  flex: 0 0 340px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  background: linear-gradient(to top, rgba(10,12,26,0.85), rgba(10,12,26,0));
}
@keyframes gallery-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .gallery-item { flex-basis: 260px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
}

/* ---------- Pill list ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 50px; padding: 9px 18px; font-size: 0.92rem; font-weight: 500; }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: 18px; padding: 52px 44px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: #eef0ff; margin: 12px 0 26px; max-width: 620px; margin-inline: auto; }

/* ---------- Tour plan carousel ---------- */
.tour-carousel { position: relative; }
.tour-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; -ms-overflow-style: none; }
.tour-track::-webkit-scrollbar { display: none; }
.tc-nav { position: absolute; top: 100px; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 5; transition: transform .2s ease, background .2s ease, opacity .2s ease; }
.tc-nav:hover { background: var(--grad-btn); color: #fff; transform: translateY(-50%) scale(1.08); }
.tc-nav svg { width: 24px; height: 24px; fill: currentColor; }
.tc-prev { left: -20px; }
.tc-next { right: -20px; }
.tc-nav[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.tour-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; color: var(--ink); }
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tc-img { position: relative; height: 190px; background-size: cover; background-position: center; background-color: var(--dark); }
.tc-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; letter-spacing: .02em; }
.tc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tc-loc { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tc-title { font-size: 1.04rem; margin: 4px 0 10px; line-height: 1.3; }
.tc-meta { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.tc-cta { margin-top: auto; font-weight: 600; color: var(--purple); font-size: .9rem; }
.tour-card:hover .tc-cta { color: var(--red); }
@media (max-width: 1000px) { .tour-card { flex-basis: calc((100% - 24px) / 2); } .tc-prev { left: 2px; } .tc-next { right: 2px; } }
@media (max-width: 560px) { .tour-card { flex-basis: 86%; } }

/* form select, date & participants */
.field select, .field input[type="date"] { width: 100%; padding: 13px 15px; border: 1.6px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .97rem; color: var(--ink); background: var(--bg-soft); transition: border .2s, box-shadow .2s; }
.field select:focus, .field input[type="date"]:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.child-ages { margin-bottom: 18px; }
.child-ages > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.child-ages-list { display: flex; flex-wrap: wrap; gap: 10px; }
.child-ages-list input { width: 96px; padding: 10px 12px; border: 1.6px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-family: inherit; font-size: .9rem; }

/* ---------- Reviews ---------- */
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 34px; }
.reviews-summary .rs-avg { font-size: 2rem; font-weight: 800; line-height: 1; }
.reviews-summary .rs-stars { display: inline-flex; gap: 2px; }
.reviews-summary .rs-stars svg { width: 20px; height: 20px; fill: var(--gold); }
.reviews-summary .rs-stars svg.empty { fill: #d9dce6; }
.reviews-summary .rs-count { color: var(--muted); font-size: .92rem; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.reviews-list:empty { display: none; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review-card .rc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card .rc-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.review-card .rc-name { font-weight: 600; }
.review-card .rc-date { font-size: .78rem; color: var(--muted); }
.review-card .rc-stars { display: inline-flex; gap: 2px; margin-bottom: 4px; }
.review-card .rc-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.review-card .rc-stars svg.empty { fill: #d9dce6; }
.review-card p { color: #42465c; font-size: .95rem; margin-top: 8px; }
@media (max-width: 900px) { .reviews-list { grid-template-columns: 1fr; } }

.review-form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.review-form h3 { margin-bottom: 6px; }
.review-form .rf-sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.star-input { display: flex; gap: 6px; margin: 4px 0 8px; }
.star-input svg { width: 32px; height: 32px; fill: #d9dce6; cursor: pointer; transition: fill .15s, transform .15s; }
.star-input svg:hover { transform: scale(1.15); }
.star-input svg.on { fill: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #c4c8de; padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1.02rem; margin-bottom: 18px; }
.footer-brand img { height: 42px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.94rem; color: #a7abc7; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a { font-size: 0.94rem; color: #b6bad3; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 13px; font-size: 0.93rem; align-items: flex-start; }
.footer-contact .fc-ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: #f0468a; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 11px; margin-top: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; transition: 0.2s; }
.footer-social a:hover { background: var(--grad-btn); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; color: #9599b6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* subtle stagger for cards in a grid */
.grid-2 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .grid-4 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .grid-4 .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Success modal ---------- */
.ryd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 26, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.ryd-modal-overlay.show { opacity: 1; pointer-events: auto; }
.ryd-modal {
  background: #fff;
  border-radius: 18px;
  padding: 42px 34px 34px;
  max-width: 430px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(22px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.ryd-modal-overlay.show .ryd-modal { transform: none; }
.ryd-modal-check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12a150, #16c268);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(18, 161, 80, 0.35);
}
.ryd-modal-overlay.show .ryd-modal-check { animation: ryd-pop 0.45s ease; }
.ryd-modal-check svg { width: 40px; height: 40px; fill: #fff; }
.ryd-modal h3 { font-size: 1.5rem; margin-bottom: 10px; }
.ryd-modal-msg { color: var(--muted); margin-bottom: 26px; font-size: 1rem; line-height: 1.6; }
.ryd-modal-close { width: 100%; justify-content: center; }
@keyframes ryd-pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 90; border: none; cursor: pointer; font-size: 1.2rem; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 10px 22px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.35s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 12px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .split, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .form-row, .phone-group { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 28px; }
  .cta-band { padding: 40px 24px; }
  .hero-badges { gap: 18px; }
}
