/*
Theme Name: Rotary Club Zielona Góra Lubuskie
Theme URI: https://rotarylubuskie.pl
Author: Rotary Club Zielona Góra Lubuskie
Description: Oficjalny motyw Rotary Club Zielona Góra Lubuskie
Version: 1.1
*/

:root {
    --blue: #17458F;
    --blue-deep: #0D2A57;
    --gold: #F7A81B;
    --gold-deep: #B87A0C;
    --cream: #FAF5E9;
    --paper: #FFFDF8;
    --ink: #1C2430;
    --ink-soft: #4B5566;
    --line: #E4D6B4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.display {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--blue-deep);
    line-height: 1.15;
}

a {
    color: inherit;
}

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

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}


/* =========================
   HEADER
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 245, 233, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--blue-deep);
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.brand-name span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--gold-deep);
    margin-top: 2px;
}


/* MENU DESKTOP */

nav.links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.93rem;
    font-weight: 500;
}

nav.links a {
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color .15s, border-color .15s;
}

nav.links a:hover {
    color: var(--blue);
    border-color: var(--gold);
}


/* =========================
   HAMBURGER
========================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 9px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blue-deep);
    margin: 6px auto;
    border-radius: 2px;
    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 82px 32px 64px;
    text-align: center;
}

.hero-logo {
    width: min(600px, 90%);
    height: auto;
    margin: 0 auto 38px;
    animation: rise .9s ease-out;
}

@keyframes rise {

    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    max-width: 760px;
    margin: 0 auto 18px;
}

.hero .tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold-deep);
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.hero p.lead {
    max-width: 600px;
    margin: 0 auto 34px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    background: var(--blue);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 28px;
    border-radius: 3px;
    transition: background .15s;
}

.btn:hover {
    background: var(--blue-deep);
}

.btn-ghost {
    display: inline-block;
    margin-left: 14px;
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 8px;
    border-bottom: 1px solid var(--gold);
}


/* =========================
   SEKCJE
========================= */

.wave {
    display: block;
    width: 100%;
    height: 56px;
}

section {
    padding: 78px 0;
}

.section-cream {
    background: var(--cream);
}

.section-paper {
    background: var(--paper);
}

.eyebrow-rule {
    width: 44px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 22px;
}

section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 22px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.two-col .ink-soft,
p.ink-soft {
    color: var(--ink-soft);
}


/* =========================
   MOTTO
========================= */

.quote-band {
    background: var(--blue-deep);
    color: var(--paper);
    padding: 86px 32px;
    text-align: center;
}

.quote-band .display {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    color: var(--gold);
    max-width: 760px;
    margin: 0 auto 14px;
}

.quote-band p {
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    letter-spacing: .02em;
}


/* =========================
   FILARY
========================= */

.avenues {
    display: flex;
    flex-direction: column;
}

.avenue {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.avenues .avenue:last-child {
    border-bottom: 1px solid var(--line);
}

.avenue h3 {
    font-size: 1.15rem;
    font-weight: 500;
    padding-left: 18px;
    border-left: 2px solid var(--gold);
}

.avenue p {
    color: var(--ink-soft);
    max-width: 520px;
}


/* =========================
   DOŁĄCZ
========================= */

.join {
    background: var(--blue);
    color: var(--paper);
    padding: 78px 32px;
}

.join .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.join h2 {
    color: var(--paper);
}

.join p {
    color: rgba(255, 255, 255, .82);
}

.join-note {
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 3px;
    padding: 22px 24px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
}

.join-note strong {
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.02rem;
}

.join-note a {
    color: var(--gold);
    text-decoration: none;
}


/* =========================
   FOOTER
========================= */

footer {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .6);
    padding: 44px 32px 30px;
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.foot-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.foot-brand span {
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
}

footer .meta {
    font-size: .82rem;
    text-align: right;
}


/* =========================
   TABLET / TELEFON
========================= */

@media (max-width: 760px) {

    html {
        scroll-padding-top: 75px;
    }

    .nav-inner {
        padding: 10px 20px;
    }

    .brand {
        max-width: calc(100% - 58px);
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: .88rem;
    }

    .brand-name span {
        font-size: .62rem;
    }


    /* HAMBURGER */

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


    /* MENU MOBILNE */

    nav.links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--cream);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 10px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 12px 24px rgba(13, 42, 87, .12);
    }

    nav.links.open {
        display: flex;
    }

    nav.links a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(184, 122, 12, .16);
        font-size: .95rem;
    }

    nav.links a:last-child {
        border-bottom: 0;
    }


    /* HAMBURGER -> X */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* HERO */

    .hero {
        padding: 58px 18px 50px;
    }

    .hero-logo {
        width: min(420px, 96%);
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }


    /* SEKCJE */

    section {
        padding: 58px 0;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .avenue {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .join {
        padding: 58px 0;
    }

    .join .wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

}


/* =========================
   MAŁE TELEFONY
========================= */

@media (max-width: 560px) {

    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 20px;
    }

    .brand-name {
        font-size: .80rem;
    }

    .brand-name span {
        font-size: .57rem;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-logo {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .btn,
    .btn-ghost {
        display: block;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-ghost {
        margin-top: 10px;
    }

    .quote-band {
        padding: 64px 20px;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .foot-inner {
        flex-direction: column;
        text-align: center;
    }

    footer .meta {
        text-align: center;
    }

}