/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
    --primary-color: #333;
    --secondary-color: #888;
    --accent-color: #007bff;
    --background-color: #ffffff;
    --border-color: #ddd;
}

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

/* =========================================
   BASE / BODY  (mobile-first)
   ========================================= */
html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--primary-color);
    overflow-x: hidden;
}

/* =========================================
   LAYOUT CONTAINER
   ========================================= */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 24px 0;
    text-align: left;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: block;
    max-width: 50vw;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.site-header nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin-right: 12px;
    font-weight: bold;
    padding: 4px 0;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: var(--accent-color);
}

/* =========================================
   HAMBURGER TOGGLE  (mobile only)
   ========================================= */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   MOBILE NAV  (hidden until opened)
   ========================================= */
.site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 8px 0 4px;
}

.site-nav.open {
    display: flex;
}

.site-nav a {
    padding: 10px 0;
    margin-right: 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05em;
    text-align: right;
}

.site-nav a:last-child {
    border-bottom: none;
}

/* =========================================
   CAROUSEL
   ========================================= */
.carousel-container {
    width: 100%;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-dots {
    text-align: center;
    padding: 12px 0;
}

/* Thumbnail navigation (gallery page) */
.carousel-wrap {
    display: flex;
    flex-direction: column;
}

.carousel-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px 0 0;
}

.thumb {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    background: none;
    overflow: hidden;
    transition: border-color 0.2s;
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb.active {
    border-color: var(--accent-color);
}

.thumb:hover:not(.active) {
    border-color: var(--secondary-color);
}

.dot {
    background: var(--secondary-color);
    border: none;
    cursor: pointer;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    padding: 0;
    transition: background-color 0.3s;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* =========================================
   MAIN CONTENT & TYPOGRAPHY
   ========================================= */

h1, h2, h3 {
    color: #222;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 12px;
}

h3 {
    font-size: 1em;
    margin-bottom: 6px;
}

h3:last-of-type {
    margin-bottom: 24px;
}

p {
    margin-bottom: 15px;
    font-size: 1em;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.services-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    border-radius: 4px;
    margin: 16px 0;
}

.about-img-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.img-caption {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    text-align: center;
    margin: 6px 0 0 0;
}

.about-img {
    width: 50vw;
    height: auto;
    display: block;
    border-radius: 4px;
    margin: 0 auto;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card {
    flex: 1 1 100%;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 6px;
    background: #fafafa;
}

.card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =========================================
   PRODUCT INFO
   ========================================= */
.product-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 6px;
}

.product-info-row h3 {
    margin-bottom: 6px;
}

.product-info-row h3:last-of-type {
    margin-bottom: 0;
}

/* =========================================
   FOOTER & NEWSLETTER FORM
   ========================================= */
.site-footer {
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(153, 204, 255, 0.5);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.site-footer p {
    margin-bottom: 10px;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    order: 2;
}

.footer-copy p {
    margin-bottom: 0;
}

.signup-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.signup-heading {
    font-style: italic;
    font-weight: normal;
    font-size: 1.3rem;
}

.signup-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signup-btn:hover {
    background-color: var(--accent-color);
}

.faq-list-intro {
    margin-bottom: 2px;
}

.faq-list {
    list-style-position: inside;
    padding-left: 0;
    font-size: 1.1em;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    order: 3;
    padding-top: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    color: #555;
}

.footer-social svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.footer-social a:first-child svg {
    width: 60px;
    height: 60px;
}

/* =========================================
   GALLERY PAGE PREV / NEXT ARROWS
   ========================================= */
.gallery-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-nav-row .carousel-container {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.gallery-prev-btn,
.gallery-next-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 60px;
    background: #e0e0e0;
    color: #444;
    text-decoration: none;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-prev-btn:hover,
.gallery-next-btn:hover {
    background: #bbb;
    color: #111;
}

.gallery-arrow-spacer {
    flex-shrink: 0;
    width: 32px;
    visibility: hidden;
}

@media (min-width: 768px) {
    .gallery-prev-btn,
    .gallery-next-btn,
    .gallery-arrow-spacer {
        width: 44px;
        font-size: 2rem;
    }
}

.btn-gallery {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-gallery:hover {
    background-color: #0056b3;
}

.cv-museum-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
    gap: 16px;
}

.museum-img-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

.museum-img {
    width: 33vw;
    height: auto;
    border-radius: 4px;
}

.btn-cv {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-cv:hover {
    background-color: var(--accent-color);
}

/* =========================================
   TABLET  (>= 768px)
   ========================================= */
@media (min-width: 768px) {

    .site-wrap {
        padding: 0 24px;
    }

    .logo {
        max-width: 30vw;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        gap: 12px;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
        padding: 0;
    }

    .site-nav a {
        border-bottom: none;
        padding: 4px 0;
        margin-left: 24px;
        margin-right: 0;
        font-size: inherit;
    }

    .carousel-container {
        margin: 24px 0;
    }

    main {
        padding: 32px 0;
    }

    h1 {
        font-size: 2.2em;
    }

    p {
        font-size: 1.05em;
    }

    .contact-img {
        max-width: 90%;
    }

    .services-img {
        max-width: 90%;
    }

    .about-layout {
        display: grid;
        grid-template-columns: 35% 1fr;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 32px;
    }

    .about-img-col {
        grid-column: 1;
        grid-row: 1;
    }

    .about-text {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .about-bestofshow {
        grid-column: 1;
        grid-row: 2;
    }

    .about-img {
        width: 100%;
        margin: 0;
    }

    .card {
        flex: 1 1 100%;
    }

    .site-footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        gap: 20px;
    }

    .footer-copy {
        order: unset;
        grid-column: 1;
        grid-row: 1;
    }

    .signup-group {
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        text-align: center;
    }

    .footer-social {
        order: unset;
        grid-column: 3;
        grid-row: 1;
        width: auto;
        justify-content: flex-end;
        padding-top: 0;
    }

}

/* =========================================
   DESKTOP  (>= 1024px)
   ========================================= */
@media (min-width: 1024px) {

    .site-wrap {
        padding: 0 32px;
    }

    .site-nav a {
        margin-left: 40px;
        margin-right: 0;
        font-size: 1.1em;
    }

    .carousel-container {
        margin: 30px 0;
    }

    main {
        padding: 40px 0;
    }

    h1 {
        font-size: 2.8em;
        margin-bottom: 15px;
    }

    p {
        font-size: 1.1em;
    }

    .about-layout {
        grid-template-columns: 38% 1fr;
    }

    .about-img {
        width: 100%;
    }

    .card {
        flex: 1 1 100%;
    }

    .site-footer {
        padding: 40px 20px;
    }
}
