/* File: assets/css/style.css */
/* =========================================================
   Dudes & Divas Creche Layout
   Pastel background + card layout
   ========================================================= */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333333;
    /* WARM PASTEL BASE COLOUR – so the white in the logo stands out */
    background-color: #ffe8d6;
    position: relative;
}

/* Soft pastel abstract background – NO IMAGE FILE NEEDED */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 186, 207, 0.75) 0, transparent 55%),
        radial-gradient(circle at 100% 8%, rgba(174, 227, 255, 0.7) 0, transparent 55%),
        radial-gradient(circle at 18% 100%, rgba(255, 216, 168, 0.75) 0, transparent 55%),
        radial-gradient(circle at 85% 95%, rgba(174, 227, 255, 0.65) 0, transparent 55%);
    background-color: #ffe8d6;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

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

a {
    color: #ff7f9c;
    text-decoration: none;
}

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

p {
    margin: 0 0 0.75rem;
}

ul {
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #333333;
}

:root {
    --dd-primary: #ff9ab8;
    --dd-secondary: #aee3ff;
    --dd-accent: #ffd8a8;
    --dd-cream: #fffaf5;
    --dd-border-soft: rgba(255, 154, 184, 0.4);
    --dd-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --dd-radius-lg: 1.75rem;
    --dd-radius-md: 1.25rem;
}

/* ---------- Layout Containers ---------- */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section > .container,
.hero > .container,
.site-header > .container,
.site-footer > .container {
    position: relative;
    z-index: 1;
}

.section {
    padding: 2.25rem 1.25rem;
    position: relative;
    z-index: 1;
}

.section > .container {
    background: linear-gradient(
        145deg,
        rgba(255, 245, 252, 0.97),
        rgba(255, 227, 211, 0.97)
    );
    border-radius: var(--dd-radius-lg);
    box-shadow: var(--dd-shadow-soft);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(4px);
}

.section-alt > .container {
    background: linear-gradient(
        145deg,
        rgba(255, 245, 252, 0.97),
        rgba(219, 239, 255, 0.97)
    );
    border-radius: var(--dd-radius-lg);
    box-shadow: var(--dd-shadow-soft);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(4px);
}

/* Gallery wrapper (home) */
.gallery-section {
    padding: 2.25rem 0;
}

.gallery-section > .container {
    max-width: 100%;
    padding: 0 0 1.75rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.gallery-full-bleed {
    width: 100%;
    overflow-x: auto;
    padding: 0 1.25rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333333;
}

/* ---------- Header & Logo ---------- */

.site-header {
    padding: 2.1rem 1.25rem 1.1rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    background: linear-gradient(
        135deg,
        rgba(255, 223, 235, 0.98),
        rgba(214, 235, 255, 0.98)
    );
    border-radius: var(--dd-radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--dd-shadow-soft);
    backdrop-filter: blur(4px);
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.logo-image {
    display: block;
    max-width: 270px;
    height: auto;
    filter:
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.95))
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
}

.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffe5ef, #ff9ab8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.logo-initials {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
}

.site-title {
    font-size: 1.55rem;
    margin: 0 0 0.25rem;
    color: #444;
}

.site-tagline {
    margin: 0;
    font-size: 1.02rem;
    color: #666666;
}

.emis-line {
    margin: 0.1rem 0 0;
    font-size: 0.9rem;
    color: #888888;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 1rem;
}

.main-nav a {
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 154, 184, 0.38);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

/* Give the last nav item (Registration) proper breathing room */
.main-nav a:last-child {
    margin-right: 1.75rem;
}

/* Registration pill uses the same visual style as other links,
   but the extra margin makes it read as a “call to action” */
.main-nav .btn-outline {
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
}

.main-nav a:hover {
    background: #ffecf3;
    text-decoration: none;
}

.main-nav a.active {
    background: #ff9ab8;
    color: #ffffff;
}

/* ---------- Hero Section ---------- */

.hero {
    padding: 2.75rem 1.25rem 3rem;
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.25fr);
    gap: 2rem;
    align-items: stretch;
    padding: 2.5rem 2.25rem;
    border-radius: 2rem;
    box-shadow: var(--dd-shadow-soft);
    backdrop-filter: blur(6px);
    background: linear-gradient(
        135deg,
        rgba(255, 186, 207, 0.97) 0%,
        rgba(255, 245, 252, 0.96) 45%,
        rgba(174, 227, 255, 0.96) 100%
    );
    position: relative;
}

/* Burst-style registration badge */
.hero-star-badge {
    position: absolute;
    top: -32px;
    right: -24px;
    pointer-events: none;
    z-index: 3;
}

.hero-star-badge span {
    display: inline-block;
    padding: 1rem 1.4rem;
    background: radial-gradient(circle at 30% 20%, #fffbe2, #f7c843);
    color: #7a4a00;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.35;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transform: rotate(-10deg) scale(1.35);
    clip-path: polygon(
        50% 0%,
        63% 7%,
        77% 0%,
        83% 13%,
        98% 10%,
        93% 25%,
        100% 35%,
        88% 42%,
        95% 55%,
        83% 60%,
        88% 75%,
        73% 76%,
        75% 90%,
        60% 87%,
        55% 100%,
        45% 90%,
        30% 100%,
        30% 85%,
        15% 90%,
        18% 75%,
        5% 70%,
        12% 55%,
        0% 50%,
        10% 38%,
        2% 25%,
        15% 22%,
        10% 8%,
        25% 10%,
        30% 0%,
        40% 10%
    );
}

.hero-title {
    font-size: 2.3rem;
    margin-bottom: 0.9rem;
}

.hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1.05rem;
}

.hero-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-aside .info-card {
    margin: 0;
}

.hero-contact-heading {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.hero-contact-text {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ---------- Cards & Grids ---------- */

.pastel-card {
    background: linear-gradient(
        135deg,
        rgba(255, 245, 252, 0.97),
        rgba(255, 225, 237, 0.97)
    );
    border-radius: var(--dd-radius-md);
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--dd-border-soft);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.info-card {
    font-size: 1rem;
}

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

.check-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}

.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #4caf50;
    font-size: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.08s ease-out;
    text-decoration: none;
}

.btn-primary {
    background: #ff7f9c;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 127, 156, 0.45);
}

.btn-primary:hover {
    background: #ff6a8b;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 127, 156, 0.55);
}

.btn-secondary {
    background: #ffffff;
    color: #ff7f9c;
    border: 1px solid rgba(255, 127, 156, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: #ffecf3;
}

.btn-outline {
    background: transparent;
    color: #ff7f9c;
    border: 1px solid rgba(255, 127, 156, 0.7);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255, 236, 243, 0.95);
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

/* ---------- Forms ---------- */

.form-container {
    max-width: 960px;
    margin: 0 auto;
}

.dd-form {
    display: grid;
    gap: 1.75rem;
}

.form-section {
    background: linear-gradient(
        135deg,
        rgba(224, 244, 255, 0.97),
        rgba(255, 245, 252, 0.97)
    );
    border-radius: var(--dd-radius-md);
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(174, 227, 255, 0.5);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.form-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #555555;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 127, 156, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 127, 156, 0.18);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.small {
    font-size: 0.8rem;
    color: #777777;
}

.alert {
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e6f7e9;
    border: 1px solid #a0d9aa;
    color: #256430;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #b71c1c;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 1.75rem 1.25rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(
        135deg,
        rgba(255, 223, 235, 0.97),
        rgba(214, 235, 255, 0.97)
    );
    border-radius: var(--dd-radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-contact span {
    opacity: 0.7;
}

.footer-small,
.small-print {
    font-size: 0.8rem;
    color: #777777;
}

/* ---------- Gallery (home stripe + full) ---------- */

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.75rem 0.25rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #777777;
}

.gallery-controls input[type="range"] {
    width: 140px;
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 1.75rem 0.5rem;
}

.gallery-grid {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.gallery-grid--scroll {
    align-items: stretch;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* full gallery: tiles, no scroll strip */
.gallery-grid-full {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.gallery-item {
    flex: 0 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    display: block;
    height: 260px;
    width: auto;
    object-fit: cover;
    transition: transform 0.18s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-full img {
    height: 220px;
}

.gallery-grid--scroll::-webkit-scrollbar {
    height: 6px;
}
.gallery-grid--scroll::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-grid--scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

/* ---------- Lightbox ---------- */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 999;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    background: #000;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at 30% 20%, #ffe5ef, #ff9ab8);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out, transform 0.15s ease-out;
    z-index: 998;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: radial-gradient(circle at 30% 20%, #ffd7e8, #ff7f9c);
}

/* ---------- Subpage hero (terms / registration) ---------- */

.hero-subpage .container {
    background: linear-gradient(
        135deg,
        rgba(255, 223, 235, 0.97),
        rgba(214, 235, 255, 0.97)
    );
}

.hero-subpage h1 {
    font-size: 2rem;
}

.hero-subpage .lead {
    font-size: 1.02rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        align-self: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .main-nav a:last-child {
        margin-right: 0;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-aside {
        margin-top: 1.25rem;
    }

    .hero-star-badge {
        top: -24px;
        right: 10px;
    }

    .form-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .section > .container,
    .section-alt > .container,
    .hero-inner,
    .header-inner,
    .footer-inner {
        padding: 1.4rem 1.1rem;
        border-radius: 1.25rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-star-badge {
        top: -20px;
        right: 10px;
    }

    .gallery-item img {
        height: 200px;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
    }
}
