/*
Theme Name: Alfa Rebuild 2024
Theme URI: https://www.alfaucetni.cz
Author: Gemini CLI
Description: A modern, fluid redesign for Alfa Účetní s.r.o.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: alfa-rebuild
*/

:root {
    --primary: #B30033;
    --primary-light: #D4003C;
    --secondary: #F3F3F3;
    --text-dark: #262626;
    --text-light: #ffffff;
    --gray-light: #ECECEC;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --fluid-p: clamp(1rem, 2vw, 1.15rem);
    --fluid-h1: clamp(2.5rem, 5vw, 4rem);
    --fluid-h2: clamp(1.75rem, 4vw, 2.5rem);
    --container: min(1200px, 90vw);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background-color: var(--secondary); color: var(--text-dark); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Montserrat, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; color: var(--primary); }

.container { width: var(--container); margin: 0 auto; }
[id] { scroll-margin-top: 130px; }

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    box-shadow: var(--shadow);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.75rem; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: -1px; }
.logo img { display: block; width: 276px; max-width: 100%; height: auto; }
nav ul { display: flex; list-style: none; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
nav a:hover { color: var(--primary); }
.navigation-group { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 1rem;
    border-left: 1px solid #d6d6d6;
    font-size: 0.85rem;
    font-weight: 700;
}
.language-switcher a { color: #666; text-decoration: none; }
.language-switcher a:hover,
.language-switcher a[aria-current="page"] { color: var(--primary); }

/* Hero Section */
.hero {
    padding: clamp(6rem, 15vh, 10rem) 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--gray-light);
}

.hero h1 { font-size: var(--fluid-h1); margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -2px; }
.hero p { font-size: var(--fluid-p); max-width: 800px; margin: 0 auto 1rem; color: #4A4A4A; }
.hero .hero-lead { font-weight: 600; }
.hero .hero-detail { margin-bottom: 2.5rem; }

.cta-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

.cta-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1.1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(179,0,51,0.25);
    transition: var(--transition);
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(179,0,51,0.35); background-color: var(--primary-light); }
.cta-btn-secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.cta-btn-secondary:hover { background: var(--primary); color: #fff; }

/* Services Section */
.services { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: var(--fluid-h2); margin-bottom: 1rem; }
.section-title p { color: #666; font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.service-card {
    background: #fff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover { transform: scale(1.02); border-color: rgba(179,0,51,0.1); }
.service-card h3 { margin-bottom: 1.25rem; font-size: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.service-card h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.service-card p { color: #555; }
.advisor-note {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 1.25rem 1.5rem;
    text-align: center;
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

/* Sticky Call Button */
.sticky-call {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(179,0,51,0.4);
    z-index: 9999;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}
.sticky-call:hover { transform: scale(1.1); }
.sticky-call.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
@media (min-width: 992px) { .sticky-call { display: none; } }

/* GDPR Bar */
#cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 1.25rem;
    text-align: center;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
#cookie-bar[hidden] { display: none; }
#cookie-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}
#cookie-bar button:hover { background: var(--primary-light); }

/* Pricing Section */
.pricing { padding: 6rem 0; background: #fff; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.pricing-card {
    background: var(--secondary);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.pricing-card.featured {
    background: #fff;
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
}
.pricing-card.featured:hover { transform: translateY(-10px) scale(1.05); }

.price-header h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.price { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.price span { font-size: 1rem; color: #777; font-weight: 400; }
.price-subtitle { color: #777; margin-bottom: 0.5rem; }
.pricing-cta { padding: 0.8rem 2rem; }

.price-features { list-style: none; margin: 2rem 0; text-align: left; flex-grow: 1; }
.price-features li { margin-bottom: 0.75rem; color: #555; position: relative; padding-left: 1.5rem; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.pricing-note { text-align: center; margin-top: 4rem; color: #777; font-style: italic; }
.pricing-conditions {
    max-width: 900px;
    margin: 3.5rem auto 0;
    padding: 1.5rem 1.75rem;
    color: #555;
    background: var(--secondary);
    border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
}
.pricing-conditions p + p { margin-top: 0.75rem; }

.banner-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: #fff;
}
.banner-section .container { max-width: 1100px; }
.banner-section img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* Contact Section */
.contact-section { padding: 6rem 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 4rem; align-items: start; }
.contact-section h2 { font-size: var(--fluid-h2); margin-bottom: 1.5rem; }
.contact-details { margin-top: 2rem; display: grid; gap: 0.75rem; }
.contact-details a { color: var(--primary); font-weight: 700; text-decoration: none; }
.directions-link { display: inline-block; text-decoration: underline !important; text-underline-offset: 0.2em; }
.map-box { 
    width: 100%; 
    height: 450px; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-dark);
    background:
        linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
        repeating-linear-gradient(45deg, #e5e5e5 0, #e5e5e5 2px, #f3f3f3 2px, #f3f3f3 12px);
    cursor: pointer;
}
.map-placeholder-title { color: var(--primary); font-size: 1.35rem; font-weight: 700; }
.map-placeholder-action {
    margin-top: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-weight: 700;
}

/* References Section */
.references { padding: 6rem 0; background: var(--gray-light); text-align: center; }
.references h2 { font-size: var(--fluid-h2); margin-bottom: 0.75rem; }
.references > .container > p { color: #666; }
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}
.logo-grid img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}
.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
}

/* FAQ Section */
.faq-section { padding: 6rem 0; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.faq-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}
.faq-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.faq-card p { color: #555; }

/* 404 */
.not-found { padding: 8rem 0; min-height: 60vh; text-align: center; background: #fff; }
.not-found h1 { font-size: var(--fluid-h1); margin-bottom: 1rem; }
.not-found p { margin-bottom: 2rem; }
.not-found .eyebrow { color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; }

/* Footer Adjustments */
footer { background: #1a1a1a; color: #999; padding: 5rem 0 3rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; text-align: left; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { color: #ccc; }
.footer-secondary { font-size: 0.85rem; margin-top: 0.5rem; opacity: 0.7; }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; font-size: 0.9rem; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-wrapper { flex-direction: column; gap: 1.5rem; }
    .navigation-group { flex-direction: column; gap: 0.75rem; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .language-switcher { padding-left: 0; border-left: 0; }
    .hero { padding: 5rem 0; }
    .hero h1 { letter-spacing: -1px; }
    .services-grid, .pricing-grid, .contact-grid { grid-template-columns: 1fr; }
    .pricing-card.featured, .pricing-card.featured:hover { transform: none; }
    .pricing-conditions { padding-right: 4.75rem; padding-bottom: 4.5rem; }
    .map-box { height: 360px; }
    #cookie-bar { flex-direction: column; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
