/* ============================================
   zicane-ograde.rs — Global Styles
   Design tokens from Figma (360px mobile frame)
   ============================================ */

/* --- Reset & Base ------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

figure,
blockquote {
    margin: 0;
    padding: 0;
}

/* --- Container ---------------------------- */
.container {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 769px) {
    .container {
        padding-inline: 2rem;
    }
}

/* ============================================
   Header (top bar)
   Figma: logo left + phone pill right
   ============================================ */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    /*border-bottom: 1px solid #e5e7eb;*/
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.7rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #125b48;
}

/* Green phone pill — Figma: cornerRadius 100, bg #125b48 */
.phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: #125b48;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.phone-pill .material-symbols-outlined {
    font-size: 1.125rem;
}

.phone-pill:hover {
    opacity: 0.9;
}

/* ============================================
   Hero
   Figma: tagline above hero image
   ============================================ */
#hero {
    text-align: center;
}

#hero h1 {
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: #041914;
    max-width: 700px;
    margin-inline: auto;
    padding: 2rem 1.5rem 1.5rem;
}

.hero-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* ============================================
   Category chips
   Figma: pill buttons, bg #aadd66, border-radius 100px
   ============================================ */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 1.25rem 1rem 1.75rem;
}

.category-chips a {
    display: inline-block;
    padding: 10px 18px;
    background-color: #aadd66;
    color: #000;
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 100px;
    transition: background-color 0.2s;
}

.category-chips a:hover,
.category-chips a:focus-visible {
    background-color: #99cc55;
}

/* ============================================
   Gallery sections
   Figma: cream bg (#fdf7eb), heading → images → text
   ============================================ */
.gallery-section {
    padding-block: 2.5rem;
    background-color: #fdf7eb;
}

.gallery-section:nth-of-type(even) {
    background-color: #fff;
}

.gallery-section h2 {
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #041914;
    margin-bottom: 1.25rem;
}

/* --- Mosaic Gallery (All viewports) ------- */
.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.mosaic-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}

.mosaic-gallery a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Responsive — Mobile (≤768px)
/* --- Description text --------------------- */
.gallery-description {
    max-width: 600px; /* 1100 - 250*2 = 600px reading width */
    margin-inline: auto;
}

.gallery-description p {
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* --- Specs list --------------------------- */
.specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.specs dt {
    font-weight: 700;
    color: #041914;
}

.specs dd {
    color: #000;
}

/* ============================================
   Contact (CTA section)
   ============================================ */
#kontakt {
    background-color: #125b48;
    color: #fff;
    padding-block: 4rem;
}

#kontakt h2 {
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

address {
    font-style: normal;
    margin-bottom: 1.25rem;
}

address p {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contact-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

address a {
    color: #fff;
    font-weight: 500;
    transition: opacity 0.2s;
}

address a:hover {
    opacity: 0.8;
}

.contact-note {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 400px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: #125b48;
    color: rgba(255, 255, 255, 0.8);
    padding-block: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   Responsive — Mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* All galleries: 2-column mosaic on mobile */
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .mosaic-gallery a:first-child {
        grid-row: span 1;
    }

    .gallery-section {
        padding-block: 2rem;
    }

    .gallery-description {
        max-width: none;
        margin-inline: 0;
        padding-inline: 1rem;
    }

    #hero h1 {
        padding: 1.5rem 1rem 1rem;
    }

    .hero-image {
        max-height: 280px;
    }

    .hero-image img {
        max-height: 280px;
    }

    .category-chips {
        padding: 1rem 1rem 1.25rem;
        gap: 8px;
    }

    .category-chips a {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .specs {
        grid-template-columns: 1fr;
        gap: 0.15rem 0;
    }

    .specs dt {
        margin-top: 0.5rem;
    }
}

/* ============================================
   Responsive — Desktop (≥769px)
   ============================================ */
@media (min-width: 769px) {
    html {
        font-size: 120%;
    }
    .gallery-section {
        padding-block: 4rem;
    }

    .gallery-description {
        max-width: 600px;
        margin-inline: auto;
    }

    #hero h1 {
        padding: 3rem 2rem 2rem;
    }

    .hero-image {
        max-height: 480px;
    }

    .hero-image img {
        max-height: 480px;
    }

    .category-chips {
        padding: 1.5rem 2rem 2rem;
    }
}

/* Single-image galleries: center the large tile */
.mosaic-gallery a:first-child:last-child {
    grid-column: 2 / 4;
    grid-row: span 2;
}
