/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #111111;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 200;
    font-style: italic;
}

/* Custom Colors */
.bg-charcoal-black { background-color: #111111; }
.text-gold { color: #C6A664; }
.bg-gold { background-color: #C6A664; }
.border-gold { border-color: #C6A664; }
.bg-ivory { background-color: #F8F5EE; }

/* Transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Header */
/* Removed styles for transparent header */

/* Hero Section */
#hero-section {
    height: 800px;
}
.hero-tab {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-grow: 1;
    transition: flex-grow 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    margin: 0 2px; /* Added 2px margin */
    border-radius: 0 0 0.5rem 0.5rem; /* Restored bottom roundness */
}

.hero-tab .background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-tab:hover .background-image,
.hero-tab.active .background-image {
    transform: scale(1.05);
}

.hero-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.6); /* Dark gray overlay */
    transition: background 0.5s ease;
}

.hero-tab.active::after {
    background: rgba(17, 17, 17, 0.6); /* Ensure overlay stays on active tab */
}

.hero-tab:hover::after {
    background: rgba(17, 17, 17, 0.4); /* Slightly lighter on hover for feedback */
}

.hero-tab.active {
    flex-grow: 12; /* Greatly expands the active tab */
}

.hero-tab-content {
    position: absolute;
    bottom: 80px; /* Moved text block up */
    left: 60px;
    color: white;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: none; /* Text disappears instantly */
    max-width: 40%; /* Constrain width of text */
}

.hero-tab-vertical-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.hero-tab.active .hero-tab-vertical-title {
    opacity: 0;
}

.hero-button {
    display: inline-block;
    margin-top: 1.5rem; /* More space above button */
    padding: 0.75rem 2rem;
    border: 2px solid #C6A664;
    color: #C6A664;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: #C6A664;
    color: #111111;
}

/* Bordered Button Style */
.btn-bordered {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #C6A664;
    color: #C6A664;
    background-color: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-bordered:hover {
    background-color: #C6A664;
    color: #111111;
}

.hero-tab.active .hero-tab-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s; /* Text fades in smoothly */
}

/* Insights & About Image Hover */
.insight-card, .about-image-wrapper {
    overflow: hidden;
}

.insight-card img, .about-image-wrapper img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.insight-card:hover img, .about-image-wrapper:hover img {
    transform: scale(1.05);
}

.insight-card {
    border: 1px solid #eee;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Our Team Section */
.team-card-info {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card:hover .team-card-info {
    transform: translateY(0);
}

.team-card-bio {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.team-card:hover .team-card-bio {
    opacity: 1;
}

/* Accordion Section */
.accordion-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.accordion-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.accordion-item h3 {
    transition: color 0.3s ease;
}

.accordion-item.active h3 {
    color: #C6A664;
}

.accordion-item::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C6A664;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accordion-item.active::before {
    width: 100%;
}

.accordion-content {
    display: none;
}

.accordion-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

/* Form Styling */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #C6A664;
    box-shadow: 0 0 0 2px rgba(198, 166, 100, 0.2);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero-tabs {
        flex-direction: column;
    }

    .hero-tab.active {
        flex-grow: 10;
    }

    .hero-tab-content {
        bottom: 20px;
        left: 20px;
    }

    .team-card-info {
        transform: translateY(0);
        background: rgba(17, 17, 17, 0.8);
    }

    .team-card-bio {
        opacity: 1;
    }
}