:root {
    --light-primary: #ffffff;
    --light-secondary: #f8f9fa;
    --light-tertiary: #e9ecef;
    --gold-primary: #d4af37;
    --gold-secondary: #b8860b;
    --gold-accent: #ffd700;
    --dark-text: #212529;
    --muted-text: #6c757d;
    --lead-text: #495057; /* Darker text for lead paragraphs */
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--light-primary);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Lead text styling for better visibility */
.lead {
    color: var(--lead-text) !important;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Specific lead text overrides for different sections */
.hero-section .lead {
    color: var(--dark-text) !important;
    font-weight: 600;
}

.hero-section.text-white .lead {
    color: var(--dark-text) !important;
}

/* Fixed Navigation styling */
.navbar {
    background-color: var(--light-primary) !important;
    border-bottom: 2px solid var(--gold-accent);
    box-shadow: 0 2px 4px var(--shadow-light);
    padding: 1rem 0;
    min-height: 85px;
    position: relative;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: relative;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    color: var(--dark-text) !important;
    text-decoration: none !important;
    font-size: 1.25rem;
    margin-right: auto;
    flex: 0 0 auto;
    z-index: 1001;
    padding: 0;
    line-height: 1;
    min-height: 85px;
    justify-content: flex-start;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--dark-text) !important;
    text-decoration: none !important;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    margin-right: 1rem;
    align-self: center;
    flex-shrink: 0;
    display: block;
}

.navbar-brand .text-gold {
    color: var(--gold-primary) !important;
    font-weight: 700 !important;
    white-space: nowrap;
    align-self: center;
    line-height: 60px;
    display: inline-block;
}

.navbar-toggler {
    border: 2px solid var(--gold-primary);
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    background: transparent;
    position: relative;
    z-index: 1002;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
}

.navbar-toggler:hover {
    border-color: var(--gold-secondary);
}

.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='%23d4af37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav {
    margin-left: auto !important;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

/* Mobile navbar adjustments - FIXED */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
        min-height: 75px;
    }
    
    .navbar-brand {
        padding: 0;
        min-height: 75px;
    }
    
    .navbar-brand img {
        height: 50px;
        margin-right: 0.75rem;
    }
    
    .navbar-brand .text-gold {
        line-height: 50px;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        margin-right: auto;
        flex: 1;
    }
    
    .navbar-toggler {
        position: static;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 2px 4px var(--shadow-light);
        z-index: 1000;
    }
    
    .navbar-nav {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
    }
}

/* Desktop navbar */
@media (min-width: 992px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .navbar-collapse {
        flex-basis: auto;
        flex-grow: 0;
        position: static;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
}

/* Container adjustments with better text margins */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Mobile-first responsive margins and padding */
@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Section spacing with mobile optimization */
.section-padding {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* Improved text spacing and margins */
p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.text-muted {
    color: var(--muted-text) !important;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Better spacing for different heading levels */
h1 {
    margin-bottom: 2rem;
}

h2 {
    margin-bottom: 1.75rem;
}

h3 {
    margin-bottom: 1.5rem;
}

h4, h5, h6 {
    margin-bottom: 1.25rem;
}

/* Custom styling for cards with improved text spacing */
.feature-card {
    background: var(--light-primary);
    border: 2px solid var(--gold-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-light);
    margin-bottom: 1.5rem;
}

.feature-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-medium);
    border-color: var(--gold-primary);
}

.product-card {
    background: var(--light-secondary);
    border: 1px solid var(--gold-accent);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-light);
    margin-bottom: 1.5rem;
}

.product-card p {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-medium);
    border-color: var(--gold-primary);
}

/* Golden accents */
.text-gold {
    color: var(--gold-primary);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    border: none;
    color: var(--light-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

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

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--light-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.2);
}

/* Light theme overrides */
.bg-light-secondary {
    background-color: var(--light-secondary);
}

.bg-light-tertiary {
    background-color: var(--light-tertiary);
}

/* Custom hero section with better text spacing */
.hero-section {
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--light-secondary) 50%, var(--light-primary) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::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%);
}

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

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    margin-bottom: 2rem;
}

/* Hero Carousel Section */
.hero-carousel-section {
    background: linear-gradient(135deg, var(--light-primary) 0%, var(--light-secondary) 50%, var(--light-primary) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-carousel-section::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%);
}

.hero-carousel-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    padding-right: 2rem;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero-content .hero-logo {
    max-height: 100px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-logo:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .lead {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Carousel Styling */
.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    border: 3px solid var(--gold-primary);
    background: var(--light-primary);
    animation: fadeInRight 1s ease-out 0.3s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 60px;
}

.carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-image {
    height: 350px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.02);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background-color: rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    margin: 0 3px;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--gold-primary);
    transform: scale(1.2);
}

.carousel-caption-below {
    background: var(--light-primary);
    padding: 1.5rem;
    border-top: 2px solid var(--gold-primary);
    text-align: center;
}

.carousel-caption-below h5 {
    color: var(--gold-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.carousel-caption-below p {
    color: var(--muted-text);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
    filter: brightness(0) saturate(100%) invert(77%) sepia(20%) saturate(1600%) hue-rotate(27deg) brightness(90%) contrast(87%);
}

/* Mobile responsiveness for hero carousel */
@media (max-width: 991.98px) {
    .hero-carousel-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-content .hero-logo {
        max-height: 80px;
        margin-bottom: 1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .carousel-image {
        height: 280px;
    }
    
    .carousel {
        margin-bottom: 50px;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
    
    .carousel-caption-below {
        padding: 1rem;
    }
    
    .carousel-caption-below h5 {
        font-size: 1rem;
    }
    
    .carousel-caption-below p {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel-section {
        min-height: 450px;
    }
    
    .hero-content .hero-logo {
        max-height: 70px;
        margin-bottom: 1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .carousel-image {
        height: 250px;
    }
    
    .carousel {
        margin-bottom: 45px;
    }
    
    .carousel-indicators {
        bottom: -35px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .carousel-caption-below h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption-below p {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel-section {
        min-height: 400px;
        padding: 1.5rem 0;
    }
    
    .hero-content .hero-logo {
        max-height: 60px;
        margin-bottom: 0.75rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-image {
        height: 220px;
    }
    
    .carousel {
        margin-bottom: 40px;
    }
    
    .carousel-indicators {
        bottom: -30px;
    }
    
    .carousel-caption-below {
        padding: 0.75rem;
    }
    
    .carousel-caption-below h5 {
        font-size: 0.9rem;
    }
    
    .carousel-caption-below p {
        font-size: 0.7rem;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 2px;
    }
}

/* Form styling */
.form-control {
    background-color: var(--light-primary);
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}

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

.form-select {
    background-color: var(--light-primary);
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

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

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--light-secondary) 0%, var(--light-tertiary) 100%);
    border-top: 2px solid var(--gold-accent);
    color: var(--dark-text);
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.75rem;
}

/* Contact info cards with better text spacing */
.contact-info-card {
    background: var(--light-primary);
    border: 2px solid var(--gold-accent);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-light);
}

.contact-info-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 15px var(--shadow-medium);
    transform: translateY(-2px);
}

.contact-info-card p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-info-card h5,
.contact-info-card h6 {
    margin-bottom: 1rem;
}

/* Icon styling */
.icon-gold {
    color: var(--gold-primary);
}

/* Alert customization */
.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--gold-primary);
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: var(--gold-primary);
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

/* Brand display styling */
.brand-display {
    background: linear-gradient(135deg, var(--light-secondary) 0%, var(--light-tertiary) 100%);
    border: 3px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 12px var(--shadow-medium);
    margin: 2rem 0;
}

.brand-display::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-accent), var(--gold-primary));
    z-index: -1;
    border-radius: 15px;
}

.brand-display-inner {
    background: var(--light-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.brand-display h5 {
    margin-bottom: 1.5rem;
}

.brand-display p {
    margin-bottom: 2rem;
}

/* Mobile responsive improvements with better text spacing */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .brand-display {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .brand-display-inner {
        padding: 1rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
        padding: 1.5rem !important;
    }
    
    .product-card {
        margin-bottom: 2rem;
        padding: 1.25rem !important;
    }
    
    /* Stack buttons on mobile with better spacing */
    .d-flex.gap-3.flex-wrap {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3.flex-wrap .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Better text spacing on mobile */
    h1 {
        margin-bottom: 1.5rem;
    }
    
    h2 {
        margin-bottom: 1.25rem;
    }
    
    h3 {
        margin-bottom: 1rem;
    }
    
    p {
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 0;
        min-height: 65px;
    }
    
    .navbar-brand {
        padding: 0.5rem 0;
        min-height: 65px;
    }
    
    .navbar-brand img {
        height: 45px;
        margin-right: 0.5rem;
        transform: translateY(1px);
    }
    
    .navbar-brand .text-gold {
        font-size: 1.1rem;
        transform: translateY(1px);
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
    
    .contact-info-card {
        padding: 1.5rem !important;
        margin-bottom: 2rem;
    }
    
    .brand-display {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .brand-display-inner {
        padding: 0.75rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Extra small text improvements */
    p {
        margin-bottom: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Image responsive improvements */
img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Card content spacing improvements */
.feature-card .feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    margin-bottom: 1.25rem;
}

.feature-card h6 {
    margin-bottom: 1rem;
}

/* Business hours mobile layout */
@media (max-width: 767.98px) {
    .row.text-sm .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Improved spacing for mobile contact form */
@media (max-width: 767.98px) {
    .row.g-3 .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
}

/* Additional spacing utilities for better text readability */
.small {
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.text-center p {
    margin-bottom: 1.5rem;
}

.text-center .lead {
    margin-bottom: 2rem;
}