/* Andy Day Construction Inc. — Custom Styles */
/* Terracotta + Sand palette with serif typography */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --color-terracotta: #d4522a;
    --color-terracotta-dark: #c23f1f;
    --color-sand: #e2ad3c;
    --color-cream: #FAF7F2;
    --color-warm-gray-900: #413b35;
    --color-warm-gray-800: #4f4840;
    --color-warm-gray-700: #635a50;
    --color-warm-gray-600: #7c7063;
    --color-warm-gray-500: #9c9182;
    --color-warm-gray-400: #b8b0a1;
    --color-warm-gray-300: #d4cfc4;
    --color-warm-gray-200: #e8e4dc;
    --color-warm-gray-100: #f5f3ef;
    --color-warm-gray-50: #faf9f7;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px 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);
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-warm-gray-800);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   Section Styles
   ============================================ */
section {
    position: relative;
}

/* ============================================
   Decorative Elements
   ============================================ */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-terracotta);
    border: none;
    margin: 0 auto;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up { transform: translateY(30px); }
    .reveal-left { transform: translateX(-40px); }
    .reveal-right { transform: translateX(40px); }
    .reveal-scale { transform: scale(0.95); }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed,
    .reveal-scale.revealed {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .mobile-menu,
    #backToTop,
    .hamburger {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-magazine {
        min-height: auto;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.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;
}
