/* ============================================
   Revamped Coffee Co. — Custom Styles
   ============================================ */

:root {
    --color-terracotta: #B85843;
    --color-terracotta-dark: #9A4533;
    --color-terracotta-light: #D4816E;
    --color-sand: #FDF6EE;
    --color-sand-dark: #F5E6D3;
    --color-cream: #FFF9F3;
    --color-warm-gray: #6B5B50;
    --color-warm-gray-light: #9A8A7E;
    --color-dark: #3D2E26;
    --color-dark-light: #5C4A3E;
    --color-white: #FFFFFF;
    
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px rgba(61, 46, 38, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 46, 38, 0.10);
    --shadow-lg: 0 8px 40px rgba(61, 46, 38, 0.14);
    --shadow-xl: 0 16px 60px rgba(61, 46, 38, 0.18);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-sand);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}

.btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 238, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 88, 67, 0.08);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 246, 238, 0.95);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-warm-gray);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--color-terracotta);
    background: rgba(184, 88, 67, 0.08);
}

.nav-links .btn-primary {
    color: var(--color-white);
}

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

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding-top: 72px;
    background: var(--color-sand);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 60px 0 0;
}

.hero-content {
    padding-right: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 88, 67, 0.10);
    color: var(--color-terracotta);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-headline em {
    color: var(--color-terracotta);
    font-style: italic;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-warm-gray);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-warm-gray-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 500/620;
}

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

.hero-img-accent {
    position: absolute;
    bottom: 60px;
    left: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 280px;
    aspect-ratio: 1;
    border: 6px solid var(--color-sand);
}

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

.hero-float-card {
    position: absolute;
    top: 40px;
    right: -20px;
    background: var(--color-white);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    z-index: 2;
}

.hero-wave {
    margin-top: -1px;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   Section Shared
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-warm-gray);
    line-height: 1.8;
}

/* ============================================
   Menu Section
   ============================================ */
.menu-section {
    background: var(--color-sand);
    padding: 100px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.menu-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.menu-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.menu-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.menu-card-body > p {
    color: var(--color-warm-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-list li {
    background: var(--color-sand);
    color: var(--color-warm-gray);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.menu-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(184, 88, 67, 0.07);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    color: var(--color-terracotta-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--color-cream);
    padding: 100px 0;
}

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

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

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

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 60%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--color-cream);
}

.about-img-1 img,
.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 42%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.about-badge-number {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

.about-badge-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--color-warm-gray);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.value-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(184, 88, 67, 0.10);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-item h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.value-item p {
    color: var(--color-warm-gray-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    background: var(--color-sand);
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    aspect-ratio: 6/4;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
    aspect-ratio: 3/4;
}

.gallery-item--wide {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
    aspect-ratio: 6/2.5;
}

/* ============================================
   Visit Section
   ============================================ */
.visit-section {
    background: var(--color-cream);
    padding: 100px 0;
}

.visit-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}

.visit-info .section-tag {
    text-align: left;
}

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

.visit-desc {
    color: var(--color-warm-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

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

.contact-card-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: rgba(184, 88, 67, 0.10);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--color-warm-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--color-terracotta);
    font-weight: 700;
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--color-terracotta-dark);
}

.map-placeholder {
    background: var(--color-sand-dark);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.map-placeholder p {
    color: var(--color-warm-gray);
    font-size: 1rem;
    font-weight: 600;
}

.map-placeholder .btn {
    margin-top: 8px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--color-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 88, 67, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 88, 67, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

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

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

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.footer-nav a:hover {
    color: var(--color-terracotta-light);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Scroll Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        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) {
    .hero-container {
        gap: 32px;
    }
    
    .hero-img-accent {
        left: -20px;
        width: 220px;
    }
    
    .about-img-stack {
        height: 460px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        order: 2;
        justify-content: center;
    }
    
    .hero-img-main {
        max-width: 400px;
        aspect-ratio: 4/5;
    }
    
    .hero-img-accent {
        width: 180px;
        left: -10px;
        bottom: 40px;
    }
    
    .hero-float-card {
        right: 0;
        top: 20px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-img-stack {
        max-width: 480px;
        margin: 0 auto;
        height: 420px;
    }
    
    .visit-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit-info .section-tag,
    .visit-info .section-title {
        text-align: center;
    }
    
    .visit-desc {
        text-align: center;
    }
    
    .gallery-item--large {
        grid-column: 1 / -1;
    }
    
    .gallery-item--wide {
        grid-column: 1 / -1;
    }
    
    .gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 246, 238, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(184, 88, 67, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-img-main {
        max-width: 100%;
    }
    
    .hero-img-accent {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
