/* =============================================
   CREMONA COFFEE — MAINTENANCE PAGE
   Theme: Warm Orange (#E8792B)
   ============================================= */

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

:root {
    --orange-50: #FFF7ED;
    --orange-100: #FFEDD5;
    --orange-200: #FED7AA;
    --orange-300: #FDBA74;
    --orange-400: #FB923C;
    --orange-500: #E8792B;
    --orange-600: #D4651E;
    --orange-700: #B45016;
    --orange-800: #8C3D12;
    --orange-900: #6B2F0E;

    --cream-50: #FFFBF5;
    --cream-100: #FFF5E8;
    --cream-200: #FFECD4;

    --brown-800: #3D2417;
    --brown-700: #5C3A27;
    --brown-600: #7A5038;
    --brown-500: #97654A;

    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-400: #A3A3A3;
    --gray-600: #525252;
    --gray-800: #262626;

    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 4px 24px rgba(232, 121, 43, 0.08);
    --shadow-medium: 0 8px 40px rgba(232, 121, 43, 0.12);
    --shadow-glow: 0 0 60px rgba(232, 121, 43, 0.25);
}

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

body {
    font-family: var(--font-family);
    background: var(--cream-50);
    color: var(--brown-800);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-400), var(--orange-500), var(--orange-600));
    z-index: 9999;
    animation: progressPulse 3s ease-in-out infinite;
    width: 45%;
    border-radius: 0 2px 2px 0;
}

@keyframes progressPulse {
    0% { width: 15%; opacity: 0.6; }
    50% { width: 65%; opacity: 1; }
    100% { width: 15%; opacity: 0.6; }
}

/* ---------- Floating Beans Background ---------- */
.floating-beans {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bean {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.08;
    animation: floatBean linear infinite;
    will-change: transform;
}

@keyframes floatBean {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ---------- Steam Particles ---------- */
.steam-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.steam-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(232, 121, 43, 0.15), transparent);
    border-radius: 50%;
    animation: steamRise linear infinite;
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    30% {
        opacity: 0.4;
        transform: translateY(-30px) scale(1);
    }
    100% {
        transform: translateY(-120px) scale(2);
        opacity: 0;
    }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(255, 251, 245, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeSlideDown 0.8s var(--transition-smooth) forwards;
}

.logo-wrapper {
    display: inline-block;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.4s var(--transition-smooth), filter 0.4s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 4px 16px rgba(232, 121, 43, 0.25));
}

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

/* ---------- Main Content ---------- */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

/* ---------- Info Section ---------- */
.info-section {
    animation: fadeSlideRight 1s var(--transition-smooth) forwards;
    opacity: 0;
}

@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--orange-100), var(--orange-50));
    border: 1px solid var(--orange-200);
    color: var(--orange-600);
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: fadeSlideRight 1s 0.2s var(--transition-smooth) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--orange-500);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
}

/* Headline */
.headline {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brown-800);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    animation: fadeSlideRight 1s 0.35s var(--transition-smooth) both;
}

.highlight {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--orange-300), var(--orange-200));
    border-radius: 3px;
    opacity: 0.5;
    z-index: -1;
}

/* Description */
.description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--brown-500);
    max-width: 520px;
    margin-bottom: 1rem;
    animation: fadeSlideRight 1s 0.5s var(--transition-smooth) both;
}

.description.sub-desc {
    margin-bottom: 2.5rem;
    animation: fadeSlideRight 1s 0.65s var(--transition-smooth) both;
}

/* ---------- Contact Section ---------- */
.contact-section {
    animation: fadeSlideRight 1s 0.8s var(--transition-smooth) both;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    color: var(--brown-600);
    text-decoration: none;
    transition: all 0.35s var(--transition-smooth);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    border-color: var(--orange-400);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(232, 121, 43, 0.3);
}

/* ---------- Illustration Section ---------- */
.illustration-section {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeSlideLeft 1s 0.3s var(--transition-smooth) both;
    opacity: 0;
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow behind illustration */
.illustration-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(232, 121, 43, 0.18), rgba(232, 121, 43, 0.05), transparent);
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Barista Image */
.barista-img {
    position: relative;
    z-index: 2;
    width: 80%;
    height: auto;
    object-fit: contain;
    animation: baristaFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s var(--transition-smooth);
}

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

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

/* Orbit Ring */
.orbit-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
    z-index: 1;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-bean {
    position: absolute;
    font-size: 1.6rem;
    animation: counterSpin 20s linear infinite;
}

@keyframes counterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.orbit-bean-1 {
    top: 0;
    left: 50%;
    transform-origin: center;
}

.orbit-bean-2 {
    bottom: 10%;
    right: 0;
    transform-origin: center;
}

.orbit-bean-3 {
    bottom: 10%;
    left: 0;
    transform-origin: center;
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: 10%;
    right: -5%;
    background: var(--white);
    border: 2px solid var(--orange-200);
    padding: 0.65rem 1.1rem;
    border-radius: 20px 20px 20px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange-600);
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(232, 121, 43, 0.12);
    animation: bubbleBounce 3s ease-in-out infinite, fadeIn 1s 1.5s var(--transition-smooth) both;
    opacity: 0;
}

@keyframes bubbleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.03); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    position: relative;
    z-index: 1;
    animation: fadeSlideRight 1s 1.3s var(--transition-smooth) both;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablets */
@media (max-width: 1024px) {
    .content-grid {
        gap: 2.5rem;
    }

    .illustration-wrapper {
        max-width: 380px;
    }

    .headline {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }
}

/* Tablet Portrait / Large Phone */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .main-content {
        padding: 6rem 1.5rem 2rem;
    }

    .info-section {
        order: 2;
    }

    .illustration-section {
        order: 1;
    }

    .illustration-wrapper {
        max-width: 300px;
    }

    .headline {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .headline br {
        display: none;
    }

    .description {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.78rem;
    }



    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .speech-bubble {
        right: 5%;
        top: 5%;
        font-size: 0.78rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .header {
        padding: 1rem 1.25rem;
    }

    .logo {
        height: 32px;
    }

    .main-content {
        padding: 5rem 1rem 1.5rem;
    }

    .headline {
        font-size: 1.8rem;
    }

    .description {
        font-size: 0.88rem;
    }



    .illustration-wrapper {
        max-width: 250px;
    }

    .orbit-bean {
        font-size: 1.2rem;
    }

    .speech-bubble {
        font-size: 0.72rem;
        padding: 0.5rem 0.85rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

    .footer {
        font-size: 0.72rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Very tall screens */
@media (min-height: 900px) {
    .main-content {
        min-height: 85vh;
    }
}
