/* ===================================
   CDL Academy of Laredo - Custom Styles
   Classic & Elegant Design System
   =================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette */
    --color-forest-50: #f2f7f0;
    --color-forest-100: #e3edde;
    --color-forest-200: #c6dbbd;
    --color-forest-300: #9dbe94;
    --color-forest-400: #6d9b68;
    --color-forest-500: #4a7a47;
    --color-forest-600: #386037;
    --color-forest-700: #2d4c2d;
    --color-forest-800: #253d26;
    --color-forest-900: #1f321f;
    --color-forest-950: #101a0e;
    
    --color-cream-50: #faf8f4;
    --color-cream-100: #f5f0e8;
    --color-cream-200: #ebe4d6;
    --color-cream-300: #ddd3c0;
    
    --color-ink-900: #1a1a1a;
    --color-ink-800: #2a2a2a;
    --color-ink-700: #3a3a3a;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-ink-900);
    background-color: var(--color-cream-50);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-ink-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-family: var(--font-sans);
    line-height: 1.7;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

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

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-forest-500);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-forest-200);
    color: var(--color-ink-900);
}

/* ===================================
   Utility Classes
   =================================== */

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Section spacing */
.section {
    padding: var(--space-4xl) 0;
}

/* Text utilities */
.text-serif {
    font-family: var(--font-serif);
}

.text-display {
    font-family: var(--font-display);
}

.text-sans {
    font-family: var(--font-sans);
}

/* Letter spacing */
.tracking-wider {
    letter-spacing: 0.1em;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* ===================================
   Component Styles
   =================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-forest-700);
    color: var(--color-cream-50);
}

.btn-primary:hover {
    background-color: var(--color-forest-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-ink-900);
    border: 1px solid var(--color-ink-900);
}

.btn-secondary:hover {
    background-color: var(--color-ink-900);
    color: var(--color-cream-50);
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Form elements */
.input {
    width: 100%;
    padding: var(--space-md) 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-ink-900);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-cream-200);
    transition: border-color var(--transition-base);
}

.input:focus {
    outline: none;
    border-bottom-color: var(--color-forest-500);
}

.input::placeholder {
    color: #bbb;
}

/* Decorative elements */
.accent-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-forest-400);
}

.accent-line-center {
    margin: 0 auto;
}

/* Corner decoration */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--color-forest-300);
    border-style: solid;
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
    border-width: 2px 0 0 2px;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    border-width: 0 2px 2px 0;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }
    
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-4xl: 3rem;
        --space-3xl: 2rem;
    }
    
    html {
        font-size: 14px;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===================================
   Accessibility
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-forest-500: #2d5a2d;
        --color-cream-50: #ffffff;
    }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
    .backdrop-blur-sm {
        backdrop-filter: none;
    }
}
