@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* --- Base Variables (Default: Dark Mode) --- */

    /* Colors */
    --primary-color: #C5A059;
    /* Default Gold */
    --primary-light: #E5C579;
    --primary-dark: #8A6E30;

    /* Backgrounds */
    --bg-body: #050505;
    --bg-surface: #111111;
    --bg-surface-hover: #161616;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-main: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #6c757d;

    /* Borders */
    --border-color: #222222;
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);

    /* Gradients - Using primary logo color */
    --gold-gradient: linear-gradient(135deg, #C5A059 0%, color-mix(in srgb, #C5A059, white 20%) 50%, #C5A059 100%);
    --overlay-gradient: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.08), transparent 40%);
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-surface: #f8f9fa;
    --bg-surface-hover: #e9ecef;
    --bg-glass: rgba(0, 0, 0, 0.03);

    --text-main: #1a1a1a;
    --text-secondary: #495057;
    --text-muted: #868e96;

    --border-color: #e9ecef;
    --border-glass: 1px solid rgba(0, 0, 0, 0.05);

    --overlay-gradient: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.15), transparent 40%);
}


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Layout Helpers */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.hero-subtitle,
.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar-custom {
    background: rgba(var(--bg-body), 0.9) !important;
    /* Needs RGB parsing or fixed val, sticking to glass dark/light specific */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar-custom {
    background: rgba(5, 5, 5, 0.9) !important;
}

[data-theme="light"] .navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Header Logo - Responsive */
.header-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .header-logo {
        height: 50px;
        max-width: 140px;
    }
}

/* Navbar Toggler (Hamburger Menu) - Theme Aware */
.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.6rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background-color: var(--bg-body);
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: var(--overlay-gradient);
}

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 8px 20px;
    border-radius: 0;
    background: rgba(197, 160, 89, 0.05);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    border-left: 2px solid var(--primary-color);
    padding-left: 25px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Buttons */
.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    padding: 16px 40px;
    border-radius: 0;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-gold:hover {
    color: #000;
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.2);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 1px solid var(--text-secondary);
    /* Dynamic border */
    color: var(--text-main);
    /* Dynamic text */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 35px;
    border-radius: 0;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-glass);
    border: var(--border-glass);
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .feature-card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--bg-surface-hover);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Feature Card Link & Logo */
.feature-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.feature-logo-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.4s ease;
}

[data-theme="light"] .feature-logo-wrapper {
    background: rgba(0, 0, 0, 0.02);
}

.feature-logo-wrapper img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-logo-wrapper img {
    transform: scale(1.1);
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.feature-card:hover .visit-link {
    gap: 0.75rem;
}

/* Footer */
footer,
.premium-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 100;
}

.footer-heading {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-gradient);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #000;
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form .form-control-custom {
    border-radius: 0;
    border-right: none;
}

.newsletter-form .btn-gold {
    padding: 15px 20px;
    border-radius: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: var(--primary-color);
}

/* Text Primary for icons */
.text-primary {
    color: var(--primary-color) !important;
}

/* Chat Glow */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

#chat-open-btn {
    animation: pulse-gold 3s infinite;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding: 80px 0;
    }
}

/* --- SECTOR SPECIFIC --- */

/* Construction Project Card */
.project-card {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.project-card:hover .project-card-overlay {
    transform: translateY(0);
}

.project-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.project-loc {
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Insurance Form */
.quote-form-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-control-custom {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 15px;
    border-radius: 0;
}

.form-control-custom:focus {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: none;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-form-wrapper {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 0;
}

[data-theme="light"] .contact-form-wrapper {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper .form-floating>label {
    color: var(--text-muted);
}

.contact-form-wrapper .form-floating>.form-control-custom {
    background: var(--bg-surface);
    border-radius: 0;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

[data-theme="light"] .contact-info-card {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: #000;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h5 {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* ============================================
   CHAT WIDGET
============================================ */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

#chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(197, 160, 89, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-gold 3s infinite;
}

#chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(197, 160, 89, 0.5);
}

#chat-modal {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9998;
}

#chat-modal.show {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: 1rem 1.25rem;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h6 {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.chat-header .btn-close {
    filter: invert(1);
    opacity: 0.6;
}

[data-theme="light"] .chat-header .btn-close {
    filter: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--bg-glass);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--gold-gradient);
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-input-wrapper {
    padding: 1rem;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input-wrapper input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
}

.chat-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.chat-input-wrapper button {
    background: var(--gold-gradient);
    border: none;
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-wrapper button:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   PREMIUM ANIMATIONS
============================================ */
.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gradient-text {
    background: var(--gold-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #C5A059 !important;
    /* Fallback */
}

[data-theme="light"] .gradient-text {
    background: var(--gold-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #8A6E30 !important;
    /* Fallback for light mode */
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Chat Widget */
@media (max-width: 768px) {
    #chat-modal {
        right: 15px;
        bottom: 90px;
        width: calc(100vw - 30px);
        height: 60vh;
    }

    #chat-widget {
        bottom: 20px;
        right: 20px;
    }
}

/* Stat Cards */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Service Cards (Garage) */
.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-card.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, transparent 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Project Items (Construction) */
.project-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0 auto 1rem;
}

.project-item h5 {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.project-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Agency Badges (Insurance) */
.agency-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.agency-badge:hover {
    border-color: var(--primary-color);
    background: rgba(197, 160, 89, 0.1);
}

/* Green Energy Card */
.green-energy-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
}

/* Theme-based Logo Switching */
/* Dark theme (default): show dark logos (-koyu.png) */
.logo-light {
    display: none !important;
}

.logo-dark {
    display: block !important;
}

/* Light theme: show light logos (normal .png) */
html[data-theme="light"] .logo-light,
[data-theme="light"] .logo-light {
    display: block !important;
}

html[data-theme="light"] .logo-dark,
[data-theme="light"] .logo-dark {
    display: none !important;
}

/* ============================================
   INSURANCE SITE - UNIQUE STYLES
============================================ */

/* Insurance Color Variables */
:root {
    --insurance-primary: #C5A059;
    --insurance-secondary: #E5C579;
    --insurance-accent: #C5A059;
    --insurance-trust: #28A745;
    --insurance-gradient: linear-gradient(135deg, #C5A059 0%, #E5C579 50%, #C5A059 100%);
    --insurance-gradient-alt: linear-gradient(135deg, #C5A059 0%, #E5C579 50%, #C5A059 100%);
}

/* Insurance Hero Section */
.insurance-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-body);
}

.insurance-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(197, 160, 89, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.insurance-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.insurance-hero-badge i {
    font-size: 1.2rem;
}

.insurance-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.gradient-text-insurance {
    background: var(--insurance-gradient-alt);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insurance-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2rem;
}

.insurance-hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.insurance-hero-stats .stat-item {
    text-align: center;
}

.insurance-hero-stats .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--insurance-gradient-alt);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insurance-hero-stats .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.insurance-hero-stats .stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.insurance-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Insurance Buttons */
.btn-insurance-primary {
    background: var(--insurance-gradient-alt);
    color: #000;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-insurance-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
    color: #000;
}

.btn-insurance-whatsapp {
    background: #25D366;
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-insurance-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-3px);
}

.btn-insurance-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.btn-insurance-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Visual - Floating Cards */
.insurance-hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    background: var(--insurance-gradient-alt);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 5%;
    right: 20%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.floating-card.card-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.shield-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--insurance-gradient-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(197, 160, 89, 0.3);
}

.shield-center i {
    font-size: 4rem;
    color: #000;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Trust Bar */
.insurance-trust-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trust-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.trust-logos {
    flex: 1;
    overflow: hidden;
}

.logo-scroll {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-scroll img {
    height: 30px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-scroll img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Partner Logo Links */
.partner-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.partner-logo-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logo-link img {
    height: 35px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo-link:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile: show colors on touch/tap */
.partner-logo-link:active img,
.partner-logo-link:focus img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile: always show logos in color for better UX */
@media (max-width: 768px) {
    .partner-logo-link img {
        filter: grayscale(50%);
        opacity: 0.85;
    }

    .partner-logo-link:active img {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.05);
    }
}

.logo-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logo-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Insurance Products Section */
.insurance-products-section {
    padding: 6rem 0;
    background: var(--bg-body);
}

.section-badge-insurance {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards */
.insurance-product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 320px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background wrapper for full coverage */
.insurance-product-card.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Background Image Overlay for Text Readability */
.insurance-product-card.has-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(17, 17, 17, 0.85) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}


[data-theme="light"] .insurance-product-card.has-bg::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.9) 100%);
}

.insurance-product-card.has-bg:hover::after {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.6) 60%, rgba(17, 17, 17, 0.8) 100%);
}

[data-theme="light"] .insurance-product-card.has-bg:hover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.85) 100%);
}

.insurance-product-card>* {
    position: relative;
    z-index: 2;
}

/* Product Card Background Images - Applied to ::before */
.insurance-product-card.bg-kasko::before {
    background-image: url('/images/insurance/kasko-bg.png');
}

.insurance-product-card.bg-trafik::before {
    background-image: url('/images/insurance/trafik-bg.png');
}

.insurance-product-card.bg-konut::before {
    background-image: url('/images/insurance/konut-bg.png');
}

.insurance-product-card.bg-dask::before {
    background-image: url('/images/insurance/dask-bg.png');
}

.insurance-product-card.bg-saglik::before {
    background-image: url('/images/insurance/saglik-bg.png');
}

.insurance-product-card.bg-isyeri::before {
    background-image: url('/images/insurance/isyeri-bg.png');
}

.insurance-product-card.bg-ferdi::before {
    background-image: url('/images/insurance/ferdi-kaza-bg.png');
}

.insurance-product-card.bg-seyahat::before {
    background-image: url('/images/insurance/seyahat-bg.png');
}

.insurance-product-card.bg-evcil::before {
    background-image: url('/images/insurance/evcil-bg.png');
}

.insurance-product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.insurance-product-card .product-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.insurance-product-card .product-icon.dask {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.insurance-product-card .product-icon.health {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.insurance-product-card .product-icon.business {
    background: rgba(30, 58, 95, 0.15);
    color: #1E3A5F;
}

.insurance-product-card .product-icon.travel {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.insurance-product-card .product-icon.pet {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.insurance-product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.insurance-product-card>p {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.product-features li i {
    color: var(--insurance-trust);
    font-size: 0.85rem;
}

.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-product:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

/* Why Us Section */
.insurance-why-us {
    padding: 6rem 0;
    background: var(--bg-surface);
}

.why-us-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--insurance-gradient-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1.5rem;
}

.why-us-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.why-us-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Quote Section */
.insurance-quote-section {
    padding: 6rem 0;
    background: var(--bg-body);
    position: relative;
}

.quote-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.quote-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.quote-card-header i {
    font-size: 2.5rem;
    background: var(--insurance-gradient-alt);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.quote-card-header p {
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
}

.quote-form {
    padding: 2rem;
}

.quote-form .form-control {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
}

.quote-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.quote-form .form-floating>label {
    color: var(--text-muted);
}

.quote-card-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-color);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.trust-badges i {
    color: var(--insurance-trust);
}

/* FAQ Section */
.insurance-faq {
    padding: 6rem 0;
    background: var(--bg-surface);
}

.insurance-accordion .accordion-item {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.insurance-accordion .accordion-button {
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
}

.insurance-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
}

.insurance-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(70%) sepia(30%) saturate(500%) hue-rotate(10deg);
}

.insurance-accordion .accordion-body {
    background: var(--bg-body);
    color: var(--text-secondary);
    padding: 1.5rem;
    line-height: 1.7;
}

/* Contact Section */
.insurance-contact {
    padding: 6rem 0;
    background: var(--bg-body);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: var(--insurance-gradient-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #000;
    flex-shrink: 0;
}

.contact-info-item .content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.contact-info-item .content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info-item .content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item .content a:hover {
    color: var(--primary-color);
}

.quick-contact-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .insurance-hero-title {
        font-size: 2.5rem;
    }

    .insurance-hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .insurance-hero-stats .stat-divider {
        width: 50px;
        height: 1px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .insurance-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .trust-bar-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .insurance-hero-cta {
        flex-direction: column;
    }

    .quick-contact-btns {
        flex-direction: column;
    }
}

/* Developer Badge Hover Effect */
.developer-badge:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

.developer-badge:hover span {
    color: var(--text-secondary) !important;
}

/* Theme-aware KIO logos */
.kio-logo-dark {
    display: inline;
}

.kio-logo-light {
    display: none;
}

[data-theme="light"] .kio-logo-dark {
    display: none;
}

[data-theme="light"] .kio-logo-light {
    display: inline;
}

/* Footer text visibility in dark theme */
.footer-bottom .text-muted {
    color: #999 !important;
}

/* Newsletter security text fix */
.footer .text-muted {
    color: #888 !important;
}