/* ============================================
   TALEY DESIGN SYSTEM - BASE STYLES
   Variables, Reset, Typography
============================================ */

:root {
    /* Original Taley Brand Colors - RESTORED */
    --green-primary: #4CAF50;
    --green-light: #8BC34A;
    --green-dark: #2E7D32;
    --orange-accent: #FF5722;
    --orange-hover: #E64A19;
    --teal-accent: #009688;

    /* Neutrals - Sophisticated Slate (Web-Safe) */
    --white: #ffffff;
    --surface-bg: #FFFFFF;
    --app-bg: #fafafa;

    --gray-50: #fafafa;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-300: #d1d1d6;
    --gray-400: #86868b;
    --gray-500: #6e6e73;
    --gray-600: #48484a;
    --gray-700: #1d1d1f;
    /* Adjusted to match original darkest gray */
    --gray-800: #1d1d1f;
    --gray-900: #1d1d1f;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Effects - KEPT PREMIUM IMPROVEMENTS */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Modern Effects */
    --aurora-gradient: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    /* Clean fallback */
    --aurora-mesh: radial-gradient(at 0% 0%, hsla(110, 80%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(35, 100%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(110, 80%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(35, 100%, 92%, 1) 0px, transparent 50%);

    --text-gradient-premium: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-light) 100%);

    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 12px;

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* iOS-like Easing & Physics */
    --ease-ios: cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Natural, smooth */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy, reactive */

    --transition-bounce: var(--ease-spring);

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Standard Laptop (1280px - 1440px) - more breathing room */
@media (max-width: 1440px) {
    :root {
        --container-width: 1080px;
    }
}

/* Small Laptop / Tablet Landscape (1024px - 1280px) */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--app-bg);
    line-height: 1.6;
    /* Tighter than 1.7 for better readability on desktop */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    /* Tighten tracking for modern feel */
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ACCESSIBILITY - Focus States
============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--orange-accent);
    outline-offset: 2px;
}

.nav-links a:focus-visible,
.mobile-nav a:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================
   SKIP NAVIGATION (Accessibility)
============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 12px;
}