/**
 * North La Jolla - Additional Theme Styles
 *
 * Extends style.css with component-specific styles
 *
 * @package NorthLaJolla
 * @since 1.0.0
 */

/* ==========================================================================
   Hero Image Fallback (when no video)
   ========================================================================== */

.hero__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */

.site-header__menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-cream);
    transition: all var(--transition-base);
}

/* Hamburger animation when open */
.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-navy);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-menu--open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    text-align: center;
    padding: var(--space-8);
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mobile-menu__list a {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--color-cream);
    transition: color var(--transition-fast);
}

.mobile-menu__list a:hover {
    color: var(--color-coral);
}

.mobile-menu__social {
    margin-top: var(--space-12);
}

.mobile-menu__zip {
    margin-top: var(--space-8);
    color: var(--color-coral);
    letter-spacing: 0.15em;
    font-size: var(--text-sm);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-header__menu-toggle {
        display: block;
    }

    .site-header__nav {
        display: none;
    }
}

/* ==========================================================================
   Intro Section
   ========================================================================== */

.intro {
    padding: var(--space-32) var(--space-6);
    background-color: var(--color-cream-light);
}

.intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.intro__eyebrow {
    color: var(--color-coral);
    margin-bottom: var(--space-4);
}

.intro__title {
    color: var(--color-navy);
    margin-bottom: var(--space-6);
}

.intro__text {
    color: var(--color-gray-600);
    font-size: var(--text-lg);
    line-height: 1.8;
    max-width: 500px;
}

.intro__zip {
    margin-top: var(--space-8);
    color: var(--color-coral);
    letter-spacing: 0.15em;
    font-size: var(--text-sm);
}

.intro__image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro__image-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/4;
}

@media (max-width: 900px) {
    .intro__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .intro__content {
        text-align: center;
    }

    .intro__text {
        margin-inline: auto;
    }
}

/* ==========================================================================
   Coming Soon / Product Tease Section
   ========================================================================== */

.coming-soon {
    padding: var(--space-32) var(--space-6);
    background-color: var(--color-cream);
    text-align: center;
}

.coming-soon__eyebrow {
    color: var(--color-coral);
    margin-bottom: var(--space-4);
}

.coming-soon__title {
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

.coming-soon__text {
    color: var(--color-gray-600);
    max-width: 500px;
    margin-inline: auto;
}

.coming-soon__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-16);
    max-width: 1000px;
    margin-inline: auto;
}

.product-tease {
    text-align: center;
}

.product-tease__image {
    aspect-ratio: 3/4;
    background: linear-gradient(180deg, var(--color-gray-200) 0%, var(--color-gray-300) 100%);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform var(--transition-base);
}

.product-tease:hover .product-tease__image {
    transform: translateY(-5px);
}

.product-tease__title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: var(--space-1);
}

.product-tease__price {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

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

    .coming-soon__grid .product-tease:last-child {
        grid-column: span 2;
        max-width: 300px;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .coming-soon__grid {
        grid-template-columns: 1fr;
    }

    .coming-soon__grid .product-tease:last-child {
        grid-column: span 1;
        max-width: none;
    }
}

/* ==========================================================================
   Email Capture Enhancements
   ========================================================================== */

.email-capture__message {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    min-height: 24px;
}

.email-capture__message--success {
    color: #4ade80;
}

.email-capture__message--error {
    color: var(--color-coral);
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--color-coral);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Post Card Styles (for blog/index)
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-8);
    padding: var(--space-16) var(--space-6);
}

.post-card {
    background: var(--color-white);
    overflow: hidden;
}

.post-card__image img {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: var(--space-6);
}

.post-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.post-card__title a:hover {
    color: var(--color-coral);
}

.post-card__excerpt {
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-coral);
    transition: gap var(--transition-fast);
}

.post-card__link:hover {
    gap: var(--space-3);
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding: var(--space-32) var(--space-6);
}

.no-results h1 {
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

.no-results p {
    color: var(--color-gray-500);
}

/* ==========================================================================
   Page Hero (for interior pages)
   ========================================================================== */

.page-hero {
    padding: clamp(6rem, 12vh, 10rem) var(--space-6) clamp(4rem, 8vh, 6rem);
    background-color: var(--color-navy);
    text-align: center;
}

.page-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-cream);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.page-hero__subtitle {
    font-size: var(--text-base);
    color: var(--color-gray-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
    padding: clamp(4rem, 10vh, 8rem) var(--space-6) clamp(6rem, 12vh, 10rem);
    background-color: var(--color-cream-light);
}

.faq-section__inner {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--color-gray-200);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item__question {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-navy);
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

.faq-item__answer {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--color-gray-600);
    line-height: 1.9;
}

.faq-item__answer p {
    margin-bottom: var(--space-6);
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
    padding: clamp(4rem, 10vh, 8rem) var(--space-6) clamp(6rem, 12vh, 10rem);
    background-color: var(--color-cream-light);
}

.about-section__inner {
    max-width: 720px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: var(--space-20);
}

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

.about-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--color-navy);
    margin-bottom: var(--space-8);
    line-height: 1.2;
}

.about-block p {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--color-gray-600);
    line-height: 1.9;
    margin-bottom: var(--space-6);
}

.about-block p:last-child {
    margin-bottom: 0;
}

.about-cta {
    margin-top: var(--space-24);
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

.about-cta p {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-navy);
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.about-cta .btn {
    margin-top: var(--space-8);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    padding: clamp(4rem, 10vh, 8rem) var(--space-6) clamp(6rem, 12vh, 10rem);
    background-color: var(--color-cream-light);
}

.contact-section__inner {
    max-width: 720px;
    margin: 0 auto;
}

.contact-block {
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--color-gray-200);
}

.contact-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    color: var(--color-navy);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.contact-block p {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--color-gray-600);
    line-height: 1.9;
    margin-bottom: var(--space-4);
}

.contact-block p:last-child {
    margin-bottom: 0;
}

.contact-email {
    margin-top: var(--space-6);
}

.contact-email a {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-coral);
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

.contact-address {
    font-style: normal;
    color: var(--color-gray-500);
    line-height: 1.8;
}

/* ==========================================================================
   Info Section (Shipping, Returns, etc.)
   ========================================================================== */

.info-section {
    padding: clamp(4rem, 10vh, 8rem) var(--space-6) clamp(6rem, 12vh, 10rem);
    background-color: var(--color-cream-light);
}

.info-section__inner {
    max-width: 720px;
    margin: 0 auto;
}

.info-block {
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--color-gray-200);
}

.info-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    color: var(--color-navy);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.info-block p {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--color-gray-600);
    line-height: 1.9;
    margin-bottom: var(--space-6);
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block a {
    color: var(--color-coral);
}

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

.info-list {
    list-style: none;
    margin: var(--space-8) 0;
    padding: 0;
}

.info-list li {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-5);
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list--numbered {
    counter-reset: list-counter;
}

.info-list--numbered li {
    counter-increment: list-counter;
    padding-left: var(--space-10);
    position: relative;
    display: block;
}

.info-list--numbered li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: var(--color-coral);
    font-weight: 600;
    font-size: 1.125rem;
}

.info-list strong {
    color: var(--color-navy);
    font-weight: 600;
    min-width: 140px;
}
