/**
 * Base Styles - Variables, Reset, Typography
 *
 * @package Yusuf-Theme
 * @since 1.0.0
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --color-primary: #02426b;
    --color-primary-light: #005c99;
    --color-secondary: #001b41;
    --color-background: #e9e5e6;
    --color-background-light: #f5f3f4;
    --color-text: #383838;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-accent-orange: #ff9d5a;
    --color-accent-green: #aad3ab;
    --color-accent-blue: #7fb8ff;
    --color-accent-pink: #ffb0b0;
    --color-accent-purple: #a78bfa;

    --font-heading: 'Julius Sans One', sans-serif;
    --font-body: 'Merriweather', Georgia, serif;
    --font-ui: 'Open Sans', Arial, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-primary);
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-family: var(--font-ui);
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-light {
    background-color: var(--color-background);
}

/* WordPress Core Block Styles */
.wp-block-group.alignfull {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.wp-block-cover {
    min-height: 400px;
}

.wp-block-columns {
    gap: var(--spacing-md);
}

/* Editor Styles */
.editor-styles-wrapper {
    font-family: var(--font-body);
    color: var(--color-text);
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}
