/* =====================================================
   BEEF MANIAC - SHARED PAGE STYLES
   Styles for Inside Our Kitchen, About Us, Contact, Recommend
   ===================================================== */

/* =====================================================
   PAGE HERO SECTIONS
   ===================================================== */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    text-align: center;
    color: var(--color-white);
}

.page-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.page-hero h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: var(--font-size-4xl);
    }
}

.page-hero p {
    font-size: var(--font-size-lg);
    color: var(--color-gray);
}

.page-hero .hero-subtitle {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-base);
}

/* Specific hero backgrounds */
.kitchen-hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/images/kitchen-bg.jpg');
    background-size: cover;
    background-position: center;
}

.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/about-bg.jpg');
    background-size: cover;
    background-position: center;
}

.contact-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 40vh;
}

.flavor-hero {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/flavor-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* =====================================================
   TWO COLUMN LAYOUT
   ===================================================== */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .two-column-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

.column-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .column-content h2 {
        font-size: var(--font-size-3xl);
    }
}

.column-content p {
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.certification-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.cert-badge {
    width: 80px;
    height: 80px;
}

/* =====================================================
   VIDEO GRID (Inside Our Kitchen)
   ===================================================== */
.facility-videos {
    background-color: var(--color-off-white);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.video-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-card .placeholder-image {
    border-radius: 0;
    min-height: 180px;
}

.video-card h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 700;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
}

.video-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* =====================================================
   QUALITY STANDARDS (Inside Our Kitchen)
   ===================================================== */
.standards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .standards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.standard-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--color-off-white);
    border-radius: var(--radius-lg);
}

.standard-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.standard-card h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.standard-card p {
    color: var(--color-gray-dark);
    font-size: var(--font-size-sm);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .cta-card h2 {
        font-size: var(--font-size-3xl);
    }
}

.cta-card p {
    margin-bottom: var(--spacing-lg);
}

.cta-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
}

@media (min-width: 480px) {
    .cta-product {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-product-info {
    text-align: left;
}

.cta-product-info h3 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.cta-product-info .price {
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-section .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* =====================================================
   STORY SECTION (About Us)
   ===================================================== */
.story-section {
    background-color: var(--color-white);
}

.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

@media (min-width: 768px) {
    .story-block {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .story-block.reverse {
        direction: rtl;
    }

    .story-block.reverse > * {
        direction: ltr;
    }
}

.story-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.story-content p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* =====================================================
   MISSION SECTION (About Us)
   ===================================================== */
.mission-section {
    background-color: var(--color-off-white);
}

.mission-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-card h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
}

.mission-statement {
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-xl);
}

.mission-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .mission-values {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.value p {
    color: var(--color-gray-dark);
    font-size: var(--font-size-sm);
}

/* =====================================================
   CONTACT MAIN SECTION (Form + Sidebar Layout)
   ===================================================== */
.contact-main-section {
    background-color: var(--color-off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-2xl);
    }
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: var(--spacing-2xl);
    }
}

.contact-form-wrapper h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-sidebar .contact-info-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-sidebar .contact-info-card .icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.contact-sidebar .contact-info-card h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.contact-sidebar .contact-info-card p {
    color: var(--color-gray-dark);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.contact-sidebar .contact-info-card p a {
    color: var(--color-gray-dark);
    transition: color var(--transition-fast);
}

.contact-sidebar .contact-info-card p a:hover {
    color: var(--color-primary);
}

/* Social Card in Sidebar */
.contact-sidebar .social-card h3 {
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.social-links-vertical .social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.social-links-vertical .social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.social-links-vertical .social-link svg {
    flex-shrink: 0;
}

/* Mobile: Show sidebar below form */
@media (max-width: 1023px) {
    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .contact-sidebar .social-card {
        grid-column: 1 / -1;
    }
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.conditional-fields {
    padding: var(--spacing-md);
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.form-note {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    background-color: var(--color-off-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.form-success {
    text-align: center;
    padding: var(--spacing-2xl);
}

.form-success svg {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.form-success h3 {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--color-gray-dark);
}

/* Social Follow */
.social-follow {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.social-follow h3 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.social-follow .social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .social-follow .social-links {
        flex-direction: row;
        justify-content: center;
    }
}

.social-follow .social-links a {
    color: var(--color-primary);
    font-weight: 600;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    background-color: var(--color-white);
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section {
    background-color: var(--color-off-white);
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder .placeholder-image {
    min-height: 400px;
}

/* =====================================================
   FLAVOR FORM SECTION
   ===================================================== */
.flavor-form-section {
    background-color: var(--color-off-white);
}

.flavor-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .flavor-form-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.flavor-form-wrapper {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .flavor-form-wrapper {
        padding: var(--spacing-2xl);
    }
}

.flavor-form-wrapper h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
}

.flavor-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-sm);
}

.sidebar-social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-social a {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
}

/* =====================================================
   FLAVOR CTA
   ===================================================== */
.flavor-cta .cta-products {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 480px) {
    .flavor-cta .cta-products {
        flex-direction: row;
    }
}

.cta-product-card {
    background-color: rgba(255,255,255,0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 200px;
}

.cta-product-card h4 {
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.cta-product-card p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.cta-product-card .price {
    font-weight: 700;
    font-size: var(--font-size-lg);
    display: block;
    margin-bottom: var(--spacing-sm);
}

/* =====================================================
   MOBILE OPTIMIZATIONS FOR PAGES
   ===================================================== */

/* Page hero mobile */
@media (max-width: 767px) {
    .page-hero {
        min-height: 40vh;
    }

    .page-hero h1 {
        font-size: var(--font-size-2xl);
    }

    .page-hero p {
        font-size: var(--font-size-base);
    }

    .page-hero .hero-content {
        padding: var(--spacing-lg);
    }
}

/* Two column grid mobile */
@media (max-width: 767px) {
    .two-column-grid {
        gap: var(--spacing-lg);
    }

    .column-content h2 {
        font-size: var(--font-size-xl);
    }

    /* Certification badges */
    .certification-badges {
        justify-content: center;
    }
}

/* Video grid mobile */
@media (max-width: 479px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Standards grid mobile */
@media (max-width: 767px) {
    .standards-grid {
        gap: var(--spacing-md);
    }

    .standard-card {
        padding: var(--spacing-lg);
    }

    .standard-icon {
        width: 60px;
        height: 60px;
    }
}

/* CTA section mobile */
@media (max-width: 767px) {
    .cta-card h2 {
        font-size: var(--font-size-xl);
    }

    .cta-product {
        padding: var(--spacing-md);
    }
}

/* Story section mobile */
@media (max-width: 767px) {
    .story-block {
        margin-bottom: var(--spacing-xl);
    }

    .story-content h2 {
        font-size: var(--font-size-xl);
    }
}

/* Mission section mobile */
@media (max-width: 767px) {
    .mission-card h2 {
        font-size: var(--font-size-2xl);
    }

    .mission-statement {
        font-size: var(--font-size-base);
    }

    .mission-values {
        gap: var(--spacing-md);
    }
}

/* Contact form mobile */
@media (max-width: 767px) {
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    .contact-form-wrapper h2 {
        font-size: var(--font-size-xl);
    }
}

/* Map section mobile */
@media (max-width: 767px) {
    .map-placeholder .placeholder-image {
        min-height: 250px;
    }
}

/* Flavor form mobile */
@media (max-width: 767px) {
    .flavor-form-wrapper {
        padding: var(--spacing-lg);
    }

    .flavor-form-wrapper h2 {
        font-size: var(--font-size-xl);
    }
}

/* Sidebar mobile */
@media (max-width: 1023px) {
    .flavor-sidebar {
        order: -1;
    }
}

/* Small mobile adjustments */
@media (max-width: 479px) {
    .cta-buttons {
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-product-card {
        min-width: unset;
    }
}
