@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@400;500;700;800&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #2C3E50;
    --secondary: #A3B18A;
    --bg-light: #F8F9FA;
    --btn-color: #B5651D;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #3d5166 100%);
    --gradient-btn: linear-gradient(135deg, #B5651D 0%, #D27D2D 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Navbar height */
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Catamaran', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 70vw; /* Instruction: Max 70% width */
}

.lead-text {
    font-size: 1.2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1.2rem;
}

.section-header h2:last-child {
    margin-bottom: 0;
}

.section-header p.lead-text {
    margin-bottom: 0;
}

.section-footer-text {
    text-align: center;
    margin-top: 4rem;
    font-style: italic;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-footer-btn {
    text-align: center;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list i {
    color: var(--btn-color);
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 85%; /* Instruction: 85% width */
    margin: 0 auto;
}

section {
    padding: 6rem 0;
    overflow: hidden;
}

section > .container > *:last-child {
    margin-bottom: 0 !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-btn);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(181, 101, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(181, 101, 29, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn i {
    font-size: 0.9rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.65);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav.scrolled .logo,
nav.scrolled .nav-links li a,
nav.scrolled .hamburger {
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: 0 auto;
}

.logo {
    font-family: 'Catamaran', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
}

.nav-links li a:hover {
    color: var(--btn-color);
}

.nav-contact {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.nav-contact:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
    filter: brightness(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('obrazky/hlavni.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding-top: 80px;
}



.hero h1 {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero h2 {
    margin-bottom: 1.5rem;
    line-height: 1;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.icon-box {
    width: clamp(45px, 5vw, 60px);
    height: clamp(45px, 5vw, 60px);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--btn-color);
    margin-bottom: 1.5rem;
}

/* Glass Effect */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Expandable Cards */
.expandable-card {
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: fit-content;
}

.expandable-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.header-icon {
    width: clamp(38px, 4vw, 50px);
    height: clamp(38px, 4vw, 50px);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    color: var(--btn-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.expandable-card.active .header-icon {
    background: var(--btn-color);
    color: var(--white);
}

.header-text {
    flex-grow: 1;
}

.expandable-header .header-text h3 {
    margin-bottom: 0.1rem;
    font-size: clamp(0.95rem, 1.3vw, 1.3rem);
}

.expandable-header .subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    display: block;
}

.expandable-header .toggle-arrow {
    transition: var(--transition);
    color: rgba(44, 62, 80, 0.6);
    font-size: clamp(0.8rem, 1vw, 1rem);
}

.expandable-card.active .expandable-header i {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, opacity 0.4s ease;
    opacity: 0;
}

.expandable-card.active .expandable-content {
    max-height: 2000px;
    opacity: 1;
    padding-top: clamp(1rem, 2vw, 2rem);
}

.expandable-image {
    margin-top: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
}

.expandable-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.expandable-image:hover img {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox.active img {
    transform: scale(1);
}

/* Local Info Section */
.info-section {
    background: var(--white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.grid-2-project {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.grid-lokalita {
    align-items: start;
    gap: 4rem;
}

.grid-lokalita .img-wrapper img {
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.project-images-column {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

@media (min-width: 1025px) {
    .column-offset {
        margin-top: 2rem;
    }
}


.gallery-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .gallery-8 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--text-light);
}

.faq-header i {
    transition: var(--transition);
    color: rgba(44, 62, 80, 0.6);
}

.faq-header.active i {
    transform: rotate(180deg);
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.contact-grid .column-offset {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-grid .img-wrapper {
    max-width: 80%; /* Shrink map width as requested */
    align-self: flex-start;
}

.contact-grid .img-wrapper img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

form .form-group, 
form input, 
form textarea {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

input, textarea {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.1);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--btn-color);
}

.honeypot {
    display: none;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 1025px) {
    .footer-grid > div:nth-child(2) {
        justify-self: center;
    }
    .footer-grid > div:nth-child(3) {
        justify-self: end;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .grid-2, .grid-2-project, .grid-3, .contact-grid, .faq-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid > div {
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        text-align: left;
    }
    
    .hero p {
        margin-left: 0;
        margin-right: 0;
    }
    
    .container {
        width: 92%;
    }
    
    .bento-grid, .grid-3 {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3.5rem 0; /* Adjusted spacing between sections on mobile */
    }

    .hero h2 {
        font-size: 2.8rem; /* Increased on mobile */
    }

    .section-header {
        text-align: left;
        margin-bottom: 2rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .section-header-group {
        text-align: left;
    }

    .lead-text.section-header {
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
    }

    .section-footer-text {
        text-align: left;
        margin-top: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    .section-footer-btn {
        text-align: center;
        margin-top: 1.5rem;
    }

    p {
        max-width: 100%;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .header-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .faq-item, .column-offset {
        width: 100%;
    }

    /* FAQ Reordering */
    #faq .grid-2 {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Project Section Reordering and Image Layout */
    .grid-2-project {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .project-images-column {
        position: static;
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-images-column .img-wrapper {
        width: 100%;
    }

    /* Contact side-by-side on mobile */
    #kontakt .column-offset {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    #kontakt .column-offset > div {
        margin-bottom: 0 !important;
        flex: 1;
    }

    .contact-grid .img-wrapper {
        flex: 1;
        max-width: none;
    }
    
    .contact-grid .img-wrapper img {
        height: 150px; /* Reduced height for horizontal layout */
        object-fit: cover;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
}
