/* =============================================
   Castillo Deli Mini Market — Styles
   Teal + Slate Grey | Clean Minimalist
   ============================================= */

/* ---------- 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, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: #0d9488;
    color: #ffffff;
    font-size: 14px;
    z-index: 200;
    border-radius: 4px;
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Page Loader ---------- */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-line {
    width: 48px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: #2dd4bf;
    animation: loaderSlide 0.9s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ---------- Header ---------- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-abbr {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px 8px;
    letter-spacing: 0.04em;
    transition: border-color 0.3s ease;
}

.logo-wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo:hover .logo-abbr {
    border-color: #2dd4bf;
}

/* Light logo variant for footer */
.logo-light .logo-abbr {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.logo-light .logo-wordmark {
    color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2dd4bf;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.70) 50%,
        rgba(15, 23, 42, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 24px;
    text-align: center;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(42px, 8vw, 88px);
    color: #ffffff;
    margin-bottom: 28px;
    line-height: 1.05;
}

.hero-headline br {
    display: none;
}

.hero-subheadline {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-indicator span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: #2dd4bf;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #0d9488;
    color: #ffffff;
    border: 1px solid #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}

/* ---------- Section shared ---------- */
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    color: #0f172a;
    margin-bottom: 28px;
    line-height: 1.1;
}

/* ---------- Specialties ---------- */
.specialties {
    padding: 120px 0;
    background: #ffffff;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 64px;
}

.specialty-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.card-visual {
    overflow: hidden;
    border-radius: 4px;
}

.card-visual img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.specialty-card:hover .card-visual img {
    transform: scale(1.04);
}

.card-body {
    padding: 28px 4px;
}

.card-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 12px;
}

.card-title {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: #f8fafc;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

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

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

.about-body {
    font-size: 16px;
    color: #334155;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 40px;
    font-weight: 300;
    color: #0d9488;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* ---------- Market ---------- */
.market {
    padding: 120px 0;
    background: #0f172a;
}

.market-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.market-text .section-title {
    color: #ffffff;
}

.market-text .section-label {
    color: #2dd4bf;
}

.market-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    max-width: 440px;
}

.market-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-icon {
    color: #2dd4bf;
    flex-shrink: 0;
}

.category-name {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ---------- Hours ---------- */
.hours {
    padding: 120px 0;
    background: #ffffff;
}

.hours-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.hours-address {
    margin-bottom: 40px;
}

.address-line,
.address-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #334155;
    margin-bottom: 12px;
}

.address-icon {
    color: #0d9488;
    flex-shrink: 0;
}

.phone-link {
    color: #0d9488;
    border-bottom: 1px solid rgba(13, 148, 136, 0.3);
    transition: border-color 0.3s ease;
}

.phone-link:hover {
    border-color: #0d9488;
}

.phone-icon {
    margin-right: 4px;
}

.hours-table {
    border-top: 1px solid #e2e8f0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hours-day {
    font-size: 15px;
    color: #0f172a;
    font-weight: 400;
}

.hours-time {
    font-size: 15px;
    color: #475569;
}

/* Map */
.hours-map {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.map-link {
    display: block;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-link:hover img {
    opacity: 0.7;
}

.map-pin {
    color: #2dd4bf;
}

.map-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

/* ---------- Contact ---------- */
.contact {
    padding: 120px 0;
    background: #f8fafc;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text .section-title {
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 8px;
}

.form-optional {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #94a3b8;
}

.form-input {
    width: 100%;
    padding: 14px 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #0f172a;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

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

.form-input:focus {
    border-color: #0d9488;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    color: #166534;
    font-size: 14px;
}

.form-success svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* ---------- Footer ---------- */
#site-footer {
    background: #0f172a;
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    max-width: 320px;
    margin-top: 20px;
}

.footer-info p,
.footer-hours p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
    margin-bottom: 4px;
}

.footer-info strong,
.footer-hours strong {
    color: rgba(255, 255, 255, 0.85);
}

.footer-info a {
    color: #2dd4bf;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .specialty-grid {
        gap: 36px;
    }

    .about-layout {
        gap: 48px;
    }

    .market-inner {
        gap: 48px;
    }

    .hours-layout {
        gap: 48px;
    }

    .contact-inner {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
        z-index: 110;
    }

    .nav-list {
        position: fixed;
        inset: 0;
        top: 64px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 32px 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-list.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 15px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
    }

    /* Hero */
    .hero-headline br {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Specialties */
    .specialties {
        padding: 80px 0;
    }

    .specialty-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-visual img {
        height: 240px;
    }

    /* About */
    .about {
        padding: 80px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 360px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: none;
    }

    /* Market */
    .market {
        padding: 80px 0;
    }

    .market-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .market-categories {
        grid-template-columns: 1fr;
    }

    /* Hours */
    .hours {
        padding: 80px 0;
    }

    .hours-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .map-link img {
        height: 280px;
    }

    /* Contact */
    .contact {
        padding: 80px 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 24px;
    }
}
