/* =========================================================
   FERRYHILL WHEELERS - TOP BAR
   ========================================================= */

.container-topbar {
    background-color: #0057B8;
    color: #ffffff;
    padding: 12px 20px;
}

.container-topbar a {
    color: #ffffff;
}


/* =========================================================
   FERRYHILL WHEELERS - LOGO
   ========================================================= */

.container-header .navbar-brand img {
    max-height: 110px;
    width: auto;
}


/* =========================================================
   FERRYHILL WHEELERS - HEADER LAYOUT
   ========================================================= */

.container-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.container-header > .container-topbar {
    flex: 0 0 100%;
}

.container-header > .grid-child {
    flex: 0 0 180px;
    width: 180px;
}

.container-header > .grid-child.container-nav {
    flex: 1 1 0;
    width: auto;
}


/* =========================================================
   CLUB NAME
   ========================================================= */

.container-header .container-nav .mod-custom {
    padding: 0 20px;
}

.container-header .container-nav .mod-custom p {
    font-size: 32px;
    font-weight: 700;
    color: #142D4B;
    margin: 0;
}


/* Put club name above navigation */

.container-header > .grid-child.container-nav {
    display: flex;
    flex-direction: column;
}

.container-header > .grid-child.container-nav .mod-custom {
    order: 1;
}

.container-header > .grid-child.container-nav .mod-menu {
    order: 2;
}


/* =========================================================
   SMART SEARCH
   ========================================================= */

.container-header .container-nav {
    position: relative;
}

.container-header .container-nav .mod-finder {
    position: absolute;
    right: 20px;
    top: 0;
}


/* =========================================================
   FULL WIDTH HERO
   ========================================================= */

.container-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero text */
.container-banner .fw-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    z-index: 10;
}

.container-banner .fw-hero-overlay h1 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 48px;
    font-weight: 700;
}

.container-banner .fw-hero-overlay .fw-hero-subtitle {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 40px;
}

.container-banner .fw-hero-overlay .fw-hero-tagline {
    color: #ffffff;
    margin: 0;
    font-size: 22px;
}

/* Smaller screens */
@media (max-width: 768px) {

    .container-banner .fw-hero-overlay h1 {
        font-size: 32px;
    }

    .container-banner .fw-hero-overlay .fw-hero-subtitle {
        font-size: 20px;
    }

    .container-banner .fw-hero-overlay .fw-hero-tagline {
        font-size: 17px;
    }
}
/* Smaller screens */
@media (max-width: 768px) {

    .container-banner .fw-hero-overlay h1 {
        font-size: 32px;
    }

    .container-banner .fw-hero-overlay .fw-hero-subtitle {
        font-size: 20px;
    }

    .container-banner .fw-hero-overlay .fw-hero-tagline {
        font-size: 17px;
    }
}

/* =========================================================
   HERO TEXT OVERLAY
   ========================================================= */

.container-banner .fw-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

/* =========================================================
   SMALL SCREENS
   ========================================================= */

@media (max-width: 768px) {

    .container-header > .grid-child {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
    }

    .container-header > .grid-child.container-nav {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
    }

    .container-header .container-nav .mod-custom p {
        font-size: 28px;
    }

    .container-header .container-nav .mod-finder {
        position: static;
        margin: 10px auto;
        text-align: center;
    }
}

/* Ferryhill Wheelers - Hero Image Overlay */
.fw-hero {
    position: relative;
    overflow: hidden;
}

.fw-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.fw-hero > img {
    display: block;
    width: 100%;
    height: auto;
}

.fw-hero .fw-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

/* Ferryhill Wheelers - Hero Buttons */
.fw-hero-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fw-hero-button {
    display: inline-block;
    background-color: #0057B8;
    color: #ffffff !important;
    padding: 9px 18px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.fw-hero-button:hover {
    background-color: #003f87;
    color: #ffffff !important;
}

/* Position hero text and buttons */
.container-banner .fw-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    z-index: 2;
}

/* Move the hero text higher */
.container-banner .fw-hero-overlay .fw-hero-subtitle {
    margin-top: 18%;
    margin-bottom: 10px;
}

.container-banner .fw-hero-overlay .fw-hero-tagline {
    margin-top: 0;
}

/* Put the buttons at the bottom of the photograph */
.container-banner .fw-hero-overlay .fw-hero-buttons {
    margin-top: auto;
    margin-bottom: 25px;
}

/* Hero text and buttons positioning */
.fw-hero-content {
    position: absolute;
    top: 12%;
    left: 0;
    right: 0;
    text-align: center;
}

/* Place the buttons against the bottom edge of the hero */
.fw-hero-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* Move hero text slightly higher */
.fw-hero-content {
    transform: translateY(-35px);
}

/* Reduce heading sizes on content pages */
h1 {
    font-size: 20px;
}

.top-a h2,
.top-b h2 {
    font-size: 15px;
}

/* =========================================================
   FERRYHILL WHEELERS - CONTENT PAGE TEXT
   ========================================================= */

.com-content-article {
    font-size: 0.95rem;
    line-height: 1.35;
}

.com-content-article p {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 9px;
}

/* =========================================================
   FERRYHILL WHEELERS - HEADER DIVIDER
   ========================================================= */

.container-header {
    border-bottom: 15px solid #0057B8;
}

/* =========================================================
   FERRYHILL WHEELERS - CONTACT FORM
   ========================================================= */

.com-contact h1 {
    font-size: 24px;
}

.com-contact h2 {
    font-size: 20px;
}

.com-contact h3 {
    font-size: 16px;
}

.com-contact .contact-form {
    max-width: 600px;
}

.com-contact .contact-form label {
    font-size: 16px;
}

.com-contact .contact-form input,
.com-contact .contact-form textarea {
    max-width: 750px;
    width: 100%;
    box-sizing: border-box;
}

/* Contact page typography */
.com-contact h1 {
    font-size: 24px;
}

.com-contact h2 {
    font-size: 20px;
}

.com-contact h3 {
    font-size: 18px;
}

.com-contact p,
.com-contact label {
    font-size: 15px;
}

/* Centre the contact information and form */
.com-contact {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Main menu font size */
.container-header .mod-menu > li > a {
    font-size: 17px;
}
