/* =========================================================
   CONSISTENT BACKGROUND COLOR SCHEME
   Based on Logo Colors - Gold/Cornsilk Theme
   ========================================================= */

/* Root color variables for consistent theming */
:root {
    /* Primary background gradient inspired by logo */
    --logo-bg-primary: #FFF8DC; /* Cornsilk - matches logo light color */
    --logo-bg-secondary: #FAEBD7; /* AntiqueWhite - complementary */
    --logo-bg-accent: #FFE4B5; /* Moccasin - warm accent */

    /* Gradient variations */
    --logo-gradient-1: linear-gradient(135deg, #FFF8DC 0%, #FAEBD7 50%, #FFE4B5 100%);
    --logo-gradient-2: linear-gradient(180deg, #FFF8DC 0%, #FAEBD7 100%);
    --logo-gradient-subtle: linear-gradient(135deg, #FFF8DC 0%, #FFF5E6 100%);

    /* Text colors for contrast */
    --logo-text-primary: #5C4033; /* Dark brown for readability */
    --logo-text-secondary: #704214; /* Darker gold brown */
    --logo-text-accent: #8B6914; /* Dark goldenrod */
}

/* =====================
   GLOBAL BACKGROUND
   ===================== */

/* HTML and Body background */
html {
    background: var(--logo-bg-primary);
}

body {
    background: var(--logo-gradient-subtle);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--logo-text-primary);
}

/* Remove particles background if exists */
#particles-js {
    background: transparent !important;
}

/* =====================
   SECTION BACKGROUNDS
   ===================== */

/* All sections get consistent background */
section {
    background: transparent;
    position: relative;
}

/* Alternating subtle gradients for visual interest */
section:nth-child(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(250, 235, 215, 0.3) 50%, transparent 100%);
}

section:nth-child(odd) {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 220, 0.2) 50%, transparent 100%);
}

/* Hero section */
.hero {
    background: var(--logo-gradient-1);
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 248, 220, 0.5) 100%);
    pointer-events: none;
}

/* Navigation bar */
.navbar {
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.98) 0%, rgba(255, 248, 220, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.navbar.scrolled {
    background: rgba(255, 248, 220, 0.98);
}

/* About section */
.about {
    background: transparent;
}

/* Services section */
.services,
.additional-services {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 228, 181, 0.15) 100%);
}

/* Testimonials section */
.testimonials {
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.3) 0%, rgba(250, 235, 215, 0.3) 100%);
}

/* Pricing section */
.pricing {
    background: transparent;
}

/* Contact section */
.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 220, 0.4) 100%);
}

/* Footer */
footer,
.footer {
    background: linear-gradient(180deg, #FAEBD7 0%, #FFE4B5 100%);
    color: var(--logo-text-primary);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* =====================
   CARD BACKGROUNDS
   ===================== */

/* All cards get semi-transparent white background */
.card,
.service-card,
.service-card-new,
.pricing-card,
.product-card,
.glass-card,
.testimonial-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

/* Card hover states */
.service-card:hover,
.service-card-new:hover,
.pricing-card:hover,
.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(188, 143, 143, 0.15);
}

/* Modal backgrounds */
.modal-content {
    background: linear-gradient(135deg, #FFF8DC 0%, #FAEBD7 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Form inputs */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--logo-text-primary);
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 215, 0, 0.4);
    outline: none;
}

/* Buttons with complementary colors */
.btn-primary {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B8860B, #8B6914);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--logo-text-primary);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 248, 220, 0.9);
    border-color: rgba(255, 215, 0, 0.5);
}

/* =====================
   TEXT COLOR ADJUSTMENTS
   ===================== */

/* Ensure all text is readable on new background */
h1, h2, h3, h4, h5, h6 {
    color: var(--logo-text-primary);
}

p {
    color: var(--logo-text-secondary);
}

a {
    color: var(--logo-text-accent);
}

a:hover {
    color: #FFD700;
}

/* Navigation links */
.nav-link {
    color: var(--logo-text-primary);
}

.nav-link:hover {
    color: #FFD700;
}

/* =====================
   SPECIAL ELEMENTS
   ===================== */

/* Progress bars */
.progress-bar {
    background: rgba(255, 248, 220, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, #FFD700, #B8860B);
}

/* Dividers */
hr {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: var(--logo-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #B8860B);
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--logo-text-primary);
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--logo-text-primary);
}

/* =====================
   DARK MODE OVERRIDE
   ===================== */

/* Disable dark mode to maintain consistent logo colors */
[data-theme="dark"],
[data-theme="light"] {
    --bg-primary: #FFF8DC !important;
    --bg-secondary: #FAEBD7 !important;
    --text-primary: var(--logo-text-primary) !important;
    --text-secondary: var(--logo-text-secondary) !important;
}

/* =====================
   MOBILE OPTIMIZATIONS
   ===================== */

@media (max-width: 768px) {
    /* Simplify gradients on mobile for performance */
    body {
        background: var(--logo-bg-primary);
    }

    .hero {
        background: var(--logo-gradient-2);
    }

    section:nth-child(even),
    section:nth-child(odd) {
        background: transparent;
    }
}

/* =====================
   PRINT STYLES
   ===================== */

@media print {
    body {
        background: white;
        color: black;
    }

    section {
        background: transparent;
    }
}