/* 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;
    background-color: #f0f2f5;
    background-image: url('../images/background-plan.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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;
    transform-origin: top left;
}

.logo-container:hover img {
    transform: scale(1.5) translate(15%, 15%);
    filter: drop-shadow(0 8px 16px rgba(255, 107, 53, 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 VIDEO SECTION
   ============================================================================ */

/* Orange top banner with blueprint texture */
.hero-top-banner {
    position: relative;
    z-index: 49; /* Just below header */
}

.blueprint-bg-hero-banner {
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 21px
        );
}

/* Hero blueprint overlay (subtle grid on video) */
.hero-blueprint-overlay {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.03) 60px,
            rgba(255, 255, 255, 0.03) 61px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.03) 60px,
            rgba(255, 255, 255, 0.03) 61px
        );
}

/* Hero service icon buttons */
.hero-service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-service-icon:hover {
    transform: translateY(-4px);
}

/* Hero CTA buttons */
.hero-cta-primary {
    background: #FF6B35;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.hero-cta-primary:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.hero-cta-phone {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-cta-phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero rating badges */
.hero-rating-badge {
    transition: all 0.3s ease;
}

.hero-rating-badge:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Diagonal orange stripe at bottom of hero */
.hero-diagonal-stripe {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 15;
    overflow: hidden;
}

.hero-diagonal-stripe::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    right: -5%;
    height: 100px;
    background: #FF6B35;
    transform: skewY(-2deg);
    transform-origin: bottom left;
}

.hero-diagonal-stripe::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    right: -5%;
    height: 60px;
    background: #f8f9fa; /* matches next section bg */
    transform: skewY(-2deg);
    transform-origin: bottom left;
}

/* Hero mobile responsive adjustments */
@media (max-width: 640px) {
    .hero-diagonal-stripe {
        height: 60px;
    }
    .hero-diagonal-stripe::before {
        height: 60px;
    }
    .hero-diagonal-stripe::after {
        height: 35px;
    }
    .hero-top-banner p {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
}

/* ============================================================================
   LEGACY: SWIPER STYLES (kept for reference)
   ============================================================================ */
/*
.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}
*/

/* Swiper pagination - legacy, kept as comment */
/*
.hero-swiper .swiper-pagination-bullet { ... }
.hero-swiper .swiper-pagination-bullet-active { ... }
*/

.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);
}

/* Hide orange banner and blueprint band when scrolled */
header.scrolled .hero-top-banner {
    display: none;
}

header.scrolled .blueprint-bg {
    display: none;
}

/* 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;
}

/* ============================================================================
   BLUEPRINT BACKGROUND PATTERN (Business Card Style)
   ============================================================================ */
.blueprint-bg {
    background-color: #2C3E50;
    background-image: 
        /* Grid pattern - horizontal lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.05) 35px,
            rgba(255, 255, 255, 0.05) 36px
        ),
        /* Grid pattern - vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.05) 35px,
            rgba(255, 255, 255, 0.05) 36px
        ),
        /* Diagonal lines for technical drawing effect */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 70px,
            rgba(255, 255, 255, 0.02) 70px,
            rgba(255, 255, 255, 0.02) 71px
        ),
        /* Blueprint grid numbers effect */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 140px,
            rgba(255, 255, 255, 0.08) 140px,
            rgba(255, 255, 255, 0.08) 142px
        );
    position: relative;
}

/* Angular chevron accents (like business card) */
.header-accent-chevron {
    position: absolute;
    height: 100%;
    width: 200px;
    overflow: hidden;
    pointer-events: none;
}

.header-accent-chevron::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, #FF6B35 30%, #FF6B35 70%, transparent 70%);
    opacity: 0.15;
    transform: skewX(-15deg);
}

.header-accent-chevron.left {
    left: -50px;
    top: 0;
}

.header-accent-chevron.right {
    right: -50px;
    top: 0;
}

.header-accent-chevron.right::before {
    background: linear-gradient(45deg, transparent 30%, #FF6B35 30%, #FF6B35 70%, transparent 70%);
}

/* Blueprint measurements style text */
.blueprint-text {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* ============================================================================
   BLUEPRINT LIGHT VARIANT (For content sections)
   ============================================================================ */
.blueprint-bg-light {
    background-color: rgba(248, 249, 250, 0.7);
    position: relative;
}

/* Orange accent decorations for light blueprint sections */
.blueprint-accent-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.08;
    pointer-events: none;
}

.blueprint-accent-corner.top-left {
    top: 0;
    left: 0;
}

.blueprint-accent-corner.top-right {
    top: 0;
    right: 0;
}

.blueprint-accent-corner.bottom-left {
    bottom: 0;
    left: 0;
}

.blueprint-accent-corner.bottom-right {
    bottom: 0;
    right: 0;
}

.blueprint-accent-corner.top-left::before,
.blueprint-accent-corner.bottom-left::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, #FF6B35 40%, #FF6B35 60%, transparent 60%);
    transform: skewX(-20deg) translateX(-50px);
}

.blueprint-accent-corner.top-right::before,
.blueprint-accent-corner.bottom-right::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, #FF6B35 40%, #FF6B35 60%, transparent 60%);
    transform: skewX(20deg) translateX(50px);
}

/* ============================================================================
   BLUEPRINT GRAY VARIANT (For services section)
   ============================================================================ */
.blueprint-bg-gray {
    background-color: rgba(248, 249, 250, 0.7);
    position: relative;
}

/* Technical drawing measurements annotations */
.blueprint-measurement {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(44, 62, 80, 0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 5;
}

.blueprint-measurement.top-left {
    top: 20px;
    left: 20px;
}

.blueprint-measurement.top-right {
    top: 20px;
    right: 20px;
}

.blueprint-measurement.bottom-left {
    bottom: 20px;
    left: 20px;
}

.blueprint-measurement.bottom-right {
    bottom: 20px;
    right: 20px;
}


