/* Crockettsburg By The Lake - Main Stylesheet */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ============================================
       COLOR CUSTOMIZATION
       Change these values to customize the site colors
       ============================================ */
    
    /* Header background - currently deep blue gradient */
    --header-bg-start: #db9e6996;     /* Change this for header start color */
    --header-bg-end: #24786f;       /* Change this for header end color */
    
    /* Accent color - used for links, buttons, highlights */
    --primary-color: #ffc400;       /* Gold/orange accent */
    --accent: #1f61a8ab;              /* Same as primary */
    
    /* Other colors */
    --secondary-color: #00008c;     /* Deep blue for hover states */
    --text-dark: #131212;          /* Main text color */
    --text-light: #faf9f5;         /* White text */
    --background: #faf9f5;         /* Page background */
    --highlight: rgba(196, 119, 18, 0.1); /* Highlight box background */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    text-indent: 2em;
}

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

a:hover {
    color: var(--secondary-color);
}

em {
    font-style: italic;
}

strong {
    font-weight: 700;
}

ul, ol {
    margin-left: 2em;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-image: linear-gradient(#db9e6996, #24786f), url('gallery/_lakeside_park_with_a_modern_family.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-branding {
    text-align: center;
    margin-bottom: 1rem;
}

.site-branding h5 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
}

.site-branding a {
    color: var(--accent);
}

.main-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.main-logo h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-logo h4 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.25rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .main-logo h1 {
        font-size: 2rem;
    }
    
    .main-logo h4 {
        font-size: 1.25rem;
    }
}

/* Navigation */
.main-nav {
    text-align: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--accent);
    color: var(--text-light);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 0.75rem;
        text-align: center;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.highlight {
    background-color: var(--highlight);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    margin-bottom: 1.5rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Simple Slideshow */
.slideshow {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slideshow-container {
    position: relative;
    height: 500px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

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

.slideshow-controls {
    text-align: center;
    margin-top: 1rem;
}

.slideshow-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

.slideshow-btn:hover {
    background: var(--secondary-color);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #f5f5f5;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid var(--accent);
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 150px;
    }
}

.site-footer p {
    margin: 0.5rem 0;
    text-indent: 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .site-main {
        padding: 0 1rem;
    }
    
    .slideshow-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 60px;
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-image {
        max-height: 80vh;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
    }
}
