/* ============================================
   KAFEPARTNER - STYLES.CSS
   Professional Coffee Supply Partner Website
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #6F4E37;
    --secondary-color: #F5E6D3;
    --accent-color: #D4845C;
    --text-dark: #2D2D2D;
    --text-muted: #666666;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --border-color: #E8E8E8;

    --font-primary: 'Poppins', sans-serif;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform var(--transition-smooth);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    border-color: #25D366;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background-color: #1ea853;
    border-color: #1ea853;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline-coffee {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all var(--transition-smooth);
}

.btn-outline-coffee:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 78, 55, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, rgba(111, 78, 55, 0.05) 0%, rgba(212, 132, 92, 0.03) 100%);
    padding: 80px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    perspective: 1000px;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(111, 78, 55, 0.2),
        0 10px 30px rgba(111, 78, 55, 0.1);
    transition: all var(--transition-smooth);
    background-color: var(--white);
    padding: 8px;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 80px rgba(111, 78, 55, 0.25),
        0 15px 40px rgba(111, 78, 55, 0.15);
}

/* ============================================
   HERO BADGES (Mini Rozetler)
   ============================================ */

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all var(--transition-smooth);
    border-left: 4px solid var(--accent-color);
}

.hero-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.2);
    border-left-color: var(--primary-color);
}

.hero-badge i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: all var(--transition-smooth);
}

.hero-badge:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
    opacity: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.trust-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 132, 92, 0.1), transparent);
    transition: left var(--transition-smooth);
}

.trust-card:hover::before {
    left: 100%;
}

.trust-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.1);
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-smooth);
}

.trust-card:hover .trust-icon {
    transform: scale(1.2) rotate(5deg);
}

.trust-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.service-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(111, 78, 55, 0.02), rgba(212, 132, 92, 0.05));
    box-shadow: 0 20px 50px rgba(111, 78, 55, 0.12);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    color: var(--primary-color);
    transform: scale(1.15) rotate(-5deg);
}

.service-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.product-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 132, 92, 0.1);
    transition: left var(--transition-smooth);
}

.product-card:hover::after {
    left: 100%;
}

.product-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.1);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.product-card:hover .product-icon {
    color: var(--accent-color);
    transform: scale(1.2) rotate(10deg);
}

.product-card h6 {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-section {
    padding: 80px 0;
}

.process-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
}

.process-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(111, 78, 55, 0.02), rgba(212, 132, 92, 0.05));
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(111, 78, 55, 0.12);
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-smooth);
}

.process-card:hover .process-step {
    background-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 10px 25px rgba(111, 78, 55, 0.3);
}

.process-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-connector {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    margin-top: 30px;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-image-wrapper {
    perspective: 1000px;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(111, 78, 55, 0.2),
        0 10px 30px rgba(111, 78, 55, 0.1);
    transition: all var(--transition-smooth);
    background-color: var(--white);
    padding: 8px;
}

.about-section:hover .about-image-wrapper img {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 80px rgba(111, 78, 55, 0.25),
        0 15px 40px rgba(111, 78, 55, 0.15);
}

.about-caption {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stats-box {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-smooth);
}

.stats-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.1);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   REFERENCES SECTION
   ============================================ */

.references-section {
    padding: 80px 0;
}

.reference-card {
    transition: all var(--transition-smooth);
}

.reference-box {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    cursor: pointer;
}

.reference-box:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(111, 78, 55, 0.02), rgba(212, 132, 92, 0.05));
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(111, 78, 55, 0.12);
}

.reference-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all var(--transition-smooth);
}

.reference-box:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

.reference-box small {
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(111, 78, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-item h6 {
    font-weight: 600;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-dark);
    transition: color var(--transition-smooth);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-container {
    box-shadow: 0 10px 40px rgba(111, 78, 55, 0.1);
    transition: all var(--transition-smooth);
}

.map-container:hover {
    box-shadow: 0 20px 60px rgba(111, 78, 55, 0.15);
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer img {
    display: block;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: inline-block;
    transition: all var(--transition-smooth);
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-link:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.footer-link i {
    margin-right: 0.5rem;
}

/* ============================================
   FIXED WHATSAPP BUTTON
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .nav-link {
        margin: 0.25rem 0;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badges {
        flex-direction: column;
        margin-top: -20px;
        gap: 0.8rem;
    }

    .hero-badge {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .trust-section,
    .services-section,
    .products-section,
    .process-section,
    .about-section,
    .references-section,
    .contact-section {
        padding: 50px 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    .btn-whatsapp,
    .btn-outline-coffee {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .trust-icon {
        font-size: 2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .product-icon {
        font-size: 2rem;
    }

    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stats-box {
        padding: 1rem !important;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .map-container {
        height: 300px !important;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .d-flex.gap-3.flex-wrap>a {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }

    .trust-card,
    .service-card,
    .product-card,
    .process-card {
        padding: 1.5rem !important;
    }

    .trust-icon,
    .service-icon,
    .product-icon {
        font-size: 2rem !important;
    }

    .trust-card h5,
    .service-card h5,
    .process-card h5 {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        height: 35px !important;
    }

    .reference-box {
        padding: 1.5rem;
        min-height: 120px;
    }

    .reference-box i {
        font-size: 2rem;
    }

    .contact-buttons {
        gap: 0.5rem;
    }

    .contact-buttons .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .stats-number {
        font-size: 1.3rem;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .footer {
        text-align: center;
    }

    .footer-link {
        display: block;
    }

    .map-container {
        height: 250px !important;
    }

    .about-image-wrapper,
    .hero-image-wrapper {
        margin-top: 2rem;
        order: 2;
    }

    .row.align-items-center {
        flex-direction: column;
    }
}

/* ============================================
   SCROLL & MISC
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Utility Classes */
.fw-600 {
    font-weight: 600;
}

.text-coffee {
    color: var(--primary-color);
}

.bg-coffee {
    background-color: var(--primary-color);
}

.border-coffee {
    border-color: var(--primary-color);
}

/* ============================================
   EXTRA RESPONSIVE STYLES - IMAGES & BADGES
   ============================================ */

@media (max-width: 992px) {
    .hero-image-wrapper {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .about-caption {
        font-size: 0.9rem;
        margin-top: 1.5rem !important;
    }

    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-badges {
        margin-top: 1.5rem;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-badge i {
        font-size: 0.9rem;
    }

    .about-caption {
        font-size: 0.8rem;
        margin-top: 1rem !important;
    }
}
