/*
Theme Name: CrossFit Stadion 1926
Theme URI: https://crossfitstadion1926.cz
Description: Custom theme for CrossFit Stadion 1926 based on Twenty Twenty-Five
Author: Lynsis
Author URI: https://lynsis.dev
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crossfit-theme
*/

/* ==========================================================================
   CrossFit Stadion 1926
   Raw, authentic CrossFit box style
   ========================================================================== */

:root {
    --red: #DC2626;
    --red-dark: #991B1B;
    --blue: #1E40AF;
    --blue-dark: #1e3a8a;
    --black: #0a0a0a;
    --dark: #111111;
    --gray: #1a1a1a;
    --gray-mid: #333;
    --gray-light: #a0a0a0;
    --white: #ffffff;
    --off-white: #f5f5f5;

    --gradient: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);

    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-h: 70px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--off-white);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* UTILITY */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow { max-width: 800px; }

.hide-mobile, .no-mobile { display: none; }
@media (min-width: 768px) {
    .hide-mobile, .no-mobile { display: inline-flex; }
}

.no-desktop { display: inline-flex; }
@media (min-width: 768px) {
    .no-desktop { display: none; }
}

/* Mobile header button - smaller on mobile */
.header .no-desktop.btn {
    padding: 6px 12px;
    font-size: 11px;
    margin-right: 8px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

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

.btn--large {
    padding: 16px 32px;
    font-size: 15px;
}

.btn--full { width: 100%; }

/* LABEL */
.label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 12px;
}
.label--center { display: block; text-align: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Header status (Otvíráme/Zavřeno) */
.header__status {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-light);
    white-space: nowrap;
}
.header__status--open {
    color: #22c55e;
}
.header__status--closed {
    color: var(--red);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}
.logo__img {
    height: 50px;
    width: auto;
}
.logo--footer {
    display: inline-block;
}
.logo--footer .logo__img {
    height: 60px;
}

/* NAV */
.nav {
    display: none;
    gap: 32px;
}
.nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-light);
    transition: color 0.2s;
}
.nav a:hover { color: var(--white); }

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

/* HEADER BUTTONS */
.header__buttons {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .header__buttons { display: flex; }
}

.header__buttons .btn {
    padding: 10px 20px;
    font-size: 13px;
}

.header__buttons .btn--ghost {
    border-color: rgba(255,255,255,0.2);
}

.header__buttons .btn--ghost:hover {
    border-color: rgba(255,255,255,0.5);
}

/* HAMBURGER */
.hamburger {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
}
.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: 0.2s;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { transform: rotate(45deg); top: 0; }
.hamburger.active span::after { transform: rotate(-45deg); top: 0; }

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

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    z-index: 99;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-nav a {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

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

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--header-h) 20px 120px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.9) 100%),
        linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM39 0h1v1h-1zM0 39h1v1H0zM39 39h1v1h-1z' fill='%23333' fill-opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 15vw, 120px);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 16px;
}
.hero__title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__motto {
    font-size: 18px;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.hero__text {
    font-size: 16px;
    color: var(--gray-light);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* HERO BADGE */
.hero__badge {
    position: absolute;
    bottom: 110px; /* Above mobile-cta */
    right: 20px;
    text-align: right;
    z-index: 1;
    max-width: calc(100% - 40px);
}
.hero__badge-date {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 48px);
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.hero__badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-light);
}

@media (min-width: 768px) {
    .hero { padding: calc(var(--header-h) + clamp(40px, 5vh, 80px)) 40px clamp(60px, 8vh, 100px); }
    .hero__badge { right: 40px; bottom: 60px; } /* No mobile-cta on desktop */
    .hero__badge-date { font-size: clamp(48px, 5vw, 72px); }
}

@media (min-width: 1200px) {
    .hero { padding: calc(var(--header-h) + clamp(60px, 6vh, 80px)) 60px clamp(80px, 10vh, 100px); }
    .hero__badge { right: 60px; bottom: clamp(60px, 6vh, 80px); }
    .hero__badge-date { font-size: 72px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: 80px 0;
}
.section--dark {
    background: var(--dark);
}

@media (min-width: 768px) {
    .section { padding: 120px 0; }
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 56px);
    letter-spacing: 0.02em;
    color: var(--white);
    text-align: center;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 16px;
    color: var(--gray-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ==========================================================================
   SPLIT LAYOUT (O nas)
   ========================================================================== */
.split {
    display: grid;
    gap: 48px;
}
@media (min-width: 768px) {
    .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

.split__text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    color: var(--white);
    margin-bottom: 24px;
}

.split__text p {
    color: var(--gray-light);
    margin-bottom: 16px;
    line-height: 1.7;
}
.split__text p strong {
    color: var(--white);
}

/* AFFILIATE BADGE */
.affiliate-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}
.affiliate-badge img {
    width: 60px;
    height: 60px;
}
.affiliate-badge strong {
    color: var(--white);
    font-size: 14px;
}
.affiliate-badge span {
    color: var(--gray-light);
    font-size: 12px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat {
    padding: 24px;
    background: var(--gray);
    border-left: 3px solid transparent;
    border-image: var(--gradient) 1;
}
.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
    color: var(--white);
}
.stat__label {
    font-size: 13px;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   CARDS (Pro koho)
   ========================================================================== */
.cards {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
    padding: 32px 24px;
    background: var(--dark);
    border: 1px solid var(--gray-mid);
    transition: border-color 0.2s;
}
.card:hover {
    border-color: var(--red);
}

.card__icon {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--red);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ==========================================================================
   TEAM
   ========================================================================== */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.team__member {
    text-align: center;
}

.team__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--white);
    background: hsl(var(--hue, 0), 70%, 40%);
    margin: 0 auto 12px;
    transition: transform 0.2s;
}
.team__member:hover .team__avatar {
    transform: scale(1.1);
}

.team__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}

@media (min-width: 768px) {
    .team__avatar { width: 100px; height: 100px; font-size: 40px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) {
    .services { grid-template-columns: repeat(3, 1fr); }
}

.service {
    padding: 32px 24px;
    background: var(--dark);
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s;
}
.service:hover {
    border-color: var(--red);
}

.service--highlight {
    background: var(--red);
    border-color: var(--red);
}
.service--highlight h3,
.service--highlight p,
.service--highlight .service__meta {
    color: var(--white);
}

.service h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.service p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service__meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-light);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--gray-mid);
}

.faq__item {
    background: var(--dark);
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--red);
    transition: transform 0.2s;
}
.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ==========================================================================
   CALENDAR EMBED
   ========================================================================== */
.calendar-embed {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.calendar-embed iframe {
    width: 100%;
    height: 700px;
    display: block;
    border: 0;
    background: #ffffff;
}
@media (min-width: 768px) {
    .calendar-embed iframe { height: 850px; }
}

.booking-alt {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.booking-alt p {
    color: var(--gray-light);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    gap: 48px;
}
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1.5fr; gap: 64px; }
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    color: var(--white);
    margin-bottom: 24px;
}

.contact-info address {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 16px;
}
.contact-info address strong {
    color: var(--white);
}

.contact-note {
    font-size: 14px;
    color: var(--red);
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.contact-links a {
    font-size: 16px;
    color: var(--white);
    transition: color 0.2s;
}
.contact-links a:hover {
    color: var(--red);
}

.contact-map {
    background: var(--gray);
    border: 1px solid var(--gray-mid);
}
.contact-map iframe {
    width: 100%;
    height: 300px;
    display: block;
    border: 0;
}
@media (min-width: 768px) {
    .contact-map iframe { height: 400px; }
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta {
    padding: 80px 20px;
    background: var(--gradient);
    text-align: center;
}
@media (min-width: 768px) {
    .cta { padding: 120px 20px; }
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 64px);
    line-height: 1;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 48px 0 24px;
    background: var(--black);
    border-top: 1px solid var(--gray-mid);
}

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

.footer__brand p {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 12px;
}

.logo--footer .logo__cf { font-size: 12px; }
.logo--footer .logo__name { font-size: 16px; }

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__nav a {
    font-size: 14px;
    color: var(--gray-light);
    transition: color 0.2s;
}
.footer__nav a:hover { color: var(--white); }

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__contact a {
    font-size: 14px;
    color: var(--gray-light);
    transition: color 0.2s;
}
.footer__contact a:hover { color: var(--red); }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-mid);
}
.footer__bottom p {
    font-size: 12px;
    color: var(--gray-light);
}

/* ==========================================================================
   MOBILE CTA
   ========================================================================== */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--gradient);
}
.mobile-cta a {
    display: block;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

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

/* Bottom padding for mobile CTA */
body { padding-bottom: 56px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* ==========================================================================
   FOCUS STATES
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ==========================================================================
   VIDEO HERO
   ========================================================================== */
.hero--video {
    overflow: hidden;
}

.hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

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

.hero--video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(10,10,10,0.5) 0%,
        rgba(10,10,10,0.8) 50%,
        rgba(10,10,10,0.95) 100%);
    z-index: 1;
}

.hero--video .hero__content {
    z-index: 2;
}

.hero--video .hero__badge {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .hero__video {
        display: none;
    }
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 20px 80px;
    background: var(--black);
    text-align: center;
}

.error-page__content {
    max-width: 600px;
}

.error-page__code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(120px, 30vw, 240px);
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-page__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 56px);
    color: var(--white);
    margin-bottom: 16px;
}

.error-page__text {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   BLOG / LANDING
   ========================================================================== */
.post-hero {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 60px;
    background: var(--dark);
}

.post-hero .container {
    max-width: 800px;
}

.post-hero__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: 16px;
}

.post-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 56px);
    color: var(--white);
    margin-bottom: 16px;
}

.post-meta {
    font-size: 14px;
    color: var(--gray-light);
    margin-top: 16px;
}

.post-meta span {
    margin: 0 8px;
}

.post-content {
    padding: 60px 0;
}

.post-content .container {
    max-width: 800px;
}

.post-content p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-display);
    color: var(--white);
    margin-top: 48px;
    margin-bottom: 16px;
}

.post-content img {
    margin: 32px 0;
}

.post-content a {
    color: var(--red);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--red-dark);
}

.footer--minimal {
    padding: 24px 0;
    text-align: center;
}

.footer--minimal .footer__grid {
    display: none;
}

/* ==========================================================================
   WORDPRESS OVERRIDES - CRITICAL FOR FULLSCREEN
   ========================================================================== */

/* Override Twenty Twenty-Five parent theme typography */
body {
    font-weight: 400 !important;
    letter-spacing: normal !important;
}

/* COMPLETE RESET - Remove ALL WordPress default spacing and elements */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    --wp--style--root--padding-top: 0 !important;
    --wp--style--root--padding-right: 0 !important;
    --wp--style--root--padding-bottom: 0 !important;
    --wp--style--root--padding-left: 0 !important;
    --wp--style--block-gap: 0 !important;
}

/* Remove ALL WordPress site blocks padding */
.wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}

/* Remove padding aware alignments */
.has-global-padding {
    padding: 0 !important;
}

/* Remove WordPress post content constraints - but preserve custom section padding */
.wp-site-blocks > *,
.wp-site-blocks .wp-block-post-content,
.wp-block-post-content > *,
.entry-content,
.entry-content > *,
.is-layout-flow > *,
.is-layout-constrained > * {
    max-width: none !important;
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Only reset padding on WordPress blocks, not custom sections */
.wp-block-post-content > .wp-block-group,
.wp-block-post-content > .wp-block-columns,
.wp-block-post-content > .wp-block-cover {
    padding: 0 !important;
}

/* Remove layout constraints completely */
.is-layout-constrained,
.is-layout-flow,
.wp-block-post-content.is-layout-flow {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CRITICAL: Remove WordPress admin bar offset when logged in */
html.wp-toolbar {
    padding-top: 0 !important;
}
body.admin-bar {
    margin-top: 0 !important;
}
body.admin-bar .header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* Ensure first child has no margin - but preserve custom section padding */
.wp-site-blocks > :first-child,
.wp-block-post-content > :first-child,
.entry-content > :first-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Force header to be at absolute top */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Hide WordPress default template parts (header, footer, page title, navigation) */
.wp-block-template-part,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-page-list,
.wp-block-navigation,
header.wp-block-template-part,
footer.wp-block-template-part {
    display: none !important;
}

/* Hide any WordPress-generated page headers */
.page-header,
.entry-header,
.wp-block-query-title {
    display: none !important;
}

/* Allow HTML blocks to be full width */
.wp-block-html {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove Group block defaults */
.wp-block-group,
.wp-block-columns {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

/* Gutenberg editor fixes */
.editor-styles-wrapper {
    background: var(--black) !important;
    color: var(--off-white) !important;
}

/* WordPress navigation block override (for future use) */
.wp-block-navigation {
    gap: 32px;
}

.wp-block-navigation a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-light);
}

.wp-block-navigation a:hover {
    color: var(--white);
}

/* WordPress button overrides */
.wp-block-button__link {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
}

.wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--red);
    border: 2px solid var(--red);
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* WordPress heading styles */
.wp-block-heading {
    font-family: var(--font-display);
    color: var(--white);
    letter-spacing: 0.02em;
}

h1.wp-block-heading {
    font-size: clamp(48px, 15vw, 120px);
    line-height: 0.9;
}

h2.wp-block-heading {
    font-size: clamp(32px, 8vw, 56px);
}

h3.wp-block-heading {
    font-size: clamp(24px, 5vw, 36px);
}

/* WordPress paragraph styles */
.wp-block-paragraph {
    color: var(--gray-light);
    line-height: 1.7;
}

/* WordPress columns */
.wp-block-columns {
    gap: 24px;
}

@media (min-width: 768px) {
    .wp-block-columns {
        gap: 48px;
    }
}

/* WordPress cover block */
.wp-block-cover {
    min-height: 100vh;
}

/* WordPress group blocks with backgrounds */
.wp-block-group.has-background {
    padding: 80px 20px;
}

@media (min-width: 768px) {
    .wp-block-group.has-background {
        padding: 120px 40px;
    }
}

/* Spectra blocks overrides */
.uagb-faq-child__outer-wrap .uagb-faq-questions-button {
    background: var(--dark) !important;
    color: var(--white) !important;
    padding: 20px 24px !important;
}

.uagb-faq-content {
    background: var(--dark) !important;
    color: var(--gray-light) !important;
    padding: 0 24px 20px !important;
}

.uagb-faq-icon-wrap svg {
    fill: var(--red) !important;
}

/* Spectra team block */
.uagb-team__wrap {
    background: transparent !important;
}

.uagb-team__image-wrap img {
    border-radius: 50%;
}

/* Future use: WordPress site header (currently hidden on front page) */
/*
.wp-block-template-part[data-type="header"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}
*/
