/* ============================================
   Stowarzyszenie Mława Miasto Zabytkowe
   Vintage / heritage design
   ============================================ */

:root {
    --color-bg: #1a1410;
    --color-paper: #f5ecd9;
    --color-paper-dark: #e8dcc0;
    --color-ink: #2a1f17;
    --color-ink-soft: #4a3a2c;
    --color-accent: #8b3a3a;
    --color-accent-dark: #6b2828;
    --color-gold: #b8924a;
    --color-gold-light: #d4b06a;
    --color-sepia: #c9a876;

    --font-display: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;

    --shadow-soft: 0 4px 20px rgba(20, 12, 6, 0.15);
    --shadow-strong: 0 12px 40px rgba(20, 12, 6, 0.3);
    --shadow-deep: 0 25px 60px rgba(20, 12, 6, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-ink);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse at top, rgba(74, 58, 44, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(43, 31, 23, 0.4) 0%, transparent 70%),
        repeating-linear-gradient(
            45deg,
            rgba(184, 146, 74, 0.015) 0px,
            rgba(184, 146, 74, 0.015) 1px,
            transparent 1px,
            transparent 8px
        );
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(26, 20, 16, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

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

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color-paper);
    background-image:
        linear-gradient(
            180deg,
            rgba(26, 20, 16, 0.45) 0%,
            rgba(26, 20, 16, 0.55) 60%,
            rgba(26, 20, 16, 0.95) 100%
        ),
        url('background.jpeg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll, scroll;
        background-size:
            cover,
            auto 100%;
        background-position:
            center,
            center top;
        background-image:
            linear-gradient(
                180deg,
                rgba(26, 20, 16, 0.55) 0%,
                rgba(26, 20, 16, 0.65) 50%,
                rgba(26, 20, 16, 0.98) 100%
            ),
            url('background.jpeg');
    }
}

.hero-inner {
    max-width: 900px;
    padding: 3rem 2rem;
    background: rgba(26, 20, 16, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(212, 176, 106, 0.3);
    border-radius: 4px;
    position: relative;
    animation: fadeInUp 1.2s ease-out;
}

.hero-inner::before,
.hero-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold-light);
}

.hero-inner::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.hero-inner::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.ornament {
    color: var(--color-gold-light);
    font-size: 1.8rem;
    line-height: 1;
    opacity: 0.9;
}

.ornament.top {
    margin-bottom: 1.5rem;
}

.ornament.bottom {
    margin-top: 1.5rem;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    margin-bottom: 1.2rem;
    text-indent: 0.5em;
}

.title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-paper);
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    flex-wrap: wrap;
}

.title-logo {
    height: clamp(4.2rem, 11vw, 7.5rem);
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.title-line {
    display: block;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    letter-spacing: 0.15em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    text-indent: 0.15em;
}

.title-line.subtitle {
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--color-gold-light);
    text-indent: 0.2em;
}

.title-divider {
    display: block;
    width: 60%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold-light) 50%,
        transparent 100%
    );
    margin: 1.2rem auto;
}

.tagline {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(245, 236, 217, 0.85);
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--color-gold-light);
    border-radius: 12px;
    opacity: 0.6;
}

.scroll-indicator span {
    display: block;
    width: 3px;
    height: 8px;
    margin: 6px auto;
    background: var(--color-gold-light);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CONTENT
   ============================================ */

.content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.card {
    background: var(--color-paper);
    background-image:
        radial-gradient(ellipse at top left, rgba(184, 146, 74, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 58, 58, 0.06) 0%, transparent 50%);
    padding: 3rem 2.5rem;
    border-radius: 2px;
    box-shadow: var(--shadow-deep);
    position: relative;
    border: 1px solid rgba(184, 146, 74, 0.25);
}

.card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(184, 146, 74, 0.35);
    pointer-events: none;
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ink);
    text-align: center;
    margin-bottom: 0.8rem;
    text-indent: 0.15em;
}

.section-divider {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    vertical-align: middle;
    margin: 0 12px;
}

.section-divider.small::before,
.section-divider.small::after {
    width: 40px;
}

.section-divider span {
    color: var(--color-gold);
    font-size: 0.9rem;
    vertical-align: middle;
}

.mission {
    text-align: center;
    overflow: hidden;
}

.mission::after {
    content: '';
    display: block;
    height: 120px;
    margin: 2rem -2.5rem -3rem;
    background: url('background.jpeg') center / cover no-repeat;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 40%, black 100%);
    border-bottom: 2px solid var(--color-gold);
}

@media (max-width: 600px) {
    .mission::after {
        margin: 1.5rem -1.5rem -2.5rem;
        height: 90px;
    }
}

.mission p {
    max-width: 780px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
    color: var(--color-ink-soft);
}

.mission em {
    color: var(--color-accent-dark);
    font-style: italic;
    font-weight: 500;
}

.mission .emphasis {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   GRID
   ============================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card.info {
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card.info:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(20, 12, 6, 0.5);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card.info p {
    color: var(--color-ink-soft);
    margin-bottom: 1rem;
}

.card.info .btn {
    margin-top: auto;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0.6rem 1rem;
    color: var(--color-accent-dark);
    -webkit-text-fill-color: var(--color-accent-dark);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 1px dashed rgba(184, 146, 74, 0.5);
    overflow-wrap: anywhere;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
    color: var(--color-accent);
    -webkit-text-fill-color: var(--color-accent);
    border-bottom-color: var(--color-gold);
}

.contact-email-text {
    color: inherit;
    -webkit-text-fill-color: inherit;
}

.contact-email-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    color: var(--color-accent-dark);
}

.contact-email:hover .contact-email-icon,
.contact-email:focus-visible .contact-email-icon {
    color: var(--color-accent);
}

address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.address-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 0.3rem;
}

.address-sub {
    font-style: italic;
    color: var(--color-ink-soft);
    margin-top: 0.5rem;
}

.form-info {
    margin-bottom: 1.5rem;
    color: var(--color-ink-soft);
}

.data-list {
    margin-bottom: 0.5rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(184, 146, 74, 0.4);
    gap: 1rem;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row dt {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    font-weight: 500;
}

.data-row dd {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--color-ink);
    -webkit-text-fill-color: var(--color-ink);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Safari/iOS auto-detects long numbers as phone links and styles them blue.
   Force our colors on numbers wrapped in these styled elements. */
.data-row dd a,
.account-number a {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}

/* ============================================
   SUPPORT
   ============================================ */

.support {
    text-align: center;
    background-image:
        radial-gradient(ellipse at center, rgba(139, 58, 58, 0.08) 0%, transparent 70%);
}

.support-emblem {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--color-accent);
}

.support-emblem svg {
    width: 100%;
    height: 100%;
}

.support > p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-ink-soft);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
}

.account {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(184, 146, 74, 0.4);
    border-radius: 2px;
    position: relative;
}

.account-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--color-ink);
    -webkit-text-fill-color: var(--color-ink);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    word-spacing: 0.2em;
    user-select: all;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-indent: 0.2em;
    color: var(--color-paper);
    background: var(--color-accent-dark);
    border: 1px solid var(--color-accent-dark);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(245, 236, 217, 0.3);
    pointer-events: none;
    transition: inset 0.3s ease;
}

.btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 40, 40, 0.4);
}

.btn:hover::before {
    inset: 5px;
}

.btn:active {
    transform: translateY(0);
}

.btn span {
    transition: transform 0.3s ease;
}

.btn:hover span {
    transform: translateX(4px);
}

.copy-btn {
    position: relative;
}

.copy-success {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-btn.copied .copy-success {
    opacity: 1;
}

.copy-btn.copied {
    background: #4a7c4a;
    border-color: #4a7c4a;
}

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

.footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    color: rgba(245, 236, 217, 0.85);
}

.footer-divider {
    color: var(--color-gold-light);
    letter-spacing: 1em;
    margin-bottom: 1rem;
    opacity: 0.6;
    text-indent: 1em;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-paper);
    margin-bottom: 0.5rem;
    text-indent: 0.2em;
}

.footer-meta {
    font-size: 0.9rem;
    color: rgba(245, 236, 217, 0.6);
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero-inner {
        padding: 2.5rem 1.5rem;
    }

    .content {
        padding: 3rem 1rem 2rem;
        gap: 2rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .data-row {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .account {
        padding: 1.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
