/* Shared layout + theme — 7livelykids.com (used with page-specific sheets) */

:root {
    --theme-teal-dark: #11998e;
    --theme-teal-light: #38ef7d;
    --color-dad: #2c3e50;
    --color-mom: #e84393;
    --color-audrey: #ff7675;
    --color-noah: #fdcb6e;
    --color-claire: #ffeaa7;
    --color-oliver: #55efc4;
    --color-ella: #00b894;
    --color-ruth: #74b9ff;
    --color-emmett: #a29bfe;
    --orange: #e67e22;
    --bg-color: #f4f7f6;
    --text-main: #2d3436;
}

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

body {
    font-family: "Nunito", sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(#dfe6e9 15%, transparent 16%), radial-gradient(#dfe6e9 15%, transparent 16%);
    background-size: 30px 30px;
    background-position:
        0 0,
        15px 15px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--theme-teal-light), var(--theme-teal-dark));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

body.page-home header {
    padding: 2rem 1rem 6rem 1rem;
}

body.page-about header {
    padding: 1.5rem 1rem 5rem 1rem;
}

body.page-workshop header,
body.page-hub header {
    padding: 1.5rem 1rem 4rem 1rem;
}

nav {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

nav a:hover {
    background: rgba(0, 0, 0, 0.4);
}

body.page-home header h1 {
    margin: 0 auto 1rem auto;
    width: fit-content;
    animation: float 3s ease-in-out infinite;
}

body.page-about header h1 {
    font-family: "Fredoka", sans-serif;
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

body.page-workshop header h1,
body.page-hub header h1 {
    font-family: "Fredoka", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.tagline {
    opacity: 0.95;
    margin-bottom: 1rem;
}

body.page-about .tagline {
    font-size: 1.2rem;
}

body.page-workshop .tagline,
body.page-hub .tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(158% + 1.3px);
    height: 50px;
}

body.page-home .wave-container svg,
body.page-about .wave-container svg {
    height: 60px;
}

.wave-container .shape-fill {
    fill: var(--bg-color);
}

main {
    flex: 1;
    padding: 2rem;
    width: 100%;
    z-index: 2;
}

body.page-home main {
    max-width: 1200px;
    margin: -3rem auto 0 auto;
}

body.page-about main {
    max-width: 900px;
    margin: -3rem auto 0 auto;
}

body.page-workshop main,
body.page-hub main {
    max-width: 1000px;
    margin: 0 auto;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

footer {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 0.9rem;
    margin-top: auto;
    background: white;
    border-top: 1px solid #e1e1e1;
}

footer a {
    color: var(--theme-teal-dark);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
    color: var(--theme-teal-light);
}
