/**
 * Date of Creation: 2026-08-18
 * PunjabBhangraCrew.com - Fresh responsive visual system.
 * Vanilla CSS3 only. No framework. Deliberately expanded and commented.
 */

/* ---------- Local commercial-use font faces ---------- */
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --bg: #fffaf2;
    --surface: #ffffff;
    --surface-alt: #fff2d8;
    --ink: #151019;
    --muted: #675e69;
    --line: rgba(21, 16, 25, 0.13);
    --saffron: #f05a12;
    --gold: #f3b700;
    --accent: #145da0;
    --green: #087f5b;
    --blue: #1559b7;
    --purple: #5b2b82;
    --header-bg: rgba(255, 250, 242, 0.96);
    --shadow: 0 18px 55px rgba(46, 28, 8, 0.12);
    --radius: 24px;
    --header-h: 92px;
    --container: 1240px;
}

html[data-theme="night"] {
    --bg: #100d13;
    --surface: #18131c;
    --surface-alt: #211824;
    --ink: #fff9ef;
    --muted: #cbbfca;
    --line: rgba(255, 255, 255, 0.13);
    --header-bg: rgba(16, 13, 19, 0.96);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Lato", Arial, sans-serif;
    line-height: 1.7;
    transition: color 0.7s ease, background 0.7s ease;
}

body,
button,
input,
textarea {
    font: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container), calc(100% - 44px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 14px;
    top: -90px;
    z-index: 9999;
    padding: 10px 14px;
    color: #111;
    background: #fff;
    border-radius: 8px;
}

.skip-link:focus {
    top: 10px;
}

/* ---------- Sticky header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-h);
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1380px, calc(100% - 32px));
    min-height: var(--header-h);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    padding: 5px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.brand-mark img {
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    white-space: nowrap;
    font-size: clamp(1rem, 1.55vw, 1.42rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    transform: skew(-5deg);
    transition: color 0.75s ease, transform 0.75s ease;
}

.brand:hover .brand-mark {
    transform: rotate(-5deg) scale(1.04);
    box-shadow: 0 12px 30px rgba(240, 90, 18, 0.22);
}

.brand:hover .brand-name {
    color: var(--accent);
    transform: skew(-5deg) translateX(4px);
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.primary-nav a {
    position: relative;
    padding: 12px 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 900;
    transition: color 0.65s ease, transform 0.65s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 3px;
    border-radius: 20px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.65s ease, background 0.65s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--accent);
    transform: translateY(-2px);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.theme-toggle,
.menu-toggle {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 900;
    transition: transform 0.65s ease, background 0.65s ease;
}

.theme-toggle:hover {
    background: var(--gold);
    transform: rotate(18deg);
}

.header-book,
.btn,
.footer-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.75s ease, transform 0.75s ease, box-shadow 0.75s ease;
}

.header-book:hover,
.btn:hover,
.footer-book:hover {
    background: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(8, 127, 91, 0.25);
}

.btn.secondary {
    background: var(--blue);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 50%;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
}

/* ---------- Home slider: deliberately taller than all inner banners ---------- */
.hero-slider {
    position: relative;
    min-height: min(790px, calc(100svh - var(--header-h)));
    overflow: hidden;
    background: #08070a;
}

.slides,
.slide {
    position: absolute;
    inset: 0;
}

.slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.25s ease, visibility 1.25s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide > img {
    position: absolute;
    inset: 0;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 5, 8, 0.88) 0%, rgba(7, 5, 8, 0.55) 42%, rgba(7, 5, 8, 0.15) 78%);
}

.slide-content {
    position: absolute;
    z-index: 3;
    left: max(6vw, calc((100vw - var(--container)) / 2));
    bottom: clamp(75px, 11vh, 130px);
    width: min(760px, calc(100% - 150px));
    color: #fff;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--saffron);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.slide-content .eyebrow {
    color: var(--gold);
}

.slide-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 6.7vw, 6.8rem);
    line-height: 0.91;
    letter-spacing: -0.06em;
}

.slide-content > p:not(.eyebrow) {
    max-width: 610px;
    margin: 22px 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.slide.active .slide-content .eyebrow {
    animation: path-one 1.7s cubic-bezier(.2,.8,.2,1) both;
}

.slide.active .slide-content h1 {
    animation: path-two 2s cubic-bezier(.2,.8,.2,1) both;
}

.slide.active .slide-content > p:not(.eyebrow) {
    animation: path-three 2.2s cubic-bezier(.2,.8,.2,1) both;
}

.slide.active .slide-content .btn {
    animation: path-four 2.35s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes path-one {
    from { opacity: 0; transform: translate(-90px, 46px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes path-two {
    from { opacity: 0; transform: translate(72px, -45px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes path-three {
    from { opacity: 0; transform: translate(-55px, -28px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes path-four {
    from { opacity: 0; transform: translate(65px, 34px); }
    to { opacity: 1; transform: translate(0, 0); }
}

.slider-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.24);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.7s ease, background 0.7s ease, transform 0.7s ease;
}

.slider-control.prev { left: 24px; }
.slider-control.next { right: 24px; }

.slider-control:hover {
    color: #111;
    background: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.slider-dots,
.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
}

.slider-dot,
.testimonial-dot {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.65s ease, background 0.65s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--gold);
    transform: scale(1.22);
}

/* ---------- Shared content sections ---------- */
.section {
    padding: clamp(70px, 8vw, 112px) 0;
}

.section.compact {
    padding-top: clamp(52px, 6vw, 82px);
    padding-bottom: clamp(52px, 6vw, 82px);
}

.section:nth-of-type(even) {
    background: var(--surface-alt);
}

.intro-copy,
.section-heading {
    max-width: 820px;
    margin-bottom: 42px;
}

.intro-copy h2,
.section-heading h2,
.split-copy h2,
.contact-card h2,
.callout h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.intro-copy > p:last-child,
.section-heading > p:last-child,
.split-copy p,
.card-body p,
.service-card p,
.content-card p {
    color: var(--muted);
}

.hover-shift {
    transition: transform 0.8s ease, color 0.8s ease;
}

.hover-shift:hover {
    transform: translate(6px, -3px);
}

/* ---------- Universal smooth image overlay hover ---------- */
.card-media,
.split-media,
.image-shell,
.gallery-item,
.testimonial-person {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card-media::after,
.split-media::after,
.image-shell::after,
.gallery-item::after,
.testimonial-person::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(8, 10, 14, 0.28);
    opacity: 0;
    transition: opacity 1.15s ease;
}

.card-media:hover::after,
.split-media:hover::after,
.image-shell:hover::after,
.gallery-item:hover::after,
.testimonial-person:hover::after {
    opacity: 1;
}

/* Images themselves are not filtered, recoloured, distorted or transformed. */
.card-media img,
.split-media img,
.image-shell img,
.gallery-item img,
.testimonial-person img {
    filter: none;
    transform: none;
}

/* ---------- Home three-column cards ---------- */
.card-grid,
.services-grid,
.testimony-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info-card,
.service-card,
.content-card,
.testimonial-card,
.contact-card,
.contact-form {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-media {
    aspect-ratio: 4 / 3;
}

.card-label {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #111;
    background: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    transition: color 0.75s ease, background 0.75s ease, transform 0.75s ease;
}

.card-media:hover .card-label {
    color: #fff;
    background: var(--accent);
    transform: translate(5px, -4px);
}

.card-body,
.service-card,
.content-card {
    padding: 26px;
}

.card-body h3,
.card-body h4,
.service-card h3 {
    margin-top: 0;
}

/* ---------- Full-width home video row ---------- */
.video-feature {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #09070b;
}

.video-feature video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 5, 8, 0.84), rgba(7, 5, 8, 0.28));
    pointer-events: none;
}

.video-copy {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 44px));
    color: #fff;
}

.video-copy h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 6rem);
    line-height: 0.95;
}

.video-copy > p:not(.eyebrow) {
    max-width: 620px;
}

.video-play {
    width: 78px;
    height: 78px;
    margin-bottom: 24px;
    border: 0;
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    cursor: pointer;
    font-size: 1.35rem;
    transition: background 0.75s ease, transform 0.75s ease;
}

.video-play:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 22px;
    transition: transform 0.85s cubic-bezier(.2,.8,.2,1);
}

.testimonial-card {
    flex: 0 0 calc((100% - 44px) / 3);
    padding: 24px;
}

.testimonial-person {
    min-height: 190px;
    margin: -24px -24px 22px;
}

.testimonial-person > div {
    position: absolute;
    z-index: 3;
    left: 18px;
    right: 18px;
    bottom: 15px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 12px;
}

.testimonial-person span,
.testimonial-person strong {
    display: block;
}

.testimonial-card blockquote {
    margin: 0;
    color: var(--muted);
}

.testimonial-dots {
    margin-top: 28px;
}

.testimonial-dot {
    border-color: var(--accent);
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--accent);
    transform: scale(1.22);
}

/* ---------- INTERNAL PAGE BANNER ----------
 * Strict prompt requirement: clearly lower than the Home slider.
 */
.page-hero {
    position: relative;
    height: clamp(250px, 29vw, 370px);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0b090c;
}

.page-hero > img {
    position: absolute;
    inset: 0;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 5, 8, 0.88), rgba(7, 5, 8, 0.32) 64%, rgba(7, 5, 8, 0.16));
}

.page-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.page-hero-content > * {
    max-width: 760px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.page-hero .hero-subtitle {
    margin: 12px 0 4px;
    font-weight: 900;
}

.page-hero .hero-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero .eyebrow {
    color: var(--gold);
}

.hero-reveal {
    animation: path-two 1.8s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Strict two-column / three-column inner-page rows ---------- */
.split-section,
.split,
.about-row,
.contact-grid,
.contact-layout,
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
}

.split-section.reverse .split-media {
    order: 2;
}

.split-section.reverse .split-copy {
    order: 1;
}

.split-media,
.image-shell {
    min-height: 330px;
    max-height: 470px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-media img,
.image-shell img {
    min-height: 330px;
    max-height: 470px;
}

.split-copy {
    max-width: 650px;
}

.feature-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    margin: 9px 0;
    padding-left: 26px;
}

.feature-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    font-weight: 900;
}

.callout {
    padding: clamp(28px, 5vw, 58px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* ---------- Gallery ---------- */
.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 900;
    background: var(--surface);
    border: 1px solid var(--line);
}

.pagination .active,
.pagination a:hover {
    color: #fff;
    background: var(--accent);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 24px;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.92);
}

.gallery-modal.open {
    display: grid;
}

.gallery-modal-content {
    width: min(1100px, 96vw);
    max-height: 92vh;
    overflow: auto;
    color: #fff;
}

.gallery-modal img {
    max-height: 75vh;
    object-fit: contain;
}

.modal-close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ---------- Contact ---------- */
.contact-layout {
    align-items: start;
}

.contact-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-card,
.contact-form {
    padding: 26px;
}

.contact-card h2 {
    font-size: 1.6rem;
}

.contact-card a {
    color: var(--blue);
    overflow-wrap: anywhere;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 900;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.form-status {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
}

.form-status.success { background: rgba(8, 127, 91, 0.14); }
.form-status.error { background: rgba(201, 24, 99, 0.14); }

.map-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-wrap iframe {
    width: 100%;
    min-height: 430px;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    padding: 68px 0 26px;
    color: #fff;
    background: #0c0910;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 44px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-grid p {
    color: #cfc5d0;
}

.footer-links,
.social-links {
    display: grid;
    gap: 8px;
}

.footer-links a,
.social-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.7s ease, transform 0.7s ease;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    margin-right: 7px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
}

.back-to-top {
    position: fixed;
    z-index: 1200;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 900;
    transition: background 0.7s ease, color 0.7s ease, transform 0.7s ease;
}

.back-to-top:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-5px);
}

/* ---------- Responsive: laptop / small desktop ---------- */
@media (max-width: 1160px) {
    .brand-name {
        font-size: 1rem;
    }

    .primary-nav a {
        padding-inline: 7px;
        font-size: 0.82rem;
    }

    .header-book {
        padding-inline: 12px;
        font-size: 0.72rem;
    }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 980px) {
    :root {
        --header-h: 78px;
    }

    .header-inner {
        position: relative;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
    }

    .brand-name {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        padding: 14px;
        display: none;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: grid;
    }

    .primary-nav a {
        padding: 11px 8px;
    }

    .header-actions {
        gap: 7px;
    }

    .hero-slider {
        min-height: 690px;
    }

    .page-hero {
        height: 320px;
    }

    .card-grid,
    .services-grid,
    .gallery-grid,
    .testimony-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .split-section,
    .split,
    .about-row,
    .contact-grid,
    .contact-layout,
    .cta-grid {
        gap: 32px;
    }

    .contact-stack {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 28px;
    }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 720px) {
    .container {
        width: min(100% - 30px, var(--container));
    }

    .header-inner {
        width: calc(100% - 20px);
        gap: 7px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .header-book {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 0.66rem;
    }

    .hero-slider {
        min-height: 620px;
    }

    .slide-content {
        left: 30px;
        right: 30px;
        bottom: 86px;
        width: auto;
    }

    .slide-content h1 {
        font-size: clamp(2.7rem, 14vw, 4.6rem);
    }

    .slider-control {
        top: 43%;
        width: 44px;
        height: 44px;
    }

    .slider-control.prev { left: 8px; }
    .slider-control.next { right: 8px; }

    .slider-dots {
        width: calc(100% - 40px);
        gap: 7px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .page-hero {
        height: 270px;
    }

    .page-hero h1 {
        font-size: clamp(2.3rem, 11vw, 3.8rem);
    }

    .page-hero .hero-text {
        display: none;
    }

    .card-grid,
    .services-grid,
    .gallery-grid,
    .testimony-grid,
    .split-section,
    .split,
    .about-row,
    .contact-grid,
    .contact-layout,
    .cta-grid,
    .footer-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .split-section.reverse .split-media,
    .split-section.reverse .split-copy {
        order: initial;
    }

    .split-media,
    .image-shell,
    .split-media img,
    .image-shell img {
        min-height: 260px;
        max-height: 360px;
    }

    .testimonial-card {
        flex-basis: 100%;
    }

    .video-feature {
        min-height: 560px;
    }

    .video-copy h2 {
        font-size: clamp(2.5rem, 13vw, 4.5rem);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- Responsive: very small mobile ---------- */
@media (max-width: 410px) {
    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .header-book {
        max-width: 118px;
        font-size: 0.61rem;
    }

    .slide-content {
        left: 25px;
        right: 25px;
    }

    .page-hero {
        height: 245px;
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================
   Enhancement pass — 2026-08-18
   Requirements: no pink, blackish image overlays, restrained
   button corners, redesigned testimonial cards and fixed modal.
   ========================================================== */
@font-face {
    font-family: "PBCDisplay";
    src: url("../fonts/Display-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PBCBody";
    src: url("../fonts/Body-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PBCBody";
    src: url("../fonts/Body-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body,
button,
input,
textarea,
select {
    font-family: "PBCBody", Arial, sans-serif;
}

h1,
h2,
h3,
.brand-name,
.slide-title,
.page-hero h1 {
    font-family: "PBCDisplay", "Arial Narrow", sans-serif;
    letter-spacing: 0.02em;
}

/* Restrained corners: buttons should not look like capsules. */
.btn,
.nav-book,
button.btn {
    border-radius: 7px;
}

/* Links inherit the visual system; no browser-default blue/underline. */
a {
    text-decoration: none;
}

.contact-card a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.45s ease, border-color 0.45s ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
    color: var(--accent);
    border-bottom-color: currentColor;
}

/* Universal image treatment: a light blackish overlay, never a colour tint. */
.image-frame,
.card-image,
.media-image,
.gallery-item,
.testimonial-person,
.split-media,
.page-image {
    position: relative;
    overflow: hidden;
}

.image-frame::after,
.card-image::after,
.media-image::after,
.gallery-item::after,
.split-media::after,
.page-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(7, 9, 12, 0.28);
    transition: background-color 0.75s ease, opacity 0.75s ease;
}

.image-frame:hover::after,
.card-image:hover::after,
.media-image:hover::after,
.gallery-item:hover::after,
.split-media:hover::after,
.page-image:hover::after {
    background: rgba(7, 9, 12, 0.12);
}

/* Testimonial grid: quote takes upper two-thirds; identity occupies lower third. */
.testimony-grid .testimonial-card {
    min-height: 360px;
    display: grid;
    grid-template-rows: 2fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.testimony-grid .testimonial-card blockquote {
    grid-row: 1;
    margin: 0;
    padding: 30px 28px 22px;
    display: flex;
    align-items: center;
    line-height: 1.75;
}

.testimony-grid .testimonial-person {
    grid-row: 2;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
}

.testimony-grid .testimonial-person::after {
    display: none;
}

.testimony-grid .testimonial-person img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.testimony-grid .testimonial-person strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}

.testimony-grid .testimonial-person span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Gallery modal: match actual PHP class names and keep image above copy. */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    padding: clamp(12px, 3vw, 32px);
    background: rgba(3, 5, 8, 0.92);
}

.modal.open {
    display: grid;
}

.modal-dialog {
    position: relative;
    width: min(1040px, 96vw);
    max-height: 94vh;
    overflow: auto;
    background: var(--surface);
    color: var(--ink);
    border: 5px solid #17324d;
    border-radius: 10px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr;
}

.modal-content > img {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    background: #07090c;
}

.modal-copy {
    padding: 20px 24px 24px;
}

.modal-copy h2,
.modal-copy p {
    margin-top: 8px;
}

.modal-close {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
}

/* Footer should have no decorative multicolour transition stripe. */
.site-footer::before,
footer::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 680px) {
    .testimony-grid .testimonial-card {
        min-height: 330px;
    }

    .testimony-grid .testimonial-person {
        grid-template-columns: 60px minmax(0, 1fr);
        padding: 16px 18px;
    }

    .testimony-grid .testimonial-person img {
        width: 56px;
        height: 56px;
    }

    .modal {
        padding: 10px;
    }

    .modal-dialog {
        width: 100%;
        max-height: 96vh;
        border-width: 3px;
    }

    .modal-content > img {
        max-height: 60vh;
    }
}


/* ==========================================================
   Precision tuning pass — 2026-08-18
   Based strictly on the latest supplied specification and
   the immediately preceding review conversation.
   ========================================================== */

/* No link may appear with an underline, including hover/focus. */
a,
a:hover,
a:focus,
a:focus-visible,
.contact-card a,
.contact-card a:hover,
.contact-card a:focus,
.contact-card a:focus-visible {
    text-decoration: none;
    border-bottom: 0;
}

/* Contact: left side remains one vertical stack; form stays right. */
.contact-layout {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
}

.contact-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-stack .contact-card {
    width: 100%;
}

/* Form boundaries must stay soft; never deep black, even on focus. */
input,
textarea,
select {
    border-color: rgba(105, 105, 105, 0.28);
    outline: none;
    box-shadow: none;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(95, 95, 95, 0.42);
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: rgba(76, 92, 108, 0.58);
    box-shadow: 0 0 0 3px rgba(76, 92, 108, 0.12);
    outline: none;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: rgba(164, 74, 52, 0.62);
    box-shadow: 0 0 0 3px rgba(164, 74, 52, 0.10);
}

.field-error,
.field-help {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.field-help {
    color: var(--muted);
}

.field-error {
    color: #a44a34;
    font-weight: 700;
}

/* Gallery thumbnails: exact rectangular, very-light-grey boundary. */
.gallery-item,
.gallery-frame,
.gallery-item img {
    border-radius: 0;
}

.gallery-item {
    border: 1px solid #e3e3e3;
    box-shadow: 0 12px 28px rgba(34, 34, 34, 0.07);
}

html[data-theme="night"] .gallery-item {
    border-color: rgba(255, 255, 255, 0.20);
}

.gallery-item:hover,
.gallery-item:focus-visible {
    border-color: #d1d1d1;
    outline: none;
}

/* Modal requires a strong coloured boundary, but never deep black. */
.modal-dialog {
    border-color: #315b72;
}

/* Testimonial lower one-third is always a true two-column layout. */
.testimony-grid .testimonial-card {
    grid-template-rows: minmax(0, 2fr) minmax(112px, 1fr);
}

.testimony-grid .testimonial-person {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.testimony-grid .testimonial-person > img {
    grid-column: 1;
    justify-self: start;
}

.testimony-grid .testimonial-person > div {
    grid-column: 2;
    min-width: 0;
    align-self: center;
}

.testimony-grid .testimonial-person strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Generic keyboard focus boundary: visible but never black. */
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(49, 91, 114, 0.72);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .testimony-grid .testimonial-person {
        grid-template-columns: 62px minmax(0, 1fr);
        column-gap: 14px;
    }

    .testimony-grid .testimonial-person img {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 420px) {
    .testimony-grid .testimonial-card {
        min-height: 350px;
    }

    .testimony-grid .testimonial-person {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 14px;
    }

    .testimony-grid .testimonial-person img {
        width: 52px;
        height: 52px;
    }
}

/* ==========================================================
   Testimonial-only tuning — 2026-08-18
   Keeps generous inner breathing room on every side, changes
   testimonial portraits from circular to rectangular, and
   preserves name-above-brief hierarchy in the right column.
   ========================================================== */

/* Keep the lower one-third comfortably inside the card boundary. */
.testimony-grid .testimonial-person {
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr);
    gap: 20px;
    margin: 16px 18px 18px;
    padding: 16px;
    border: 1px solid rgba(110, 110, 110, 0.18);
    border-radius: 0;
    background: var(--surface-alt);
    box-sizing: border-box;
}

/* Left column: rectangular portrait with breathing room from all edges. */
.testimony-grid .testimonial-person > img {
    grid-column: 1;
    width: 100%;
    max-width: 88px;
    height: 84px;
    margin: 0;
    border: 1px solid rgba(110, 110, 110, 0.22);
    border-radius: 0;
    object-fit: cover;
    justify-self: start;
}

/* Right column: inset identity panel; it never touches the card boundary. */
.testimony-grid .testimonial-person > div {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(110, 110, 110, 0.16);
    border-radius: 0;
    background: rgba(110, 110, 110, 0.10);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimony-grid .testimonial-person strong {
    display: block;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimony-grid .testimonial-person span {
    display: block;
    margin: 5px 0 0;
}

@media (max-width: 680px) {
    .testimony-grid .testimonial-person {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        margin: 14px;
        padding: 14px;
    }

    .testimony-grid .testimonial-person > img {
        width: 76px;
        height: 72px;
        max-width: 76px;
    }

    .testimony-grid .testimonial-person > div {
        padding: 10px 12px;
    }
}

@media (max-width: 420px) {
    .testimony-grid .testimonial-person {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 12px;
        margin: 12px;
        padding: 12px;
    }

    .testimony-grid .testimonial-person > img {
        width: 66px;
        height: 64px;
        max-width: 66px;
    }
}

/* ==========================================================
   Testimonial portrait refinement — 2026-08-18
   Portrait-format guest image, vertically centred identity panel,
   and reduced inter-column gap as specifically requested.
   ========================================================== */
.testimony-grid .testimonial-person {
    grid-template-columns: minmax(78px, 92px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.testimony-grid .testimonial-person > img {
    width: 100%;
    max-width: 92px;
    height: 118px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    align-self: center;
}

.testimony-grid .testimonial-person > div {
    align-self: center;
    width: 100%;
}

@media (max-width: 680px) {
    .testimony-grid .testimonial-person {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 7px;
    }

    .testimony-grid .testimonial-person > img {
        width: 76px;
        max-width: 76px;
        height: 101px;
    }
}

@media (max-width: 420px) {
    .testimony-grid .testimonial-person {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 6px;
    }

    .testimony-grid .testimonial-person > img {
        width: 66px;
        max-width: 66px;
        height: 88px;
    }
}

/* ==========================================================
   Final targeted tuning — 2026-08-19
   Home hero begins at viewport top beneath an overlay header;
   gallery pagination/modal motion and testimonial spacing only.
   ========================================================== */

/* Home only: keep the sticky header visually over the hero so the slider starts at page top. */
.home-page .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: linear-gradient(to bottom, rgba(8, 7, 10, 0.72), rgba(8, 7, 10, 0.28), transparent);
    border-bottom-color: transparent;
    backdrop-filter: none;
}

.home-page .hero-slider {
    min-height: min(880px, 100svh);
}

/* Gallery pagination: true circles with breathing room before the footer. */
.pagination {
    margin-top: 36px;
    margin-bottom: clamp(52px, 7vw, 88px);
}

.pagination button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--surface);
    font-weight: 900;
    cursor: pointer;
    transition: color 0.55s ease, background 0.55s ease, border-color 0.55s ease, transform 0.55s ease;
}

.pagination button.active,
.pagination button:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Gallery modal: grow smoothly from the clicked thumbnail and fade away on close. */
.modal {
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.46s ease, visibility 0s linear 0.46s;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.46s ease;
}

.modal-dialog {
    opacity: 0;
    transform: translate(var(--modal-shift-x, 0px), var(--modal-shift-y, 0px)) scale(var(--modal-scale-x, 0.18), var(--modal-scale-y, 0.18));
    transform-origin: center center;
    transition: transform 0.58s cubic-bezier(0.22, 0.75, 0.22, 1), opacity 0.42s ease;
    will-change: transform, opacity;
}

.modal.open.modal-visible .modal-dialog {
    opacity: 1;
    transform: translate(0, 0) scale(1, 1);
}

/* Testimonial lower identity row: half the prior gap and preserve a clear right inset. */
.testimony-grid .testimonial-person {
    gap: 5px;
    margin-right: 20px;
}

.testimony-grid .testimonial-person > div {
    width: auto;
    min-width: 0;
    margin-right: 2px;
}

@media (max-width: 680px) {
    .testimony-grid .testimonial-person {
        gap: 4px;
        margin-right: 16px;
    }
}

@media (max-width: 420px) {
    .testimony-grid .testimonial-person {
        gap: 3px;
        margin-right: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-dialog {
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================
   Header visibility tuning — 2026-08-19
   Keep the home header readable over every hero image and make
   it opaque after the visitor starts scrolling.
   ========================================================== */
.home-page .site-header {
    transition: background-color 0.7s ease, box-shadow 0.7s ease, border-color 0.7s ease, backdrop-filter 0.7s ease;
}

.home-page .brand-name {
    /* Match the exact brand-name black used by the internal pages. */
    color: var(--ink);
    /* Keep the requested white outline to exactly one CSS pixel. */
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
    text-shadow: none;
}

.home-page .primary-nav a {
    margin-inline: 2px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(15, 17, 20, 0.64);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: color 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, transform 0.6s ease;
}

.home-page .primary-nav a::after {
    display: none;
}

.home-page .primary-nav a:hover,
.home-page .primary-nav a.active {
    color: #151019;
    background: var(--gold);
    border-color: var(--gold);
}

.home-page .site-header.is-scrolled {
    background: var(--header-bg);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
}

.home-page .site-header.is-scrolled .brand-name {
    color: var(--ink);
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
    text-shadow: none;
}

.home-page .site-header.is-scrolled .primary-nav a {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}

.home-page .site-header.is-scrolled .primary-nav a:hover,
.home-page .site-header.is-scrolled .primary-nav a.active {
    color: #151019;
    background: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 960px) {
    .home-page .primary-nav {
        background: var(--header-bg);
        border: 1px solid var(--line);
    }

    .home-page .primary-nav a,
    .home-page .site-header.is-scrolled .primary-nav a {
        color: var(--ink);
        background: var(--surface);
        border-color: var(--line);
    }

    .home-page .primary-nav a:hover,
    .home-page .primary-nav a.active,
    .home-page .site-header.is-scrolled .primary-nav a:hover,
    .home-page .site-header.is-scrolled .primary-nav a.active {
        color: #151019;
        background: var(--gold);
        border-color: var(--gold);
    }
}

/* ==========================================================
   Gallery dropdown + Video Gallery — 2026-08-23
   Added only for the requested Image/Video Gallery navigation
   and dedicated video gallery/player pages.
   ========================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    position: relative;
    padding: 12px 10px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.65s ease, transform 0.65s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-submenu {
    position: absolute;
    z-index: 1300;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 178px;
    padding: 8px;
    display: grid;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
}

.nav-submenu a {
    padding: 10px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.home-page .nav-dropdown-toggle {
    margin-inline: 2px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(15, 17, 20, 0.64);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.home-page .nav-dropdown-toggle:hover,
.home-page .nav-dropdown-toggle.active,
.home-page .nav-dropdown.open .nav-dropdown-toggle {
    color: #151019;
    background: var(--gold);
    border-color: var(--gold);
}

.home-page .site-header.is-scrolled .nav-dropdown-toggle {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}

.home-page .site-header.is-scrolled .nav-dropdown-toggle:hover,
.home-page .site-header.is-scrolled .nav-dropdown-toggle.active,
.home-page .site-header.is-scrolled .nav-dropdown.open .nav-dropdown-toggle {
    color: #151019;
    background: var(--gold);
    border-color: var(--gold);
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.video-thumbnail-card {
    display: grid;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.video-thumbnail-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-alt);
}

.video-thumbnail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.6s ease;
}

.video-thumbnail-card:hover .video-thumbnail-media::after,
.video-thumbnail-card:focus-visible .video-thumbnail-media::after {
    background: rgba(0, 0, 0, 0.05);
}

.video-thumbnail-play {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #111;
    background: var(--gold);
    font-size: 1.05rem;
}

.video-thumbnail-title {
    font-weight: 900;
}

.video-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.video-watch-section {
    padding-top: clamp(42px, 6vw, 84px);
}

.video-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(270px, 0.85fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}

.video-watch-main h1 {
    margin-bottom: 22px;
}

.video-player-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111;
}

.gallery-video-player {
    width: 100%;
    max-height: 72vh;
    display: block;
    background: #111;
}

.video-player-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-player-actions button {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.video-player-actions button:hover {
    color: #151019;
    background: var(--gold);
    border-color: var(--gold);
}

.video-watch-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.video-watch-sidebar h2 {
    margin-bottom: 16px;
}

.video-sidebar-list {
    display: grid;
    gap: 12px;
}

.video-sidebar-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--surface);
    text-decoration: none;
}

.video-sidebar-item img {
    width: 108px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.video-sidebar-item span {
    font-weight: 900;
}

.video-sidebar-item:hover,
.video-sidebar-item.active {
    border-color: var(--gold);
}

@media (max-width: 980px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 11px 8px;
        text-align: left;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        margin-top: 4px;
        padding: 4px 0 4px 14px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        transition: none;
    }

    .nav-dropdown:hover .nav-submenu,
    .nav-dropdown:focus-within .nav-submenu,
    .nav-dropdown.open .nav-submenu {
        display: grid;
        transform: none;
    }

    .home-page .nav-dropdown-toggle,
    .home-page .site-header.is-scrolled .nav-dropdown-toggle {
        color: var(--ink);
        background: var(--surface);
        border-color: var(--line);
        box-shadow: none;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-watch-layout {
        grid-template-columns: 1fr;
    }

    .video-watch-sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-sidebar-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .video-sidebar-item img {
        width: 92px;
    }
}
