/* ─────────────────────────────────────────────
   The Breakout Creative — Global Stylesheet
   Design tokens, reset, layout utilities,
   and shared components (buttons, hero shell).
   Block-specific styles live in blocks/acf-blocks/<name>/style.css
───────────────────────────────────────────── */

/* ── Self-hosted brand fonts ──
   Akira Expanded = global font (body/UI text, --tbc-font-heading).
   Creato Display = heading/display font (--tbc-font-body). */
@font-face {
    font-family: 'Akira Expanded';
    src: url('../fonts/akira-expanded/akira_bold-webfont.woff2') format('woff2'),
        url('../fonts/akira-expanded/akira_bold-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akira Expanded';
    src: url('../fonts/akira-expanded/akira_bold-webfont.woff2') format('woff2'),
        url('../fonts/akira-expanded/akira_bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akira Expanded';
    src: url('../fonts/akira-expanded/akira_super_bold-webfont.woff2') format('woff2'),
        url('../fonts/akira-expanded/akira_super_bold-webfont.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akira Expanded Outline';
    src: url('../fonts/akira-expanded/akira_outline-webfont.woff2') format('woff2'),
        url('../fonts/akira-expanded/akira_outline-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-ThinItalic.woff') format('woff');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-RegularItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-ExtraBoldItalic.woff') format('woff');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Creato Display';
    src: url('../fonts/creato-display/CreatoDisplay-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ── Design Tokens ── */
/* NOTE: pink/pink-accent/red are placeholders pending confirmed brand hex
   from the client (Figma comments were not accessible during scoping — see
   PROJECT-CONTEXT.md open questions). Keep in sync with theme.json. */
:root {
    --tbc-font-heading: 'Akira Expanded', sans-serif;
    --tbc-font-body: 'Creato Display', sans-serif;
    --tbc-color-bg: #ffffff;
    /* --tbc-color-text: #0d0d0d; */
    --tbc-color-text: #000000;
    --tbc-color-black: #000000;
    --tbc-color-white: #ffffff;
    /* --tbc-pink: #F3D6F0; */
    --tbc-pink: #FFD3FF;
    --tbc-pink-accent: #FF3FA4;
    --tbc-red: #ED2228;

    --fs-64-32: clamp(2rem, -0.286rem + 4.762vw, 4rem);
    --fs-48-24: clamp(1.5rem, -0.214rem + 3.571vw, 3rem);
    --fs-32-24: clamp(1.5rem, 0.929rem + 1.19vw, 2rem);
    --fs-28-16: clamp(1rem, 0.143rem + 1.786vw, 1.75rem);
    --fs-22-18: clamp(1.125rem, 0.825rem + 0.612vw, 1.375rem);

    --space-120-40: clamp(2.5rem, -3.214rem + 11.905vw, 7.5rem);
    --space-80-40: clamp(2.5rem, -0.357rem + 5.952vw, 5rem);
    --space-60-24: clamp(1.5rem, -1.071rem + 5.357vw, 3.75rem);
    --space-40-20: clamp(1.25rem, -0.179rem + 2.976vw, 2.5rem);

    --tbc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: auto;
    /* Lenis handles smooth scroll */
}

body {
    font-family: var(--tbc-font-body);
    background-color: var(--tbc-color-bg);
    color: var(--tbc-color-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: inherit;
}

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

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

/* ── Layout Container ── */
.tbc-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}
.tbc-container.md{
    max-width: calc(866px + 120px);
}

@media (min-width: 992px) {
    .tbc-container {
        padding-left: 60px;
        padding-right: 60px;
    }

    header.tbc-header .tbc-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ── Buttons ── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1.5px solid var(--tbc-color-black);
    border-radius: 999px;
    font-family: var(--tbc-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    /* letter-spacing: 0.05em; */
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--tbc-color-black);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--tbc-color-black);
}

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

.btn-secondary:hover {
    background-color: var(--tbc-pink);
    color: var(--tbc-color-black);
    border-color: var(--tbc-color-black);
}

.btn-outline {
    color: var(--tbc-color-text);
}

.btn-outline svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-outline:hover {
    background: var(--tbc-pink);
    border-color: var(--tbc-pink);
}

.btn-outline:hover svg {
    transform: translateX(4px);
}

/* Light variant — for dark section backgrounds */
.btn-outline--light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline--light:hover {
    background: var(--tbc-pink);
    border-color: var(--tbc-pink);
    color: var(--tbc-color-text);
}

/* ── Hero Shell (shared by all hero blocks) ── */
.font-heading {
    font-family: var(--tbc-font-heading) !important;
    text-transform: uppercase !important;
}

.font-body {
    font-family: var(--tbc-font-body) !important;
}

.font-akira-outline {
    font-family: 'Akira Expanded Outline', sans-serif !important;
    text-transform: uppercase !important;
}


/* ── Hero Shell (shared by all hero blocks) ──
   .tbc-hero-wrapper and .tbc-inner-hero-wrapper are two separate hero
   variants — kept as independent rule blocks (even though some declarations
   are duplicated) so a change to one never bleeds into the other. */
.tbc-hero-wrapper {
    position: relative;
    height: 100dvh;
    width: 100vw;
    display: flex;
    align-items: center;
    z-index: 1;
}

.tbc-inner-hero-wrapper {
    position: relative;
    height: 100dvh;
    width: 100vw;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

@keyframes tbc-inner-hero-reveal {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tbc-inner-hero-wrapper .tbc-hero-image-overlay {
    animation: tbc-inner-hero-reveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.tbc-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.tbc-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.tbc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tbc-color-black);
    opacity: 0.2 !important;
    z-index: 2;
}

.tbc-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    mix-blend-mode: darken;
    z-index: 2;
    pointer-events: none;
}

.creative-hero-sec .tbc-hero-image-overlay {
    background-position: top right;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10;
}

.tbc-hero-content {
    position: relative;
    width: 100%;
    text-align: left;
    padding-left: 100px;
}

.tbc-hero-content.text-center {
    text-align: center;
    padding-left: 0;
}

.tbc-hero-title {
    font-family: var(--tbc-font-body);
    font-size: clamp(2rem, 4.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0;
    color: currentColor;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

/* Each line wraps text for the slide-up reveal */
.tbc-title-line {
    overflow: hidden;
    display: block;
}

.tbc-title-line-inner {
    display: inline-block;
    transform: translateY(110%);
    /* JS animates to 0 */
}

.tbc-hero-content p {
    font-size: clamp(0.88rem, 1.1vw, 1.375rem);
    line-height: 1.8;
    color: var(--tbc-color-black);
    margin: 1.75rem 0 0;
    font-weight: 400;
    max-width: 660px;
}

.tbc-hero-content p+p {
    margin-top: 1rem;
}

/* Scroll indicator */
.tbc-scroll-indicator {
    position: absolute;
    top: calc(100% + 5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
    cursor: pointer;
    z-index: 10;
}

.tbc-scroll-indicator p {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: currentColor;
}

.tbc-arrow-down-icon {
    width: 54px;
    height: auto;
    /* filter: brightness(0) invert(1); */
    animation: tbc-bounce 1s infinite ease-in-out;
}

/* .tbc-scroll-indicator:hover .tbc-arrow-down-icon {
    animation: tbc-bounce 1s infinite ease-in-out;
} */

@keyframes tbc-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ── Reveal animation helper ── */
/* Initial hidden state; JS drives clip-path + y to their revealed values */
.tbc-reveal-block {
    will-change: clip-path, transform;
}

/* ── Section spacing ── */
.tbc-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.tbc-section--sm {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tbc-hero-content {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tbc-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .tbc-hero-image-overlay {
        /* background-position: top right -70vw; */
        background-position: top center;
    }

    .tbc-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

:has(.tbc-cart-drawer.is-open) #wpadminbar {
    opacity: 0;
    pointer-events: none;
}

/* ──────────────── CONTACT FORM 7 ──────────────────────────────────── */
.cf7-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
}

.cf7-col {
    width: calc(50% - 30px);
}

.cf7-full {
    width: 100%;
}

.cf7-form-grid label {
    font-family: var(--tbc-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--tbc-color-text);
}

.cf7-form-grid input,
.cf7-form-grid textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-size: 15px;
    background: transparent;
    outline: none;
}

.cf7-form-grid input::placeholder,
.cf7-form-grid textarea::placeholder {
    color: #999;
}

.cf7-form-grid textarea {
    height: 100px;
    resize: none;
}

.cf7-submit-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.cf7-submit-wrap input[type="submit"] {
    border: 1px solid #FFF;
    background: transparent;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cf7-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1rem;
    border: 1.5px solid #FFF;
    border-radius: 50px;
    font-family: var(--tbc-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFF;
    background-color: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.cf7-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.cf7-submit-wrap [type="submit"]:hover,
.cf7-btn:hover {
    background-color: var(--tbc-pink);
    border-color: var(--tbc-pink);
    color: #000;
}

.cf7-btn:hover svg {
    transform: translateX(4px);
}

.cf7-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .cf7-col {
        width: 100%;
    }

    .cf7-submit-wrap {
        justify-content: center;
    }
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: var(--tbc-pink);
    border-color: var(--tbc-pink) !important;
    color: #000;
}

/* END CONTACT FORM 7  */

@media (min-width: 992px) {
    .tbc-services-section:has(+.tbc-testimonial-section) {
        padding-bottom: 3.125rem;
    }

    .tbc-services-section+.tbc-testimonial-section {
        padding-top: 3.125rem;
    }
}

/* ──────────────── CONTACT GRAVITY FORM ──────────────────────────────────── */
.tbc-cf-form-wrap .gform_fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
    column-gap: 24px;
}

.tbc-cf-form-wrap .gfield--width-full {
    grid-column: 2 span;
}

.tbc-cf-form-wrap .gform-footer {
    margin-top: 40px;
    text-align: right;
}

.tbc-cf-section .gform_button {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
    background-size: 20px;
    padding-right: 48px !important;
}

.tbc-cf-section .gform_button:hover {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: background-position 0.25s ease-in-out;
}

.ginput_container_date {
    position: relative;
}

.ginput_container_date .ui-datepicker-trigger {
    position: absolute;
    top: 0.78rem;
    right: 0;
}

/* ──────────────── PARALLAX IMAGE BLOCK ──────────────────────────────────── */
.parallax-img-sec {
    background-repeat: no-repeat;
    background-position: center center;
}

@media (max-width: 991.98px) {
    .parallax-img-sec {
        min-height: inherit !important;
        aspect-ratio: 16 / 9;
        background-attachment: inherit !important;
    }
}

/* ──────────────── DARK BG PAGE — GENERIC WYSIWYG CONTENT ─────────────────
   Styles the plain Gutenberg content (headings, paragraphs, lists, links)
   dropped into templates/dark-bg-page.php's .tbc-page-content > .wp-block-group.
   Scoped to body.page-template-dark-bg-page so it only ever fires on pages
   actually assigned that template (Privacy Policy, Refund and Returns
   Policy, and any other plain content page using "Dark BG Page").        */

:has(.page-template-dark-bg-page) {
    .tbc-page-content>.wp-block-group {
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 20px;
        padding-block: var(--space-80-40);
    }

    .tbc-page-content>.wp-block-group :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, table) {
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    .tbc-page-content>.wp-block-group>*:last-child {
        margin-bottom: 0;
    }

    .tbc-page-content>.wp-block-group *+ :where(h1, h2, h3, h4, h5, h6) {
        margin-top: var(--space-40-20);
    }

    .tbc-page-content>.wp-block-group :where(h1, h2, h3, h4, h5, h6) {
        font-family: var(--tbc-font-heading);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.01em;
        line-height: 1.25;
        color: var(--tbc-color-text);
    }

    .tbc-page-content>.wp-block-group h1 {
        font-size: var(--fs-64-32);
    }

    .tbc-page-content>.wp-block-group h2 {
        font-size: var(--fs-32-24);
    }

    .tbc-page-content>.wp-block-group h3,
    .tbc-page-content>.wp-block-group h4,
    .tbc-page-content>.wp-block-group h5,
    .tbc-page-content>.wp-block-group h6 {
        font-size: var(--fs-28-16);
    }

    .tbc-page-content>.wp-block-group p,
    .tbc-page-content>.wp-block-group li {
        font-family: var(--tbc-font-body);
        font-size: 1rem;
        line-height: 1.7;
        color: var(--tbc-color-text);
    }

    .tbc-page-content>.wp-block-group ul,
    .tbc-page-content>.wp-block-group ol {
        padding-left: 1.25rem;
    }

    .tbc-page-content>.wp-block-group li {
        margin-bottom: 0.5rem;
    }

    .tbc-page-content>.wp-block-group li:last-child {
        margin-bottom: 0;
    }

    .tbc-page-content>.wp-block-group strong {
        font-weight: 700;
    }

    .tbc-page-content>.wp-block-group a {
        text-decoration: underline;
        text-underline-offset: 2px;
        font-weight: 600;
    }

    .tbc-page-content>.wp-block-group a:hover {
        color: var(--tbc-pink-accent);
    }
}