/* D&D Luxury Services - Custom CSS
   A clean, elegant design for a premium investment services company
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #0c2340;      /* Deep navy blue */
    --secondary-color: #c8a97e;    /* Gold accent */
    --text-color: #333333;         /* Dark text */
    --light-text: #ffffff;         /* Light text */
    --bg-light: #f8f9fa;           /* Light background */
    --bg-dark: #0a1a2f;            /* Dark background */
    --transition: all 0.3s ease;   /* Smooth transitions */
}

/* Accessibility - visually hidden elements (visible to screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto 2rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0;
    transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 0;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
}

.brand-text {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.brand-subtext {
    color: var(--light-text);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Sub-page hero section */
.sub-page-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1460472178825-e5240623afd5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1169&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
}

.sub-page-hero h1 {
    font-size: 3.5rem;
}

.sub-page-hero .lead {
    max-width: 900px;
}

/* ===== ABOUT SECTION ===== */
#about {
    padding: 6rem 0;
}

#about h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.feature-box:hover {
    border-left: 3px solid var(--secondary-color);
    background-color: rgba(200, 169, 126, 0.05);
}

.feature-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* ===== SERVICES SECTION ===== */
#services {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.service-card {
    background-color: var(--light-text);
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card .icon-box i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== INVESTMENT OPPORTUNITIES SECTION ===== */
#investments {
    padding: 6rem 0;
}

.investment-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: var(--light-text);
}

.investment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.investment-image {
    height: 250px;
    overflow: hidden;
}

.investment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.investment-card:hover .investment-image img {
    transform: scale(1.1);
}

.investment-content {
    padding: 2rem;
}

.investment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.testimonial-card {
    background-color: var(--light-text);
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(200, 169, 126, 0.2);
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: 6rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    min-width: 30px;
}


.contact-form .form-control, .contact-form .form-select {
    border-radius: 0;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.contact-form .form-control:focus, .contact-form .form-select:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.footer a {
    color: var(--light-text);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    #about, #services, #investments, .testimonials, #contact {
        padding: 4rem 0;
    }
}
