/* ===== Custom Styles for Casa Cafetzin ===== */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled .nav-bg {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 26, 43, 0.08);
}

.nav-fixed.scrolled .nav-logo-text {
    color: #7b1a2b;
}

.nav-link {
    position: relative;
}

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

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

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7b1a2b;
    color: #fefdf8;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #7b1a2b;
}

.btn-primary:hover {
    background: #6b1524;
    border-color: #6b1524;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 26, 43, 0.3);
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7b1a2b;
    color: #fefdf8;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #7b1a2b;
}

.btn-primary-large:hover {
    background: #6b1524;
    border-color: #6b1524;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(123, 26, 43, 0.35);
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fefdf8;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(254, 253, 248, 0.4);
}

.btn-secondary-large:hover {
    background: rgba(254, 253, 248, 0.1);
    border-color: rgba(254, 253, 248, 0.8);
    transform: translateY(-2px);
}

/* ===== Hero Badge ===== */
.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 170, 170, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 122, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 208, 208, 0.08);
    top: 30%;
    left: 40%;
    animation: float 6s ease-in-out infinite;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 170, 170, 0.06);
    bottom: 15%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    top: 60%;
    left: 10%;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-circle-4 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 122, 0.08) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: float 12s ease-in-out infinite;
}

.geo-rect-2 {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    top: 10%;
    left: 5%;
    transform: rotate(-10deg);
    animation: spin 25s linear infinite reverse;
}

.geo-circle-5 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 122, 0.06) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float 11s ease-in-out infinite;
}

.geo-dots-2 {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 10%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.geo-circle-6 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 122, 0.08) 0%, transparent 70%);
    top: -100px;
    left: 20%;
    animation: float 9s ease-in-out infinite;
}

.geo-rect-3 {
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    bottom: 15%;
    right: 8%;
    transform: rotate(20deg);
    animation: spin 18s linear infinite;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

/* ===== Coffee Cards ===== */
.coffee-card {
    position: relative;
}

.coffee-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(123, 26, 43, 0.1), transparent, rgba(232, 37, 37, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.coffee-card:hover::before {
    opacity: 1;
}

/* ===== Input Fields ===== */
.input-field {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #fefdf8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(254, 253, 248, 0.4);
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 170, 170, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 170, 170, 0.1);
}

.input-field option {
    background: #7b1a2b;
    color: #fefdf8;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    font-family: 'Fraunces', serif;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== Selection ===== */
::selection {
    background: rgba(123, 26, 43, 0.2);
    color: #7b1a2b;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf0f0;
}

::-webkit-scrollbar-thumb {
    background: #d04a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b1a2b;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }

    .geo-rect-1,
    .geo-rect-2,
    .geo-rect-3 {
        display: none;
    }

    .geo-triangle {
        display: none;
    }
}
