/*
Theme Name: Lake Echo Guitar Works
Theme URI: https://lakeechoguitar.com
Author: Antigravity
Description: A professional, custom WordPress theme for a guitar repair shop, focusing on artisan craftsmanship.
Version: 1.0.0
Text Domain: lake-echo-guitar-theme
*/

:root {
    /* "Rustic-Premium" Palette */
    --primary-bg: #F9F6ED;      /* Warm Cream/Alabaster */
    --accent-footer: #22333B;   /* Deep Navy/Charcoal Slate */
    --text-headings: #1A1A1A;   /* Near Black */
    --text-body: #333333;
    --cta-btn: #2C3E50;         /* Dark Slate */
    --white: #ffffff;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--primary-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-headings);
    font-weight: 400;
    line-height: 1.2;
}

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

/* Header & Navigation */
.site-header {
    background: var(--primary-bg);
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.site-branding {
    margin-bottom: 20px;
}

.custom-logo {
    max-width: 166px;
    height: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-headings);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--mahogany);
}

/* Hero Section */
.main-hero {
    position: relative;
    height: 85vh;
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: flex-end; /* Align box to bottom */
    justify-content: flex-end; /* Align box to right */
    padding-bottom: 80px;
    padding-right: 80px;
}

.hero-overlap-box {
    background: var(--primary-bg);
    padding: 60px;
    max-width: 500px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.hero-overlap-box h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-overlap-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--cta-btn);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* Philosophy Section */
.philosophy-section {
    background: var(--accent-footer);
    color: var(--primary-bg);
    margin-top: 40px;
    padding: 80px 0;
    text-align: center;
    border-top: 4px solid var(--cta-btn);
    border-bottom: 4px solid var(--cta-btn);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-content p {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--primary-bg);
}

/* Features Section (CTAs) */
.cta-section {
    padding: 100px 0;
    background: var(--primary-bg);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.cta-icon {
    margin-bottom: 15px;
    color: var(--cta-btn);
    opacity: 0.6;
}

.cta-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-card p {
    font-size: 0.9rem;
    color: #666;
    max-width: 250px;
    margin: 0 auto;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cta-card {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--mahogany);
}

.cta-card:hover {
    transform: translateY(-10px);
}

/* Galleries */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
.site-footer {
    background: var(--accent-footer);
    color: var(--primary-bg);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-info {
    margin-bottom: 40px;
}

/* Main Content */
/* Page Content Refinements */
.site-main {
    padding: 80px 0;
}

/* Interior Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-body);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Contact Page */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0; /* Match sharp rustic feel or keep slightly rounded */
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-body);
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--cta-btn);
}

label {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-headings);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

.wpcf7-submit {
    background-color: var(--cta-btn);
    color: white !important;
    padding: 15px 40px;
    border: none;
    border-radius: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.wpcf7-submit:hover {
    background-color: var(--text-headings);
}

.contact-info h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-bg);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-info p {
    margin-bottom: 30px;
}

/* Blog Styles */
.entry-header {
    margin-bottom: 40px;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-thumbnail {
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-posts-grid .cta-card {
    text-align: left;
    padding: 20px;
}

.blog-posts-grid .post-thumbnail {
    margin-bottom: 20px;
}

.blog-posts-grid .post-thumbnail img {
    height: 200px;
    object-fit: cover;
}

.entry-summary {
    margin-bottom: 20px;
}

/* General Entry Content Spacing (for Privacy, Terms, Posts, etc) */
.entry-content {
    line-height: 1.8;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content p:first-child {
    margin-top: 0;
}

.entry-content ul,
.entry-content ol {
    margin-left: 20px;
}

.entry-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
/* Footer */
.site-footer {
    background: var(--accent-footer);
    color: var(--primary-bg);
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    color: var(--primary-bg);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.social-link.bluesky svg {
    width: 20px;
    height: auto;
}



.site-info {
    text-align: center;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 20px;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-navigation a {
    text-decoration: none;
    color: var(--primary-bg);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-navigation a:hover {
    opacity: 1;
}

/* Base Styles & Refinements */
.btn-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: var(--cta-btn);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--cta-btn);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--text-headings);
    border-color: var(--text-headings);
}

/* Mobile Menu Toggle (checkbox hack) */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

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

    .site-header {
        padding: 16px 0;
    }

    .site-branding {
        margin-bottom: 0;
    }

    .custom-logo {
        max-width: 93px;
    }

    .menu-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-headings);
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .hamburger {
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        top: 7px;
    }

    /* X animation when checked */
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger {
        background: transparent;
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Collapsed nav */
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .menu-toggle-checkbox:checked ~ .main-navigation {
        max-height: 500px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .main-navigation li {
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 12px 20px;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlap-box {
        padding: 25px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .hero-overlap-box h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-overlap-box p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .main-hero {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .philosophy-section {
        padding: 60px 20px;
    }

    .philosophy-content p {
        font-size: 1.4rem;
    }
}

/* --- Single Project Page & Slider --- */
.single-project-article {
    margin-bottom: 40px;
}

.project-content-wrapper {
    margin-bottom: 40px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-description h2,
.project-description h3,
.project-description h4,
.project-description h5,
.project-description h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-description ul,
.project-description ol {
    margin-bottom: 1.5rem;
    margin-left: 20px;
}

.project-testimonial {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid #b32d2e;
    padding-left: 20px;
    margin: 20px 0 40px 0;
    color: #555;
    background: #fdfdfd;
    padding: 20px;
}

.project-gallery-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.project-swiper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.project-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-swiper .slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-swiper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    cursor: pointer;
}

/* Caption overlaid at the bottom */
.project-swiper .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 20px;
    font-size: 0.95rem;
    text-align: center;
    /* ensure caption is above swiper pagination if needed or adjust pagination */
    z-index: 10;
}

/* Move swiper pagination down slightly or up so caption doesn't obscure it */
.project-swiper .swiper-pagination {
    bottom: 0px;
}

/* Project Index Page Updates */
.projects-grid .project-card {
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projects-grid .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.projects-grid .project-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.projects-grid .project-thumbnail-wrapper {
    width: 100%;
    height: 250px; /* fixed height for uniformity */
    overflow: hidden;
}

.projects-grid .project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.projects-grid .project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-info {
    padding: 20px 15px;
    text-align: center;
    background: var(--accent-footer);
    border-top: 4px solid var(--cta-btn);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info .project-title {
    margin: 0;
    font-size: 1.4rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary-bg);
}

.project-navigation {
    margin-top: 40px;
    text-align: center;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--text-headings);
}
