/* =======================
   RESET & BASIS
======================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* =======================
   NAVBAR BASIS
======================= */

.navbar {
    background-color: #FDF3FF;
    width: 100%;
}

.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Bovenste rij (roze balk) */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 20px;   /* minder ruimte boven/onder */
}

/* Logo */
.nav-logo {
    height: 70px;
}

/* Actieve pagina */
.nav-links a.active {
    color: #99005F;   /* donkerder roze */
    font-weight: bold;
}

/* Optioneel: subtiele underline */
.nav-links a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #99005F;
    margin-top: 4px;
}

/* Hamburger */
.hamburger {
    width: 30px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #385e72;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animatie */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   MENU BASIS
======================= */

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =======================
   DESKTOP
======================= */

@media (min-width: 769px) {

    .nav-top {
        display: flex;
        align-items: center;
    }

    /* Desktop layout: logo links, titel midden, menu rechts */
    .navbar {
        display: flex;
        flex-direction: column;
    }

    .nav-links {
        display: flex;
        justify-content: flex-end;  /* 🔥 menu weer rechts */
        gap: 30px;
        padding: 0 25px 15px 25px;
    }

    .nav-links li a {
        text-decoration: none;
        color: #385e72;
        font-weight: bold;
        font-size: 18px;
    }
}

/* =======================
   MOBIEL
======================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    /* Menu verborgen */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        text-decoration: none;
        color: #385e72;
        font-weight: bold;
        font-size: 18px;
    }
}
/* =======================
   HAMBURGER
======================= */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #385e72;
    border-radius: 2px;
}
/* =======================
   HERO
======================= */
.hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #E7CFFF;
    color: #385e72;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.button {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s ease;
    display: inline-block;
}

.button {
    background-color: #385e72;
    color: #fff;
}

.button:hover {
    background-color: #8e76d5;
}

.button.secondary {
    background-color: #fff;
    color: #385e72;
    border: 2px solid #385e72;
}

.button.secondary:hover {
    background-color: #385e72;
    color: #fff;
}

/* =======================
   PATTERN GRID
======================= */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 30px;
}

.pattern-card {
    background-color: #FFFCFC;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #385e72;
    transition: 0.3s ease;
}

.pattern-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.pattern-card h3 {
    font-size: 20px;
}

.pattern-card p {
    font-size: 14px;
    color: #555;
}

.pattern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =======================
   FREEBIE
======================= */
.freebie {
    text-align: center;
    padding: 80px 20px;
    background-color: #F9F4FF;
    color: #385e72;
}

.freebie h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* =======================
   ABOUT
======================= */
.about-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 80px 20px;
    color: #385e72;
}

.about-home img {
    max-width: 300px;
    border-radius: 20px;
}

.about-home div {
    max-width: 500px;
}

/* =======================
   SECTION TITLES
======================= */
.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: #385e72;
}

/* =======================
   RESPONSIVE TABLET
======================= */
@media (max-width: 1024px) {

    .pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 30px;
    }

    .about-home {
        flex-direction: column;
        text-align: center;
    }
}

/* =======================
   RESPONSIVE MOBIEL
======================= */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .nav-title {
        position: absolute;   /* blijft in roze balk */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 22px;      /* iets kleiner op mobiel */
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin-top: 80px; /* ruimte onder titel */
    }

    .navbar ul li a {
        font-size: 16px;
    }
	
    .pattern-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .about-home img {
        max-width: 220px;
    }

    .navbar {
        flex-direction: row;
    }

    .nav-title {
        font-size: 20px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        display: none;   /* verstopt */
        margin-top: 15px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;   /* zichtbaar */
    }

    .hamburger {
        display: flex;
    }

    /* Desktop menu verbergen */
    .nav-links {
        order: 4;
    }
}
/* =========================
   NAVBAR BASIS
========================= */

.navbar {
    background-color: #FDF3FF;
    width: 100%;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop menu */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding-bottom: 15px;
    }

    .nav-links li a {
        text-decoration: none;
        color: #385e72;
        font-weight: bold;
    }
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #385e72;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Animatie */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   MOBIEL
========================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        text-decoration: none;
        color: #385e72;
        font-weight: bold;
        font-size: 18px;
    }
}