/* ================================
   BASE.CSS - BRAND IDENTITY
   Your core brand styles used across all pages
   ================================ */

/* ================================
   FONTS & TYPOGRAPHY
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@400;600;700&display=swap');

/* ================================
   CSS RESET
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #faf9f6;
    position: relative;
}

/* ================================
   BRAND COLORS (USE THESE EVERYWHERE)
   ================================ */
:root {
    /* Primary Browns */
    --brand-brown-dark: #8b4513;
    --brand-brown-medium: #a0522d;
    --brand-brown-light: #cd853f;
    
    /* Neutrals */
    --text-dark: #1a1a1a;
    --text-medium: #2c2c2c;
    --text-light: #4a4a4a;
    --text-lighter: #666;
    
    /* Backgrounds */
    --bg-cream: #faf9f6;
    --bg-parchment: #f5f1e8;
    --bg-light-parchment: #f8f6f0;
    --bg-white: rgba(255, 255, 255, 0.95);
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(139, 69, 19, 0.2);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* ================================
   TYPOGRAPHY STYLES
   ================================ */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--brand-brown-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-lighter);
    margin-bottom: 3rem;
    font-style: italic;
}

/* ================================
   BUTTONS - BRAND STYLE
   ================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button - Brown gradient */
.btn-primary {
    background: linear-gradient(45deg, var(--brand-brown-dark), var(--brand-brown-medium));
    color: white;
    border-color: var(--brand-brown-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--brand-brown-medium), var(--brand-brown-light));
    border-color: var(--brand-brown-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Secondary Button - Outlined */
.btn-secondary {
    background: transparent;
    color: var(--brand-brown-dark);
    border-color: var(--brand-brown-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--brand-brown-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* Outline Button - Alternative */
.btn-outline {
    background: transparent;
    color: var(--brand-brown-dark);
    border-color: var(--brand-brown-dark);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--brand-brown-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* ================================
   CONTAINER - MAX WIDTH WRAPPER
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   SCROLL REVEAL ANIMATIONS
   ================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   ACCESSIBILITY
   ================================ */
*:focus-visible {
    outline: 2px solid var(--brand-brown-dark);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================
   REDUCED MOTION
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   RESPONSIVE TYPOGRAPHY
   ================================ */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}