/* ============================================================================
   BOARD&FORM - Main Stylesheet
   ============================================================================

   TABLE OF CONTENTS:
   ------------------
   1. CUSTOM PROPERTIES (Colors, Fonts, Spacing) - Line 20
   2. RESET & BASE STYLES - Line 55
   3. LAYOUT UTILITIES - Line 85
   4. ANIMATIONS - Line 100
   5. HEADER - Line 115
   6. HERO SECTION - Line 155
   7. ABOUT SECTION - Line 210
   8. PRODUCTS SECTION (Future) - Line 250
   9. FOOTER - Line 310
   10. MOBILE RESPONSIVE - Line 345

   ============================================================================ */


/* ============================================================================
   1. CUSTOM PROPERTIES - Easy to customize colors, fonts, and spacing
   ============================================================================

   HOW TO CHANGE COLORS:
   - --color-text: Main text color (currently warm off-white)
   - --color-bg: Main background color (currently muted olive/brown)
   - --color-overlay: Tint over hero image (adjust last value 0.85 for opacity)

   HOW TO CHANGE FONTS:
   - --font-heading: Used for titles (Radley)
   - --font-body: Used for paragraphs (Montserrat)
   - To change fonts, also update the Google Fonts link in index.html

   ============================================================================ */

:root {
    /* Colors - Matching boardandform.com */
    --color-text: rgb(249, 245, 241);           /* Warm off-white text */
    --color-text-muted: rgba(249, 245, 241, 0.7); /* Lighter text for secondary info */
    --color-bg: hsl(46.67, 16.98%, 41.57%);     /* Main background - muted olive/brown */
    --color-bg-dark: hsl(46.67, 16.98%, 25%);   /* Darker background for footer */
    --color-overlay: hsla(46.67, 16.98%, 30%, 0.85); /* Hero image tint - adjust 0.85 for opacity */
    --color-border: rgba(249, 245, 241, 0.2);   /* Subtle borders */

    /* Typography */
    --font-heading: 'Radley', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 1.0625rem;  /* ~17px */
    --line-height: 1.8;

    /* Spacing - Used throughout for consistent margins/padding */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 6rem;     /* 96px */
    --space-xxl: 8rem;    /* 128px */

    /* Layout */
    --max-width: 1200px;      /* Maximum page width */
    --content-width: 640px;   /* Width for text content */
}


/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}


/* ============================================================================
   3. LAYOUT UTILITIES
   ============================================================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-narrow {
    max-width: var(--content-width);
}


/* ============================================================================
   4. ANIMATIONS - Fade-in effect for elements as they scroll into view
   ============================================================================

   HOW IT WORKS:
   - Add class "fade-in" to any element you want to animate
   - JavaScript adds "visible" class when element enters viewport
   - To disable animations, remove "fade-in" class from HTML elements

   ============================================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================================
   5. HEADER - Fixed navigation bar at top
   ============================================================================

   The header becomes slightly blurred/tinted when you scroll down.
   To change the logo text, edit it in index.html

   ============================================================================ */

.header {
    padding: var(--space-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

/* Scrolled state - added by JavaScript when page is scrolled */
.header.scrolled {
    background-color: var(--color-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text);
}


/* ============================================================================
   6. HERO SECTION - Full-screen background image with text overlay
   ============================================================================

   HOW TO CHANGE THE HERO IMAGE:
   - Replace images/hero.jpg with your new image
   - Or change the src in index.html to point to a different file

   HOW TO ADJUST THE TINT/OVERLAY:
   - Edit --color-overlay in Custom Properties above
   - Lower the last number (0.85) to show more of the image
   - Raise it to make text more readable

   ============================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background image container */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tint overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--color-overlay);

    /* ALTERNATIVE: Gradient overlay - uncomment below and comment out line above
    background: linear-gradient(
        to bottom,
        hsla(46.67, 16.98%, 25%, 0.7) 0%,
        hsla(46.67, 16.98%, 35%, 0.85) 50%,
        hsla(46.67, 16.98%, 30%, 0.9) 100%
    );
    */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);  /* Responsive: 48px to 96px */
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

/* Hero subtitle - currently unused but available if needed */
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text);
    opacity: 0.9;
}


/* ============================================================================
   7. ABOUT SECTION - Main body text content
   ============================================================================

   HOW TO EDIT TEXT:
   - Edit the paragraph content directly in index.html
   - Each <p> tag is a separate paragraph

   ============================================================================ */

.about {
    padding: var(--space-xxl) 0;
    background-color: var(--color-bg);
}

.about-content {
    margin: 0 auto;
}

.about-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-weight: 400;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

/* Callout - The emphasized text at the bottom */
.callout {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.callout-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--color-text);
}


/* ============================================================================
   8. PRODUCTS SECTION (Future Use)
   ============================================================================

   HOW TO ADD PRODUCTS:
   1. Uncomment the HTML in index.html (search for "PRODUCTS SECTION")
   2. Uncomment the CSS below
   3. Add your product images to the images/ folder
   4. Update the image src and text for each product card

   ============================================================================ */

/*
.products {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--color-bg);
    overflow: hidden;
}

.product-card img {
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info {
    padding: var(--space-sm);
}

.product-name {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.product-price {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
*/


/* ============================================================================
   9. FOOTER
   ============================================================================ */

.footer {
    padding: var(--space-lg) 0;
    background-color: var(--color-bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.footer-contact {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.footer-contact a {
    color: var(--color-text-muted);
}


/* ============================================================================
   10. MOBILE RESPONSIVE - Adjustments for smaller screens
   ============================================================================ */

/* Tablets and smaller */
@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-xxl: 5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --space-md: 1.5rem;
        --font-size-base: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .header-nav a {
        font-size: 0.75rem;
    }
}
