/* RC Exteriors - Custom Styles */

/* ============================================================================
   TYPOGRAPHY & FONT WEIGHTS
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-accent {
    font-family: 'Poppins', sans-serif;
}

/* ============================================================================
   HEADER & LOGO STYLES
   ============================================================================ */
.logo-container {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
}

.logo-container img {
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(51, 63, 79, 0.15));
    border-radius: 12px;
    height: 80px;
    width: auto;
}

.logo-container:hover img {
    transform: scale(1.5);
    filter: drop-shadow(0 8px 16px rgba(189, 124, 79, 0.4));
    border-radius: 14px;
}

/* ============================================================================
   BEFORE-AFTER SLIDER
   ============================================================================ */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* ============================================================================
   HERO SWIPER CUSTOMIZATION
   ============================================================================ */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(51, 63, 79, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20 !important;
    cursor: pointer;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(199, 179, 150, 0.9);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next.swiper-button-disabled,
.hero-swiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.hero-swiper .swiper-pagination {
    bottom: 30px !important;
    z-index: 20 !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #C7B396;
    width: 32px;
    border-radius: 6px;
}

.before-after-img {
    display: block;
    width: 100%;
    height: auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.before-after-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-after-img-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after-img-after {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-after-img-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-after-label {
    position: absolute;
    top: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    z-index: 5;
}

.before-after-label-before {
    left: 10px;
}

.before-after-label-after {
    right: 10px;
}

.before-after-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #BD7C4F;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.before-after-handle::before,
.before-after-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
}

.before-after-handle::before {
    left: -10px;
    border-width: 8px 12px 8px 0;
    border-color: transparent #BD7C4F transparent transparent;
}

.before-after-handle::after {
    right: -10px;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #BD7C4F;
}

/* ============================================================================
   FORM STYLING
   ============================================================================ */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #BD7C4F;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(189, 124, 79, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #BD7C4F;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.radio-option:hover {
    background-color: rgba(189, 124, 79, 0.1);
}

/* Form Error Styling */
.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-error:not(.hidden) {
    display: block;
}

.form-input.error,
.form-textarea.error {
    border-color: #dc2626;
}

#form-message {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

#form-message.success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

#form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============================================================================
   BUTTONS & INTERACTIONS
   ============================================================================ */
button,
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover:not(:disabled),
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

button:active,
.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #333F4F;
    color: white;
}

.btn-primary:hover {
    background-color: #38516B;
}

.btn-accent {
    background-color: #BD7C4F;
    color: white;
}

.btn-accent:hover {
    background-color: #a86a3f;
}

/* ============================================================================
   NAVIGATION & HEADER
   ============================================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(51, 63, 79, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Light text and icons when scrolled for better contrast */
header.scrolled a,
header.scrolled span,
header.scrolled .nav-link,
header.scrolled .lang-btn,
header.scrolled i {
    color: #ffffff !important;
}

header.scrolled .nav-link:hover,
header.scrolled a:hover i {
    color: #C7B396 !important; /* Light orange/tan on hover */
}

header.scrolled .lang-btn.active {
    color: #C7B396 !important;
    background-color: rgba(199, 179, 150, 0.2);
}

header.scrolled .border-gray-200,
header.scrolled .border-gray-100,
header.scrolled .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: #333F4F;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #BD7C4F;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Fade in animations for on-scroll elements */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #333F4F 0%, #BD7C4F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   CARDS & CONTAINERS
   ============================================================================ */
.card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(51, 63, 79, 0.9) 0%, rgba(56, 81, 107, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

/* ============================================================================
   GRADIENT BACKGROUNDS
   ============================================================================ */
.gradient-primary-accent {
    background: linear-gradient(135deg, #333F4F 0%, #BD7C4F 100%);
}

.gradient-primary-light {
    background: linear-gradient(135deg, #333F4F 0%, #83AEC6 100%);
}

.gradient-accent-orange {
    background: linear-gradient(135deg, #BD7C4F 0%, #d97706 100%);
}

.gradient-light-medium {
    background: linear-gradient(135deg, #83AEC6 0%, #38516B 100%);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

/* ============================================================================
   WHATSAPP BUTTON
   ============================================================================ */
.whatsapp-button {
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    animation: none;
}

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

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .icon-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .before-after-label {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
:focus-visible {
    outline: 3px solid #BD7C4F;
    outline-offset: 2px;
}

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

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #BD7C4F;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a86a3f;
}
