/* Base reset */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Colour palette, typography */

:root {
    --gold: #c9a34a;
    --gold-soft: #f5e6bf;
    --text-main: #111111;
    --text-muted: #555555;
    --border-light: #e6e6e6;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Sections scroll offset so headings aren't hidden under fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Global section spacing */
section {
    padding: 4rem 6vw;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.7rem;
}

.section-header p {
    color: var(--text-muted);
}

/* SCROLLBAR – modern browsers */

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #f5f5f5;
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a34a, #b48f3b);
    border-radius: 999px;
    border: 2px solid #f5f5f5; /* pill look */
}

::-webkit-scrollbar-thumb:hover {
    background: #b48f3b;
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 6vw 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* BACK TO TOP BUTTON */

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out,
        background 0.2s ease-out,
        color 0.2s ease-out;
    z-index: 999;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--gold);
    color: #111111;
}

.back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* ===========================
   RESPONSIVE BASE STYLES
   =========================== */

/* Medium screens – tablets, iPads, small laptops (≤ 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 3.5rem 6vw;
    }

    section {
        scroll-margin-top: 72px; /* navbar is effectively a bit smaller on these screens */
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .footer {
        padding-inline: 6vw;
    }
}


/* Phones / small tablets in portrait (≤ 720px) */
@media (max-width: 720px) {
    /* tighten side padding a bit */
    section {
        padding: 3rem 5vw;
        scroll-margin-top: 70px;
    }

    body {
        font-size: 0.98rem; /* slightly smaller base text for small screens */
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: 0.12em;
    }

    .footer {
        padding: 1rem 5vw 1.4rem;
        font-size: 0.8rem;
    }

    .back-to-top {
        width: 36px;
        height: 36px;
        right: 1.1rem;
        bottom: 1.1rem;
        font-size: 1rem;
    }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
    section {
        padding: 2.4rem 5vw;
        scroll-margin-top: 64px;
    }

    body {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .section-header h2 {
        font-size: 1.35rem;
        letter-spacing: 0.1em;
    }

    .footer {
        padding-top: 0.9rem;
        padding-bottom: 1.2rem;
    }
}

/* Very wide screens (≥ 1440px) – add breathing room on big desktops */
@media (min-width: 1440px) {
    section {
        padding-inline: 10vw;
    }

    .footer {
        padding-inline: 10vw;
    }
}