/* Care Optical - Premium Theme Styles */

:root {
    --color-black: #0b0b0f;
    --color-gold: #d4af37;
    --color-white: #ffffff;
    --color-dark: #1a1a1f;
    --color-gold-dark: #b8941f;
    --color-gold-light: #e5c866;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-white);
    background-color: var(--color-black);
    padding-top: 76px; /* Account for fixed navbar */
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-black {
    color: var(--color-black) !important;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%) !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-gold) !important;
}

.nav-link.active {
    color: var(--color-gold) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    animation: underline 0.3s ease;
}

@keyframes underline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
    color: var(--color-black);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

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

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
    color: var(--color-black);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: var(--color-dark);
    color: var(--color-white);
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-black);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--color-dark);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 50%, var(--color-black) 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.section-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
    padding: 60px 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forms */
.form-control,
.form-select {
    background-color: var(--color-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--color-dark);
    border-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input {
    background-color: var(--color-dark);
    border-color: rgba(212, 175, 55, 0.3);
}

.form-check-input:checked {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #d4edda;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--color-gold) !important;
    padding-left: 5px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--color-gold);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: ">";
}

/* Service Page Layout */
.service-hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    padding: 60px 0;
    margin-bottom: 3rem;
}

.service-content img {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Brand Grid */
.brand-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
}


.brand-card img {
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 0.5rem;
    /* Show logos in original colors */
}

.brand-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.brand-card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Contact Info Panel */
.contact-panel {
    background: var(--color-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
}

.contact-panel h4 {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.contact-panel p,
.contact-panel ul {
    color: rgba(255, 255, 255, 0.8);
}

.contact-panel ul {
    list-style: none;
    padding-left: 0;
}

.contact-panel ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-panel ul li:last-child {
    border-bottom: none;
}

.contact-panel ul li::before {
    content: "✓";
    color: var(--color-gold);
    margin-right: 0.5rem;
}

/* Google Map */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Form Fieldset and Legend */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend.form-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    padding: 0;
    width: auto;
}

/* Quick Booking Form */
.quick-lead-form .form-control,
.quick-lead-form .form-select {
    background-color: var(--color-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-white);
}

.quick-lead-form .form-control:focus,
.quick-lead-form .form-select:focus {
    background-color: var(--color-dark);
    border-color: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.quick-lead-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.quick-lead-form .card {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.quick-lead-form .card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

/* Alert Info */
.alert-info {
    background-color: rgba(13, 110, 253, 0.2);
    color: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
}

.shadow-gold {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Vision Section */
.vision-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
}

/* Brand Card Fallback */
.brand-card div[style*="display:none"] {
    display: none !important;
}

.brand-card div[style*="display:block"] {
    display: block !important;
}

/* Gold Highlight Card */
.bg-gradient-gold {
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
    border: none;
}

.bg-gradient-gold .card-title {
    color: var(--color-black);
    font-weight: 600;
}

.bg-gradient-gold a {
    color: var(--color-black);
    text-decoration: underline;
}

.bg-gradient-gold a:hover {
    color: var(--color-dark);
}

