/*
Theme Name: SRUFC Elementor
Theme URI: https://sheffieldrufc.local/
Author: SRUFC
Description: Elementor-ready theme for Sheffield Rugby Club, inspired by traditional club rugby layouts with bold matchday navigation and high-contrast SRUFC branding.
Version: 0.1.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: srufc-elementor
*/

:root {
    --srufc-primary: #010040;
    --srufc-contrast: #86d6e6;
    --srufc-ink: #101018;
    --srufc-muted: #6d7280;
    --srufc-surface: #ffffff;
    --srufc-soft: #f2f5f8;
    --srufc-line: #d7dce4;
    --srufc-font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
    --srufc-font-body: "Montserrat", Arial, sans-serif;
    --srufc-container: min(1180px, calc(100vw - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--srufc-surface);
    color: var(--srufc-ink);
    font-family: var(--srufc-font-body);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.srufc-display,
.srufc-button,
.menu-item {
    font-family: var(--srufc-font-display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 8.5rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 5rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.srufc-wrap {
    width: var(--srufc-container);
    margin-inline: auto;
}

.srufc-topbar {
    background: var(--srufc-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.srufc-topbar__inner {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.srufc-topbar a {
    text-decoration: none;
}

.srufc-topbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.srufc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 4px solid var(--srufc-contrast);
    background: #fff;
}

.admin-bar .srufc-header {
    top: 32px;
}

.srufc-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 5.5rem;
    gap: 1.25rem;
    align-items: center;
}

.srufc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--srufc-primary);
    text-decoration: none;
}

.srufc-brand__mark {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 4px solid var(--srufc-primary);
    background: var(--srufc-contrast);
    color: var(--srufc-primary);
    font-family: var(--srufc-font-display);
    font-size: 1.2rem;
    font-weight: 900;
}

.srufc-brand__name {
    display: grid;
    font-family: var(--srufc-font-display);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.srufc-nav {
    display: flex;
    justify-content: center;
}

.srufc-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.srufc-nav a {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    color: var(--srufc-primary);
    font-family: var(--srufc-font-display);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.srufc-nav a:hover,
.srufc-nav a:focus-visible {
    background: var(--srufc-primary);
    color: #fff;
}

.srufc-header__cta,
.srufc-button,
.wp-element-button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 0;
    background: var(--srufc-primary);
    color: #fff;
    font-family: var(--srufc-font-display);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.srufc-header__cta,
.srufc-button--contrast {
    background: var(--srufc-contrast);
    color: var(--srufc-primary);
}

.srufc-hero {
    position: relative;
    display: grid;
    min-height: min(720px, calc(100vh - 7.75rem));
    align-items: end;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(1, 0, 64, 0.92), rgba(1, 0, 64, 0.28)),
        var(--srufc-primary);
    color: #fff;
}

.srufc-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 0.5rem;
    background: var(--srufc-contrast);
}

.srufc-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.srufc-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srufc-hero__content {
    width: var(--srufc-container);
    margin: 0 auto;
    padding: 6rem 0 4rem;
}

.srufc-eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.55rem;
    background: var(--srufc-contrast);
    color: var(--srufc-primary);
    font-family: var(--srufc-font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.srufc-hero h1 {
    max-width: 9ch;
    margin: 0 0 1rem;
}

.srufc-hero p {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.srufc-section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.srufc-section--primary {
    background: var(--srufc-primary);
    color: #fff;
}

.srufc-section--soft {
    background: var(--srufc-soft);
}

.srufc-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.srufc-section__heading h2 {
    margin: 0;
}

.srufc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.srufc-news-card,
.srufc-cta-tile {
    display: grid;
    min-height: 18rem;
    align-content: end;
    padding: 1.25rem;
    background: var(--srufc-primary);
    color: #fff;
    text-decoration: none;
}

.srufc-news-card {
    position: relative;
    overflow: hidden;
}

.srufc-news-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 180ms ease;
}

.srufc-news-card:hover img {
    transform: scale(1.04);
}

.srufc-news-card__body {
    position: relative;
    z-index: 1;
}

.srufc-news-card h3,
.srufc-cta-tile h3 {
    margin: 0.35rem 0;
}

.srufc-card-meta {
    color: var(--srufc-contrast);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.srufc-cta-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.srufc-cta-tile {
    min-height: 13rem;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.srufc-cta-tile:nth-child(even) {
    background: #17165e;
}

.srufc-cta-tile span {
    color: var(--srufc-contrast);
    font-family: var(--srufc-font-display);
    font-weight: 900;
    text-transform: uppercase;
}

.srufc-partner-band {
    padding: 3rem 0;
    background: #fff;
}

.srufc-footer {
    background: var(--srufc-primary);
    color: #fff;
}

.srufc-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding: 4rem 0;
}

.srufc-footer h2,
.srufc-footer h3 {
    margin-top: 0;
}

.srufc-footer a {
    color: #fff;
}

.srufc-footer__bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.85rem;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid var(--srufc-contrast);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .srufc-header__inner,
    .srufc-card-grid,
    .srufc-cta-band,
    .srufc-footer__inner {
        grid-template-columns: 1fr;
    }

    .srufc-nav {
        justify-content: start;
        overflow-x: auto;
    }

    .srufc-nav ul {
        flex-wrap: nowrap;
        justify-content: start;
    }

    .srufc-header__cta {
        justify-self: start;
    }
}

@media (max-width: 782px) {
    .admin-bar .srufc-header {
        top: 46px;
    }
}
