/* --- 1. VARIABLES --- */
:root {
    --bg-cream: #F8F6F4;
    --text-main: #6D645B;
    --accent-main: #8b3889;
    --accent-hover: #662964;
    --sage-muted: #B3C9B7;
    --white: #FFFFFF;
}

/* --- 2. BASE STYLES --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.btn-accent {
    display: inline-block;
    background-color: var(--accent-main);
    color: var(--white);
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

/* --- HEADER --- */
header {
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: block;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: block;
    margin: 10px 0;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1rem;
    display: block;
}

.active-nav {
    font-weight: bold;
    color: var(--accent-main) !important;
}

/* --- HERO --- */
.hero {
    padding: 30px 0 5px 0;
    text-align: center;
}

.hero p {
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.hero-logo-img {
    max-width: 195px;
    height: auto;
    margin-bottom: 0px;
    display: inline-block;
}

/* --- PILLARS --- */
.pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.pillar-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
}

/* --- SERVICES LAYOUT --- */
.services-section {
    padding: 20px 0 10px 0;
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-icon-item {
    text-align: center;
    padding: 10px;
}

/* IMAGE STYLE */
.service-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    display: inline-block;
}

.service-label {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* --- FORM --- */
.enquiry-section {
    padding: 10px 0 10px 0;
}

.form-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

input,
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-main);
}

/* --- NEW INFO SECTION & FLAG --- */
.info-text-section {
    padding: 30px 0 60px 0;
    text-align: center;
    margin-top: auto;
}

/* Flag resized to 256x48 */
.ack-flag-img {
    width: 256px;
    height: 48px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px auto;
    object-fit: cover;
}

.info-text-section p {
    max-width: 800px;
    margin: 0 auto;
}

/* --- RESOURCES GRID --- */
.resources-section {
    padding: 10px 0 40px 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    text-align: left;
}

@media (min-width: 768px) {
    .about-grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-text {
        flex: 1;
    }

    .about-image-container {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.resource-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.resource-card h3 {
    color: var(--accent-main);
    margin-bottom: 10px;
}

.resource-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: auto;
}

/* --- FOOTER --- */
footer {
    background: var(--text-main);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-details {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* --- DESKTOP OVERRIDES --- */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .container {
        max-width: 1100px;
    }

    header {
        text-align: center;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav ul li {
        display: inline-block;
        margin: 0 25px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .btn-accent {
        width: auto;
    }

    .pillars {
        flex-direction: row;
    }

    .pillar-card {
        flex: 1;
    }

    .service-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .form-box {
        padding: 40px;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CAROUSEL --- */
.carousel-section {
    padding: 20px 0;
    width: 100%;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-track-container {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 10px;
}

.carousel-thumb {
    width: calc((100% - 40px) / 5);
    /* 5 items with 10px gap (4 gaps = 40px) */
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.carousel-thumb:hover {
    opacity: 0.8;
}

.carousel-btn {
    background: var(--accent-main);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--accent-hover);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 960px;
    max-height: 780px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-thumb {
        width: calc((100% - 20px) / 3);
        /* 3 items on tablet */
    }
}

@media (max-width: 480px) {
    .carousel-thumb {
        width: calc((100% - 10px) / 2);
        /* 2 items on mobile */
    }
}