/* -------------------------------------------------------------------------
   1. SELF-HOSTED FONTS (INTER)
------------------------------------------------------------------------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-display: swap;
}

/* -------------------------------------------------------------------------
   2. GLOBAL CSS VARIABLES (THEME SETTINGS)
------------------------------------------------------------------------- */

:root {
    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Colors */
    --primary: #1a1a1a;
    --accent: #FFC300;
    --bg-light: #f5f5f7;
    --text-main: #333333;
    --text-muted: #6e6e73;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(10px);
    
    /* Layout */
    --radius-lg: 12px;
    --section-gap: 100px;
}

/* -------------------------------------------------------------------------
   3. MODERN RESET & GLOBAL BASE
------------------------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   4. TYPOGRAPHY
------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
   5. LINKS
------------------------------------------------------------------------- */

a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* -------------------------------------------------------------------------
   6. MEDIA
------------------------------------------------------------------------- */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------------------------------
   7. UTILITIES
------------------------------------------------------------------------- */

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Section spacing */
.section {
    padding: var(--section-gap) 20px;
}

/* Buttons (Global System) */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    
}

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 10px 25px rgba(255, 195, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 195, 0, 0.4);
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
}


/* -------------------------------------------------------------------------
   ACCESSIBILITY UTILITIES
   ------------------------------------------------------------------------- */

/* Visually hide but keep available to assistive tech. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip link — visible on keyboard focus.
 *
 * IMPORTANT: when the skip link also carries .screen-reader-text in
 * the HTML (header.php uses both for belt-and-braces), the
 * .screen-reader-text rule's `!important` width/height/position
 * collapse the link to 1×1px. Without overriding those on :focus
 * the link stays invisible even when tabbed to — Lighthouse flags
 * this as "Skip links are not focusable".
 *
 * The selector below specifically wins over .screen-reader-text by
 * being more specific AND by replaying the !important. */
.skip-link {
    background: #1a1a1a;
    color: #fff;
    left: 50%;
    padding: 12px 24px;
    position: absolute;
    top: -100px;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
    font-weight: 600;
}
.skip-link:focus,
.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
    /* Override screen-reader-text hiding when focused. */
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    position: absolute !important;
    top: 0 !important;
    outline: 3px solid #ffc300;
    outline-offset: 2px;
}

/* Respect users who've requested reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus indicator — visible to keyboard users only. */
:focus-visible {
    outline: 3px solid #ffc300;
    outline-offset: 2px;
}
