/* Custom CSS for Stoughton LATAM Landing Page */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%) !important;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

@media (aspect-ratio < 16/9) {
    .hero-bg iframe {
        width: 300vw;
        height: auto;
    }
}

@media (aspect-ratio > 16/9) {
    .hero-bg iframe {
        width: auto;
        height: 300vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.7), rgba(30, 58, 138, 0.8));
    z-index: -1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(30, 58, 138, 0.3);
    line-height: 1.2;
}

.hero-section .lead {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

/* Hero Form Styles */
.hero-form-container {
    position: relative;
    z-index: 2;
}

.hero-form-container .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.hero-form-container .card-header {
    border-radius: 15px 15px 0 0 !important;
    background: linear-gradient(135deg, #0d6efd 0%, #6c757d 100%) !important;
    padding: 0.75rem 1rem;
}

.hero-form-container .card-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.hero-form .form-control,
.hero-form .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.hero-form .form-label {
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-features {
    font-size: 1.1rem;
}

.hero-features i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Additional responsive improvements */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-section .col-lg-6:first-child {
        padding-right: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        padding-left: 2rem;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 3rem;
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-form-container {
        max-width: 500px;
        margin: 1.5rem auto 2rem auto;
    }
    
    .hero-form-container .card-body {
        padding: 1.25rem !important;
    }
    
    .hero-form textarea {
        resize: vertical;
        min-height: 60px;
    }
}

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Product Categories */
.product-category {
    margin-bottom: 4rem;
}

.product-category .product-image {
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    display: block;
}

.product-category .product-image:hover {
    transform: scale(1.05);
}

/* Benefits Section */
.benefits-section {
    position: relative;
    overflow: hidden;
}

.benefits-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.benefits-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

@media (aspect-ratio < 16/9) {
    .benefits-bg iframe {
        width: 300vw;
        height: auto;
    }
}

@media (aspect-ratio > 16/9) {
    .benefits-bg iframe {
        width: auto;
        height: 300vh;
    }
}

.benefits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.85), rgba(30, 58, 138, 0.9));
    z-index: 1;
}

.benefits-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.benefit-card {
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

/* Clients Section */
.client-logo {
    max-width: 220px;
    max-height: 130px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

#clientsCarousel .carousel-control-prev-icon,
#clientsCarousel .carousel-control-next-icon {
    background-color: rgba(13, 110, 253, 0.8);
    border-radius: 50%;
    padding: 20px;
    width: 40px;
    height: 40px;
}

#clientsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#clientsCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(13, 110, 253, 1);
}

/* Contact Form */
.contact-form {
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.btn-floating:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    animation-delay: 0s;
}

.phone-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    animation-delay: 1.5s;
}

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

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Responsive Design */
/* Large tablets and small desktops */
@media (max-width: 991px) {
    .hero-section .col-lg-6:first-child {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        text-align: center;
        height: auto;
        padding-top: 70px;
        padding-bottom: 3rem;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 1;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 2;
        margin-bottom: 2rem;
    }
    
    .hero-form-container {
        margin-top: 0;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-form-container .card-body {
        padding: 1.5rem !important;
    }
    
    .hero-features {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        max-width: 120px !important;
    }
    
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
    
    .btn-floating {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .product-category {
        margin-bottom: 3rem;
    }
    
    .product-category .row {
        text-align: center;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 3rem;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-form-container {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-form-container .card {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .hero-form-container .card-body {
        padding: 1.25rem !important;
    }
    
    .hero-section .col-lg-6:first-child {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-bottom: 2rem;
    }
    
    .hero-features {
        font-size: 1rem;
    }
    
    .hero-features .d-flex {
        justify-content: center;
        text-align: left;
        max-width: 280px;
        margin: 0 auto 0.5rem auto;
    }
    
    .hero-form .row .col-md-6 {
        margin-bottom: 1rem !important;
    }
    
    .hero-form .form-control,
    .hero-form .form-select {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .hero-form .form-label {
        font-size: 0.85rem;
    }
    
    .hero-form-container .card {
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .navbar-brand img {
        max-width: 100px !important;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Section Spacing */
section {
    scroll-margin-top: 90px;
}

/* Enhanced section backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 50%, var(--primary-color) 100%) !important;
    position: relative;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4, .display-5 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.text-white p, .text-white .lead {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Card Enhancements */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Footer */
footer {
    background-color: #111827 !important;
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.25);
}

/* Product Images Responsive */
.product-image-container {
    width: 100%;
    overflow: hidden;
}

.product-image-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* Mobile Optimization for Product Images */
@media (max-width: 768px) {
    .product-image-container img {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .text-center img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Print Styles */
@media print {
    .floating-buttons,
    .navbar {
        display: none !important;
    }
    
    .hero-section {
        height: auto !important;
        min-height: auto !important;
    }
}
