/*
Theme Name: Sergo Mobile
Description: Personal training in Dubai. Designed for phones.
Version: 2.3.19
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: sergo-mobile
*/
:root {
    color-scheme: dark;
    --bg: #262626;
    --ink: #FCF900;
    --muted: #ECE7AA;
    --accent: #FCF900;
    --line: #3c3934;
    --edge: clamp(16px, 5.4vw, 25px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.sergo { position: relative; width: 100%; margin-inline: auto; }
.sergo [id] { scroll-margin-top: 16px; }
.admin-bar .sergo [id] { scroll-margin-top: 62px; }
.inset { padding-inline: var(--edge); }
.masthead {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(env(safe-area-inset-top), 12px) var(--edge) 22px;
    background: linear-gradient(#090909b8, transparent);
}
.wordmark { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-decoration: none; }
.languages { display: flex; }
.languages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 12px; text-decoration: none; color: #e4e0d8; }
.languages a[aria-current] { color: white; text-decoration: underline; text-underline-offset: 6px; }
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: max(480px, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 100px var(--edge) max(20px, env(safe-area-inset-bottom));
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 28%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 0%, var(--bg) 16%, rgba(38,38,38,.84) 26%, transparent 48%); }
.hero h1 { margin: 0; font-size: clamp(33px, 8.5vw, 55px); letter-spacing: -.055em; line-height: .98; font-weight: 720; }
.hero .hero-prices { margin-top: 4px; width: min(100%, 290px); border-radius: 8px; }
h2 { margin: 0 0 13px; font-size: clamp(29px, 8.2vw, 43px); letter-spacing: -.05em; line-height: 1.02; font-weight: 700; }
p { margin: 0; color: var(--muted); }
.intro { padding-block: 36px 42px; }
.goal-picker { margin-top: 24px; border-top: 1px solid var(--line); }
.goal-picker a { display: flex; align-items: center; justify-content: space-between; min-height: 53px; border-bottom: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.goal-picker span, summary::after { color: var(--accent); }
.training {
    display: grid;
    grid-template-columns: clamp(84px, 24vw, 118px) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}
.training h3 { grid-column: 1 / -1; margin: 0; font-size: 19px; line-height: 1.2; }
.feature img { width: 100%; height: auto; border-radius: 8px; }
.training-copy p { font-size: 14px; }
.training details { margin-top: 6px; }
.training summary, .coaching > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}
.training summary::-webkit-details-marker, .coaching > summary::-webkit-details-marker { display: none; }
.training summary::after, .coaching > summary::after { content: "+"; font-size: 20px; }
.training details[open] summary::after, .coaching[open] > summary::after { content: "−"; }
.training details p { margin-top: 4px; }
.training-media { padding-block: 26px 16px; }
.coaching { padding-block: 6px; border-block: 1px solid var(--line); }
.coaching[open] { padding-bottom: 24px; }
.contact-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
}
.contact-sheet img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.contact-sheet img:first-child { grid-column: 1/-1; aspect-ratio: 5/4; object-position: 50% 42%; }
.contact-sheet img:last-child { grid-column: 1/-1; height: auto; aspect-ratio: auto; object-fit: contain; }
.client-progress, .client-reviews { padding-top: 28px; }
.client-progress-photo {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 12px;
}
.client-progress-photo img {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
}
.client-progress-anastasia { aspect-ratio: 1024 / 697; }
.client-progress-anastasia img { margin-top: -50.29%; }
.client-progress-outdoors { aspect-ratio: 1086 / 744; }
.client-progress-outdoors img { margin-top: -45.76%; }
.client-reviews figure {
    margin: 12px 0 0;
    padding: 16px;
    background: #1c1c1c;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.client-reviews blockquote { margin: 0; color: #f3eee4; white-space: pre-line; }
.client-reviews figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.prices { padding-block: 30px 16px; }
.prices h2 { margin-bottom: 10px; }
.prices-note { margin-bottom: 16px; font-size: 14px; }
.service { border-top: 1px solid var(--line); }
.service-link { display: block; padding-block: 12px; text-decoration: none; }
.service-link:focus-visible { outline-offset: -2px; }
.service-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.service-name { font-size: 17px; font-weight: 700; line-height: 1.18; }
.service-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.service-action { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.service-link:hover .service-action { text-decoration: underline; }
.sergo-service-details { margin: 16px 0; }
.sergo-service-details dt { margin-top: 12px; font-weight: 700; }
.sergo-service-details dd { margin: 3px 0 0; color: #f3eee4; }
.amount { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount small { color: var(--muted); font-size: 10px; }
.contact-button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding-inline: 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.closing { background: #201d18; padding-block: 30px calc(100px + env(safe-area-inset-bottom)); }
.contact-button { margin-top: 18px; background: var(--accent); color: #1b1710; }
.quick-nav {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .7fr 1fr;
    align-items: center;
    gap: 5px;
    padding: 0 var(--edge) env(safe-area-inset-bottom);
    background: #181714;
    border-top: 1px solid var(--line);
}
.quick-nav a { display: flex; justify-content: center; gap: 5px; align-items: center; min-height: 33px; text-decoration: none; font-size: clamp(12px, 3.5vw, 15px); font-weight: 650; }
.quick-nav .quick-prices { background: var(--accent); color: #1b1710; }
.standard { width: min(100% - 36px, 960px); margin: 28px auto; }
.standard main { margin-top: 30px; overflow-wrap: anywhere; }
.standard table { max-width: 100%; }
.standard input, .standard select, .standard textarea { font: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.quick-nav[hidden] { display: none; }

.hero-slogan { color: var(--muted); font-weight: 650; }
.intro p + p { margin-top: 15px; }

.training-clips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}
.training-clip { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: #171714; }
.training-clip:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 7 / 5; }
.training-clip-play { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border: 0; padding: 0; background: #171714; cursor: pointer; }
.training-clip-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.training-clip-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.training-clip-play span { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #111d; color: var(--ink); border: 1px solid #fff5; }
.training-clip video { display: block; width: 100%; height: 100%; object-fit: contain; }

.masthead .wordmark { font-size: 16px; }
.masthead .languages a { font-size: 16px; }

.masthead .languages .shop-link {
    padding-inline: 6px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .hero img {
        height: min(72svh, 138vw);
        object-position: 55% 50%;
    }

    .hero::after {
        height: min(72svh, 138vw);
        background: linear-gradient(to top, var(--bg), rgba(38, 38, 38, .64) 10%, transparent 31%);
    }
}

@media (max-width: 600px) {
    .training-clips {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 74%;
        align-items: start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .training-clip {
        scroll-snap-align: start;
    }

    .training-clip:nth-child(3) {
        grid-column: auto;
    }
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.store-header .wordmark { font-size: 16px; }
.store-cart { display: grid; place-items: center; width: 44px; height: 44px; }
.store-cart:focus-visible { outline-offset: -2px; }

.sergo-store ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.sergo-store ul.products::before,
.sergo-store ul.products::after { display: none; }
.standard.sergo-store ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #1c1c1c;
    color: var(--ink);
}
.sergo-store ul.products li.product a img,
.sergo-store .wc-block-grid__product-image img,
.sergo-store .wc-block-components-product-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain !important;
    object-position: center;
    background: #171717;
    border-radius: 8px;
}
.sergo-store ul.products li.product .woocommerce-loop-product__title {
    color: var(--ink);
    font-size: 1.15rem;
}
.sergo-store ul.products li.product .price,
.sergo-store div.product p.price,
.sergo-store div.product span.price { color: var(--muted); }
.sergo-store a.button,
.sergo-store button.button,
.sergo-store a.button.alt,
.sergo-store button.button.alt {
    background: var(--accent);
    color: #1b1710;
}
.sergo-store a.button:hover,
.sergo-store button.button:hover { background: var(--muted); color: #1b1710; }
.sergo-store .woocommerce-ordering { max-width: 100%; }
.sergo-store .woocommerce-ordering select { max-width: 100%; }

/* The block-based catalog uses different markup from the classic product loop. */
.sergo-store .wc-block-product-template,
.sergo-store ul.wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.sergo-store .wc-block-product-template > li,
.sergo-store ul.wc-block-grid__products > li {
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #1c1c1c;
    color: var(--ink);
}
.sergo-store .wp-block-woocommerce-product-button .wp-block-button__link,
.sergo-store .wc-block-grid__product-add-to-cart .wp-block-button__link {
    background: var(--accent);
    color: #1b1710;
}
.sergo-store .wc-block-components-product-price { color: var(--muted); }


@media (max-width: 639px) {
    .standard.sergo-store ul.products li.product,
    .sergo-store .wc-block-product-template > li,
    .sergo-store ul.wc-block-grid__products > li {
        padding: 10px;
        overflow-wrap: anywhere;
    }
}


.woocommerce-checkout {
    --checkout-field-bg: #f3eee4;
    --checkout-field-text: #24201b;
    --checkout-field-hint: #595148;
}
/* Classic checkout labels, order summary and WooCommerce payment panels. */
body.woocommerce-checkout form.checkout {
    --checkout-copy: #f3eee4;
    --checkout-payment-bg: #1c1c1c;
    --checkout-payment-details-bg: #34322f;
    color: var(--checkout-copy);
}
body.woocommerce-checkout form.checkout :is(h3, label, .woocommerce-checkout-review-order-table) {
    color: var(--checkout-copy);
}
body.woocommerce-checkout form.checkout :is(.required, .order-total .amount) {
    color: var(--accent);
}
body.woocommerce-checkout form.checkout #payment {
    background: var(--checkout-payment-bg);
    color: var(--checkout-copy);
}
body.woocommerce-checkout form.checkout #payment ul.payment_methods {
    border-color: var(--line);
}
body.woocommerce-checkout form.checkout #payment div.payment_box {
    background: var(--checkout-payment-details-bg);
    color: var(--checkout-copy);
}
body.woocommerce-checkout form.checkout #payment div.payment_box::before {
    border-bottom-color: var(--checkout-payment-details-bg);
}
body.woocommerce-checkout form.checkout #payment #place_order {
    background: var(--accent);
    color: var(--checkout-field-text);
}
body.woocommerce-checkout form.checkout #payment #place_order:hover {
    background: var(--muted);
}
body.woocommerce-checkout form.checkout input.input-text:autofill {
    -webkit-text-fill-color: var(--checkout-field-text);
    box-shadow: 0 0 0 1000px var(--checkout-field-bg) inset;
}

.woocommerce-checkout .woocommerce-checkout :is(input.input-text, textarea, select),
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-checkout .select2-dropdown,
.woocommerce-checkout .select2-search__field,
.woocommerce-checkout .wc-block-checkout :is(
    .wc-block-components-text-input input,
    .wc-block-components-combobox .components-combobox-control__input,
    .wc-block-components-textarea,
    .wc-blocks-components-select__select
) {
    color-scheme: light;
    background-color: var(--checkout-field-bg);
    color: var(--checkout-field-text);
}
.woocommerce-checkout .select2-container .select2-selection__rendered,
.woocommerce-checkout .wc-block-checkout :is(
    .wc-block-components-text-input label,
    .wc-blocks-components-select__label
) {
    color: var(--checkout-field-hint);
}
.woocommerce-checkout :is(.woocommerce-checkout, .wc-block-checkout) :is(input, textarea)::placeholder {
    color: var(--checkout-field-hint);
}

@media (min-width: 1100px) {
    .sergo {
        --edge: clamp(28px, 4vw, 64px);
        --ribbon-width: min(calc(100% - 64px), 1420px);
        width: var(--ribbon-width);
    }

    .masthead {
        position: relative;
        padding: 10px var(--edge);
        background: #1c1b18;
        border-bottom: 1px solid var(--line);
    }

    .hero {
        min-height: clamp(450px, 70svh, 690px);
        justify-content: center;
        padding: 40px 54% 40px var(--edge);
        background: #211f1b;
    }
    .hero img {
        inset: 0 0 0 auto;
        width: 54%;
    }
    .hero::after {
        left: 46%;
        background: linear-gradient(90deg, #211f1b, transparent 19%);
    }
    .hero h1 { font-size: clamp(40px, 3.6vw, 62px); }

    .intro, .client-progress, .client-reviews, .prices, .closing {
        padding-block: clamp(34px, 4.5vw, 68px);
    }
    .intro p, .coaching p, .closing p { max-width: 72ch; }
    .goal-picker {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        border-top: 0;
    }
    .goal-picker a { border-top: 1px solid var(--line); }

    .training-clips {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }
    .training-clip:nth-child(3) { grid-column: auto; aspect-ratio: 4 / 5; }

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

    .contact-sheet {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
    .contact-sheet img:first-child, .contact-sheet img:last-child {
        grid-column: auto;
        aspect-ratio: 4 / 5;
    }

    .client-progress, .client-reviews, .prices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 12px;
    }
    .client-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .client-progress h2, .client-reviews h2, .prices h2, .prices-note { grid-column: 1 / -1; }
    .client-progress-photo, .client-reviews figure { margin-top: 0; }
    .client-progress { align-items: start; }
    .closing .contact-button { width: min(100%, 340px); }

    .closing { padding-bottom: 96px; }
    .quick-nav { width: var(--ribbon-width); max-width: 720px; border-radius: 10px 10px 0 0; }
    .quick-nav a { min-height: 44px; }
}
