/* ============================================================
   VORTEX COMPONENTS - section library used by demo content
   and by buyers building pages in the block editor.
   Colors come from the Customizer (--vortex-primary etc.).
   ============================================================ */

:root {
  --vx-soft: #f6f7fb;
  --vx-line: #e5e7eb;
  --vx-ink: #1f2937;
  --vx-muted: #4b5563;
  --vx-radius: 14px;
  --vx-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
  :root {
    --vx-soft: color-mix(in srgb, var(--vortex-primary) 6%, #ffffff);
    --vx-line: color-mix(in srgb, var(--vortex-primary) 14%, #e5e7eb);
  }
}

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--vortex-primary);
  clip: auto;
  clip-path: none;
  color: var(--vx-ink);
  font-weight: 600;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* Two-tone focus ring: dark outline plus white halo, visible on light and dark backgrounds. */
.vx-section a:focus-visible,
.vx-btn:focus-visible,
.vx-faq summary:focus-visible {
  box-shadow: 0 0 0 2px #fff;
  outline: 3px solid #1f2937;
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.vx-fullwidth {
  display: block;
}

.vx-wrap {
  margin-inline: auto;
  max-width: 1160px;
  padding-inline: 1.25rem;
}

.vx-wrap--narrow {
  max-width: 760px;
}

.vx-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.vx-section--alt {
  background: var(--vx-soft);
}

.vx-section--dark {
  background: var(--vortex-dark);
  color: #f3f4f6;
}

.vx-section--primary {
  background: var(--vortex-primary);
  color: #fff;
}

.vx-section--dark h2,
.vx-section--dark h3,
.vx-section--primary h2,
.vx-section--primary h3 {
  color: #fff;
}

.vx-section--dark a:not(.vx-btn),
.vx-section--primary a:not(.vx-btn) {
  color: #fff;
  text-decoration: underline;
}

.vx-section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 1rem;
}

.vx-section h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.5rem;
}

/* Titles inside cards, plans and steps keep the compact size even when they are h2s. */
.vx-card h2,
.vx-price h2,
.vx-steps li h2,
.vx-timeline li h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.5rem;
}

.vx-section p {
  color: var(--vx-muted);
  line-height: 1.7;
}

.vx-section--dark p {
  color: #d1d5db;
}

.vx-section--primary p {
  color: rgba(255, 255, 255, 0.92);
}

.vx-section img {
  display: block;
  height: auto;
  max-width: 100%;
}

.vx-eyebrow {
  color: var(--vortex-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.vx-section--dark .vx-eyebrow,
.vx-section--primary .vx-eyebrow,
.vx-hero .vx-eyebrow {
  color: #fff;
  opacity: 0.9;
}

.vx-lead {
  color: var(--vx-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  max-width: 44rem;
}

.vx-section-head {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  max-width: 46rem;
}

.vx-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.vx-section-head--center .vx-lead {
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.vx-hero {
  background: var(--vortex-dark);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8rem);
  position: relative;
}

.vx-hero__bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.vx-hero::after {
  background: linear-gradient(90deg, rgba(10, 14, 25, 0.82) 0%, rgba(10, 14, 25, 0.5) 60%, rgba(10, 14, 25, 0.25) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.vx-hero--center {
  text-align: center;
}

.vx-hero--center .vx-hero__inner > * {
  margin-inline: auto;
}

.vx-hero--center .vx-actions {
  justify-content: center;
}

.vx-hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.vx-hero--center h1 {
  max-width: 22ch;
}

.vx-hero .vx-lead,
.vx-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
}

.vx-page-hero {
  background: var(--vx-soft);
  border-bottom: 1px solid var(--vx-line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.vx-page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.vx-page-hero .vx-lead {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.vx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.vx-btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vx-btn--primary {
  background: var(--vortex-primary);
  color: #fff;
}

.vx-btn--primary:hover {
  background: var(--vortex-dark);
  color: #fff;
}

.vx-btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--vortex-primary);
}

.vx-btn--ghost:hover {
  background: var(--vortex-primary);
  border-color: var(--vortex-primary);
  color: #fff;
}

.vx-hero .vx-btn--primary,
.vx-section--dark .vx-btn--primary {
  background: #fff;
  color: var(--vortex-dark);
}

.vx-hero .vx-btn--primary:hover,
.vx-section--dark .vx-btn--primary:hover {
  background: #e5e7eb;
  color: #111827;
}

.vx-hero .vx-btn--ghost,
.vx-section--dark .vx-btn--ghost,
.vx-section--primary .vx-btn--ghost {
  color: #fff;
}

.vx-hero .vx-btn--ghost:hover,
.vx-section--dark .vx-btn--ghost:hover,
.vx-section--primary .vx-btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--vortex-dark);
}

.vx-section--primary .vx-btn--primary {
  background: #fff;
  color: var(--vortex-dark);
}

.vx-section--primary .vx-btn--primary:hover {
  background: var(--vortex-dark);
  color: #fff;
}

/* ---------- Grids and cards ---------- */
.vx-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .vx-grid--2,
  .vx-grid--3,
  .vx-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .vx-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .vx-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vx-card {
  background: #fff;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vx-section--dark .vx-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.vx-card__img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.vx-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.vx-card__body > :last-child {
  margin-bottom: 0;
}

.vx-card__link {
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.5rem;
}

.vx-card--flat {
  padding: 1.5rem;
}

.vx-card--flat > :last-child {
  margin-bottom: 0;
}

.vx-mark {
  align-items: center;
  background: var(--vx-soft);
  border-radius: 12px;
  color: var(--vortex-primary);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.vx-section--alt .vx-mark {
  background: #fff;
}

.vx-avatar {
  align-items: center;
  background: var(--vortex-primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.5rem;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 72px;
}

.vx-tag {
  background: var(--vx-soft);
  border-radius: 999px;
  color: var(--vortex-primary);
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0.4rem 0.4rem 0;
  padding: 0.3rem 0.8rem;
}

/* ---------- Split (image + text) ---------- */
.vx-split {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}

.vx-split__media img {
  border-radius: var(--vx-radius);
  box-shadow: var(--vx-shadow);
  width: 100%;
}

@media (min-width: 860px) {
  .vx-split {
    grid-template-columns: 1fr 1fr;
  }

  .vx-split--reverse .vx-split__media {
    order: 2;
  }
}

/* ---------- Lists, steps, timeline ---------- */
.vx-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.vx-list li {
  color: var(--vx-muted);
  line-height: 1.55;
  padding: 0.35rem 0 0.35rem 1.9rem;
  position: relative;
}

.vx-list li::before {
  border-bottom: 2px solid var(--vortex-primary);
  border-left: 2px solid var(--vortex-primary);
  content: "";
  height: 0.4rem;
  left: 0.15rem;
  position: absolute;
  top: 0.8rem;
  transform: rotate(-45deg);
  width: 0.75rem;
}

.vx-section--dark .vx-list li,
.vx-section--primary .vx-list li {
  color: #e5e7eb;
}

.vx-section--dark .vx-list li::before,
.vx-section--primary .vx-list li::before {
  border-color: #fff;
}

.vx-steps,
.vx-timeline {
  counter-reset: vx-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vx-steps {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 860px) {
  .vx-steps--row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.vx-steps li {
  counter-increment: vx-step;
  position: relative;
}

.vx-steps li::before {
  align-items: center;
  background: var(--vortex-primary);
  border-radius: 50%;
  color: #fff;
  content: counter(vx-step);
  display: flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 40px;
}

.vx-timeline li {
  border-left: 3px solid var(--vx-line);
  counter-increment: vx-step;
  margin-left: 0.5rem;
  padding: 0 0 2rem 1.75rem;
  position: relative;
}

.vx-timeline li:last-child {
  padding-bottom: 0;
}

.vx-timeline li::before {
  background: var(--vortex-primary);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--vortex-primary);
  content: "";
  height: 16px;
  left: -10px;
  position: absolute;
  top: 0.25rem;
  width: 16px;
}

.vx-timeline__when {
  color: var(--vortex-primary);
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* ---------- Pricing ---------- */
.vx-price {
  background: #fff;
  border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}

.vx-price--featured {
  border: 2px solid var(--vortex-primary);
  box-shadow: var(--vx-shadow);
}

.vx-price__amount {
  color: var(--vx-ink) !important;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.vx-price__amount span {
  color: var(--vx-muted);
  font-size: 1rem;
  font-weight: 500;
}

.vx-price .vx-list {
  flex: 1;
}

.vx-price .vx-btn {
  width: 100%;
}

/* ---------- FAQ ---------- */
.vx-faq {
  border-top: 1px solid var(--vx-line);
}

.vx-faq details {
  border-bottom: 1px solid var(--vx-line);
}

.vx-faq summary {
  align-items: center;
  color: var(--vx-ink);
  cursor: pointer;
  display: flex;
  font-size: 1.1rem;
  font-weight: 600;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 1.1rem 0;
}

.vx-faq summary::-webkit-details-marker {
  display: none;
}

.vx-faq summary::after {
  color: var(--vortex-primary);
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.vx-faq details[open] summary::after {
  content: "\2212";
}

.vx-faq details > :not(summary) {
  padding-bottom: 1.25rem;
}

.vx-faq details p:last-child {
  margin-bottom: 0;
}

/* ---------- Gallery ---------- */
.vx-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
  .vx-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vx-gallery figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.vx-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
}

.vx-gallery figcaption {
  color: var(--vx-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Restaurant menu ---------- */
.vx-menu__cat {
  border-bottom: 2px solid var(--vortex-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

.vx-menu__list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.vx-menu__list li {
  margin-bottom: 1.25rem;
}

.vx-menu__row {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
}

.vx-menu__name {
  color: var(--vx-ink);
  font-weight: 700;
}

.vx-menu__dots {
  border-bottom: 2px dotted var(--vx-line);
  flex: 1;
  min-width: 1rem;
}

.vx-menu__price {
  color: var(--vortex-primary);
  font-weight: 700;
}

.vx-menu__desc {
  font-size: 0.95rem;
  margin: 0.2rem 0 0;
}

.vx-menu__diet {
  color: var(--vx-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Tables, notes, contact ---------- */
.vx-table {
  border-collapse: collapse;
  width: 100%;
}

@media (max-width: 640px) {
  .vx-table {
    display: block;
    overflow-x: auto;
  }
}

.vx-table th,
.vx-table td {
  border-bottom: 1px solid var(--vx-line);
  padding: 0.8rem 0.5rem;
  text-align: left;
}

.vx-table th {
  color: var(--vx-ink);
  font-weight: 700;
}

.vx-note {
  background: var(--vx-soft);
  border-left: 4px solid var(--vortex-primary);
  border-radius: 0 var(--vx-radius) var(--vx-radius) 0;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
}

.vx-note > :last-child {
  margin-bottom: 0;
}

.vx-contact a {
  font-weight: 600;
}

/* ---------- Prose (long-form pages) ---------- */
.vx-prose {
  color: var(--vx-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-inline: auto;
  max-width: 740px;
}

.vx-prose h2 {
  color: var(--vx-ink);
  font-size: 1.75rem;
  margin: 2.25rem 0 0.75rem;
}

.vx-prose h3 {
  color: var(--vx-ink);
  font-size: 1.3rem;
  margin: 1.75rem 0 0.5rem;
}

.vx-prose ul,
.vx-prose ol {
  margin: 0 0 1.5rem 1.4rem;
}

.vx-prose li {
  margin-bottom: 0.4rem;
}

/* ---------- Typography variants (set by demo import) ---------- */
.vx-variant-serif h1,
.vx-variant-serif h2,
.vx-variant-serif h3,
.vx-variant-serif .vx-price__amount,
.vx-variant-serif .vortex-logo {
  font-family: var(--vortex-font-serif);
  font-weight: 600;
}

.vx-variant-bold h1,
.vx-variant-bold h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vx-btn {
    transition: none;
  }
}

/* Links inside running text must not rely on colour alone (WCAG 1.4.1). */
.vortex-post-content a:not([class]),
.vortex-page-content a:not([class]),
.vx-section p a:not([class]),
.vx-section li a:not([class]),
.vx-prose a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
