/* =========================================================
   BRAGA HALF MARATHON 2027
   CONTACT
   RUNNING PORTUGAL
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #26384c;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   TOP BAR
========================================================= */

.identity-bar {
    min-height: 38px;

    background: #26384c;
    color: #ffffff;

    display: flex;
    align-items: center;
}

.identity-inner {
    width: min(1220px,94%);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identity-place,
.identity-date {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.identity-date {
    color: #e3c3c6;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    background: #ffffff;

    border-bottom:
        1px solid rgba(38,56,76,.12);
}

.header-inner {
    width: min(1220px,94%);
    min-height: 100px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

.brand {
    flex: 0 0 245px;
}

.brand img {
    width: 245px;
}


/* =========================================================
   MAIN MENU
========================================================= */

.main-menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 25px;
}

.main-menu > a,
.menu-dropdown-toggle {
    position: relative;

    min-height: 42px;

    display: inline-flex;
    align-items: center;

    border: 0;

    background: transparent;

    color: #26384c;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .07em;
    text-transform: uppercase;

    cursor: pointer;
}

.main-menu > a::after,
.menu-dropdown-toggle::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 3px;

    height: 2px;

    background: #8b1d28;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .2s ease;
}

.main-menu > a:hover::after,
.main-menu > a.active::after,
.menu-dropdown-toggle:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   INFO DROPDOWN
========================================================= */

.menu-dropdown {
    position: relative;
}

.menu-dropdown-toggle {
    gap: 7px;
}

.menu-dropdown-panel {
    position: absolute;

    top: calc(100% + 5px);
    left: 50%;

    width: 215px;

    background: #ffffff;

    border-top:
        3px solid #8b1d28;

    box-shadow:
        0 12px 32px rgba(0,0,0,.16);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-7px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.menu-dropdown.open
.menu-dropdown-panel {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.menu-dropdown-panel a {
    display: block;

    padding: 12px 17px;

    border-bottom:
        1px solid #eeeeee;

    color: #344353;

    font-size: 12px;
    font-weight: 700;
}

.menu-dropdown-panel a:hover {
    background: #f7f3f2;
    color: #8b1d28;
}


/* =========================================================
   LANGUAGE
========================================================= */

.language-selector {
    position: relative;
}

.language-button {
    min-width: 70px;
    height: 38px;

    padding: 0 13px;

    border:
        1px solid #d6dbe0;

    background: #ffffff;
    color: #26384c;

    font-size: 11px;
    font-weight: 900;

    cursor: pointer;
}

.language-panel {
    position: absolute;

    top: calc(100% + 7px);
    right: 0;

    width: 170px;

    background: #ffffff;

    border-top:
        3px solid #8b1d28;

    box-shadow:
        0 10px 30px rgba(0,0,0,.17);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.language-selector.open
.language-panel {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.language-panel a {
    display: block;

    padding: 11px 16px;

    border-bottom:
        1px solid #eeeeee;

    color: #344353;

    font-size: 12px;
    font-weight: 700;
}

.language-panel a:hover {
    background: #f7f3f2;
    color: #8b1d28;
}

.mobile-toggle {
    display: none;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    min-height: 380px;

    display: flex;
    align-items: center;

    background-image:

        linear-gradient(
            90deg,
            rgba(25,38,52,.88) 0%,
            rgba(25,38,52,.60) 36%,
            rgba(25,38,52,.14) 68%,
            rgba(25,38,52,.02) 100%
        ),

        url("../images/braga-hero-2027.jpg");

    background-size: cover;
    background-position: center;
}

.contact-hero-inner {
    width: min(1220px,94%);
    margin: auto;
}

.contact-hero-copy {
    max-width: 650px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    color: #8b1d28;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .20em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #e9cdd0;
}

.contact-hero h1 {
    margin-top: 12px;

    font-size:
        clamp(48px,5vw,70px);

    line-height: .98;

    font-weight: 900;
    text-transform: uppercase;
}

.contact-hero p {
    max-width: 580px;

    margin-top: 19px;

    font-size: 18px;
    line-height: 1.55;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown-section {
    border-bottom:
        1px solid #e7e7e7;
}

.mini-countdown {
    width: min(1180px,94%);
    min-height: 82px;
    margin: auto;

    display: grid;

    grid-template-columns:
        1.35fr
        repeat(4,.7fr)
        1.25fr;
}

.mini-countdown > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 13px 12px;

    border-right:
        1px solid #eeeeee;
}

.countdown-intro {
    align-items: flex-start !important;
}

.countdown-intro strong {
    color: #26384c !important;
    font-size: 13px !important;
}

.countdown-intro span {
    color: #8b1d28 !important;
}

.mini-countdown strong {
    color: #8b1d28;

    font-size: 27px;
    font-weight: 900;
}

.mini-countdown span {
    margin-top: 5px;

    color: #777777;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.race-day {
    background: #26384c;
}

.race-day strong {
    color: #ffffff !important;
    font-size: 16px !important;
}

.race-day span {
    color: #e3c3c6 !important;
}


/* =========================================================
   INTRO
========================================================= */

.contact-intro {
    padding:
        78px 20px 65px;
}

.contact-intro-inner {
    max-width: 820px;

    margin: auto;

    text-align: center;
}

.contact-intro h2 {
    margin-top: 10px;

    font-size:
        clamp(35px,4vw,50px);

    font-weight: 900;
}

.contact-intro p {
    max-width: 720px;

    margin:
        18px auto 0;

    color: #68727c;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT AREA
========================================================= */

.contact-section {
    padding:
        20px 20px 95px;
}

.contact-inner {
    width: min(1100px,94%);

    margin: auto;

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 65px;

    align-items: start;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-information h2 {
    margin-top: 9px;

    color: #26384c;

    font-size:
        clamp(32px,3.5vw,45px);

    font-weight: 900;
}

.contact-lead {
    margin-top: 15px;

    color: #68727c;

    line-height: 1.7;
}

.contact-item {
    display: grid;

    grid-template-columns:
        42px 1fr;

    gap: 18px;

    margin-top: 30px;

    padding-top: 24px;

    border-top:
        1px solid #dddddd;
}

.contact-item-number {
    color: #8b1d28;

    font-size: 10px;
    font-weight: 900;
}

.contact-item span {
    display: block;

    color: #8b1d28;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-item strong {
    display: block;

    margin-top: 5px;

    color: #26384c;

    font-size: 16px;
}

.contact-item p {
    margin-top: 7px;

    color: #68727c;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   FORM
========================================================= */

.contact-form-wrapper {
    padding: 38px;

    background: #f5f2ef;

    border-top:
        4px solid #8b1d28;
}

.form-heading > span {
    color: #8b1d28;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin-top: 7px;

    color: #26384c;

    font-size: 30px;
}

.form-heading p {
    margin-top: 9px;

    color: #68727c;

    font-size: 13px;
    line-height: 1.6;
}

.contact-form {
    margin-top: 30px;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.form-group-full {
    grid-column:
        1 / -1;
}

.form-group label {
    color: #26384c;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-group label span {
    color: #888888;

    font-weight: 500;

    text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid #d7d7d7;

    border-radius: 0;

    outline: none;

    background: #ffffff;

    color: #26384c;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-group input,
.form-group select {
    height: 49px;

    padding: 0 13px;
}

.form-group textarea {
    min-height: 150px;

    padding: 13px;

    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8b1d28;

    box-shadow:
        0 0 0 2px
        rgba(139,29,40,.08);
}


/* =========================================================
   CONSENT
========================================================= */

.form-consent {
    grid-column:
        1 / -1;

    display: grid;

    grid-template-columns:
        18px 1fr;

    gap: 10px;

    align-items: start;
}

.form-consent input {
    margin-top: 3px;
}

.form-consent label {
    color: #68727c;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   SUBMIT
========================================================= */

.contact-submit {
    grid-column:
        1 / -1;

    width: 100%;
    height: 53px;

    border: 0;

    background: #8b1d28;
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .10em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.contact-submit:hover {
    background: #26384c;

    transform: translateY(-1px);
}


/* =========================================================
   ORGANISER NOTE
========================================================= */

.organiser-note {
    padding:
        75px 20px;

    background: #26384c;

    color: #ffffff;
}

.organiser-note-inner {
    width: min(900px,92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        80px 1fr;

    gap: 35px;

    align-items: start;
}

.organiser-note-mark {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid #e3c3c6;

    color: #ffffff;

    font-family: Georgia, serif;

    font-size: 30px;
    font-style: italic;
}

.organiser-note
.section-kicker {
    color: #e3c3c6;
}

.organiser-note h2 {
    margin-top: 8px;

    color: #ffffff;

    font-size: 30px;
}

.organiser-note p {
    max-width: 700px;

    margin-top: 13px;

    color:
        rgba(255,255,255,.72);

    line-height: 1.7;
}


/* =========================================================
   QUICK LINKS
========================================================= */

.quick-links-section {
    padding:
        85px 20px;
}

.quick-links-inner {
    width: min(1080px,94%);

    margin: auto;
}

.quick-links-heading {
    max-width: 700px;

    margin-bottom: 35px;
}

.quick-links-heading h2 {
    margin-top: 8px;

    color: #26384c;

    font-size:
        clamp(32px,4vw,44px);
}

.quick-links-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;
}

.quick-link-card {
    min-height: 220px;

    padding: 25px;

    background: #f5f2ef;

    border-top:
        3px solid #8b1d28;

    transition:
        transform .2s ease,
        background .2s ease;
}

.quick-link-card:hover {
    transform: translateY(-4px);

    background: #eee8e4;
}

.quick-link-card > span {
    color: #8b1d28;

    font-size: 9px;
    font-weight: 900;
}

.quick-link-card strong {
    display: block;

    margin-top: 20px;

    color: #26384c;

    font-size: 18px;
}

.quick-link-card p {
    margin-top: 8px;

    color: #68727c;

    font-size: 12px;
    line-height: 1.6;
}

.quick-link-card div {
    margin-top: 20px;

    color: #8b1d28;

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
}


/* =========================================================
   RUNNING PORTUGAL
========================================================= */

.running-portugal-section {
    padding:
        70px 20px;

    background: #8b1d28;

    color: #ffffff;
}

.running-portugal-inner {
    width: min(900px,92%);

    margin: auto;

    display: grid;

    grid-template-columns:
        100px 1fr;

    gap: 35px;

    align-items: center;
}

.rp-mark {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid #e3c3c6;

    color: #ffffff;

    font-size: 27px;
    font-weight: 900;
}

.rp-copy > span {
    color: #e3c3c6;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.rp-copy h2 {
    margin-top: 7px;

    color: #ffffff;

    font-size: 34px;
}

.rp-copy p {
    max-width: 650px;

    margin-top: 12px;

    color:
        rgba(255,255,255,.78);

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        38px 20px 28px;

    background: #1d2c3b;

    color: #ffffff;
}

.footer-main {
    width: min(1050px,92%);

    margin: auto;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand strong,
.footer-event strong {
    display: block;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: .06em;
}

.footer-brand span,
.footer-event span {
    display: block;

    margin-top: 5px;

    color:
        rgba(255,255,255,.58);

    font-size: 10px;
}

.footer-event {
    text-align: right;
}

.footer-disclaimer {
    width: min(1050px,92%);

    margin:
        25px auto 0;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.10);
}

.footer-disclaimer p {
    max-width: 800px;

    color:
        rgba(255,255,255,.47);

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .contact-inner {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .quick-links-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

}


/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 820px) {

    .brand {
        flex:
            0 0 180px;
    }

    .brand img {
        width: 180px;
    }

    .mobile-toggle {
        display: flex;

        width: 42px;
        height: 38px;

        align-items: center;
        justify-content: center;

        border:
            1px solid #dddddd;

        background: #ffffff;

        color: #26384c;

        font-size: 20px;

        cursor: pointer;
    }

    .main-menu {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        gap: 0;

        background: #ffffff;

        box-shadow:
            0 12px 25px rgba(0,0,0,.12);
    }

    .site-header.menu-open
    .main-menu {
        display: flex;
    }

    .main-menu > a,
    .menu-dropdown-toggle {
        width: 100%;

        min-height: 48px;

        justify-content: center;

        border-bottom:
            1px solid #eeeeee;
    }

    .menu-dropdown {
        width: 100%;
    }

    .menu-dropdown-panel {
        position: static;

        width: 100%;

        display: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        box-shadow: none;
    }

    .menu-dropdown.open
    .menu-dropdown-panel {
        display: block;
    }

    .menu-dropdown-panel a {
        text-align: center;
    }

    .language-selector {
        margin-left: auto;
    }

    .mini-countdown {
        grid-template-columns:
            repeat(4,1fr);
    }

    .countdown-intro,
    .race-day {
        grid-column:
            1 / 5;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 620px) {

    .contact-form-wrapper {
        padding: 27px 20px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full,
    .form-consent,
    .contact-submit {
        grid-column: 1;
    }

    .organiser-note-inner {
        grid-template-columns: 1fr;
    }

    .organiser-note-mark {
        width: 60px;
        height: 60px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .running-portugal-inner {
        grid-template-columns: 1fr;
    }

    .rp-mark {
        width: 70px;
        height: 70px;
    }

}


@media (max-width: 520px) {

    .brand {
        flex:
            0 0 150px;
    }

    .brand img {
        width: 150px;
    }

    .contact-hero {
        min-height: 330px;
    }

    .contact-hero h1 {
        font-size: 40px;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-event {
        text-align: left;
    }

}