/* ========================================
   Panama Food Market — Stylesheet
   Palette: Midnight Blue + Mint
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #1a2a3a;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5dade2;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0a2540;
    margin-bottom: 1rem;
}

.section-subtitle,
.visit-desc,
.about-text,
.contact-desc {
    font-size: 1.05rem;
    color: #4a6274;
    line-height: 1.75;
    max-width: 60ch;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #5dade2;
    color: #0a2540;
    border: 2px solid #5dade2;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #3dbee0;
    border-color: #3dbee0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: #a9dfcf;
    border: 2px solid #a9dfcf;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: #a9dfcf;
    color: #0a2540;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: #0a2540;
    border: 2px solid #0a2540;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background-color: #0a2540;
    color: #f8fafc;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(93, 173, 226, 0.15);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.logo-icon {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #f8fafc;
    background-color: rgba(93, 173, 226, 0.15);
}

.nav-cta {
    background-color: #5dade2 !important;
    color: #0a2540 !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background-color: #3dbee0 !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: rgba(93, 173, 226, 0.15);
}

.hamburger {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background-color: #f8fafc;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background-color: #f8fafc;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

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

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 767px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(10, 37, 64, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid rgba(93, 173, 226, 0.15);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

    .main-nav a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0a2540;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(93, 173, 226, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 10% 90%, rgba(169, 223, 207, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5dade2;
    background-color: rgba(93, 173, 226, 0.12);
    border: 1px solid rgba(93, 173, 226, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #f8fafc;
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-headline em {
    color: #5dade2;
    font-style: normal;
}

.hero-subhead {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.65);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-stack {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero-img-primary {
    width: 100%;
}

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

.hero-img-secondary {
    position: absolute;
    bottom: -2rem;
    left: -1rem;
    width: 55%;
    border: 4px solid #0a2540;
    border-radius: 12px;
    overflow: hidden;
}

.hero-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    top: -1rem;
    right: -0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #a9dfcf;
    color: #0a2540;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-headline {
        margin-left: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-trust {
        justify-content: flex-start;
    }

    .hero-img-primary img {
        height: 520px;
    }

    .hero-img-secondary img {
        height: 240px;
    }
}

/* ---------- Products ---------- */
.products {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.06);
    border: 1px solid rgba(10, 37, 64, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
}

.product-img {
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-body {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.925rem;
    color: #4a6274;
    line-height: 1.65;
}

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

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

/* ---------- About ---------- */
.about {
    padding: 6rem 0;
    background-color: #ffffff;
}

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

.about-visual {
    position: relative;
}

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(10, 37, 64, 0.12);
}

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

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    width: 55%;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.15);
}

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

.about-stat-box {
    position: absolute;
    top: -1rem;
    right: 1rem;
    background-color: #0a2540;
    color: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.25);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5dade2;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(248, 250, 252, 0.7);
}

.about-content .section-title {
    margin-bottom: 1.25rem;
}

.about-text {
    margin-bottom: 1rem;
}

.about-text:last-of-type {
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: rgba(93, 173, 226, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 0.2rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: #4a6274;
    line-height: 1.6;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .about-image-main img {
        height: 480px;
    }

    .about-image-accent img {
        height: 220px;
    }
}

/* ---------- Visit ---------- */
.visit {
    padding: 6rem 0;
    background-color: #0a2540;
    color: #f8fafc;
}

.visit .section-eyebrow {
    color: #5dade2;
}

.visit .section-title {
    color: #f8fafc;
}

.visit .visit-desc {
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 2rem;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(93, 173, 226, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5dade2;
    margin-bottom: 0.2rem;
}

.detail-value {
    display: block;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.9);
    line-height: 1.6;
}

.detail-value a {
    color: rgba(248, 250, 252, 0.9);
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: #5dade2;
}

.visit-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.visit-map {
    border-radius: 16px;
    overflow: hidden;
}

.map-placeholder {
    background: linear-gradient(135deg, #1a5276 0%, #0a2540 100%);
    border: 2px solid rgba(93, 173, 226, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: #f8fafc;
}

.map-placeholder svg {
    margin: 0 auto 1rem;
    opacity: 0.8;
}

.map-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #a9dfcf;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5dade2;
    transition: color 0.2s ease;
}

.map-link:hover {
    color: #a9dfcf;
}

@media (min-width: 900px) {
    .visit-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---------- Contact ---------- */
.contact {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-desc {
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1a2a3a;
}

.method-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(93, 173, 226, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
    border: 1px solid rgba(10, 37, 64, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1a2a3a;
    background-color: #f8fafc;
    border: 1.5px solid rgba(10, 37, 64, 0.12);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5dade2;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background-color: rgba(26, 122, 90, 0.08);
    border: 1px solid rgba(26, 122, 90, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a5a3e;
}

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

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: #071a2d;
    color: rgba(248, 250, 252, 0.65);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.logo-footer .logo-text {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5dade2;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.6);
    transition: color 0.2s ease;
    padding: 0.2rem 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #f8fafc;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-phone a {
    color: #5dade2;
    transition: color 0.2s ease;
}

.footer-phone a:hover {
    color: #a9dfcf;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 250, 252, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.4);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
