/* ============================================
   Samen één uitvaart — Digitale Rouwkaart
   Matching the Jimdo site styling
   ============================================ */

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

:root {
    --color-primary: #795959;
    --color-header-bg: #d2cabb;
    --color-footer-bg: #38212e;
    --color-white: #ffffff;
    --color-nav-text: #323335;
    --color-body-text: #1c1c1c;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Mulish', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-body-text);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

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

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

/* ============================================
   Header — matches Jimdo .foFqY / .DyyGf
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--color-header-bg);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    padding: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    margin-right: 20px;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    color: var(--color-nav-text);
    transition: opacity 0.2s;
}

.header-whatsapp:hover {
    opacity: 0.7;
}

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

.header-brand-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-nav-text);
    white-space: nowrap;
}

.header-logo {
    border-radius: 50%;
}

/* ============================================
   Navigation — matches Jimdo .lXoOb / .d6OwN
   ============================================ */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 0 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    line-height: 40px;
    letter-spacing: 0;
}

.nav-list>li {
    position: relative;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Nav links — matches .d6OwN.xVIEQ */
.nav-list>li>a {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    color: var(--color-nav-text);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: color 0.2s;
}

/* Underline effect — matches .lo9Ld:after */
.nav-list>li>a>span:first-child {
    position: relative;
    display: inline-block;
    line-height: 24px;
}

.nav-list>li>a>span:first-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-nav-text);
    transform: translateY(calc(100% - 4px));
    opacity: 0;
    transition: all 0.2s;
}

.nav-list>li>a:hover>span:first-child::after,
.nav-list>li>a.active>span:first-child::after {
    transform: translateY(100%);
    opacity: 1;
}

/* Dropdown arrow — matches .Kuirh */
.arrow {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    width: 8px;
    height: 4px;
    margin-left: 10px;
}

.arrow svg {
    display: flex;
    transition: transform 0.2s ease-in-out;
}

/* ============================================
   Submenu — matches .lXoOb.ACV1J
   ============================================ */
.submenu {
    position: absolute;
    top: auto;
    right: auto;
    left: -20px;
    z-index: 2;
    display: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 7px 11px 0 rgba(0, 0, 0, 0.2);
    list-style: none;
    font-size: 1rem;
    line-height: 36px;
}

/* Triangle pointer — matches .lXoOb.ACV1J.H642s:after */
.submenu::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 16%;
    width: 0;
    height: 0;
    margin-left: -5px;
    border: 5px solid transparent;
    border-bottom-color: #fff;
    pointer-events: none;
}

.has-submenu:hover>.submenu {
    display: block;
}

.has-submenu:hover .arrow svg {
    transform: rotate(180deg);
}

/* Submenu links — matches .d6OwN inside .LgCuD */
.submenu li {
    margin: 0;
    padding: 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--color-nav-text);
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
}

.submenu li a>span {
    position: relative;
    display: inline-block;
    line-height: 24px;
}

.submenu li a>span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-nav-text);
    transform: translateY(calc(100% - 4px));
    opacity: 0;
    transition: all 0.2s;
}

.submenu li a:hover>span::after {
    transform: translateY(100%);
    opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-nav-text);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Main Content — cover section like original
   ============================================ */
.main-content {
    flex: 1;
}

.cover-section {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay — matches .css-1b1ij5w rgba(56, 33, 46, 0.52) */
.cover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(56, 33, 46, 0.52);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
    text-align: center;
}

.cover-content h1 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cover-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: rgb(121, 89, 89);
    color: var(--color-white);
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.site-footer a:hover {
    color: var(--color-white);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1280px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    body {
        font-size: 16px;
    }

    .nav-list>li>a {
        padding: 20px 15px;
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    h1 {
        font-size: 32px;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero p {
        font-size: 17px;
    }

    .header-right {
        margin-right: 12px;
    }

    .header-brand-name {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-header-bg);
        overflow-y: auto;
        z-index: 99;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 16px 0;
    }

    .nav-list>li {
        width: 100%;
    }

    .nav-list>li>a {
        padding: 14px 24px;
        font-size: 16px;
        justify-content: space-between;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .submenu::after {
        display: none;
    }

    .has-submenu .submenu {
        display: none;
    }

    .has-submenu.submenu-open .submenu {
        display: block;
    }

    .has-submenu.submenu-open .arrow svg {
        transform: rotate(180deg);
    }

    .submenu li a {
        padding: 12px 40px;
        font-size: 15px;
    }

    .site-footer {
        flex-wrap: wrap;
    }
}
