/*
Theme Name: Noor Graat Pianoles
Theme URI:
Author: Noor Graat
Description: Custom WordPress theme for Pianoles Noor Graat, Eindhoven.
Version: 1.3
Text Domain: noor-theme
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */

:root {
    --color-teal: #004643;
    --color-teal-light: #E0E6E0;
    --color-orange: #F9BC60;
    --color-dark: #1a1a1a;
    --color-footer-bg: #1e1e1e;
    --color-text: #333;
    --color-text-mid: #555;
    --color-text-light: #888;
    --color-heading: #222;
    --color-muted: #444;
    --color-white: #fff;
    --color-bg-topbar: #f4f4f4;
    --color-bg-cream: #f5f0e8;
    --color-border: #e8e8e8;
    --color-border-light: #eee;
    --radius: 12px
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================================
   UTILITIES
   ========================================================= */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Noto Serif', Georgia, serif;
    font-weight: normal;
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 40px;
}

.section-title.centered {
    text-align: center;
}

.section-title.light {
    color: var(--color-white);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    border: 2px solid transparent;
    line-height: 1;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background: var(--color-orange);
    color: black;
    border-color: var(--color-orange);
}

/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
    background: var(--color-teal);
    padding: 7px 0;
    font-size: 13px;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-teal);
}

.top-bar .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-left a {
    color: var(--color-white);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-left a:hover {
    color: var(--color-orange);
}

.top-bar-right a {
    color: var(--color-white);
    font-size: 12px;
}

.top-bar-right a:hover,
.top-bar-right a.active {
    color: var(--color-orange);
    font-weight: 600;
}

.lang-divider{
    margin: 0 8px ;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
}

.hero {
    position: relative;
    height: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 3.2rem;
    font-weight: normal;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-curve svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-section {
    padding: 60px 0;
}

.about-section .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.9rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: var(--color-heading);
}

.about-text p {
    color: var(--color-text-mid);
    margin-bottom: 14px;
}

.about-text .btn {
    margin-top: 14px;
}

.about-image {
    display: flex;
    justify-content: end;
}

.about-image img {
    width: 75%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 600px;
}

/* =========================================================
   VOOR WIE SECTION
   ========================================================= */

.voor-wie {
    background: var(--color-teal);
    padding: 90px 0;
    color: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-item {
    background-color: var(--color-white);
    padding: 20px 20px 30px 20px;
    border-radius: var(--radius);
    color: black;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 18px;
}

.card-item h3 {
    font-family: 'Noto serif';
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.card-item p {
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
}

/* =========================================================
   QUOTE BANNER
   ========================================================= */

.quote-banner {
    background: var(--color-orange);
    padding: 16px 0;
    text-align: center;
    color: black;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    padding: 90px 0;
    background-color: var(--color-teal-light);
}

.contact-section .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Noto Serif', Georgia, serif;
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 14px;
    color: var(--color-heading);
}

.contact-info p {
    color: var(--color-text-mid);
    margin-bottom: 24px;
}

.contact-info .contact-detail {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.contact-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials {
    background: var(--color-white);
    padding: 90px 0;
}

.testimonials-slider {
    width: 100%;
    padding-bottom: 24px;
}

.testimonials-slider .swiper-wrapper {
    align-items: stretch;
}

.testimonial-card {
    width: max(260px, calc(25vw - 34px));
    height: auto;
    background: #EDEDEA;
    border: solid 1px #DDDDDD;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px;
    border-radius: 4px;
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.75;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.testimonial-full {
    display: none;
}

.testimonial-card .testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.testimonial-card .testimonial-author {
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
    border-top: 1px solid var(--color-border-light);
    padding-top: 8px;
    margin-top: auto;
}

.testimonial-more {
    background: none;
    border: none;
    color: var(--color-teal);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.testimonial-more[hidden] {
    display: none;
}

/* =========================================================
   TESTIMONIAL MODAL
   ========================================================= */

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.testimonial-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.testimonial-modal-box {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 48px 40px 36px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(14px);
    transition: transform 0.25s ease;
}

.testimonial-modal.is-open .testimonial-modal-box {
    transform: translateY(0);
}

.testimonial-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 4px;
}

.testimonial-modal-close:hover {
    color: var(--color-text);
}

.testimonial-modal-author {
    font-size: 14px;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--color-teal);
    color: var(--color-white);
    text-align: center;
    padding: 22px 20px;
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {

    .about-section,
    .voor-wie,
    .contact-section,
    .testimonials {
        padding: 64px 0;
    }
    

    .about-section .inner {
        gap: 40px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {

    /* Sections */
    .about-section,
    .voor-wie,
    .contact-section,
    .testimonials {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.65rem;
        margin-bottom: 24px;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-curve svg {
        height: 48px;
    }

    /* About */
    .about-section .inner,
    .contact-section .inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-image {
        order: -1;
        justify-content: center;
    }

    .about-image img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        object-position: 0 -100px;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }

    /* Voor wie cards */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-item img {
        height: 160px;
    }

    /* Modal */
    .testimonial-modal {
        padding: 16px;
    }

    .testimonial-modal-box {
        padding: 36px 20px 24px;
    }

}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {

    .top-bar .inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .top-bar-left a {
        margin-right: 10px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-image img {
        max-height: 240px;
        object-position: 0 -50px;
    }
}