/* Kawiarnia Kropka – one-page café, mobile-first */

:root {
    --bg: #F6F1EB;
    --accent: #F47076;
    --coffee: #8C5A3C;
    --text: #3B2F2F;
    --text-muted: #5c4a42;
    --white: #fff;
    --shadow: 0 4px 20px rgba(59, 47, 47, 0.08);
    --shadow-soft: 0 8px 32px rgba(59, 47, 47, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'Poppins', -apple-system, sans-serif;
    --container: min(1000px, 92vw);
    --ease: 0.25s ease;
    --ease-fast: 0.2s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Scroll animation: fade-up ----- */
.section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(246, 241, 235, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(140, 90, 60, 0.12);
    transition: box-shadow var(--ease-fast);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    min-height: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--coffee);
    text-decoration: none;
    transition: color var(--ease);
}

.logo:hover {
    color: var(--accent);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.logo-text {
    line-height: 1.2;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a,
.nav .nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--ease);
}

.nav a:hover,
.nav .nav-link:hover {
    color: var(--accent);
}

.nav .nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--coffee);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(140, 90, 60, 0.12);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s, visibility 0.25s;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20% 0;
    height: 140%;
    background-image: url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1920&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-fade {
    opacity: 0;
    animation: heroFadeIn 600ms ease forwards;
}

.hero-title.hero-fade { animation-delay: 0ms; }
.hero-subtitle.hero-fade { animation-delay: 100ms; }
.hero-desc.hero-fade { animation-delay: 200ms; }
.hero-buttons.hero-fade { animation-delay: 300ms; }

@keyframes heroFadeIn {
    to { opacity: 1; }
}

.hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-title.page-h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--white);
    margin-bottom: 8px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 28px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #F47076;
    color: var(--white);
    border: 2px solid #F47076;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(244, 112, 118, 0.45);
    background: #f25a60;
    border-color: #f25a60;
}

.btn-secondary {
    background: transparent;
    color: var(--coffee);
    border: 2px solid #8C5A3C;
}

.btn-secondary:hover {
    background: var(--coffee);
    color: var(--white);
    border-color: var(--coffee);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--coffee);
    border-color: var(--white);
}

/* ----- Sections ----- */
.section {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--coffee);
    text-align: center;
    margin-bottom: 32px;
}

/* ----- SEO text ----- */
.seo-text {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.6;
}

.seo-text h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--coffee);
    margin-bottom: 16px;
}

.seo-text p {
    margin-bottom: 16px;
    color: var(--text);
}

.seo-text p:last-child {
    margin-bottom: 0;
}

/* Linki w SEO: :any-link + !important — inaczej Chrome/Safari stosuje a:-webkit-any-link (niebieski) */
.seo-text a:any-link,
.seo-text a:visited {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    text-decoration: none !important;
    font-weight: inherit;
}

.seo-text a:hover {
    color: var(--coffee) !important;
    -webkit-text-fill-color: var(--coffee) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(140, 90, 60, 0.45) !important;
    text-underline-offset: 3px;
}

.seo-text a:focus-visible {
    outline: 2px solid var(--coffee) !important;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ----- About ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.about-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--coffee);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Menu ----- */
.menu-section {
    background: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--bg);
    padding: 26px 22px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.menu-group {
    margin-top: 0;
}

.menu-group + .menu-group {
    margin-top: 28px;
    padding-top: 4px;
}

.menu-category {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.menu-list {
    list-style: none;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 10px;
    margin: 0 -10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.menu-list li:hover {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list .name {
    color: var(--text);
    flex: 1;
}

.menu-list .price {
    color: var(--coffee);
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
    min-width: 4em;
}

/* ----- Why section ----- */
.why-section {
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.2s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.why-icon {
    font-size: 2.75rem;
    display: block;
    margin-bottom: 14px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--coffee);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Gallery ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Gallery modal ----- */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 47, 47, 0.85);
    cursor: pointer;
}

.gallery-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text);
    transition: background var(--ease-fast);
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: var(--white);
}

.gallery-modal-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
    padding: 8px 14px;
}

.gallery-modal-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-modal-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- FAQ (accordion) ----- */
.faq-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 112, 118, 0.04) 100%);
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--coffee);
    line-height: 1.4;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.faq-question::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--coffee);
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding-top: 12px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer a:any-link,
.faq-answer a:visited {
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
    text-decoration: none !important;
    font-weight: inherit;
}

.faq-answer a:hover {
    color: var(--coffee) !important;
    -webkit-text-fill-color: var(--coffee) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(140, 90, 60, 0.45) !important;
    text-underline-offset: 3px;
}

.faq-answer a:focus-visible {
    outline: 2px solid var(--coffee) !important;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}

/* ----- Location ----- */
.location-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 112, 118, 0.06) 100%);
}

.location-address {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.location-hours {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.location-hours-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--coffee);
    margin-bottom: 8px;
}

.location-hours-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 28px;
}

.location-buttons .btn {
    min-width: 180px;
}

/* Zadzwoń – outline button, clearly clickable */
.btn-call {
    border: 2px solid #8C5A3C;
    color: #8C5A3C;
    background: transparent;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-call:hover {
    background: #8C5A3C;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .location-buttons {
        flex-direction: column;
        margin-bottom: 32px;
    }
    .location-buttons .btn {
        width: 100%;
        min-width: 0;
        padding: 16px 28px;
        font-size: 1rem;
    }
}

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.map-wrap iframe {
    display: block;
}

/* ----- Map section (Gdzie jesteśmy) ----- */
.map {
    padding: 48px 0;
    background: var(--bg);
}

.map .container {
    max-width: 800px;
}

.map h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--coffee);
    margin-bottom: 12px;
    text-align: center;
}

.map p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
}

.map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ----- Sticky bar (mobile only) ----- */
.sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 14px 20px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 24px rgba(59, 47, 47, 0.12);
    border-radius: 20px 20px 0 0;
    gap: 12px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.sticky-bar.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sticky-btn {
    flex: 1;
    max-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform var(--ease), box-shadow var(--ease);
}

.sticky-btn:first-child {
    background: var(--accent);
    color: var(--white);
}

.sticky-btn:last-child {
    background: var(--coffee);
    color: var(--white);
}

.sticky-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (min-width: 769px) {
    .sticky-bar {
        display: none !important;
    }
}

/* ----- Footer ----- */
.footer {
    padding: 48px 20px;
    background: var(--coffee);
    color: var(--white);
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    margin: 0;
}

.footer-brand strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.footer-address {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

/* Tel w stopce: :any-link + !important — inaczej Chrome wygrywa z a:-webkit-any-link */
.footer .footer-address a.footer-phone:any-link {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    font-weight: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer .footer-address a.footer-phone:hover,
.footer .footer-address a.footer-phone:focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-bottom-color: var(--white);
    opacity: 1;
}

.footer .footer-address a.footer-phone:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.footer-social a:hover {
    text-decoration: underline;
}
