/* ========================================
   7 Seeds Coffee — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ef;
}
::-webkit-scrollbar-thumb {
    background: #d44a2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a52c1a;
}

/* Selection */
::selection {
    background: #d44a2e;
    color: white;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
    position: relative;
    overflow: hidden;
}

/* ========================================
   Buttons
   ======================================== */
a.bg-terra-600,
button.bg-terra-600 {
    position: relative;
    overflow: hidden;
}

a.bg-terra-600::after,
button.bg-terra-600::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

a.bg-terra-600:hover::after,
button.bg-terra-600:hover::after {
    opacity: 1;
}

/* ========================================
   Cards
   ======================================== */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
}

/* ========================================
   Floating Accent Cards
   ======================================== */
.absolute.rounded-xl {
    animation: float 6s ease-in-out infinite;
}

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

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c43820;
    transition: width 0.2s ease;
}

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

/* ========================================
   Image Hover
   ======================================== */
.aspect-\[16\/10\] img,
.aspect-\[3\/4\] img,
.aspect-square img,
.aspect-\[4\/5\] img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Section Divider
   ======================================== */
.border-t.sand-200 {
    background: linear-gradient(90deg, transparent, #e8d3b5, transparent);
}

/* ========================================
   Map Container
   ======================================== */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ========================================
   Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .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 Adjustments
   ======================================== */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .absolute.-bottom-6.-left-6,
    .absolute.-bottom-6.-right-6 {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .grid-cols-2.gap-4 > div {
        gap: 0.5rem;
    }
}
