/* ============================================
   Crystal Supermarket — Styles
   Charcoal + Coral palette, confident corporate
   ============================================ */

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

:root {
    --charcoal: #2C3E50;
    --charcoal-dark: #1A252F;
    --charcoal-light: #3D5166;
    --coral: #E05A4B;
    --coral-dark: #C9483A;
    --coral-light: #F07868;
    --neutral-50: #F8F9FA;
    --neutral-100: #F1F3F5;
    --neutral-200: #E9ECEF;
    --neutral-300: #DEE2E6;
    --neutral-400: #ADB5BD;
    --neutral-600: #6C757D;
    --neutral-800: #343A40;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.10);
    --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.14);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    max-width: 600px;
    line-height: 1.7;
}

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

.text-center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.0);
    backdrop-filter: blur(0px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--charcoal);
}

.logo-light {
    color: var(--white) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: var(--transition);
}

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

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

.navbar.scrolled .nav-links a {
    color: var(--charcoal-light);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-cta {
    background: var(--coral) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

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

.nav-cta:hover {
    background: var(--coral-dark) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: var(--transition);
}

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

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

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

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

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--charcoal);
}

.navbar.scrolled .nav-toggle[aria-expanded="true"] .hamburger,
.navbar.scrolled .nav-toggle[aria-expanded="true"] .hamburger::before,
.navbar.scrolled .nav-toggle[aria-expanded="true"] .hamburger::after {
    background: var(--charcoal);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 37, 47, 0.88) 0%,
        rgba(44, 62, 80, 0.72) 50%,
        rgba(44, 62, 80, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Info Bar ---- */
.info-bar {
    background: var(--charcoal-dark);
    padding: 0;
}

.info-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.info-item:last-child {
    border-right: none;
}

.info-item:hover {
    background: rgba(255,255,255,0.04);
}

.info-icon {
    flex-shrink: 0;
    color: var(--coral);
}

.info-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 600;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--neutral-400);
}

/* ---- Section Spacing ---- */
.section {
    padding: 100px 0;
}

/* ---- About ---- */
.about {
    background: var(--white);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    padding: 16px 0;
}

.about-features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.feature-check {
    flex-shrink: 0;
}

/* ---- Departments ---- */
.departments {
    background: var(--neutral-50);
}

.section-header {
    margin-bottom: 64px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dept-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

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

.dept-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-card:hover .dept-card-img img {
    transform: scale(1.08);
}

.dept-card-content {
    padding: 24px;
}

.dept-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.dept-card p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.65;
}

/* ---- Bakery Spotlight ---- */
.bakery-spotlight {
    background: var(--charcoal);
    padding: 100px 0;
}

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

.bakery-spotlight .section-eyebrow {
    color: var(--coral-light);
}

.bakery-spotlight .section-title {
    color: var(--white);
}

.bakery-spotlight .lead {
    color: rgba(255,255,255,0.7);
}

.bakery-list {
    margin: 24px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bakery-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.btn-bakery-call {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-bakery-call:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
}

.bakery-images {
    position: relative;
    height: 700px;
}

.bakery-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.bakery-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bakery-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--charcoal);
}

.bakery-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Visit ---- */
.visit {
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.visit-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 20px;
}

.visit-detail-icon {
    flex-shrink: 0;
    color: var(--coral);
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--coral);
    font-weight: 600;
    transition: var(--transition);
}

.visit-detail a:hover {
    color: var(--coral-dark);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 450px;
    box-shadow: var(--shadow-lg);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* ---- Footer ---- */
.footer {
    background: var(--charcoal-dark);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    color: var(--neutral-400);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--neutral-400);
    transition: var(--transition);
}

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

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--neutral-400);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-contact a {
    color: var(--coral-light);
    font-weight: 600;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--neutral-600);
}

/* ---- Scroll Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Mobile Responsive ---- */
@media (max-width: 1024px) {
    .about-grid,
    .bakery-grid,
    .visit-grid {
        gap: 40px;
    }
    
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bakery-images {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--charcoal-dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 1.1rem;
    }
    
    .nav-links a:hover {
        color: var(--white) !important;
    }
    
    .nav-cta {
        margin-top: 8px;
    }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .info-bar-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 20px 24px;
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .section {
        padding: 72px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrap img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .dept-grid {
        grid-template-columns: 1fr;
    }
    
    .bakery-grid {
        grid-template-columns: 1fr;
    }
    
    .bakery-images {
        height: 400px;
        order: -1;
    }
    
    .bakery-img-main {
        width: 80%;
        height: 75%;
    }
    
    .bakery-img-secondary {
        width: 60%;
        height: 50%;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .visit-map iframe {
        min-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .bakery-images {
        height: 300px;
    }
}
