/*
Theme Name: Red Truck Seafood
Theme URI: https://redtruckseafood.net
Author: Matt Raynor
Description: Custom WordPress theme for Red Truck Seafood — local, day boat caught, wild seafood from Hampton Bays, NY.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: redtruckseafood
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c2c2c;
    background-color: #faf8f5;
    line-height: 1.6;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a2634;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Primary - The Red Truck */
    --red: #b92a2a;
    --red-dark: #8c1f1f;
    --red-light: #d44a4a;

    /* Secondary - Ocean */
    --ocean: #1a4a6e;
    --ocean-dark: #0f2d44;
    --ocean-light: #2a6a9e;

    /* Accent - Sunset */
    --sunset: #d4883a;
    --sunset-light: #e8a95c;
    --sunset-glow: #f0c27a;

    /* Neutrals */
    --sand: #faf8f5;
    --sand-dark: #e8e2d8;
    --driftwood: #8c7e6e;
    --charcoal: #2c2c2c;
    --white: #ffffff;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-width: 1200px;
    --container-padding: 0 1.5rem;
}

/* ============================================
   LAYOUT
   ============================================ */

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

.section {
    padding: var(--section-padding);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

.site-logo-text span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ocean);
    margin-top: -2px;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 45, 68, 0.5) 0%,
        rgba(15, 45, 68, 0.3) 50%,
        rgba(15, 45, 68, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--sunset-glow);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
}

.btn-sunset {
    background: var(--sunset);
    color: var(--white);
    border-color: var(--sunset);
}

.btn-sunset:hover {
    background: var(--sunset-light);
    border-color: var(--sunset-light);
}

/* ============================================
   INFO BAR (Hours/Location strip)
   ============================================ */

.info-bar {
    background: var(--ocean);
    color: var(--white);
    padding: 1rem 0;
}

.info-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.info-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-bar-item strong {
    color: var(--sunset-glow);
}

/* ============================================
   FRESH CATCH / WHAT'S AVAILABLE
   ============================================ */

.fresh-catch {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--driftwood);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--red);
    margin: 1rem auto 0;
}

/* Fish Grid */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.fish-card {
    background: var(--sand);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.fish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.fish-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--sand-dark);
}

.fish-card-body {
    padding: 1rem;
}

.fish-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.fish-card-body .season {
    font-size: 0.85rem;
    color: var(--driftwood);
}

.fish-card-body .availability {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.availability.in-stock {
    background: #e6f4ea;
    color: #1a7a3a;
}

.availability.seasonal {
    background: #fff3e0;
    color: #b36b00;
}

.availability.sourced {
    background: #e8eaf6;
    color: #3949ab;
}

/* Fish Detail Modal */
.fish-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.fish-modal-overlay.active {
    display: flex;
}

.fish-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.fish-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.fish-modal-body {
    padding: 2rem;
}

.fish-modal-body h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fish-modal-body .fish-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fish-meta-item {
    font-size: 0.9rem;
}

.fish-meta-item strong {
    color: var(--ocean);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.fish-modal-body .description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.fish-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ABOUT SECTION (Homepage preview)
   ============================================ */

.about-preview {
    background: var(--sand);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.location-section {
    background: var(--ocean-dark);
    color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.location-detail {
    margin-bottom: 1.5rem;
}

.location-detail h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sunset-glow);
    margin-bottom: 0.5rem;
}

.location-detail p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.location-detail a {
    color: var(--sunset-light);
    transition: color 0.3s ease;
}

.location-detail a:hover {
    color: var(--sunset-glow);
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   INSTAGRAM FEED SECTION
   ============================================ */

.instagram-section {
    background: var(--white);
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 2rem;
}

.instagram-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.instagram-grid img:hover {
    opacity: 0.85;
}

.instagram-handle {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ocean);
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */

.page-hero {
    background: var(--ocean-dark);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 900px;
}

/* ============================================
   FAQ PAGE
   ============================================ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--sand-dark);
    padding: 1.5rem 0;
}

.faq-question {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ocean);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-block {
    margin-bottom: 2rem;
}

.contact-info-block h3 {
    font-size: 1.1rem;
    color: var(--ocean);
    margin-bottom: 0.5rem;
}

.contact-info-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.contact-info-block a {
    color: var(--red);
    font-weight: 600;
}

.contact-info-block a:hover {
    text-decoration: underline;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--charcoal);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sand-dark);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ocean);
}

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

/* ============================================
   HOW TO ORDER PAGE
   ============================================ */

.order-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.order-step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-step-number {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.order-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.order-step p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-about h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sunset-glow);
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    .header-inner {
        height: 65px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .info-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .fish-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .fish-grid {
        grid-template-columns: 1fr;
    }

    .order-steps {
        grid-template-columns: 1fr;
    }
}
