/* Global styles */
:root {
    --main-color: #401750;
    --secondary-color: #486c8f;
    --tertiary-color: #ebb626;
    --text-color: #2d2d2d;
    --background-light: #f6f6f9;
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

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

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--main-color);
    font-family: "Imprima", sans-serif;
}

.brand img {
    height: 64px;
    width: auto;
}

.brand-title {
    display: block;
    font-size: 1.5rem;
}

.brand-subtitle {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.main-nav a {
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--main-color);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero-content {
    width: min(760px, 90%);
}

.hero-content h1 {
    font-family: "Imprima", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    text-decoration: none;
}

.button.secondary {
    background: var(--secondary-color);
}

.button.tertiary {
    background: var(--tertiary-color);
    color: #1f1f1f;
}

/* Hero backgrounds */
.homepage-hero {
    background: url("images/hero.jpg") center/cover fixed;
}

.massage-hero {
    background: url("images/hero.jpg") center/cover;
}

.brainblocks-hero {
    background: linear-gradient(135deg, rgba(72, 108, 143, 0.7), rgba(64, 23, 80, 0.7)), url("images/brain_blocks.png") center/cover;
}

.coaching-hero {
    background: linear-gradient(135deg, rgba(64, 23, 80, 0.75), rgba(235, 182, 38, 0.65)), url("images/was-ik-maar-vader-logo.png"), #2a1a35;
}

/* Sections */
main {
    background: #fff;
}

.page-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-section.alt {
    background: var(--background-light);
}

.section-intro {
    max-width: 720px;
    margin: 0.75rem auto 3rem;
    text-align: center;
}

.themes h2,
.highlight h2,
.contact-section h2,
.page-section h2 {
    font-family: "Imprima", sans-serif;
    color: var(--main-color);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin: 0 0 1rem;
}

.theme-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.theme-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.75rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.theme-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    align-self: center;
}

.theme-card h3 {
    font-family: "Imprima", sans-serif;
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin: 0;
}

.card-link {
    margin-top: auto;
    font-weight: 600;
}

.highlight {
    background: linear-gradient(135deg, rgba(64, 23, 80, 0.1), rgba(235, 182, 38, 0.08));
}

.highlight-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.quote blockquote {
    margin: 0;
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    font-style: italic;
}

.quote cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    font-style: normal;
}

.quote.centered blockquote {
    text-align: center;
}

.contact-section {
    background: var(--background-light);
}

.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.contact-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.contact-card li + li {
    margin-top: 0.5rem;
}

/* Layout utilities */
.two-column {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

.image-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.info-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.story-block {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.story-block p + p {
    margin-top: 1rem;
}

.contact-highlight {
    background: var(--background-light);
}

/* Footer */
footer {
    background: #140c1f;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 720px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand img {
        height: 56px;
    }

    .hero {
        min-height: 320px;
    }

    .story-block,
    .quote blockquote,
    .contact-card,
    .image-card,
    .info-card,
    .theme-card {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
