/* ==========================================================================
   Sonic Selva - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   Local Font Faces
   ========================================================================== */

/* Porter Sans Block */
@font-face {
    font-family: 'Porter Sans Block';
    src: url('/resources/fonts/porter_sans_block/porter-sans-inline-block-webfont.woff') format('woff'),
         url('/resources/fonts/porter_sans_block/porter-sans-inline-block-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Post No Bills Colombo */
@font-face {
    font-family: 'Post No Bills Colombo';
    src: url('/resources/fonts/post-no-bills-colombo/postnobillscolombo-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Color Palette & Typography
   ========================================================================== */
:root {
    /* Dark Greens */
    --color-dark-green: #0e120a;
    --color-forest-green: #758268;
    --color-moss-green: #46503c;

    /* Text Colors */
    --color-text-light: #f1fee0;
    --color-text-light-90: rgba(241, 254, 224, 0.9);
    --color-text-light-77: rgba(241, 254, 224, 0.77);
    --color-text-light-32: rgba(241, 254, 224, 0.32);
    --color-text-dark: #464640;

    /* Accent Colors */
    --color-orange: #ff8800;
    --color-orange-amber: #ee9127;
    --color-deep-red: #7e191b;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-off-white: #f9f9f2;
    --color-gray: #7a7a7a;

    /* Typography - Font Families */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Jura', sans-serif;
    --font-display: 'Porter Sans Block', sans-serif;
    --font-accent: 'Post No Bills Colombo', sans-serif;

    /* Typography - Font Weights */
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius (from Figma) */
    --corner-medium: 12px;
    --corner-extra-large: 28px;

    /* Typography Scale */
    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 18px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 40px;
    --text-4xl: 48px;
    --text-5xl: 64px;
}

/* Global Styles
   ========================================================================== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Offset scroll targets to account for fixed navbar */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
    color: var(--color-text-light);
    background-color: var(--color-dark-green);
}

/* Lock scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Blur page content when mobile menu is open */
body.menu-open > *:not(.navbar-wrapper) {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
}

/* Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 48px);
}
