/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background-color: #103275;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Quick actions bar under the nav */
.quick-actions-bar {
    background: rgba(16, 50, 117, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.quick-actions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}

.btn-call { background-color: #28a745; }
.btn-ig { background-color: #a80216; }
.btn-apple { background-color: #000000; }
.btn-google { background-color: #103275; }

.btn-call:hover { filter: brightness(1.05); }
.btn-ig:hover { filter: brightness(1.05); }

.quick-actions .meta {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quick-actions .hours, .quick-actions .address {
    color: #f5f5f5;
    opacity: 0.95;
    font-weight: 600;
    white-space: nowrap; /* keep on one line for typical laptop widths */
}

/* Allow truncation if space is tight, but prefer single line */
/* removed meta-line truncation to revert design */

@media (max-width: 640px) {
    .quick-actions {
        gap: 0.5rem;
    }
    .quick-actions .meta {
        width: 100%;
        order: 4;
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .quick-actions .hours, .quick-actions .address {
        font-weight: 500;
        opacity: 0.9;
    }
}

/* Hide extended parts of labels on narrower widths to save space */
/* removed label-wide-only rule to revert design */

nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    margin-right: 1.5rem;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #103275;
        padding: 1rem 0;
        text-align: center;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
    }
    
    /* Ensure the theme switch stays visible */
    .theme-switch-wrapper {
        margin-left: 0;
    }
    
    /* Fix Quick Actions Overflow */
    .quick-actions .meta {
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .quick-actions .hours, .quick-actions .address {
        white-space: normal;
    }
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
}

/* Background hero with translucent storefront + stacked photo cards */
.hero-bg {
    position: relative;
    padding: 6rem 1.25rem 4rem;
    background-image:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../images/hero-bg.jpg');
    background-size: 100% 100%, 120% 120%; /* 20% zoom */
    background-position: center, 12% 60%;
    background-repeat: no-repeat;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.hero-card {
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.hero-card h1 { margin: 0 0 1rem; }
.hero-card p { margin: 0 0 1.5rem; font-size: 1.25rem; }

.hero-photos {
    display: grid;
    gap: 1rem;
}

.photo-card {
    border-radius: 12px;
    height: 220px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.photo-card.interior {
    background: url('../images/gun_store_interior.jpg') center / 110% 110% no-repeat; /* 10% zoom */
}

.photo-card.handguns {
    background: url('../images/handguns_in_display_case.jpg') center / cover no-repeat;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Improve hero text readability and placement */
.hero .hero-text { display: none; }

@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-photos { grid-template-columns: 1fr 1fr; }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .hero-bg { padding: 5rem 1rem 3rem; }
    .photo-card { height: 180px; }
    .hero-text h1 {
        font-size: 2.25rem;
    }
    .hero-text p {
        font-size: 1.125rem;
    }
}

.btn {
    background-color: #a80216;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

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

/* Contact */
.contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card, .map-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dark-mode .contact-card, .dark-mode .map-card {
    background: #1d1f23;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.contact-card h3 { margin-top: 0; }
.contact-card p { margin: 0.25rem 0; }
.contact-card .address-line { font-weight: 700; }

.contact-actions {
    display: flex;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1.25rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.hours-table th, .hours-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
}
.hours-table tr:nth-child(odd) {
    background: rgba(0,0,0,0.03);
}
.dark-mode .hours-table tr:nth-child(odd) {
    background: rgba(255,255,255,0.04);
}
.hours-table .closed td, .hours-table .closed th { color: #a80216; font-weight: 700; }

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .contact .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* FFL */
.ffl .ffl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.ffl .callout {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(16,50,117,0.08), rgba(168,2,22,0.06));
    border: 1px solid rgba(0,0,0,0.08);
}
.dark-mode .ffl .callout {
    background: linear-gradient(135deg, rgba(16,50,117,0.25), rgba(168,2,22,0.18));
    border-color: rgba(255,255,255,0.1);
}
.ffl .callout h3 { margin: 0 0 0.25rem; }
.ffl .callout .price { font-size: 1.75rem; font-weight: 800; margin: 0; }
.ffl .callout .price span { font-size: 0.95rem; font-weight: 600; opacity: 0.8; }

.ffl .content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.ffl .info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ffl .info-card.alt { background: #f9fafc; }
.dark-mode .ffl .info-card { background: #1d1f23; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.dark-mode .ffl .info-card.alt { background: #17191c; }

.ffl .checklist {
    margin: 0.5rem 0 1rem;
}
.ffl .checklist li { margin: 0.25rem 0; }

.ffl .inline-actions, .ffl .mini-actions {
    display: flex;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1.25rem;
}

.ffl .map-embed.small iframe { height: 320px; }

@media (max-width: 900px) {
    .ffl .content-grid { grid-template-columns: 1fr; }
}

/* Services */
.services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.dark-mode .service-card {
    background: #1d1f23;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.service-card h3 {
    margin-top: 0;
}

.service-card .btn {
    display: inline-block;
    margin-top: 0.75rem;
}

/* Reviews */
.reviews .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .reviews .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: white;
    border-left: 4px solid #f5ca00;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    margin-bottom: 0.75rem;
}

.review-stars span {
    display: inline-block;
    color: #f5ca00;
    font-size: 1.05rem;
    line-height: 1;
}

/* Only style the reviewer line, not the star spans */
.review-card > span {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.dark-mode .review-card > span {
    color: #b5b5b5;
}

.dark-mode .review-card {
    background: #1d1f23;
    border-left-color: #a80216;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Instagram embeds */
.instagram .ig-embeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.75rem; /* even more separation between posts */
}

.instagram .ig-note {
    margin: 0 0 1rem; /* place above grid with bottom space */
    color: #666;
}

/* Add padding inside each embedded post wrapper */
.instagram blockquote.instagram-media {
    padding: 0 !important; /* reset inner padding; we pad the card */
    margin: 0 !important; /* remove default IG margins */
    background: transparent !important;
    max-width: 100% !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Optional: give embeds a subtle card look in light/dark modes */
.instagram .ig-embeds > .ig-card {
    background: white;
    border-radius: 12px;
    padding: 20px; /* clear space around the embed */
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    overflow: hidden; /* ensure rounded corners with IG content */
}
.dark-mode .instagram .ig-embeds > .ig-card {
    background: #1d1f23;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Add a subtle separator by increasing outer margin inside grid cells */
.instagram .ig-card { 
    border: 1px solid rgba(0,0,0,0.06);
}
.dark-mode .instagram .ig-card {
    border-color: rgba(255,255,255,0.08);
}

/* About Us */
.faq .faq-intro {
    margin: 0.5rem 0 1.25rem;
    color: #666;
}

.faq .faq-toc {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}
.faq .faq-toc h3 { margin: 0 0 0.5rem; }
.faq .faq-toc ul { margin: 0; padding-left: 1rem; columns: 2; column-gap: 2rem; }
.faq .faq-toc li { margin: 0.25rem 0; break-inside: avoid; }
.faq .faq-toc a { text-decoration: none; color: #103275; }

.dark-mode .faq .faq-toc { background: #1d1f23; border-color: rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.dark-mode .faq .faq-toc a { color: #f4f4f4; }

.faq .faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq details.faq-item {
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}

.faq details summary {
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-weight: 700;
    list-style: none;
}
.faq details summary::-webkit-details-marker { display: none; }

.faq .faq-content { padding: 0 1rem 1rem; }

.dark-mode .faq details.faq-item { background: #1d1f23; border-color: rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.dark-mode .faq .faq-intro { color: #b5b5b5; }
.about-us-content {
    padding: 2rem;
}

.about-us-flex {
    display: flex;
    gap: 2rem;
}

.about-us-text {
    flex: 2;
}

.about-us-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-us-images img {
    width: 100%;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .about-us-flex {
        flex-direction: column;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #f4f4f4;
}

.dark-mode header {
    background-color: #1a1a1a;
}

.dark-mode .btn {
    background-color: #f5ca00;
    color: #121212;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #a80216;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider .sun, .slider .moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.slider .sun {
    left: 6px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.slider .moon {
    right: 6px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

input:checked + .slider .sun {
    opacity: 0;
}

input:checked + .slider .moon {
    opacity: 1;
}

/* Footer */
footer {
    background-color: #103275;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}