/* ===================================
   Red Bean - Mobile-First Styles
   Soft, minimal, Pinterest-inspired design
   =================================== */

/* ===================================
   CSS Variables - Brand Colors
   =================================== */
:root {
    /* Soft beige/red color palette */
    --primary-color: #D4756C;
    --primary-dark: #B85C53;
    --primary-light: #E89A92;
    --secondary-color: #F4E8E0;
    --accent-beige: #F9F5F2;
    --text-dark: #2C2C2C;
    --text-medium: #5A5A5A;
    --text-light: #8A8A8A;
    --white: #FFFFFF;
    --border-color: #E8D8D0;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(212, 117, 108, 0.08);
    --shadow-md: 0 4px 20px rgba(212, 117, 108, 0.12);
    --shadow-lg: 0 8px 30px rgba(212, 117, 108, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--accent-beige);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: 2rem;
    font-family: var(--font-display);
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    list-style: none;
    padding: 80px var(--spacing-md) var(--spacing-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: var(--spacing-sm);
}

.nav-link {
    display: block;
    padding: 12px var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nav-link-cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    margin-top: var(--spacing-sm);
}

.nav-link-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding-top: 100px;
    padding-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, var(--accent-beige) 0%, var(--secondary-color) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.hero-title {
    font-size: 2.2rem;
    font-family: var(--font-display);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-visual {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.floating-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    min-width: 100px;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 0.5s;
}

.card-3 {
    animation-delay: 1s;
}

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

/* ===================================
   Service Cards
   =================================== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.demo-section {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===================================
   Services List
   =================================== */
.services-list {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.service-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.service-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 0;
}

.cta-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===================================
   How It Works - Steps
   =================================== */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.step-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
}

.step-content p {
    margin-bottom: 0;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    margin-left: 24px;
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--accent-beige);
    border-radius: var(--radius-sm);
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.value-item span {
    font-weight: 500;
    color: var(--text-dark);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.visual-box i {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.visual-box p {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

/* ===================================
   Contact Form Section
   =================================== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: var(--radius-sm);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--primary-light);
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links h4,
.footer-social h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    font-size: 1.3rem;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        gap: var(--spacing-xs);
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 10px 16px;
    }
    
    .nav-link-cta {
        margin-top: 0;
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */
@media (min-width: 1024px) {
    /* Typography */
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* Cards Grid */
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Sections */
    .section {
        padding: 80px 0;
    }
    
    /* Visual Box */
    .visual-box {
        width: 250px;
        height: 250px;
    }
    
    .visual-box i {
        font-size: 4rem;
    }
}

/* ===================================
   Accessibility & Print
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}
