/* ============================================
   SAM PARK TRAINING — DESIGN SYSTEM
   Mobile-first | Dark premium | No accents
   ============================================ */

/* --- Custom Properties --- */
:root {
    --black:        #0A0A0A;
    --charcoal:     #1A1A1A;
    --dark-grey:    #2A2A2A;
    --mid-grey:     #858585;
    --light-grey:   #E5E5E5;
    --off-white:    #F7F7F8;
    --white:        #FFFFFF;

    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-xs:        clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
    --fs-sm:        clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
    --fs-base:      clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
    --fs-md:        clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    --fs-lg:        clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --fs-xl:        clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --fs-hero:      clamp(2.75rem, 2rem + 4vw, 5.5rem);

    --nav-height:   72px;
    --container:    1200px;
    --gap:          clamp(1.5rem, 1rem + 2vw, 4rem);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--mid-grey);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-heading {
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    line-height: 1;
    font-family: var(--font);
}

.btn--primary {
    background: var(--white);
    color: var(--black);
}

.btn--primary:hover {
    background: var(--light-grey);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn--secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s;
}

.nav.is-scrolled {
    background: var(--black);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__wordmark {
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
}

.nav__links {
    display: none;
    gap: 2.5rem;
}

.nav__link {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-grey);
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--white);
}

.nav__right {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--light-grey);
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav__phone:hover {
    color: var(--white);
}

.nav__cta {
    padding: 10px 24px;
    font-size: 11px;
}

/* Hamburger */
.nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav */
@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }

    .nav__right {
        display: flex;
    }

    .nav__hamburger {
        display: none;
    }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu__link {
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--mid-grey);
}

.mobile-menu__cta {
    margin-top: 1rem;
}

.mobile-menu__phone {
    font-size: var(--fs-sm);
    color: var(--mid-grey);
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__gradient-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--black) 0%,
        var(--charcoal) 25%,
        var(--dark-grey) 50%,
        var(--charcoal) 75%,
        var(--black) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background image fallback (shows when video fails) */
.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: grayscale(30%) contrast(1.1);
}

/* Video covers the gradient + image when loaded */
.hero__video-wrap .hero__video {
    position: relative;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero__headline {
    font-size: var(--fs-hero);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero__sub {
    font-size: var(--fs-md);
    font-weight: 400;
    color: var(--light-grey);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    padding: 16px 40px;
    font-size: 13px;
}

/* ============================================
   AUTHORITY BAR
   ============================================ */
.authority {
    background: var(--charcoal);
    border-top: 1px solid var(--dark-grey);
    border-bottom: 1px solid var(--dark-grey);
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.authority__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
}

.authority__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.authority.is-visible .authority__item {
    opacity: 1;
    transform: translateY(0);
}

.authority.is-visible .authority__item:nth-child(1) { transition-delay: 0s; }
.authority.is-visible .authority__item:nth-child(2) { transition-delay: 0.15s; }
.authority.is-visible .authority__item:nth-child(3) { transition-delay: 0.3s; }
.authority.is-visible .authority__item:nth-child(4) { transition-delay: 0.45s; }

.authority__icon {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.authority__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--light-grey);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .authority {
        padding: 2.5rem 1.5rem;
    }

    .authority__inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .authority__icon {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--black);
}

.about__grid {
    display: grid;
    gap: var(--gap);
}

.about__text {
    order: 2;
}

.about__image {
    order: 1;
}

.about .section-heading {
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
}

.about__body {
    font-size: var(--fs-base);
    color: var(--mid-grey);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about__cta {
    margin-top: 1.5rem;
}

.about__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about__text {
        order: 1;
    }

    .about__image {
        order: 2;
    }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--charcoal);
}

.services .section-label,
.services .section-heading {
    text-align: center;
}

.services__grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.services__card {
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    border: 1px solid var(--dark-grey);
}

.services__card--primary {
    background: var(--black);
}

.services__card--secondary {
    background: var(--dark-grey);
}

.services__card-img {
    margin: calc(clamp(2rem, 1.5rem + 2vw, 3rem) * -1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.services__card-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: transform 0.6s ease;
}

.services__card:hover .services__card-img img {
    transform: scale(1.03);
}

.services__card-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--mid-grey);
    margin-bottom: 1rem;
}

.services__card-title {
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.services__card-desc {
    font-size: var(--fs-base);
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.services__card-list {
    margin-bottom: 2rem;
}

.services__card-list li {
    font-size: var(--fs-sm);
    color: var(--light-grey);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 1rem;
    position: relative;
}

.services__card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--mid-grey);
    border-radius: 50%;
    transform: translateY(-50%);
}

.services__card-cta {
    width: 100%;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: 3fr 2fr;
    }

    .services__card-cta {
        width: auto;
    }
}

/* ============================================
   THE DIFFERENCE
   ============================================ */
.difference {
    position: relative;
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--black);
    overflow: hidden;
}

.difference__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.difference__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
}

.difference__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.difference .container {
    position: relative;
    z-index: 2;
}

.difference .section-label,
.difference .section-heading {
    text-align: center;
}

.difference__grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.difference__item {
    padding: 2rem;
    border-left: 2px solid var(--dark-grey);
}

.difference__item-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.difference__item-text {
    font-size: var(--fs-base);
    color: var(--mid-grey);
    line-height: 1.7;
}

.difference__cta-wrap {
    text-align: center;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .difference__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--charcoal);
}

.testimonials .section-label,
.testimonials .section-heading {
    text-align: center;
}

.testimonials__grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonials__card {
    padding: 2rem;
    border: 1px solid var(--dark-grey);
    background: var(--black);
}

.testimonials__quote {
    font-size: var(--fs-base);
    color: var(--light-grey);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonials__author {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--mid-grey);
    text-transform: uppercase;
}

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

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--black);
}

.faq .section-label,
.faq .section-heading {
    text-align: center;
}

.faq__list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq__item {
    border-bottom: 1px solid var(--dark-grey);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    text-align: left;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
}

.faq__icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--mid-grey);
}

.faq__item.is-open .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.is-open .faq__answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq__answer p {
    font-size: var(--fs-base);
    color: var(--mid-grey);
    line-height: 1.7;
}

/* ============================================
   BOOK / CONSULTATION
   ============================================ */
.book {
    position: relative;
    padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
    background: var(--charcoal);
    overflow: hidden;
}

.book__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.book__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.1);
}

.book__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.88);
    z-index: 1;
}

.book .container {
    position: relative;
    z-index: 2;
}

.book__content {
    text-align: center;
    margin-bottom: 3rem;
}

.book__desc {
    font-size: var(--fs-base);
    color: var(--mid-grey);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.book__calendly {
    max-width: 700px;
    margin: 0 auto;
    background: var(--black);
    border: 1px solid var(--dark-grey);
    min-height: 700px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: clamp(3rem, 2rem + 3vw, 5rem) 0 2rem;
    background: var(--black);
    border-top: 1px solid var(--dark-grey);
}

.footer__grid {
    display: grid;
    gap: 2.5rem;
}

.footer__wordmark {
    font-size: var(--fs-md);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--mid-grey);
}

.footer__heading {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__text {
    font-size: var(--fs-sm);
    color: var(--mid-grey);
    line-height: 1.8;
}

.footer__link {
    display: block;
    font-size: var(--fs-sm);
    color: var(--mid-grey);
    line-height: 1.8;
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--white);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: var(--mid-grey);
    transition: color 0.3s;
}

.footer__social-link:hover {
    color: var(--white);
}

.footer__bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-grey);
    font-size: var(--fs-xs);
    color: var(--mid-grey);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================
   MOBILE BOTTOM CTA BAR
   ============================================ */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    display: flex;
    background: var(--black);
    border-top: 1px solid var(--dark-grey);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.mobile-cta.is-visible {
    transform: translateY(0);
}

.mobile-cta__book {
    flex: 2;
    padding: 16px;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.mobile-cta__call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    border-left: 1px solid var(--dark-grey);
}

@media (min-width: 768px) {
    .mobile-cta {
        display: none;
    }
}

/* ============================================
   BODY PADDING FOR MOBILE CTA
   ============================================ */
@media (max-width: 767px) {
    body {
        padding-bottom: 56px;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--white);
    color: var(--black);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mid-grey);
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */
:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}
