/* ============================================
   Acceptance 37 — Modern Bakery & Grocery Site
   Color Palette: Emerald Green + Cream
   ============================================ */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefdf8;
    --cream-100: #fdf9f0;
    --cream-200: #faf3e0;
    --cream-300: #f5e8c8;
    --cream-400: #edd9a0;
    --cream-500: #e2c478;
    
    --text-dark: #1a2e23;
    --text-medium: #3d5a47;
    --text-light: #6b8f78;
    --white: #ffffff;
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(16, 185, 129, 0.08);
    --shadow-md: 0 8px 30px rgba(16, 185, 129, 0.12);
    --shadow-lg: 0 20px 60px rgba(16, 185, 129, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--emerald-600);
    background: var(--emerald-500);
    color: var(--white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transform: rotate(-3deg);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-medium);
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--emerald-500);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--emerald-700);
    border: 2px solid var(--emerald-200);
}

.btn-secondary:hover {
    border-color: var(--emerald-400);
    background: var(--emerald-50);
}

.btn-light {
    background: var(--white);
    color: var(--emerald-700);
}

.btn-light:hover {
    background: var(--emerald-50);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--emerald-400);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--cream-400);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--emerald-300);
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--emerald-500);
    top: 20%;
    right: 20%;
    border-radius: var(--radius-md);
    transform: rotate(45deg);
    opacity: 0.08;
    animation: spin 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.badge {
    display: inline-block;
    background: var(--emerald-100);
    color: var(--emerald-700);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline .highlight {
    color: var(--emerald-600);
    position: relative;
}

.hero-headline .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--emerald-200);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-8deg);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

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

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--emerald-300);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* Floating Stat Cards */
.floating-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.float-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.float-card-1 { animation: floatCard 3s ease-in-out infinite; }
.float-card-2 { animation: floatCard 3s ease-in-out 0.5s infinite; }
.float-card-3 { animation: floatCard 3s ease-in-out 1s infinite; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100);
    border-radius: var(--radius-sm);
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--emerald-700);
}

.float-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: var(--emerald-100);
    color: var(--emerald-700);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

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

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

.about-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--emerald-500);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 120px 0;
    background: var(--cream-50);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600), var(--cream-400), var(--emerald-400));
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--emerald-500);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community {
    padding: 120px 0;
    background: var(--emerald-700);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.community::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--emerald-600);
    border-radius: 50%;
    opacity: 0.3;
}

.community::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--emerald-800);
    border-radius: 50%;
    opacity: 0.3;
}

.community-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.community .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--emerald-200);
}

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

.community-text {
    padding: 20px 0;
}

.community-text p {
    font-size: 1.1rem;
    color: var(--emerald-100);
    line-height: 1.8;
    margin-bottom: 20px;
}

.community-text .btn-light {
    margin-top: 16px;
}

.community-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comm-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comm-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.comm-img-1 {
    margin-top: 40px;
}

/* ============================================
   VISIT SECTION
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.visit-info {
    padding: 20px 0;
}

.visit-info .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateX(8px);
}

.info-icon {
    width: 52px;
    height: 52px;
    background: var(--emerald-100);
    color: var(--emerald-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-detail strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-detail p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.info-detail a {
    color: var(--emerald-600);
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-detail a:hover {
    color: var(--emerald-700);
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--emerald-900);
    color: var(--emerald-100);
    padding: 80px 0 0;
}

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

.footer-brand .logo-mark {
    background: var(--emerald-500);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--emerald-300);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--emerald-300);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 0.95rem;
    color: var(--emerald-300);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--emerald-400);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--emerald-400);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image-wrapper img {
        height: 500px;
    }
    
    .hero-image-wrapper::before {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .community-content,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 248, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .floating-cards {
        flex-direction: column;
    }
    
    .float-card {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .community-images {
        grid-template-columns: 1fr;
    }
    
    .comm-img-1 {
        margin-top: 0;
    }
    
    .visit-map {
        height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
