/*
  Kreativ Enuf Web Kit
  Designed and documented by Kreativ Enuf Studios
  Built with creative assistance from Georgos
*/

/* =========================================================
   KREATIV ENUF THEME SETTINGS

   Change colors here to adjust the whole site.
   The palette is built around the Kreativ Enuf logo:
   - playful sky blue
   - warm cream
   - ink black
   - soft orange action buttons
========================================================= */

:root {
    --footer-height: 74px;

    /* Core backgrounds */
    --bg-main: #f3e4d8;
    --bg-soft: #e4f6fb;
    --bg-cream: #fff5ec;
    --bg-panel: rgba(255, 255, 255, 0.76);

    /* Text */
    --text-main: #10151a;
    --text-soft: #34454d;
    --text-muted: #687982;

    /* Logo colors */
    --brand-blue: #6ac4e9;
    --brand-blue-deep: #2f8caf;
    --brand-cream: #f7e4d5;
    --ink: #060709;

    /* Accent colors */
    --accent-orange: #df8a3f;
    --accent-orange-hover: #f0a35b;
    --accent-coral: #ff7a59;

    /* Effects */
    --border-soft: rgba(6, 7, 9, 0.14);
    --border-blue: rgba(106, 196, 233, 0.55);
    --shadow-soft: rgba(6, 7, 9, 0.14);
}

/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 7%;
    background: rgba(247, 234, 223, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--ink);
}

.logo {
    font-family: "Playfair Display", serif;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    text-decoration: none;

    color: #1f1a17;
    background: rgba(106, 196, 233, 0.1);
    border: 1px solid rgba(31, 26, 23, 0.08);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: rgba(223, 138, 63, 0.16);
    border-color: rgba(223, 138, 63, 0.35);
    transform: translateY(-1px);
}

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

.hero {
    position: relative;
    min-height: calc(100vh - var(--footer-height));
    min-height: calc(100svh - var(--footer-height));
    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 24%,
            rgba(106, 196, 233, 0.28),
            transparent 31%
        ),
        radial-gradient(
            circle at 82% 70%,
            rgba(223, 138, 63, 0.18),
            transparent 29%
        ),
        linear-gradient(135deg, #eaf7fa 0%, #f3e4d8 100%);
}

/* Faint Kreativ Enuf logo watermark */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/images/favicon-512.png") center 55% / 520px
        no-repeat;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
}

/* Soft bottom fade into footer area */
.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 170px;
    background: linear-gradient(
        to bottom,
        rgba(247, 234, 223, 0),
        var(--bg-main)
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    width: min(900px, 92%);
    text-align: center;
    color: var(--text-main);
    padding: 20px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 650;
    letter-spacing: 1px;
    margin: 0 0 24px;

    color: var(--text-main);
    text-shadow: 2px 2px 0 rgba(106, 196, 233, 0.28);
}

.hero p {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    line-height: 1.65;
    margin: 10px auto 44px;
    color: var(--text-soft);
    max-width: 780px;
}

.hero-button {
    font-family: "Cinzel", serif;
    background: rgba(223, 138, 63, 0.88);
    color: var(--ink);

    text-decoration: none;
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 1.5px;

    display: inline-block;
    border: 1px solid rgba(31, 26, 23, 0.16);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(6, 7, 9, 0.14);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-button:hover {
    background: rgba(223, 138, 63, 0.22);
    border-color: rgba(223, 138, 63, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(6, 7, 9, 0.16);
}

/* =========================================================
   PAGE CONTENT WRAPPER
========================================================= */

.page-content {
    padding-top: 90px;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(106, 196, 233, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(223, 138, 63, 0.16),
            transparent 25%
        ),
        linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-main) 100%);
}

/* =========================================================
   WORKSHOP / BOOK-SHELF STYLE GRID
========================================================= */

.book-shelves {
    color: var(--text-main);
    padding: 70px 8% 90px;
    text-align: center;
}

.book-shelves h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin-bottom: 50px;
}

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

.book-card {
    background: var(--bg-panel);
    border: 2px solid var(--border-soft);
    color: var(--text-main);
    text-decoration: none;

    padding: 35px 25px;
    min-height: 180px;
    border-radius: 18px;

    box-shadow: 0 12px 28px var(--shadow-soft);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.book-card:hover {
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 7px 7px 0 rgba(106, 196, 233, 0.55);
}

.book-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.book-card p {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 30px;
    justify-content: center;
    align-items: start;
}

.children-grid .book-cover {
    max-height: 330px;
    object-fit: cover;
}

/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {
    color: var(--text-main);
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.about-box {
    text-align: center;
    max-width: 850px;
    background: var(--bg-panel);
    border: 2px solid var(--border-soft);
    border-radius: 20px;
    padding: 55px;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.avatar-wrapper {
    position: relative;
    width: 160px;
    margin: 0 auto 35px;
}

.about-avatar {
    width: 160px;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--brand-blue);
    box-shadow: 0 8px 20px var(--shadow-soft);
}

.about-avatar-real {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    bottom: -6px;
    border: 3px solid var(--bg-cream);
    box-shadow: 0 4px 10px var(--shadow-soft);
}

.about-box h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin-bottom: 25px;
}

.about-box p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-soft);
}

.about-intro {
    font-family: "Cormorant Garamond", serif !important;
    font-style: italic;
    font-size: 1.5rem !important;
    color: var(--brand-blue-deep);
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    color: var(--text-main);
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.contact-box {
    text-align: center;
    max-width: 750px;
    width: 100%;
    background: var(--bg-panel);
    border: 2px solid var(--border-soft);
    border-radius: 20px;
    padding: 55px;
    box-shadow: 0 12px 28px var(--shadow-soft);
}

.contact-box h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin-bottom: 20px;
}

.contact-intro {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brand-blue-deep);
    margin-bottom: 35px;
}

.contact-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid var(--border-soft);
    color: var(--text-main);
    padding: 15px;
    font-family: Georgia, serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(106, 196, 233, 0.22);
}

.contact-form button {
    font-family: "Cinzel", serif;
    background: var(--accent-orange);
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 14px 32px;
    cursor: pointer;
    letter-spacing: 1.5px;
    box-shadow: 4px 4px 0 var(--brand-blue);
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-form button:hover {
    background: var(--accent-orange-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--brand-blue);
}

.contact-actions {
    text-align: center;
    margin-top: 30px;
}

.success-message {
    color: var(--brand-blue-deep);
    text-align: center;
    margin-bottom: 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
}

/* =========================================================
   BLOG PAGE
========================================================= */

.blog-page {
    color: var(--text-main);
    padding: 100px 8%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-page h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
}

.blog-intro {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brand-blue-deep);
    margin-bottom: 45px;
}

.blog-card {
    background: var(--bg-panel);
    border: 2px solid var(--border-soft);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 28px var(--shadow-soft);
    text-align: center;
}

.blog-date {
    color: var(--accent-orange);
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.blog-card h2 {
    font-family: "Playfair Display", serif;
}

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

.site-footer {
    background: var(--bg-main);
    color: var(--text-main);
    text-align: center;
    padding: 24px 20px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    border-top: 2px solid var(--ink);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {
    .shelf-grid {
        grid-template-columns: 1fr 1fr;
    }

    .navbar {
        padding: 16px 5%;
    }

    .nav-links {
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .navbar {
        position: relative;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        top: 54%;
    }

    .hero::after {
        background-size: 360px;
        opacity: 0.13;
    }

    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .about-box,
    .contact-box,
    .blog-card {
        padding: 35px 24px;
    }
}
