/* ==========================================================================
   Voyara — page-builder block styles & universal section utilities
   Loaded site-wide from Layout/app.blade.php. Safe, additive, self-scoped
   under .vy-* class names so it never collides with the base theme.
   ========================================================================== */

:root {
    --vy-accent: #0ea5a4;          /* teal — overridden below by theme primary */
    --vy-accent-2: #6366f1;
    --vy-ink: #0f172a;
    --vy-muted: #64748b;
    --vy-card: #ffffff;
    --vy-border: #e6eaf0;
    --vy-radius: 16px;
    --vy-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --vy-shadow-hover: 0 18px 46px rgba(15, 23, 42, .14);
}

/* ---------- Universal Section Design wrapper ---------- */
.vy-section { position: relative; }
.vy-section.vy-has-bg { background-repeat: no-repeat; }
.vy-section.vy-align-left   { text-align: left; }
.vy-section.vy-align-center { text-align: center; }
.vy-section.vy-align-right  { text-align: right; }
.vy-section.vy-overlay-dark::before,
.vy-section.vy-overlay-light::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.vy-section.vy-overlay-dark::before  { background: rgba(8, 15, 30, .55); }
.vy-section.vy-overlay-light::before { background: rgba(255, 255, 255, .6); }
.vy-section.vy-overlay-dark > *,
.vy-section.vy-overlay-light > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
    .vy-hide-mobile { display: none !important; }
}

/* ---------- Section Heading ---------- */
.vy-heading { max-width: 720px; margin: 0 auto; }
.vy-section.vy-align-left  .vy-heading,
.vy-section.vy-align-right .vy-heading { margin-left: 0; margin-right: 0; }
.vy-heading__eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--vy-accent); margin-bottom: 12px;
}
.vy-heading__title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1.15;
    color: inherit; margin: 0 0 12px;
}
.vy-heading__sub { font-size: 1.05rem; color: var(--vy-muted); margin: 0; }
.vy-section.vy-overlay-dark .vy-heading__sub { color: inherit; opacity: .85; }

/* ---------- Feature Grid ---------- */
.vy-feature-grid { display: grid; gap: 24px; }
.vy-feature-grid.vy-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vy-feature-grid.vy-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vy-feature-grid.vy-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vy-feature-card {
    display: block; background: var(--vy-card); border: 1px solid var(--vy-border);
    border-radius: var(--vy-radius); padding: 28px; text-align: left;
    box-shadow: var(--vy-shadow); transition: transform .25s ease, box-shadow .25s ease;
    color: inherit; text-decoration: none; height: 100%;
}
a.vy-feature-card:hover { transform: translateY(-4px); box-shadow: var(--vy-shadow-hover); }
.vy-feature-card__icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(14,165,164,.12), rgba(99,102,241,.12));
}
.vy-feature-card__icon img { max-width: 32px; max-height: 32px; }
.vy-feature-card__title { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; color: var(--vy-ink); }
.vy-feature-card__desc  { font-size: .96rem; color: var(--vy-muted); margin: 0; line-height: 1.6; }

/* ---------- Stat Counters ---------- */
.vy-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px; text-align: center;
}
.vy-stat__value {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1;
    color: var(--vy-accent); letter-spacing: -.02em;
}
.vy-stat__suffix { font-size: .7em; }
.vy-stat__label { margin-top: 10px; font-size: .95rem; color: var(--vy-muted); font-weight: 500; }

/* ---------- Logo Strip ---------- */
.vy-logos {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 40px;
}
.vy-logo { display: inline-flex; align-items: center; }
.vy-logo img { max-height: 46px; width: auto; opacity: .95; transition: all .25s ease; }
.vy-logos--gray .vy-logo img { filter: grayscale(1); opacity: .55; }
.vy-logos--gray .vy-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Image Gallery ---------- */
.vy-gallery { display: grid; gap: 16px; }
.vy-gallery.vy-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vy-gallery.vy-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vy-gallery.vy-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vy-gallery__item {
    display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3;
    box-shadow: var(--vy-shadow);
}
.vy-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vy-gallery__item:hover img { transform: scale(1.06); }

/* ---------- Spacer / Divider ---------- */
.vy-spacer { width: 100%; display: flex; align-items: center; }
.vy-spacer .container { width: 100%; }
.vy-divider { border: 0; border-top: 1px solid var(--vy-border); margin: 0; width: 100%; }

/* ---------- Custom HTML ---------- */
.vy-custom-html--full { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .vy-feature-grid.vy-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .vy-gallery.vy-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .vy-feature-grid.vy-cols-2,
    .vy-feature-grid.vy-cols-3,
    .vy-feature-grid.vy-cols-4 { grid-template-columns: 1fr; }
    .vy-gallery.vy-cols-3,
    .vy-gallery.vy-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .vy-logos { gap: 26px; }
    .vy-logo img { max-height: 36px; }
}
