/* Bring Curling Home */

:root {
    --navy: #103a68;
    --blue: #087ff5;
    --blue-dark: #075fba;
    --sky: #eaf6ff;
    --pale-blue: #f2f9ff;
    --text: #26384b;
    --muted: #5c6d7c;
    --white: #ffffff;
    --border: #c9dff1;
    --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

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

a { color: inherit; }

/* Header */

.site-header {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #dbe7f1;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    margin-right: auto;
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.brand span {
    display: block;
    margin-top: 4px;
    color: var(--blue);
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
    background: #edf7ff;
}

.header-cta {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 7px;
    background: var(--blue);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
}

.header-cta:hover { background: var(--blue-dark); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1.7rem;
    cursor: pointer;
}

/* Shared */

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 6px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
}

.button:hover { background: var(--blue-dark); }

.button-outline {
    background: transparent;
    border: 2px solid var(--white);
}

.button-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.button::after {
    content: "→";
    font-size: 1.1rem;
}

/* Homepage hero */

.hero {
    min-height: 515px;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(4,30,56,.88) 0%, rgba(4,30,56,.68) 42%, rgba(4,30,56,.18) 75%),
        url("../images/home/hero-temp.jpg") center / cover no-repeat;
}

.hero-content {
    max-width: 610px;
    padding: 80px 0;
}

.hero .eyebrow { color: var(--white); }

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(3.1rem, 6vw, 5rem);
    line-height: .94;
    letter-spacing: -.045em;
}

.hero p {
    max-width: 560px;
    margin: 0 0 24px;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Sections */

.section { padding: 58px 0; }

.section-alt { background: var(--sky); }

.section h2 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: clamp(2rem, 3.25vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section p { margin-top: 0; }

.split {
    display: grid;
    grid-template-columns: 0.92fr 1.32fr;
    gap: 54px;
    align-items: center;
}

.split-image {
    border-radius: 6px;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

.section-copy { max-width: 560px; }

.section-copy .button { margin-top: 8px; }

/* Three feature points */

.feature-intro {
    max-width: 760px;
    margin-bottom: 26px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.feature {
    padding: 12px 28px 8px 0;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    border-right: 1px solid #a8d1ee;
}

.feature + .feature {
    padding-left: 28px;
}

.feature:last-child {
    border-right: 0;
    padding-right: 0;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid #a8d8ff;
    border-radius: 50%;
    background: #f4fbff;
    color: var(--blue);
    font-size: 1.55rem;
    font-weight: 800;
}

.feature h3 {
    margin: 2px 0 5px;
    color: var(--navy);
    font-size: 1.02rem;
}

.feature p {
    margin: 0;
    font-size: .9rem;
}

/* Image cards */

.image-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.image-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 6px;
    color: var(--white);
    text-decoration: none;
    background: var(--navy);
}

.image-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform .25s ease;
}

.image-card:hover img { transform: scale(1.03); }

.image-card::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(0,22,46,.92));
}

.image-card-content {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 18px;
}

.image-card h3 {
    margin: 0 0 3px;
    font-size: 1.3rem;
}

.image-card p {
    margin: 0;
    max-width: 270px;
    font-size: .82rem;
}

/* Progress */

.progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 28px;
}

.progress-item {
    position: relative;
    padding-right: 24px;
}

.progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 45px;
    right: 10px;
    height: 3px;
    background: #8bc7f6;
}

.progress-icon {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border: 2px solid #82c6fa;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-weight: 800;
}

.progress h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: .95rem;
}

.progress p {
    margin: 0;
    font-size: .82rem;
    max-width: 220px;
}

.progress-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.progress-link {
    color: var(--blue);
    border: 1px solid #8bc7f6;
    padding: 8px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
}

/* Support banner */

.support {
    padding: 55px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(3,30,57,.92), rgba(3,30,57,.6)),
        url("../images/home/hero-temp.jpg") center / cover no-repeat;
}

.support-inner {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 50px;
    align-items: center;
}

.support h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.support p {
    max-width: 650px;
    margin: 0;
    font-size: 1rem;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Interior page hero */

.page-hero {
    padding: 72px 0;
    background:
        linear-gradient(
            rgba(235, 244, 250, 0.40),
            rgba(235, 244, 250, 0.40)
        ),
        url("../images/hero-images/hero-curling2.png") center / cover no-repeat;
}

.page-hero h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

/* Footer */

.site-footer {
    padding: 34px 0;
    background: var(--white);
    border-top: 1px solid #dce8f1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
}

.footer-charity {
    color: var(--blue);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1000px) {
    .main-nav a { padding-inline: 8px; font-size: .78rem; }
    .header-cta { display: none; }
}

@media (max-width: 850px) {
    .menu-toggle { display: block; }

    .header-inner {
        min-height: 68px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }

    .main-nav a { padding: 9px 4px; }

    .split,
    .support-inner {
        grid-template-columns: 1fr;
    }

    .features,
    .image-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature,
    .feature + .feature {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid #a8d1ee;
    }

    .feature:last-child { border-bottom: 0; }

    .progress {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .progress-item::after { display: none; }
}

@media (max-width: 600px) {
    .container { width: min(100% - 28px, var(--max-width)); }
    .hero { min-height: 520px; }
    .hero-content { padding: 65px 0; }
    .hero h1 { font-size: 3rem; }
    .section { padding: 48px 0; }
    .progress { grid-template-columns: 1fr; }
    .progress-heading { align-items: start; flex-direction: column; }
}

.funding-list {
    padding-left: 22px;
    margin-bottom: 30px;
}

.funding-list li {
    margin-bottom: 8px;
}

.funding-actions .card {
    height: 100%;
}

.pledge-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pledge-text {
    flex: 1;
    min-width: 0;
}

.pledge-qr {
    display: block;
    width: 120px;
    height: auto;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .pledge-content {
        align-items: flex-start;
        gap: 10px;
    }

    .pledge-qr {
        width: 95px;
    }
}
/* Funding page action tiles */
.funding-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.funding-actions .card {
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #f8fbff;
}

.funding-actions .card h3 {
    margin-top: 0;
}

.pledge-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pledge-text {
    flex: 1;
    min-width: 0;
}

.pledge-qr {
    display: block;
    width: 140px;
    max-width: 40%;
    height: auto;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .funding-actions {
        grid-template-columns: 1fr;
    }

    .pledge-qr {
        width: 110px;
    }
}
/* VISUALS GALLERY */
.visuals-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.visuals-gallery figure {
    margin: 0;
}

.visuals-gallery img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 8px;
    cursor: pointer;
}

.visuals-gallery figcaption {
    margin-top: 10px;
    color: #52647a;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .visuals-gallery {
        grid-template-columns: 1fr;
    }

    .visuals-gallery figure:last-child {
        grid-column: auto;
    }
}
.lightbox-caption {
    color: #fff;
    text-align: center;
    margin: 14px 0 0;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}
/* Project image lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    display: block;
    max-width: 95%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin: 14px 0 0;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 24px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}
.visuals-site-section {
    padding-top: 5px;
}


.visuals-intro-section {
        padding-bottom: 10px;
}
.visuals-design-brief {
    padding-top: 5px;
    padding-bottom: 10px;
}

/* Pledge Progress Tank */
.pledge-progress-section {
    padding-top: 30px;
    padding-bottom: 40px;
}

.pledge-progress-card {
    text-align: center;
    background: #f0f7ff;
    border: 1px solid #d7e8fa;
    border-radius: 18px;
    padding: 35px 24px;
}

.pledge-progress-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #123f73;
}

.pledge-progress-intro {
    margin-bottom: 28px;
    color: #36516d;
}

.pledge-tank {
    position: relative;
    width: 190px;
    height: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid #8bb6d9;
    border-radius: 28px 28px 35px 35px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 10px 0 15px rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(18, 63, 115, 0.12);
}

.pledge-water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #66c8f2 0%,
        #168be0 45%,
        #0863b5 100%
    );
    transition: height 5s ease-in-out;
}

.pledge-wave {
    position: absolute;
    top: -15px;
    left: -50%;
    width: 200%;
    height: 30px;
    border-radius: 42%;
    background: rgba(255, 255, 255, 0.42);
    animation: pledge-wave-motion 5s linear infinite;
}

.pledge-wave-two {
    top: -10px;
    background: rgba(255, 255, 255, 0.22);
    animation-duration: 7s;
    animation-direction: reverse;
}

@keyframes pledge-wave-motion {
    from {
        transform: translateX(0) rotate(0deg);
    }
    to {
        transform: translateX(25%) rotate(360deg);
    }
}

.pledge-tank-label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 90%;
    padding: 12px 15px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #123f73;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.pledge-tank-label strong {
    font-size: 25px;
    line-height: 1.2;
}

.pledge-tank-label span {
    font-size: 13px;
}

.pledge-progress-total {
    margin: 15px 0 5px;
    color: #123f73;
    font-size: 18px;
}

.pledge-progress-total strong {
    font-size: 23px;
}

.pledge-progress-percentage {
    margin: 8px 0 0;
    color: #0879cf;
    font-weight: 700;
    font-size: 17px;
}

@media (max-width: 600px) {
    .pledge-progress-card {
        padding: 28px 14px;
    }

    .pledge-tank {
        width: 165px;
        height: 270px;
    }

    .pledge-tank-label strong {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pledge-water {
        transition: none;
    }

    .pledge-wave {
        animation: none;
    }
}
/* Pledge thermometer background */
.pledge-showcase {
    background:
        linear-gradient(
            rgba(8, 39, 76, 0.82),
            rgba(8, 39, 76, 0.88)
        ),
        url("../images/home/hero-temp.jpg") center / cover no-repeat;
    color: #ffffff;
    border: none;
    border-radius: 18px;
}

.pledge-showcase h2,
.pledge-showcase p,
.pledge-showcase strong {
    color: #ffffff;
}
.pledge-progress-card {
    background:
    linear-gradient(
        rgba(8, 39, 76, 0.35),
        rgba(8, 39, 76, 0.45)
    ),
    url("../images/home/hero-temp.jpg") center / cover no-repeat;

    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
}

.pledge-progress-card h2,
.pledge-progress-card p,
.pledge-progress-card strong,
.pledge-progress-card .pledge-progress-intro,
.pledge-progress-card .pledge-tank-label,
.pledge-progress-card .pledge-tank-label span {
    color: #ffffff;
}
.pledge-tank-label,
.pledge-tank-label strong,
.pledge-tank-label span {
    color: #123f70;
}
.pledge-tank-label span {
    color: #123f70 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
/* Caption beneath the homepage building image */
.split-image figure {
    margin: 0;
}

.split-image figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Business plan charts */
.business-plan-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
    margin: 30px 0 40px;
}

.business-plan-charts img {
    display: block;
    width: 100%;
    height: auto;
}

/* Stack charts on smaller screens */
@media (max-width: 700px) {
    .business-plan-charts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Background page - text and image side by side */

.background-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.background-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

/* Stack the image below the text on smaller screens */

@media (max-width: 768px) {
    .background-feature {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .background-image img {
        height: auto;
        max-height: 450px;
    }
}
.background-feature-reverse .background-image {
    order: -1;
}
/* Scottish Curling logo */
.background-image img[alt="Scottish Curling logo"] {
    width: 100%;
    height: auto;
    max-width: 350px;
    object-fit: contain;
    margin: 0 auto;
}

/* Smaller headings on the Background page */
.background-page .background-feature h2 {
    font-size: 1.5rem;
}

/* Consistent spacing between Background page sections */
.background-page .background-feature {
    margin-bottom: 40px;
}
.footer-oscr img {
    width: 180px;
    height: auto;
    display: block;
}
.footer-brand img {
    width: 100px;
    height: auto;
    display: block;
}