/* ══════════════════════════════════════
   CAMINO TWOJA DROGA — Design System
   ══════════════════════════════════════ */
:root {
    --bg-dark: #1a1a2e;
    --bg-light: #f5f0e8;
    --bg-parchment: #ede7d9;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --trail: #e07a3a;
    --green: #4a9e6f;
    --green-dark: #3a7d58;
    --text-dark: #2d2d2d;
    --text-light: #e8e0d0;
    --text-muted: #8a8478;
    --danger: #c0392b;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ═══ HERO ═══ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-chapel.png') center/cover no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.6) 0%, rgba(26,26,46,0.8) 100%);
}

.hero__content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero__shell {
    font-size: 4rem;
    animation: breathe 4s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.hero__philosophy {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    line-height: 2;
    opacity: 0.9;
}

.hero__cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(201,168,76,0.3);
}

.hero__cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(201,168,76,0.4);
}

.hero__scroll-hint {
    position: absolute; bottom: 2rem;
    left: 50%; transform: translateX(-50%);
    color: var(--text-light); opacity: 0.5;
    text-align: center; font-size: 0.8rem;
    animation: fadeInUp 2s ease 1s both;
}

.hero__scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    margin: 0.5rem auto 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 0.5; transform: translate(-50%, 0); }
}

/* ═══ NAV ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.nav--visible { transform: translateY(0); }

.nav__inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600;
    color: var(--gold); text-decoration: none;
}

.nav__links { display: flex; gap: 1.5rem; }

.nav__links a {
    color: var(--text-light); text-decoration: none;
    font-size: 0.85rem; font-weight: 400;
    opacity: 0.7; transition: var(--transition);
}

.nav__links a:hover { opacity: 1; color: var(--gold); }

/* ═══ SECTIONS ═══ */
.section { padding: 6rem 0; }

.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--map { background: var(--bg-parchment); color: var(--text-dark); padding-bottom: 0; }

.section--gradient {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #16213e 50%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 8rem 0;
}

.section__label {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--gold);
    display: block; margin-bottom: 0.5rem;
}

.section__label--light { color: var(--gold-light); }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section__title--light { color: #fff; }

.section__desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2rem; }
.section__desc--light { color: rgba(232,224,208,0.7); }

/* ═══ STORY ═══ */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}

.story__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; color: #fff;
    margin-bottom: 1.5rem;
}

.story__text p {
    font-size: 1.05rem; line-height: 1.9;
    color: rgba(232,224,208,0.85);
    margin-bottom: 1rem;
}

.story__text strong { color: var(--gold); }

.story__image { position: relative; }

.story__image img {
    width: 100%; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.story__image-caption {
    display: block; text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem; color: var(--text-muted);
    margin-top: 1rem;
}

/* ═══ QUOTES ═══ */
.quotes { max-width: 700px; margin: 3rem auto 0; }

.quote {
    border-left: 3px solid var(--gold);
    padding: 2rem 0 2rem 2rem;
    margin-bottom: 2rem;
}

.quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.quote cite {
    display: block; margin-top: 1rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gold);
}

/* ═══ STEPS ═══ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    transition: var(--transition);
}

.step:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.step__number {
    position: absolute; top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    background: var(--gold);
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-weight: 700; font-size: 1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.step__icon { font-size: 2.5rem; margin-bottom: 1rem; }

.step__title {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
    margin-bottom: 0.8rem;
}

/* ═══ MAP ═══ */
.map-wrapper {
    max-width: 1200px;
    margin: 2rem auto 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
}

.map-controls {
    background: var(--bg-dark);
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.map-stats { display: flex; gap: 2rem; }

.map-stat { text-align: center; }

.map-stat__label {
    display: block;
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted);
}

.map-stat__value {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    color: #fff;
    transition: color 0.5s ease;
}

.map-stat__value--achieved { color: var(--green) !important; }

.map-stat__unit {
    font-size: 0.8rem; color: var(--text-muted); margin-left: 2px;
}

.map-progress {
    flex: 1; min-width: 200px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.map-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--trail), var(--gold));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease, background 0.5s ease;
}

.map-progress__bar--done {
    background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.map-progress__text {
    position: absolute; top: 50%; right: 0;
    transform: translateY(calc(-50% - 16px));
    font-size: 0.75rem; color: var(--text-muted);
    white-space: nowrap;
}

.map-actions { display: flex; gap: 0.8rem; }

.map { height: 550px; width: 100%; }

/* ═══ BUTTONS ═══ */
.btn {
    padding: 0.6rem 1.3rem;
    border: none; border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
}

.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--danger:hover { border-color: var(--danger); color: var(--danger); }

.btn--primary {
    background: var(--gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn--gold {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gold);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn--gold:hover { background: var(--gold-light); }
.btn--full { width: 100%; }

/* ═══ COMMUNITY ═══ */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.route-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.route-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.route-card--empty { text-align: center; border-style: dashed; }

.route-card__icon { font-size: 3rem; margin-bottom: 1rem; }

.route-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; margin-bottom: 0.8rem;
    color: #fff;
}

.route-card p {
    font-size: 0.9rem; color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ═══ INFO GRID ═══ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.info-card__icon { font-size: 2rem; margin-bottom: 1rem; }

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; margin-bottom: 0.8rem;
}

.info-card ul {
    list-style: none; padding: 0;
}

.info-card ul li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.info-card ul li::before {
    content: '🐚';
    position: absolute; left: 0;
    font-size: 0.7rem;
}

.info-card__detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* ═══ FOOTER ═══ */
.footer {
    background: #111122;
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
    color: var(--gold);
    display: block; margin-bottom: 0.8rem;
}

.footer__links h4 {
    font-family: var(--font-display);
    font-size: 1rem; color: var(--gold);
    margin-bottom: 1rem;
}

.footer__links a {
    display: block; color: var(--text-muted);
    text-decoration: none; font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer__links a:hover { color: var(--gold); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ═══ MODAL ═══ */
.modal {
    position: fixed; inset: 0;
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative; z-index: 1;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal__content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.modal__close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--text-muted);
}

.modal__form label {
    display: block; margin-bottom: 1rem;
}

.modal__form label span {
    display: block; font-size: 0.85rem;
    font-weight: 500; margin-bottom: 0.3rem;
}

.modal__form input,
.modal__form textarea {
    width: 100%; padding: 0.7rem 1rem;
    border: 1px solid #d4cfc4;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    transition: var(--transition);
}

.modal__form input:focus,
.modal__form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.modal__stats {
    display: flex; gap: 2rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ═══ ANIMATIONS ═══ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .story { grid-template-columns: 1fr; gap: 2rem; }
    .steps { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
    .nav__links { display: none; }
    .map-controls { flex-direction: column; align-items: stretch; }
    .map-stats { justify-content: space-around; }
    .map { height: 400px; }
}
