/* =========================================================
   BARRIE FUTSAL - GLOBAL RESPONSIVE STYLES
   Covers V3 PHP theme + Elementor pages
   ========================================================= */

/* ---------- BASE SAFETY ---------- */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Keep long text and URLs from forcing horizontal scroll */
body,
p,
a,
span,
div {
    overflow-wrap: break-word;
}

/* ---------- GLOBAL THEME CONTAINERS ---------- */

.container {
    width: min(1180px, 92%);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- ELEMENTOR GLOBAL CONTAINERS ---------- */

.elementor,
.elementor-section,
.e-con,
.e-con-inner {
    max-width: 100%;
}

.e-con-boxed > .e-con-inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- DESKTOP / LARGE TABLET ---------- */

@media (max-width: 1200px) {

    .container,
    .e-con-boxed > .e-con-inner {
        width: 94%;
        max-width: 100%;
    }

    .hero h1,
    h1.elementor-heading-title {
        font-size: clamp(42px, 6vw, 64px);
    }

    .page-hero h1 {
        font-size: clamp(38px, 5vw, 56px);
    }
}

/* ---------- TABLET ---------- */

@media (max-width: 1024px) {

    .container,
    .e-con-boxed > .e-con-inner {
        width: 94%;
        max-width: 100%;
    }

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .cards.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .align-right {
        text-align: left;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.08;
    }

    .page-hero h1 {
        font-size: 44px;
    }

    /* Elementor tablet spacing */
    .e-con {
        padding-left: 24px;
        padding-right: 24px;
    }

    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 46px !important;
        line-height: 1.1 !important;
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }

    .elementor-widget-heading h3.elementor-heading-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .e-con-boxed > .e-con-inner {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Theme sections */
    .section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .content-area {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Header */
    .header-inner {
        min-height: 70px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand {
        max-width: 72%;
    }

    .brand img,
    .custom-logo {
        max-width: 180px;
        height: auto;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .main-nav {
        width: 100%;
        left: 0;
        right: 0;
    }

    .main-nav ul {
        width: 100%;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav li a {
        display: block;
        width: 100%;
        padding: 12px 6px;
    }

    .nav-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 62px;
        background-position: center center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.08;
        word-break: normal;
    }

    .hero-content > p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Page hero */
    .page-hero {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .page-hero h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .page-hero p {
        font-size: 16px;
    }

    /* General typography */
    h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    h3 {
        font-size: 22px;
        line-height: 1.2;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    /* Cards */
    .cards,
    .cards.four,
    .cards.three {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .feature-card,
    .info-card,
    .program-card,
    .callout {
        width: 100%;
        max-width: 100%;
    }

    .feature-card,
    .info-card {
        padding: 22px;
    }

    /* Split layouts */
    .split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .align-right {
        text-align: left;
    }

    /* Buttons */
    .btn,
    .elementor-button {
        max-width: 100%;
        font-size: 14px;
    }

    .phone-reveal-btn {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding-top: 42px;
    }

    .site-footer a.btn {
        display: inline-block;
        width: auto;
    }

    /* Tables */
    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Contact */
    .contact-list a,
    .contact-list span {
        font-size: 16px;
        word-break: break-word;
    }

    /* ---------- ELEMENTOR MOBILE GLOBALS ---------- */

    .elementor,
    .elementor-section,
    .e-con,
    .e-con-inner {
        width: 100%;
        max-width: 100%;
    }

    .e-con {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Prevent Elementor fixed-width containers from overflowing */
    .elementor-element,
    .elementor-widget,
    .elementor-widget-container {
        max-width: 100%;
    }

    /* Responsive Elementor headings */
    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .elementor-widget-heading h3.elementor-heading-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .elementor-widget-heading h4.elementor-heading-title {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    .elementor-widget-text-editor {
        font-size: 16px;
        line-height: 1.55;
    }

    /* Elementor buttons */
    .elementor-button-wrapper {
        max-width: 100%;
    }

    .elementor-button {
        white-space: normal;
    }

    /* Elementor columns / legacy sections */
    .elementor-column,
    .elementor-column-wrap,
    .elementor-widget-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Elementor images */
    .elementor-widget-image img {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    /* Elementor accordions / forms */
    .elementor-accordion,
    .elementor-form {
        width: 100%;
        max-width: 100%;
    }

    .elementor-field-group,
    .elementor-field,
    .elementor-button {
        max-width: 100%;
    }
}

/* ---------- SMALL PHONES ---------- */

@media (max-width: 480px) {

    .container,
    .e-con-boxed > .e-con-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .e-con {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 52px;
    }

    .hero h1 {
        font-size: 32px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 21px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .elementor-widget-heading h1.elementor-heading-title {
        font-size: 31px !important;
    }

    .elementor-widget-heading h2.elementor-heading-title {
        font-size: 26px !important;
    }

    .elementor-widget-heading h3.elementor-heading-title {
        font-size: 21px !important;
    }

    .btn,
    .elementor-button {
        padding: 12px 18px;
        font-size: 13px;
    }

    .feature-card,
    .info-card {
        padding: 20px;
    }

    .phone-reveal-btn {
        font-size: 11px;
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ---------- ACCESSIBILITY / TOUCH ---------- */

@media (hover: none) and (pointer: coarse) {

    .btn,
    .elementor-button,
    .main-nav a {
        min-height: 44px;
    }
}
