/*
Theme Name: WPD Malaysia
Theme URI: https://worldphilosophyday.com
Description: Official custom WordPress theme for World Philosophy Day Malaysia.
Author: World Philosophical Forum Malaysia
Version: 1.0.0
Text Domain: wpd-malaysia
*/

/* =========================================================
   WORLD PHILOSOPHY DAY MALAYSIA
   Main Theme Styles
   ========================================================= */


/* ---------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------- */

:root {

    /* Brand Colours */
    --wpd-navy: #0B2748;
    --wpd-navy-dark: #071B33;
    --wpd-navy-light: #163A63;

    --wpd-gold: #B9923B;
    --wpd-gold-light: #D3B46A;
    --wpd-gold-dark: #8A6925;

    --wpd-ivory: #F8F5EE;
    --wpd-cream: #EFE9DC;

    --wpd-white: #FFFFFF;
    --wpd-charcoal: #202020;
    --wpd-grey: #6B6B6B;

    /* Layout */
    --wpd-container: 1280px;
    --wpd-content: 760px;

    /* Spacing */
    --wpd-section-space: 120px;

    /* Borders */
    --wpd-border: rgba(11, 39, 72, 0.15);

}


/* ---------------------------------------------------------
   2. BASE
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wpd-ivory);
    color: var(--wpd-charcoal);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

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


/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--wpd-navy);
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 7rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

p {
    margin-top: 0;
}


/* ---------------------------------------------------------
   4. GLOBAL CONTAINER
   --------------------------------------------------------- */

.wpd-container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}


/* Global layout reset */

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

body {
    overflow-x: hidden;
}

main,
.wpd-main {
    margin: 0 !important;
    padding: 0;
}


/* Mobile container */

@media (max-width: 767px) {

    .wpd-container {
        width: min(100% - 40px, 1440px);
    }

}

.wpd-content {
    max-width: var(--wpd-content);
}


/* ---------------------------------------------------------
   5. GLOBAL SECTION
   --------------------------------------------------------- */

.wpd-section {
    padding-block: var(--wpd-section-space);
}


/* ---------------------------------------------------------
   6. EYEBROW / SECTION LABEL
   --------------------------------------------------------- */

.wpd-eyebrow {
    display: block;
    margin-bottom: 1rem;

    color: var(--wpd-gold-dark);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------- */

.wpd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    padding: 0.95rem 1.6rem;

    border: 1px solid transparent;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;

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

.wpd-button:hover {
    transform: translateY(-2px);
}

.wpd-button--gold {
    background: var(--wpd-gold);
    color: var(--wpd-white);
}

.wpd-button--gold:hover {
    background: var(--wpd-gold-dark);
    color: var(--wpd-white);
}

.wpd-button--outline {
    border-color: var(--wpd-navy);
    color: var(--wpd-navy);
}

.wpd-button--outline:hover {
    background: var(--wpd-navy);
    color: var(--wpd-white);
}


/* ---------------------------------------------------------
   8. ACCESSIBILITY
   --------------------------------------------------------- */

:focus-visible {
    outline: 3px solid var(--wpd-gold);
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   9. TABLET
   --------------------------------------------------------- */

@media (max-width: 1024px) {

    :root {
        --wpd-section-space: 90px;
    }

}

/* ---------------------------------------------------------
   10. MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    :root {
        --wpd-section-space: 64px;
    }


}