/* ===== CSS VARIABLES ===== */
:root {
    /* NEW Theme Palette */
    --brandy-rose: #B29079;
    --brandy-rose-dark: #9f7e6a; /* Darker variant for gradients */
    --peach-cream: #EFE7DA;
    --chalk-beige: #E1DACA;
    --neutral: #C1B6A4;
    --white-beige: #F6F5EC;

    /* Base Colors */
    --charcoal: #2C2C2C;
    --charcoal-light: #404040;
    --charcoal-dark: #1A1A1A;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.1);
    --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.15);
    --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.2);
    --shadow-xl: 0 16px 64px rgba(44, 44, 44, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white-beige); /* Changed to white-beige */
    overflow-x: hidden;
}

/* ===== NEW SECTION WRAPPER & BACKGROUNDS ===== */
.section-wrapper {
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Background Color Themes */
.theme-cream::before {
    background: linear-gradient(135deg, rgba(225, 218, 202, 0.4), rgba(239, 231, 218, 0.7)); /* chalk-beige, peach-cream */
}
.theme-gold::before {
    background: linear-gradient(135deg, rgba(193, 182, 164, 0.1), rgba(239, 231, 218, 0.6)); /* neutral, peach-cream */
}
.theme-terracotta::before {
    background: linear-gradient(135deg, rgba(178, 144, 121, 0.1), rgba(239, 231, 218, 0.6)); /* brandy-rose, peach-cream */
}
.theme-white::before {
    background: linear-gradient(135deg, rgba(225, 218, 202, 0.2), rgba(255, 255, 255, 0.5)); /* chalk-beige, white */
}


/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal-dark);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--charcoal-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative; /* Ensure content is above the background */
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-tagline {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brandy-rose); /* Changed color */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-tagline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--neutral); /* Changed color */
}

.section-title {
    font-weight: 600;
    color: var(--charcoal-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brandy-rose-dark), var(--brandy-rose)); /* Changed colors */
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--brandy-rose-dark); /* Changed color */
    border: 2px solid var(--brandy-rose); /* Changed color */
}

.btn-secondary:hover {
    background: var(--brandy-rose); /* Changed color */
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--charcoal-dark);
    margin: 0;
}

.navbar-brand span {
    font-size: 0.75rem;
    color: var(--brandy-rose); /* Changed color */
    font-weight: 300;
    letter-spacing: 2px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 400;
    color: var(--charcoal-light);
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--brandy-rose); /* Changed color */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brandy-rose); /* Changed color */
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--charcoal-dark);
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Updated: Logo background (single, centered) */
.hero-logo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Cozy_Cove_Logo.png');
    background-repeat: no-repeat; 
    background-position: center;
    background-size: 300px; 
    
    /* CORRECTED: Opacity must be between 0.0 and 1.0 */
    opacity: 0.1; /* Set to a subtle 10% visibility */

    /* CORRECTED: z-index must be an integer */
    z-index: 1; /* Bottom layer */
    pointer-events: none;
}

.hero-image-1, .hero-image-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Updated: New theme gradient with LESS opacity */
.hero-image-1 {
    background: linear-gradient(135deg, var(--peach-cream) 0%, var(--white-beige) 100%);
    opacity: 0.6; 
    z-index: 2; 
}

/* This is the empty layer */
.hero-image-2 {
    background: none;
    opacity: 0;
    z-index: 3;
}

/* Updated: Overlay with LESS opacity */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 44, 44, 0.2) 0%,
        var(--brandy-rose) 50%,
        var(--white-beige) 100%
    );
    opacity: 0.4; 
    z-index: 4; /* Top layer */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    z-index: 1;
}

.hero-title-main {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--charcoal-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--brandy-rose); /* Changed color */
    font-style: italic;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--charcoal-light);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--charcoal-light);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== FLOATING ELEMENTS (HERO & SECTIONS) ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brandy-rose), var(--peach-cream)); /* Changed colors */
    opacity: 0.1;
    animation: float 12s ease-in-out infinite;
}

.circle-1 {
    width: 150px; height: 150px; top: 20%; left: 10%; animation-delay: -2s;
}
.circle-2 {
    width: 80px; height: 80px; top: 70%; right: 15%; animation-delay: -4s;
}
.circle-3 {
    width: 50px; height: 50px; top: 10%; right: 30%; animation-delay: -6s;
}
.circle-4 {
    width: 120px; height: 120px; top: 80%; left: 25%; animation-delay: -8s;
}

.floating-triangle {
    position: absolute;
    width: 0; height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid var(--brandy-rose-dark); /* Changed color */
    opacity: 0.08;
    top: 40%;
    right: 20%;
    animation: float 16s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.05); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

/* ===== SECTIONS ===== */
.about-section, .services-section, .portfolio-section, .process-section, .blog-section, .contact-section, .room-showcase {
    padding: var(--spacing-3xl) 0;
}

/* Base section background colors */
.about-section, .process-section, .contact-section { background-color: var(--white-beige); } /* Changed color */
.room-showcase, .portfolio-section, .blog-section { background-color: var(--white); }
.services-section { background-color: var(--chalk-beige); } /* Changed color */


.about-content, .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-description { font-size: 1.125rem; }
.about-stats { display: flex; gap: var(--spacing-xl); }
.stat-number { font-size: 2.5rem; color: var(--brandy-rose); } /* Changed color */

.before-after-slider { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.slider-container { position: relative; padding-bottom: 56.25%; cursor: col-resize; }

.image-before, .image-after { 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
}

.image-before { 
    background-image: url('../images/living-room-before.png'); 
}
.image-after { 
    background-image: url('../images/living-room-after.png'); 
    clip-path: inset(0 50% 0 0); 
}
.slider-handle { 
    position: absolute; 
    top: 0; 
    left: 50%; 
    width: 4px; 
    height: 100%; 
    background: var(--white); 
    cursor: col-resize; 
    z-index: 10; 
    transform: translateX(-50%); 
}
.slider-button { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 50px; 
    height: 50px; 
    background: var(--white); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: var(--shadow-md); 
    color: var(--brandy-rose); 
    font-size: 1.25rem; 
} /* Changed color */

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-xl); }
.service-card { background: var(--white); padding: var(--spacing-2xl); border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-md); transition: all var(--transition-normal); position: relative; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.service-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--brandy-rose), var(--peach-cream)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--spacing-lg); color: var(--white); font-size: 2rem; } /* Changed colors */

.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: var(--spacing-lg); }
.portfolio-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.portfolio-item.large { grid-column: span 8; grid-row: span 2; }
.portfolio-item.wide { grid-column: span 8; }
.portfolio-item:not(.large):not(.wide) { grid-column: span 4; }
.portfolio-image { width: 100%; height: 100%; transition: var(--transition-slow); background-size: cover; background-position: center; }
.portfolio-img-1 { background-image: url('../images/MS1.png'); }
.portfolio-img-2 { background-image: url('../images/CK1.png'); }
.portfolio-img-3 { background-image: url('../images/EB1.png'); }
.portfolio-img-4 { background-image: url('../images/LL1.png'); }
.portfolio-item:hover .portfolio-image { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(44, 44, 44, 0.8), rgba(178, 144, 121, 0.8)); /* Changed color */ display: flex; align-items: center; justify-content: center; opacity: 0; transition: all var(--transition-normal); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-content { text-align: center; color: var(--white); transform: translateY(20px); transition: var(--transition-normal); }
.portfolio-item:hover .portfolio-content { transform: translateY(0); }
.portfolio-content h3 { color: var(--white); }
.portfolio-btn { background: var(--brandy-rose); color: var(--charcoal-dark); padding: var(--spacing-sm) var(--spacing-lg); border-radius: var(--radius-xl); font-weight: 500; } /* Changed color */

.process-timeline { max-width: 800px; margin: 0 auto; }
.process-step { display: flex; align-items: center; gap: var(--spacing-xl); margin-bottom: var(--spacing-3xl); }
.process-step:nth-child(even) { flex-direction: row-reverse; }
.step-number { flex-shrink: 0; width: 80px; height: 80px; background: linear-gradient(135deg, var(--brandy-rose-dark), var(--brandy-rose)); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; } /* Changed colors */
.step-content { background: var(--white); padding: var(--spacing-xl); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: var(--spacing-xl); }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-normal); }
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.blog-image { height: 250px; }
.blog-img-1 { background: linear-gradient(135deg, var(--peach-cream), var(--white-beige)); } /* Changed colors */
.blog-img-2 { background: linear-gradient(135deg, var(--brandy-rose), var(--chalk-beige)); } /* Changed colors */
.blog-img-3 { background: linear-gradient(135deg, var(--charcoal-light), var(--peach-cream)); } /* Changed colors */
.blog-content { padding: var(--spacing-xl); }
.blog-category { background: var(--chalk-beige); color: var(--brandy-rose); padding: var(--spacing-xs) var(--spacing-md); border-radius: var(--radius-sm); font-size: 0.75rem; text-transform: uppercase; } /* Changed colors */
.blog-link { color: var(--brandy-rose); font-weight: 500; } /* Changed color */
.blog-card a.blog-link-wrapper:hover .blog-link { text-decoration: underline; }

.contact-form { background: var(--white); padding: var(--spacing-2xl); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
.form-group input, .form-group select, .form-group textarea { padding: var(--spacing-md); border: 2px solid var(--chalk-beige); border-radius: var(--radius-sm); font-size: 1rem; } /* Changed color */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brandy-rose); } /* Changed color */
.contact-form .btn-primary { grid-column: 1 / -1; justify-self: center; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(135deg, var(--charcoal-dark), var(--brandy-rose-dark)); color: var(--peach-cream); } /* Changed colors */
.footer-main { display: grid; grid-template-columns: 2fr 3fr; gap: var(--spacing-3xl); padding: var(--spacing-3xl) 0; }
.footer-social a { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brandy-rose); color: var(--charcoal-dark); } /* Changed color */
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-xl); }
.footer-column ul { list-style: none; }
.footer-column a:hover { color: var(--brandy-rose); } /* Changed color */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: var(--spacing-lg) 0; text-align: center; }

/* ===== BLOG MODAL STYLES ===== */
.blog-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
.blog-modal.active { opacity: 1; visibility: visible; }
.blog-modal-overlay { position: absolute; width: 100%; height: 100%; background: rgba(44, 44, 44, 0.8); backdrop-filter: blur(5px); }
.blog-modal-content { position: relative; background: var(--white); padding: var(--spacing-2xl); border-radius: var(--radius-lg); max-width: 600px; width: 90%; box-shadow: var(--shadow-xl); transform: scale(0.95); transition: transform var(--transition-normal); }
.blog-modal.active .blog-modal-content { transform: scale(1); }
.blog-modal-close { position: absolute; top: var(--spacing-md); right: var(--spacing-md); background: none; border: none; font-size: 2rem; color: var(--charcoal-light); cursor: pointer; }
.blog-modal-content .btn-secondary { display: inline-block; margin-top: var(--spacing-md); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-content, .contact-content, .footer-main { grid-template-columns: 1fr; }
    .portfolio-item.large, .portfolio-item.wide { grid-column: span 12; }
    .portfolio-item:not(.large):not(.wide) { grid-column: span 6; }
}

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }
    .navbar-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(44, 44, 44, 0.1); padding: var(--spacing-md); gap: var(--spacing-md); box-shadow: var(--shadow-lg); animation: slideDown 0.3s ease-out; }
    .navbar-menu.active { display: flex; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .portfolio-item, .contact-form, .footer-links { grid-column: span 12 !important; grid-template-columns: 1fr; }
}

/* GLightbox Override */
.portfolio-item a.glightbox { cursor: pointer; }
.gnext, .gprev, .gclose { pointer-events: auto !important; visibility: visible !important; opacity: 1 !important; }
/* ===== NEW CONTACT DETAILS BOX ===== */
.contact-details-box {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: var(--spacing-2xl) auto 0 auto; /* Adds space above it and centers it */
    text-align: center;
}

.contact-details-box h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--charcoal-dark);
    margin-bottom: var(--spacing-md);
}

.contact-details-box p {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: var(--spacing-sm);
    display: flex; /* Helps align icon and text */
    align-items: center;
    justify-content: center;
}

.contact-details-box p:last-child {
    margin-bottom: 0;
}

.contact-details-box i {
    color: var(--brandy-rose); /* Changed color */
    margin-right: var(--spacing-sm);
    width: 20px; /* Aligns the text neatly */
}