/**
 * ACSSW Base Styles
 * Resets, CSS Variables, Typography, Global Styles
 */

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

/* === CSS Variables === */
:root {
    /* Primary Colors */
    --coral: #E7717D;
    --brown: #7E685A;
    --green: #AFD275;
    --gray-blue: #C2CAD0;
    --taupe: #C2B9B0;
    
    /* Light Variations */
    --light-coral: #FFF5F6;
    --light-green: #F5FFF5;
    
    /* Gradients */
    --gradient-coral: linear-gradient(135deg, #E7717D 0%, #F9A8B0 100%);
    --gradient-green: linear-gradient(135deg, #AFD275 0%, #C5E090 100%);
    
    /* Typography Scale */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Font Sizes */
    --fs-hero: 56px;
    --fs-h2: 48px;
    --fs-h2-cta: 52px;
    --fs-h3: 24px;
    --fs-h4: 19px;
    --fs-nav: 14px;
    --fs-body: 16px;
    --fs-body-large: 21px;
    --fs-body-small: 15px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-2xl: 80px;
    --spacing-3xl: 120px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index Scale */
    --z-background: -1;
    --z-content: 1;
    --z-dropdown: 100;
    --z-header: 1000;
    --z-modal: 2000;
    --z-cursor: 9999;
}

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* === Base Typography === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--brown);
    line-height: 1.6;
    background: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px; /* Account for fixed header */
}

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--coral);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--fs-hero);
    line-height: 1.15;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.3;
}

h4 {
    font-size: var(--fs-h4);
    font-family: var(--font-primary);
    font-weight: 700;
}

/* === Paragraphs === */
p {
    font-size: var(--fs-body);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--brown);
}

p.lead {
    font-size: var(--fs-body-large);
    line-height: 1.9;
    color: var(--brown);
}

/* === Links === */
a {
    color: var(--coral);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--brown);
}

/* === Selection === */
::selection {
    background: var(--coral);
    color: white;
}

::-moz-selection {
    background: var(--coral);
    color: white;
}

/* === Lists === */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

/* === Images === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Focus Styles (Accessibility) === */
*:focus {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* === Utility Classes === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

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

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

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

/* === Responsive Typography === */
@media (max-width: 1024px) {
    :root {
        --fs-hero: 48px;
        --fs-h2: 40px;
        --fs-h2-cta: 44px;
        --fs-h3: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-hero: 36px;
        --fs-h2: 32px;
        --fs-h2-cta: 36px;
        --fs-h3: 20px;
        --fs-body-large: 18px;
    }
    
    html {
        font-size: 15px;
    }
    
    body {
        padding-top: 75px; /* Smaller header on mobile */
    }
}

@media (max-width: 480px) {
    :root {
        --fs-hero: 32px;
        --fs-h2: 28px;
        --fs-h2-cta: 32px;
    }
}
