/* ============================================================
                            DESIGN TOKENS
           ============================================================ */
:root {
    --lime: #8dc63f;
    --lime-dark: #6fa32b;
    --ink: #2b2b2b;
    --charcoal: #1f1d1b;
    --charcoal-2: #2a2724;
    --charcoal-3: #34302c;

    --text: #6a6560;
    --muted: #9b958e;
    --line: #ececec;

    --bg: #ffffff;
    --bg-soft: #f6f6f4;

    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 10px 26px -16px rgba(0, 0, 0, 0.4);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
    --maxw: 1180px;
    --nav-h: 92px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Oswald', sans-serif;
    color: var(--ink);
    line-height: 1.08;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* section title block (numbered two-tone) */
.title-block .num {
    font-family: 'Oswald', sans-serif;
    color: var(--muted);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.title-block h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-top: 4px;
}

.title-block h2 .g {
    color: var(--lime);
    display: block;
}

.title-block .bar {
    width: 46px;
    height: 4px;
    background: var(--ink);
    margin-top: 22px;
    border-radius: 2px;
}

.title-block.on-dark h2 {
    color: #fff;
}

.title-block.on-dark .bar {
    background: #fff;
}

.title-block.center {
    text-align: center;
}

.title-block.center .bar {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
                            BUTTONS
           ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.btn svg {
    width: 15px;
    height: 15px;
}

.btn-lime {
    background: var(--lime);
    color: #fff;
}

.btn-lime:hover {
    background: var(--lime-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-2px);
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.link-more svg {
    width: 15px;
    height: 15px;
    color: var(--lime);
    transition: transform .25s ease;
}

.link-more:hover svg {
    transform: translateX(4px);
}

.link-more.on-dark {
    color: #fff;
}

/* ============================================================
                            NAV
           ============================================================ */
header.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background .3s ease, height .3s ease, box-shadow .3s ease;
}

header.nav.scrolled {
    background: var(--charcoal);
    height: 70px;
    box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hamburger {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--lime);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: none;
}

.hamburger svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.nav-logo {
    flex: none;
}

.nav-logo img {
    height: 46px;
}

nav.menu {
    margin: 0 auto;
}

nav.menu ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav.menu li+li::before {
    content: "·";
    color: var(--lime);
    margin-right: 4px;
}

nav.menu a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    transition: color .2s ease;
}

nav.menu a:hover,
nav.menu a.active {
    color: var(--lime);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
    color: #fff;
}

.nav-tools button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    position: relative;
}

.nav-tools button:hover {
    color: var(--lime);
}

.nav-tools svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lime);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-family: 'Inter', sans-serif;
}

/* search overlay */
.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 20px 0;
    z-index: 101;
    transform: translateY(-100%);
    transition: transform .3s ease;
}

.search-bar.open {
    transform: none;
}

.search-bar .container {
    display: flex;
    gap: 14px;
    align-items: center;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--charcoal-3);
    color: #fff;
    font-size: 1.4rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    padding: 10px 0;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--lime);
}

.search-bar .close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* mobile drawer */
.drawer-back {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 110;
}

.drawer-back.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
                            HERO
           ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.45) 45%, rgba(20, 18, 16, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 0;
    max-width: 900px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    margin: 16px 0 34px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-mouse {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-mouse span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--lime);
    animation: scrolldot 1.6s ease-in-out infinite;
}

@keyframes scrolldot {

    0% {
        opacity: 0;
        transform: translateY(-4px);
    }

    50% {
        opacity: 1;
        transform: translateY(2px);
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ============================================================
                            SECTION SHELL
           ============================================================ */
section.block {
    padding: 100px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ============================================================
                            ABOUT (.01)
           ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .sub {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 26px 0 16px;
}

.about-text p.body {
    margin-bottom: 30px;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--muted);
}

.about-media {
    text-align: center;
}

.about-media img {
    margin: 0 auto;
}

/* ============================================================
                            SERVICES (.02) dark
           ============================================================ */
.services {
    background: var(--charcoal);
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: stretch;
}

.services-media {
    background-size: cover;
    background-position: center;
    min-height: 520px;
    position: relative;
}

.services-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 29, 27, 0) 60%, var(--charcoal));
}

.services-body {
    padding: 90px 70px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 36px;
    margin-top: 44px;
}

.svc .ico {
    color: var(--lime);
    margin-bottom: 14px;
}

.svc .ico svg {
    width: 42px;
    height: 42px;
}

.svc h3 {
    color: var(--lime);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.svc p {
    color: #b3aca4;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

/* ============================================================
                            EVENTS (.03)
           ============================================================ */
.events-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 46px;
    gap: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.event {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.event:hover .event-img img {
    transform: scale(1.06);
}

.event-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(20, 18, 16, 0.85);
    color: var(--lime);
    padding: 7px 16px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.event-body {
    padding: 26px 24px 28px;
    flex: 1;
}

.event-body h3 {
    color: var(--lime);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.event-body p {
    font-size: 0.92rem;
}

/* featured/countdown event */
.event.featured {
    position: relative;
    color: #fff;
}

.event.featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event.featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.82);
}

.event.featured .inner {
    position: relative;
    z-index: 2;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event.featured .meta {
    font-size: 0.9rem;
    margin: 4px 0 18px;
}

.event.featured .meta div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.event.featured .meta svg {
    width: 15px;
    height: 15px;
    color: var(--lime);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: auto 0 18px;
}

.countdown .cell {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 10px 4px;
    text-align: center;
}

.countdown .cell b {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    display: block;
    color: #fff;
}

.countdown .cell span {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lime);
}

/* ============================================================
                            PRODUCTS (.05)
           ============================================================ */
.products {
    background: var(--bg-soft);
}

.prod-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.prod-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.prod-filter button {
    background: none;
    border: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 6px;
    transition: color .2s ease;
}

.prod-filter button::after {
    content: "/";
    margin-left: 12px;
    color: var(--line);
}

.prod-filter button:last-child::after {
    content: "";
}

.prod-filter button:hover,
.prod-filter button.active {
    color: var(--lime);
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product.hide {
    display: none;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.product .pimg {
    height: 170px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.product .pimg img {
    max-height: 100%;
    transition: transform .4s ease;
}

.product:hover .pimg img {
    transform: scale(1.05);
}

.product h3 {
    color: var(--lime);
    font-size: 1.15rem;
}

.product .est {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 6px 0;
}

.product .price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 600;
}

.product .pactions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.product .pactions button {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease;
}

.product .pactions .add {
    background: var(--lime);
    color: #fff;
}

.product .pactions .add:hover {
    background: var(--lime-dark);
}

.product .pactions .view {
    background: var(--bg-soft);
    color: var(--ink);
}

.product .pactions .view:hover {
    background: var(--ink);
    color: #fff;
}

.product .pactions svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
                            INSTRUCTOR (.06) dark
           ============================================================ */
.instructor {
    background: var(--charcoal);
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.inst {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 3 / 3.6;
}

.inst img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform .5s ease, opacity .3s ease;
}

.inst:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.inst-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.inst-info h3 {
    color: #fff;
    font-size: 1.3rem;
}

.inst-info .role {
    color: var(--lime);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.inst-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.inst:hover .inst-social {
    opacity: 1;
    transform: none;
}

.inst-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .2s ease, color .2s ease;
}

.inst-social a:hover {
    background: var(--lime);
    border-color: var(--lime);
}

.inst-social svg {
    width: 15px;
    height: 15px;
}

/* ============================================================
                            BLOG
           ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 50px;
}

.post {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
}

.post-img {
    height: 210px;
    overflow: hidden;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.post:hover .post-img img {
    transform: scale(1.06);
}

.post-body {
    padding: 24px;
}

.post-body .date {
    color: var(--lime);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.post-body h3 {
    font-size: 1.2rem;
    margin: 10px 0 10px;
}

.post-body p {
    font-size: 0.9rem;
    margin-bottom: 14px;
}

/* ============================================================
                            GALLERY STRIP
           ============================================================ */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.gallery-strip a {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-strip a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(141, 198, 63, 0.75);
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-strip a:hover::after {
    opacity: 1;
}

.gallery-strip a:hover img {
    transform: scale(1.1);
}

.gallery-strip .ig {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-strip a:hover .ig {
    opacity: 1;
}

.gallery-strip .ig svg {
    width: 26px;
    height: 26px;
}

/* ============================================================
                            FOOTER
           ============================================================ */
footer {
    background: var(--charcoal);
    color: #a49e97;
}

.footer-main {
    padding: 76px 0 46px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 46px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
}

.footer-brand img {
    height: 52px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.92rem;
    max-width: 330px;
}

.footer-contact li {
    list-style: none;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.footer-contact ul {
    margin: 0;
    padding: 0;
}

.footer-contact svg {
    width: 17px;
    height: 17px;
    color: var(--lime);
    flex: none;
    margin-top: 4px;
}

.footer-nl p {
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.footer-nl form {
    display: flex;
    gap: 8px;
}

.footer-nl input {
    flex: 1;
    min-width: 0;
    background: var(--charcoal-2);
    border: 1px solid var(--charcoal-3);
    border-radius: 6px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
}

.footer-nl input:focus {
    outline: none;
    border-color: var(--lime);
}

.footer-nl button {
    flex: none;
    background: var(--lime);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.footer-nl button:hover {
    background: var(--lime-dark);
}

.footer-nl button svg {
    width: 18px;
    height: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--charcoal-3);
    display: grid;
    place-items: center;
    color: #a49e97;
    transition: all .2s ease;
}

.footer-social a:hover {
    background: var(--lime);
    border-color: var(--lime);
    color: #fff;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    border-top: 1px solid var(--charcoal-3);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #7c766f;
}

/* ============================================================
                            BACK TO TOP
           ============================================================ */
#backTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--lime);
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    z-index: 90;
    box-shadow: var(--shadow);
}

#backTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

#backTop:hover {
    background: var(--lime-dark);
}

#backTop svg {
    width: 22px;
    height: 22px;
}

/* ============================================================
                            RESPONSIVE
           ============================================================ */
@media (max-width: 980px) {
    nav.menu {
        display: none;
    }

    .about-grid,
    .services {
        grid-template-columns: 1fr;
    }

    .services-media {
        min-height: 300px;
    }

    .services-body {
        padding: 60px 34px;
    }

    .events-grid,
    .prod-grid,
    .inst-grid,
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-strip {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-inner {
        gap: 14px;
    }

    .nav-logo img {
        height: 38px;
    }

    section.block {
        padding: 70px 0;
    }

    .services-grid,
    .events-grid,
    .prod-grid,
    .inst-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .events-head,
    .prod-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* mobile drawer nav */
@media (max-width: 980px) {
    .drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: var(--charcoal);
        z-index: 120;
        padding: 28px 26px;
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }

    .drawer.open {
        transform: none;
    }

    .drawer img {
        height: 44px;
        margin-bottom: 30px;
    }

    .drawer ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .drawer a {
        display: block;
        color: #fff;
        padding: 14px 0;
        border-bottom: 1px solid var(--charcoal-3);
        font-family: 'Oswald', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .drawer a:hover {
        color: var(--lime);
    }
}

@media (min-width: 981px) {

    .drawer,
    .drawer-back {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ============================================================
                        CTA MODALS
   ============================================================ */

/* Gallery tiles became <button>; mirror the .gallery-strip a styling */
.gallery-strip button {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.gallery-strip button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(141, 198, 63, 0.75);
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-strip button:hover::after {
    opacity: 1;
}

.gallery-strip button:hover img {
    transform: scale(1.1);
}

.gallery-strip button:hover .ig {
    opacity: 1;
}

/* "View All" became a <button>; buttons don't inherit font or line-height */
button.link-more {
    font-family: inherit;
    line-height: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(31, 29, 27, 0.82);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    /* hold visibility until the fade-out finishes */
    transition: opacity .32s ease, visibility 0s linear .32s;
}

.modal-overlay.open {
    opacity: 1;
    /* flip to visible immediately, so the dialog can take focus this tick */
    visibility: visible;
    transition: opacity .32s ease, visibility 0s linear 0s;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transform: translateY(18px) scale(.98);
    transition: transform .38s cubic-bezier(.2, .7, .2, 1);
}

.modal-overlay.open .modal-card {
    transform: none;
}

/* Source gallery photos are small and near-square (248x258), so a wide
   crop would cut the subject out — 4/3 keeps the banner feel safely. */
.modal-figure {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--bg-soft);
}

.modal-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.modal-close:hover {
    background: var(--lime);
    color: #fff;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 17px;
    height: 17px;
}

.modal-body {
    padding: 34px clamp(24px, 4vw, 38px) 34px;
}

.modal-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lime-dark);
    margin-bottom: 12px;
}

.modal-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.55rem, 3.6vw, 2.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 14px;
}

.modal-body p {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.modal-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.modal-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.6;
}

.modal-list li svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 3px;
    color: var(--lime);
}

.modal-list strong {
    color: var(--ink);
    font-weight: 600;
}

.modal-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--bg-soft);
    border-left: 3px solid var(--lime);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.modal-actions .btn {
    text-decoration: none;
}

.btn-ink {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ink:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .modal-body {
        padding: 28px 22px 28px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .modal-overlay,
    .modal-card {
        transition-duration: .01ms;
    }
}
