/* =========================================================================
 * Rokofsky theme stylesheet — port of the React/Tailwind original.
 * Tokens are in tokens.css. This file owns layout + component styles.
 * ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* Layout primitives ------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section-padding {
    padding: 5rem 1.5rem;
}
@media (min-width: 768px) { .section-padding { padding: 5rem 3rem; } }
@media (min-width: 1024px) { .section-padding { padding: 5rem 5rem; } }
@media (min-width: 1280px) { .section-padding { padding: 5rem 8rem; } }

.text-center { text-align: center; }
.max-w-md { max-width: 28rem; margin-inline: auto; }
.max-w-lg { max-width: 32rem; margin-inline: auto; }
.max-w-2xl { max-width: 42rem; margin-inline: auto; }
.max-w-3xl { max-width: 48rem; margin-inline: auto; }
.max-w-4xl { max-width: 56rem; margin-inline: auto; }
.max-w-5xl { max-width: 64rem; margin-inline: auto; }

/* Reusable visual primitives --------------------------------------------- */

.glass {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: hsl(28 45% 78% / 0.45);
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: var(--radius);
    box-shadow:
        0 8px 32px 0 hsl(20 45% 18% / 0.1),
        inset 0 1px 0 0 hsl(30 50% 95% / 0.5),
        inset 0 -1px 0 0 hsl(20 30% 40% / 0.1);
}

.glow-gold {
    box-shadow:
        0 0 20px 0 hsl(20 45% 18% / 0.2),
        0 0 40px 0 hsl(20 45% 18% / 0.1),
        0 8px 32px 0 hsl(20 45% 18% / 0.1),
        inset 0 1px 0 0 hsl(30 50% 95% / 0.5);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: calc(var(--radius) - 0.25rem);
    background: var(--color-primary);
    color: var(--color-primary-fg);
    border: 1px solid hsl(var(--border) / 0.3);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px 0 hsl(20 45% 18% / 0.18);
    color: var(--color-primary-fg);
}
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--xl { padding: 1rem 2rem; font-size: 1.0625rem; }

.btn--cta {
    background: var(--color-primary);
    color: var(--color-primary-fg);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
}

.btn--glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: hsl(28 45% 78% / 0.45);
    color: var(--fg);
    border: 1px solid hsl(var(--border) / 0.3);
    box-shadow: 0 4px 16px 0 hsl(20 45% 18% / 0.12);
}
.btn--glass:hover { color: var(--fg); }

.btn--glass-petrol {
    background: var(--color-petrol);
    color: var(--color-accent-fg);
    border: 1px solid hsl(var(--accent) / 0.3);
    box-shadow: 0 4px 24px 0 hsl(195 40% 32% / 0.3);
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
}
.btn--glass-petrol:hover {
    color: var(--color-accent-fg);
    background: hsl(195 40% 28%);
}

.btn--outline {
    background: transparent;
    color: var(--fg);
    border: 1px solid hsl(var(--border));
}
.btn--outline:hover { background: hsl(var(--secondary)); color: var(--fg); }

/* Header ----------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* Logged-in users: stack the fixed site header below the WordPress admin bar
   instead of overlapping it. The front-end admin bar is fixed at 32px, 46px
   on tablets, and turns absolute (scrolls away) at ≤600px. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
.site-header.is-scrolled {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: hsl(28 45% 78% / 0.45);
    border-bottom: 1px solid hsl(var(--border) / 0.4);
    box-shadow: 0 4px 16px 0 hsl(20 45% 18% / 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin-inline: auto;
}
@media (min-width: 768px) {
    .site-header__inner { height: 52px; }
}

.site-header__brand img {
    height: 26px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (min-width: 768px) { .site-header__brand img { height: 32px; } }
.site-header__brand:hover img { transform: scale(1.02); opacity: 0.85; }

.primary-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.primary-nav a {
    position: relative;
    color: hsl(var(--foreground) / 0.7);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}
.primary-nav a:hover {
    color: var(--fg);
}
@media (hover: hover) {
    .primary-nav a:hover::after { transform: scaleX(1); }
}
.primary-nav .ext-icon { width: 20px; height: 28px; object-fit: cover; border-radius: 0; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: block; } }
/* Compact CTA sized to the thin navbar (matches Lovable). Scoped to the
   header so large CTA buttons elsewhere on the site are unaffected. */
.header-cta .btn--cta {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}
.lang-toggle button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.25rem;
    color: hsl(var(--foreground) / 0.5);
    font-family: inherit;
}
.lang-toggle button.active { color: var(--fg); font-weight: 700; }
.lang-toggle .sep { color: hsl(var(--foreground) / 0.3); }

.mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle__btn {
    background: none; border: 0; padding: 0.5rem;
    color: var(--fg); cursor: pointer;
}

.mobile-drawer {
    display: none;
    border-top: 1px solid hsl(var(--border) / 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: hsl(28 45% 78% / 0.65);
}
.mobile-drawer.is-open { display: block; }
@media (min-width: 1024px) { .mobile-drawer.is-open { display: none; } }
.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
}
.mobile-drawer a {
    color: hsl(var(--foreground) / 0.7);
    font-size: 1rem;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-drawer a:hover { color: var(--fg); }
.mobile-drawer .btn--cta { margin-top: 0.5rem; align-self: flex-start; }

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { height: 85vh; } }

.hero__media { display: block; width: 100%; height: 100%; position: relative; }

.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease, transform 6s ease;
    transform: scale(1.08);
    object-position: center center;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(var(--foreground) / 0.6) 0%, hsl(var(--foreground) / 0.2) 50%, transparent 100%);
    pointer-events: none;
}

.hero__nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    background: hsl(var(--background) / 0.3);
    backdrop-filter: blur(8px);
    border: 0;
    border-radius: 9999px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-primary-fg);
    transition: background 0.2s ease;
}
.hero__nav:hover { background: hsl(var(--background) / 0.5); }
.hero__nav--prev { left: 1rem; }
.hero__nav--next { right: 1rem; }
.hero__nav svg { width: 24px; height: 24px; }

.hero__cta {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 0 4rem;
    color: var(--color-primary-fg);
}
.hero__cta h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 1rem;
    color: var(--color-primary-fg);
    text-shadow: 0 2px 24px hsl(20 45% 18% / 0.4);
}
.hero__cta p {
    color: hsl(var(--primary-foreground) / 0.85);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 300;
    text-align: center;
    max-width: 32rem;
    margin: 0;
}

/* Per-slide caption — bottom-left pill, only the active slide's shows. */
.hero__labels {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}
.hero__label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.2;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero__label.is-active { opacity: 1; }
/* Slides without a caption never render an empty pill, even when active. */
.hero__label:empty { display: none; }

.hero__indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}
.hero__indicators button {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: hsl(var(--primary-foreground) / 0.4);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}
.hero__indicators button.is-active {
    width: 24px;
    background: var(--color-primary-fg);
}

/* Sub-hero nav ----------------------------------------------------------- */

.sub-hero-nav {
    position: relative;
    margin-top: -6rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem 2.5rem;
    border-bottom: 1px solid hsl(var(--border));
}
.sub-hero-nav a {
    display: inline-block;
    border-radius: 9999px;
    background: hsl(var(--background) / 0.6);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    color: var(--fg);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px 0 hsl(20 45% 18% / 0.08);
    transition: background 0.2s ease;
    letter-spacing: 0.025em;
}
.sub-hero-nav a:hover { background: hsl(var(--background) / 0.75); }

/* Section heading ------------------------------------------------------- */

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.section-heading p {
    color: var(--color-primary);
    font-weight: 600;
    max-width: 32rem;
    margin: 0 auto;
}

/* Services grid --------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 64rem;
    margin-inline: auto;
}
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.service-card {
    position: relative;
    display: block;
    height: 8rem;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}
@media (min-width: 640px) { .service-card { height: 11rem; } }
@media (min-width: 768px) { .service-card { height: 10rem; } }

@media (hover: hover) {
    .service-card:hover { transform: scale(1.03); }
}
.service-card:active { filter: brightness(0.9); }

.service-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card__overlay {
    position: absolute;
    inset: 0;
    background: hsl(var(--foreground) / 0.1);
    transition: background 0.3s ease;
}
@media (hover: hover) {
    .service-card:hover .service-card__overlay { background: hsl(var(--foreground) / 0.15); }
}

.service-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    z-index: 2;
    gap: 0.25rem;
}
@media (min-width: 768px) { .service-card__content { padding: 1.5rem; } }
.service-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-fg);
    margin: 0;
    transition: color 0.3s ease;
}
@media (min-width: 640px) { .service-card__title { font-size: 1rem; } }
@media (min-width: 768px) { .service-card__title { font-size: 1.5rem; } }
.service-card__subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: hsl(var(--primary-foreground) / 0.85);
    margin: 0;
}
@media (min-width: 640px) { .service-card__subtitle { font-size: 0.875rem; } }
@media (min-width: 768px) {
    .service-card:hover .service-card__title,
    .service-card:hover .service-card__subtitle { color: var(--fg); }
}

/* FAQ --------------------------------------------------------------------*/

.faq-list {
    max-width: 48rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--color-muted-fg);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-muted-fg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Pricing --------------------------------------------------------------- */

.pricing-section { background: hsl(var(--secondary)); }
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin-inline: auto;
}
@media (min-width: 640px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.pricing-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    padding: 2rem;
}
.pricing-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.25rem; }
.pricing-card .price {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.pricing-card .desc {
    color: var(--color-muted-fg);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    font-weight: 400;
}
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.8);
}
.pricing-card li::before {
    content: '✓';
    color: var(--color-primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}
/* CTA button — full-width, pushed to the bottom so buttons align across cards. */
.pricing-card__cta {
    display: block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-primary-fg);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.pricing-card__cta:hover { transform: translateY(-1px); color: var(--color-primary-fg); }

/* Service detail "Back to services" pills (top + bottom), match Lovable. */
.service-detail__back {
    display: inline-block;
    padding: 10px 20px;
    background: rgb(221, 148, 95);
    color: rgb(32, 23, 19);
    border: 1px solid rgb(212, 182, 155);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.service-detail__back:hover { background: rgb(228, 160, 110); color: rgb(32, 23, 19); transform: translateY(-1px); }
.service-detail__back--top { margin-bottom: 1.5rem; }
.service-detail__back--bottom { margin-top: 2.5rem; }

/* Video showcase -------------------------------------------------------- */

.video-showcase__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
}
.video-showcase__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Booking section ------------------------------------------------------- */

.booking-section {
    background: var(--color-primary);
    color: var(--color-primary-fg);
}
.booking-section h2,
.booking-section p { color: var(--color-primary-fg); }
.booking-section p { color: hsl(var(--primary-foreground) / 0.7); font-weight: 300; max-width: 32rem; margin: 0 auto 2.5rem; white-space: pre-line; }

/* Contact section ------------------------------------------------------- */

.contact-section { padding-top: 4rem; padding-bottom: 4rem; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 42rem;
    margin-inline: auto;
}
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }
.contact-form .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .contact-form .row--2 { grid-template-columns: 1fr 1fr; }
    .contact-form .row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.contact-form label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted-fg);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.contact-form .req { color: var(--color-primary); }
.contact-form .req::after { content: ' (required)'; color: var(--color-muted-fg); font-weight: 400; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0 1rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--bg);
    border: 1px solid hsl(var(--input));
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--fg);
    transition: box-shadow 0.2s ease;
}
.contact-form textarea {
    height: auto;
    padding: 0.75rem 1rem;
    min-height: 6.25rem;
    resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}
.contact-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-form .checkbox-row input { width: 20px; height: 20px; accent-color: var(--color-primary); }
.contact-form .submit-row { margin-top: 1rem; }
.contact-form .submit-row .btn { width: 100%; }
.contact-form .honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-success {
    padding: 2rem;
    max-width: 32rem;
    margin-inline: auto;
    text-align: center;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
    background: var(--color-primary);
    color: var(--color-primary-fg);
}
.site-footer .container { padding-top: 4rem; padding-bottom: 4rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        text-align: left;
    }
}

.site-footer h3,
.site-footer h4 { color: var(--color-primary-fg); }
.site-footer h3 a { color: var(--color-primary-fg); font-size: 1.125rem; font-weight: 600; }
.site-footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--primary-foreground) / 0.8);
    margin-bottom: 1rem;
}
.site-footer p {
    color: hsl(var(--primary-foreground) / 0.6);
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 22rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .site-footer p { margin: 0; }
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
@media (min-width: 768px) { .footer-links { align-items: flex-start; } }
.footer-links a {
    color: hsl(var(--primary-foreground) / 0.6);
    font-size: 0.875rem;
    font-weight: 300;
}
.footer-links a:hover { color: var(--color-primary-fg); }

.social-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
@media (min-width: 768px) { .social-row { justify-content: flex-start; } }
.social-row a {
    color: hsl(var(--primary-foreground) / 0.6);
    padding: 0.5rem;
    margin: -0.5rem;
}
.social-row a:hover { color: var(--color-primary-fg); }
.social-row svg { width: 20px; height: 20px; }

.footer-bottom {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom .legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.4);
    font-weight: 300;
}
.footer-bottom .legal a:hover { color: hsl(var(--primary-foreground) / 0.6); }
.footer-bottom .quote {
    font-size: 0.75rem;
    color: hsl(var(--primary-foreground) / 0.3);
    font-weight: 300;
    font-style: italic;
}
.footer-copy {
    margin-top: 1.5rem;
    text-align: center;
    color: hsl(var(--primary-foreground) / 0.4);
    font-size: 0.75rem;
    font-weight: 300;
}

/* Animations ------------------------------------------------------------ */

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-in 0.5s ease-out forwards; }

/* WP-specific cleanup --------------------------------------------------- */

.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    background: var(--color-primary);
    color: var(--color-primary-fg);
    padding: 0.5rem 1rem;
}

main { padding-top: 64px; }
@media (min-width: 768px) { main { padding-top: 72px; } }

/* Default page templates (kept minimal — page-specific styles live in their templates) */

.entry-content { max-width: 70ch; margin-inline: auto; }
.entry-content h2,
.entry-content h3 { margin-top: 2rem; }
.entry-content p { margin: 1em 0; }

.post-list article { padding: 1.5rem; margin-bottom: 1.5rem; }

/* Clients logos strip ---------------------------------------------------- */

.rk-clients-strip {
    padding: 6rem 1.5rem 2rem;
    background: #f8f9fa;
}
@media (min-width: 768px) { .rk-clients-strip { padding: 6rem 3rem 2rem; } }

.rk-clients-strip__inner {
    max-width: 64rem;
    margin-inline: auto;
}
.rk-clients-strip__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6e7480;
    text-align: center;
    margin: 0 0 1.5rem;
    font-weight: 500;
}
.rk-clients-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (min-width: 768px) { .rk-clients-strip__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rk-clients-strip__grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

.rk-clients-strip__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    padding: 14px;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.rk-clients-strip__cell.is-wide {
    grid-column: span 2;
}
.rk-clients-strip__cell img {
    object-fit: contain;
    max-height: 35px;
    max-width: 100%;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.rk-clients-strip__cell:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Evaluations gallery --------------------------------------------------- */

.rk-evals { margin-bottom: 3rem; }

/* Controls row: search + sort */
.rk-evals__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
}
.rk-evals__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    flex: 1 1 16rem;
    max-width: 24rem;
    transition: box-shadow 0.2s ease;
}
.rk-evals__search:focus-within {
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}
.rk-evals__search svg {
    color: var(--color-muted-fg);
    flex-shrink: 0;
}
.rk-evals__search input {
    border: 0;
    background: transparent;
    width: 100%;
    font: inherit;
    color: var(--fg);
    outline: 0;
}
.rk-evals__sort {
    height: 2.5rem;
    border: 1px solid hsl(var(--input));
    background: var(--bg);
    color: var(--fg);
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 12rem;
}

/* Horizontal snap carousel */
.rk-evals__carousel { position: relative; }
.rk-evals__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 3rem 40%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.rk-evals__track::-webkit-scrollbar { display: none; }
.rk-evals__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
@media (min-width: 640px)  { .rk-evals__track { padding-inline: 35%; } }
@media (min-width: 1024px) { .rk-evals__track { padding-inline: 30%; } }

.rk-evals__card {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 220px;
    aspect-ratio: 3 / 4;
    border: 0;
    padding: 0;
    background: hsl(var(--muted) / 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.82;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
@media (min-width: 640px) { .rk-evals__card { width: 260px; } }
.rk-evals__card[hidden] { display: none; }
.rk-evals__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
/* The card nearest the centre lifts and comes forward (JS toggles is-focused). */
.rk-evals__card.is-focused {
    opacity: 1;
    transform: scale(1.06);
    box-shadow: 0 20px 45px hsl(20 45% 14% / 0.35);
    z-index: 2;
}

.rk-evals__num-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: hsl(var(--foreground) / 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.rk-evals__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: hsl(0 0% 100% / 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    box-shadow: 0 0 30px rgba(99, 179, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease;
}
.rk-evals__arrow:hover { background: hsl(0 0% 100% / 0.2); }
.rk-evals__arrow svg { width: 28px; height: 28px; }
.rk-evals__arrow--prev { left: 0.5rem; }
.rk-evals__arrow--next { right: 0.5rem; }

.rk-evals__empty {
    color: var(--color-muted-fg);
    text-align: center;
    margin: 2rem 0;
}

/* Full-screen viewer: opens on card click. Shows the focused scan large
   with the previous/next scans peeking on each side; the centre scan can be
   zoomed (wheel) and panned (drag) in any direction. */
.rk-evals__viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rk-evals__viewer[hidden] { display: none !important; }

.rk-evals__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: 100%;
}
.rk-evals__vside {
    flex: 0 0 auto;
    max-height: 55vh;
    width: auto;
    border-radius: var(--radius);
    opacity: 0.45;
    box-shadow: 0 12px 30px hsl(20 45% 14% / 0.25);
    transition: opacity 0.25s ease;
    user-select: none;
}
@media (max-width: 767px) { .rk-evals__vside { display: none; } }

.rk-evals__vcurrent {
    position: relative;
    flex: 0 0 auto;
    max-width: 90vw;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    cursor: grab;
}
.rk-evals__vcurrent.is-zoomed { cursor: grab; }
.rk-evals__vcurrent.is-panning { cursor: grabbing; }
.rk-evals__vcurrent img {
    max-height: 82vh;
    max-width: 90vw;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 24px 70px hsl(20 45% 10% / 0.5);
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    user-select: none;
    will-change: transform;
}
/* While zoomed, hide the side previews so the current scan reads as a single
   pannable image. */
.rk-evals__viewer.is-zoomed .rk-evals__vside { opacity: 0; pointer-events: none; }

.rk-evals__vbadge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: hsl(var(--foreground) / 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.rk-evals__vbtn {
    position: absolute;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background: hsl(0 0% 100% / 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--fg);
    cursor: pointer;
    transition: background 0.2s ease;
}
.rk-evals__vbtn:hover { background: hsl(0 0% 100% / 0.24); }
.rk-evals__vbtn svg { width: 24px; height: 24px; }
.rk-evals__vclose { top: 1.25rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; }
.rk-evals__vnav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.rk-evals__vnav--prev { left: 1rem; }
.rk-evals__vnav--next { right: 1rem; }
/* Navigation arrows stay visible and usable even when a scan is zoomed in. */
