/* ============================================
   SOLYBAT — Global Styles
   Premium renovation website
   ============================================ */

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- CSS Variables --- */
:root {
    /* Colors */
    --navy: #11192b;
    --navy-light: #1a2540;
    --navy-dark: #0a0f1a;
    --yellow: #eae53f;
    --yellow-hover: #d4cf38;
    --yellow-light: rgba(234, 229, 63, 0.15);
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e8;
    --gray-300: #c8ccd4;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --overlay: rgba(17, 25, 43, 0.7);
    --overlay-light: rgba(17, 25, 43, 0.4);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.2);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 12px 0 0 var(--yellow), 24px 0 0 var(--yellow);
    margin-right: 32px;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: 100px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 4px 15px rgba(234, 229, 63, 0.3);
}

.btn-primary:hover {
    background: var(--yellow-hover);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(234, 229, 63, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-md);
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 20px 48px;
    font-size: var(--text-lg);
}

.btn svg, .btn i {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn:hover svg, .btn:hover i {
    transform: translateX(3px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.header.scrolled {
    background: rgba(17, 25, 43, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header.scrolled .header-inner {
    padding: 14px 40px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.header .logo img {
    height: 36px;
    width: auto;
    display: block;
}

.header .logo span {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--yellow);
}

.nav-links a.active::after {
    width: 100%;
    background: var(--yellow);
}

/* Dropdown Services */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

.nav-dropdown-toggle.active {
    color: var(--yellow);
}

.nav-dropdown-toggle.active::after {
    width: 100%;
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--navy) !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--navy) !important;
}

.nav-dropdown-menu a.active {
    background: rgba(234,229,63,0.15);
    color: var(--navy) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
}

.header-phone svg {
    width: 16px;
    height: 16px;
    color: var(--yellow);
}

.header .btn-primary {
    padding: 12px 28px;
    font-size: var(--text-sm);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 25, 43, 0.85) 0%,
        rgba(17, 25, 43, 0.6) 50%,
        rgba(17, 25, 43, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 140px 40px 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 229, 63, 0.15);
    border: 1px solid rgba(234, 229, 63, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 32px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--yellow);
}

.hero p {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: left;
}

.hero-stat .number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--yellow);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* --- Project Search Bar --- */
.project-search {
    background: var(--white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.search-card h2 {
    font-size: var(--text-2xl);
    margin-bottom: 8px;
}

.search-card p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.search-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.search-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--navy);
}

.search-option:hover {
    border-color: var(--yellow);
    background: var(--yellow-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.search-option svg {
    width: 36px;
    height: 36px;
    color: var(--yellow);
}

.search-option span {
    font-weight: 600;
    font-size: var(--text-sm);
}

/* --- Trust Section --- */
.trust {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.trust-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--yellow);
}

.trust-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trust-icon svg {
    width: 28px;
    height: 28px;
    color: var(--yellow);
}

.trust-item .number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.trust-item .label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* --- Services Section --- */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 25, 43, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: var(--transition);
}

.service-card-overlay .service-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-card-overlay .service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--yellow);
}

.service-card h3 {
    color: var(--white);
    font-size: var(--text-xl);
    margin-bottom: 8px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-weight: 600;
    font-size: var(--text-sm);
}

.service-card .link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.service-card:hover .link svg {
    transform: translateX(4px);
}

/* Two-column layout for last row */
.services-grid .service-card:nth-child(4) {
    grid-column: span 1;
}

.services-grid .service-card:nth-child(5) {
    grid-column: span 1;
}

/* --- Before/After Section --- */
.before-after {
    padding: var(--section-padding);
    background: var(--navy);
    color: var(--white);
}

.before-after .section-title {
    color: var(--white);
}

.before-after .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.ba-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.ba-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-slider .after-img {
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.1s ease;
}

.ba-slider .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--yellow);
    cursor: ew-resize;
    z-index: 5;
    transform: translateX(-50%);
}

.ba-slider .slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    z-index: 6;
    letter-spacing: 1px;
}

.ba-label.before {
    left: 12px;
    background: rgba(17, 25, 43, 0.8);
    color: var(--white);
}

.ba-label.after {
    right: 12px;
    background: var(--yellow);
    color: var(--navy);
}

.ba-card-info {
    padding: 20px 0 0;
}

.ba-card-info h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: 4px;
}

.ba-card-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

/* --- Testimonials --- */
.testimonials {
    padding: var(--section-padding);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    fill: var(--yellow);
}

.testimonial-card blockquote {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-weight: 700;
    font-size: var(--text-sm);
}

.testimonial-author-info .name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--navy);
}

.testimonial-author-info .location {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 229, 63, 0.1), transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: var(--text-4xl);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-lg);
    margin-bottom: 36px;
}

.cta-content .btn-primary {
    padding: 20px 48px;
    font-size: var(--text-lg);
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 36px;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--yellow);
    color: var(--navy);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--yellow);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: var(--yellow);
}

/* --- Floating CTA (mobile) --- */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--yellow);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--text-sm);
    box-shadow: 0 8px 30px rgba(234, 229, 63, 0.4);
    text-decoration: none;
    gap: 8px;
    align-items: center;
}

.floating-cta svg {
    width: 18px;
    height: 18px;
}

/* --- Section padding utility --- */
.section {
    padding: var(--section-padding);
}

/* --- Page Hero (for inner pages) --- */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 25, 43, 0.9), rgba(17, 25, 43, 0.5));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a:hover {
    color: var(--yellow);
}

.page-hero .breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
    color: var(--white);
    font-size: var(--text-5xl);
    margin-bottom: 16px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-lg);
    max-width: 600px;
}

/* --- Scroll animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Hero content always visible */
.hero .fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: var(--text-base);
    color: var(--navy);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(234, 229, 63, 0.15);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Benefits / Features --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 24px;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: transparent;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--yellow);
}

.benefit-item h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- Prestation Cards (centered) --- */
.prestations-cards {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.prestation-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.prestation-card .benefit-icon {
    margin-bottom: 16px;
}

.prestation-card h4 {
    margin-bottom: 10px;
}

/* --- Before / After Compare --- */
.ba-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 48px auto 0;
}

.ba-compare-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ba-compare-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.ba-compare-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ba-compare-label.avant {
    background: var(--navy);
    color: var(--white);
}

.ba-compare-label.apres {
    background: var(--yellow);
    color: var(--navy);
}

@media (max-width: 640px) {
    .before-after {
        grid-template-columns: 1fr;
    }
    .ba-compare-item img {
        height: 240px;
    }
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--navy);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: var(--transition);
    min-width: 20px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: var(--text-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* --- Portfolio Grid --- */
.portfolio-filters {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

.portfolio-filter.active,
.portfolio-filter:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--navy);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(17, 25, 43, 0.9), transparent);
}

.portfolio-item-info h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: 4px;
}

.portfolio-item-info span {
    color: var(--yellow);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* --- Parrainage --- */
.parrainage-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.parrainage-step {
    text-align: center;
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    position: relative;
}

.parrainage-step .step-number {
    width: 48px;
    height: 48px;
    background: var(--yellow);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-xl);
    margin: 0 auto 20px;
}

.parrainage-step h3 {
    font-size: var(--text-lg);
    margin-bottom: 12px;
}

.parrainage-step p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    margin-top: 48px;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--yellow);
    min-width: 24px;
}

.contact-info-item h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* --- Process / Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
}

.process-step:last-child::after {
    display: none;
}

.process-step .step-num {
    width: 60px;
    height: 60px;
    background: var(--navy);
    color: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--text-xl);
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: var(--text-base);
    margin-bottom: 8px;
}

.process-step p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* --- About page - Values --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.value-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--yellow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.value-card svg {
    width: 48px;
    height: 48px;
    color: var(--yellow);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* --- Rating badge --- */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: var(--text-sm);
    font-weight: 600;
}

.rating-badge .stars {
    display: flex;
    gap: 2px;
}

.rating-badge .stars svg {
    width: 14px;
    height: 14px;
    fill: var(--yellow);
    color: var(--yellow);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ===========================
   MAISON INTERACTIVE
   =========================== */

.house-interactive {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.house-svg-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 836 / 436;
    border-radius: 20px;
    overflow: visible;
}

.house-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 20px 40px rgba(17, 25, 43, 0.18));
    user-select: none;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 32px;
    height: 32px;
}

.hotspot-dot {
    display: block;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, background 0.2s;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.hotspot-ring {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.45;
    animation: hotspot-pulse 2.2s ease-out infinite;
    z-index: 1;
}

@keyframes hotspot-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    100% { transform: scale(3.2); opacity: 0; }
}

.hotspot:hover .hotspot-dot,
.hotspot.active .hotspot-dot {
    transform: scale(1.4);
    background: white;
    border-color: var(--yellow);
}

.hotspot:hover .hotspot-ring,
.hotspot.active .hotspot-ring {
    animation: none;
    opacity: 0;
}

.hotspot-label {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label {
    opacity: 1;
}

.house-info-panel {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(17, 25, 43, 0.08);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.house-info-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.house-info-panel.has-content::before {
    transform: scaleX(1);
}

.house-info-default {
    text-align: center;
}

.house-info-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.house-info-hint p {
    color: var(--gray-400);
    font-size: 0.92rem;
    max-width: 210px;
    line-height: 1.65;
}

.house-info-content {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: houseInfoIn 0.3s ease;
}

.house-info-content.visible {
    display: flex;
}

@keyframes houseInfoIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.house-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.house-info-icon svg {
    width: 26px;
    height: 26px;
    color: var(--navy);
    stroke: var(--navy);
}

.house-info-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.house-info-desc {
    color: var(--gray-500);
    font-size: 0.93rem;
    line-height: 1.72;
    margin-bottom: 1.5rem;
}

/* ===========================
   DIAGNOSTIC INTERACTIF
   =========================== */

.diagnostic-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.diagnostic-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(234,229,63,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.diagnostic-section .section-label {
    color: var(--yellow);
    background: rgba(234, 229, 63, 0.1);
}

.diagnostic-section .section-title {
    color: white;
}

.diagnostic-section .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.diagnostic-wrapper {
    max-width: 720px;
    margin: 3rem auto 0;
}

.diagnostic-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.diag-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.diag-step-dot.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy);
}

.diag-step-dot.done {
    background: rgba(234, 229, 63, 0.25);
    border-color: var(--yellow);
    color: var(--yellow);
}

.diag-progress-line {
    flex: 1;
    max-width: 130px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.4s ease;
}

.diag-progress-line.done {
    background: var(--yellow);
}

.diag-step {
    display: none;
    animation: houseInfoIn 0.35s ease;
}

.diag-step.active {
    display: block;
}

.diag-question {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.55;
}

.diag-choices {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    max-width: 820px;
    margin: 0 auto;
}

.diag-choices--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
    margin: 0 auto;
}

.diag-choice {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
}

.diag-choice:hover {
    background: rgba(234, 229, 63, 0.1);
    border-color: var(--yellow);
    color: white;
    transform: translateY(-3px);
}

.diag-choice-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.diag-choice:hover .diag-choice-icon {
    background: rgba(234, 229, 63, 0.15);
}

.diag-choice-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--yellow);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diag-result {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(234, 229, 63, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.diag-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(234, 229, 63, 0.12);
    color: var(--yellow);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.diag-result h3 {
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.diag-result p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.diag-result .btn {
    display: inline-flex;
}

.diag-restart {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1.25rem auto 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.84rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.diag-restart:hover {
    color: rgba(255, 255, 255, 0.75);
}

.diag-restart svg {
    width: 14px;
    height: 14px;
}

/* Responsive — house & diagnostic */
@media (max-width: 900px) {
    .house-interactive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .house-svg-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }
    .house-info-panel {
        min-height: 280px;
    }
    .diag-choices {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .diag-choices {
        grid-template-columns: repeat(2, 1fr);
    }
    .diag-choices--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .house-info-panel {
        padding: 1.75rem 1.5rem;
        min-height: auto;
    }
    .house-info-title {
        font-size: 1.35rem;
    }
}
