/* ============================================
   R & R Grocery — Style System
   Teal + Slate | Confident Corporate Grid
   ============================================ */

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

:root {
    --teal-900: #134E4A;
    --teal-800: #115E59;
    --teal-700: #0D9488;
    --teal-600: #0F766E;
    --teal-500: #14B8A6;
    --teal-100: #CCFBF1;
    --teal-50:  #F0FDFA;
    
    --slate-950: #050A13;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50:  #F8FAFC;
    
    --white: #FFFFFF;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.14);
    --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(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--slate-900);
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 12px;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 560px;
    line-height: 1.7;
}

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.lead-text {
    font-size: 1.15rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-700);
    color: var(--white);
    border-color: var(--teal-700);
}
.btn-primary:hover {
    background: var(--teal-800);
    border-color: var(--teal-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--slate-900);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--teal-800);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: all var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-mark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-700);
    letter-spacing: 0.02em;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-600);
    position: relative;
}

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

.nav-links a:hover { color: var(--teal-700); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--teal-700); }
.nav-links a.active::after { width: 100%; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 10, 19, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-overlay-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    padding: 100px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-overlay.open .mobile-overlay-inner {
    transform: translateX(0);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-700);
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.mobile-nav-link:hover { color: var(--teal-700); }

.mobile-call-btn {
    margin-top: 20px;
    text-align: center;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 19, 0.82) 0%,
        rgba(13, 78, 74, 0.70) 50%,
        rgba(5, 10, 19, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-100);
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid rgba(13, 148, 136, 0.4);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero-headline .accent {
    color: var(--teal-500);
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.hero-scroll svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* --- Value Bar --- */
.value-bar {
    background: var(--slate-900);
    padding: 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background var(--transition);
}

.value-item:last-child { border-right: none; }
.value-item:hover { background: rgba(255, 255, 255, 0.04); }

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-sm);
    color: var(--teal-500);
}

.value-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.value-item span {
    font-size: 0.85rem;
    color: var(--slate-400);
    line-height: 1.5;
}

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

.section.alt-bg {
    background: var(--slate-50);
}

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

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

.about-images {
    position: relative;
    height: 560px;
}

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

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

.img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%;
    height: 50%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

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

.img-accent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--teal-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.img-accent svg {
    width: 48px;
    height: 48px;
    color: var(--white);
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.feature-check svg {
    color: var(--teal-700);
    flex-shrink: 0;
}

/* --- Products --- */
.products { background: var(--slate-50); }

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-100);
}

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

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

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

.product-card h3 {
    font-size: 1.15rem;
    padding: 20px 24px 8px;
    color: var(--slate-900);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
    padding: 0 24px 24px;
}

/* --- Bakery --- */
.bakery { background: var(--white); }

.bakery-layout {
    gap: 64px;
    align-items: center;
}

.bakery-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bakery-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.bakery-list svg {
    color: var(--teal-700);
    flex-shrink: 0;
}

.bakery-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 520px;
}

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

.bakery-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.bakery-img-item.large {
    grid-row: 1 / 3;
    height: 100%;
}

.bakery-img-item.small { height: 100%; }

/* --- CTA --- */
.cta-section { padding: 80px 0; }

.cta-box {
    position: relative;
    background: var(--slate-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 80px 60px;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

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

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

.visit-info {
    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);
    border: 1px solid var(--slate-100);
    transition: all var(--transition);
}

.info-card:hover {
    border-color: var(--teal-100);
    box-shadow: var(--shadow-md);
}

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

.info-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.info-card a {
    color: var(--teal-700);
    font-weight: 500;
}

.info-card a:hover { color: var(--teal-600); }

.info-hint {
    font-size: 0.82rem;
    color: var(--slate-400);
    margin-top: 4px;
    display: block;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

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

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

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

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--slate-500);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--teal-500); }

.footer-links li,
.footer-contact li {
    color: var(--slate-500);
    font-size: 0.9rem;
}

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

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

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-2 { gap: 48px; }
    .about-images { height: 440px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .value-item { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
    .value-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .nav-links, .nav .btn { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .about-images { height: 360px; order: -1; }
    
    .product-grid { grid-template-columns: 1fr; }
    
    .bakery-img-grid { height: 360px; }
    
    .visit-grid { grid-template-columns: 1fr; }
    .visit-map { min-height: 280px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    
    .cta-box { padding: 48px 28px; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    
    .section { padding: 72px 0; }
    
    .value-grid { grid-template-columns: 1fr; }
    .value-item { border-right: none; }
    .value-item:nth-child(2) { border-right: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-badge { font-size: 0.7rem; }
    .img-accent { width: 72px; height: 72px; }
    .img-accent svg { width: 36px; height: 36px; }
}
