@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #262f5b;       /* Dark Navy Blue */
    --primary-light: #35417d; /* Lighter Navy Blue */
    --accent-teal: #262f5b;   /* Primary Button / Brand Accent */
    --accent-teal-hover: #35417d;
    --accent-gold: #b45309;   /* Warm Gold/Amber */
    --accent-gold-light: #f59e0b;
    --bg-light: #f8fafc;      /* Soft ice white */
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-glow: 0 10px 25px -5px rgba(38, 47, 91, 0.3);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

.serif-font {
    font-family: 'Playfair Display', Georgia, serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-bg-dark {
    background-color: var(--primary);
    color: var(--bg-light);
}

.section-bg-dark h2, 
.section-bg-dark h3,
.section-bg-dark p {
    color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header .tag {
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 15px auto 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-teal-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-white);
}

.btn-gold:hover {
    background-color: var(--accent-gold-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--accent-teal);
    transform: translateY(-2px);
}

/* Top Bar & Header Navigation */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-socials a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
}

.top-bar-socials a:hover {
    color: var(--accent-teal);
}

header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-text {
    display: inline-block;
    line-height: 1.2;
}

.logo span {
    color: var(--accent-teal);
}

.logo-icon {
    font-size: 28px;
    margin-right: 10px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-light);
    position: relative;
    padding: 6px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    color: var(--accent-teal);
}

nav ul li a:hover::after,
nav ul li.active a::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: calc(85vh - 100px);
    min-height: 550px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('../images/hero_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.15;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--accent-gold-light);
}

.hero-content p {
    font-size: 18px;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Partner Message Section */
.partner-section {
    background-color: var(--bg-white);
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.partner-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.partner-image-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent-gold);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.partner-text blockquote {
    font-size: 22px;
    line-height: 1.6;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent-teal);
}

.partner-signature h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.partner-signature p {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Practice Areas Section */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.practice-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.3);
}

.practice-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(13, 148, 136, 0.08);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.practice-card .icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.practice-card:hover .icon-wrapper {
    background-color: var(--accent-teal);
    color: var(--bg-white);
}

.practice-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.practice-card p {
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.practice-card .read-more {
    font-weight: 600;
    color: var(--accent-teal);
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.practice-card .read-more svg {
    margin-left: 6px;
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.practice-card:hover .read-more svg {
    transform: translateX(5px);
}

/* Why Choose Us (Stats) */
.stats-section {
    background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../images/hero_bg.png') no-repeat center center/cover;
    color: var(--bg-white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--accent-gold-light);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.stat-item p {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card-image {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

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

.team-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-social-icon:hover {
    background-color: var(--accent-gold);
}

.team-card-info {
    padding: 24px;
}

.team-card-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.team-card-info p {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.team-card-info .short-bio {
    font-size: 14px;
    color: var(--text-muted);
}

/* Insights / Viewpoints (Blogs) */
.viewpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    color: var(--text-muted);
}

.blog-category {
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card .read-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.blog-card .read-link svg {
    margin-left: 6px;
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.blog-card:hover .read-link {
    color: var(--accent-teal);
}

.blog-card:hover .read-link svg {
    transform: translateX(5px);
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-info-item .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(13, 148, 136, 0.08);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon-box svg {
    width: 24px;
    height: 24px;
}

.contact-info-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-info-item p {
    font-size: 15px;
}

.contact-form-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--accent-teal);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Flash alerts in client layout */
.alert-banner {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-weight: 500;
}
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: rgba(248, 250, 252, 0.7);
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--accent-gold);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-teal);
    padding-left: 4px;
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(248, 250, 252, 0.5);
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* Sidebar filter components (News & Practice detail pages) */
.page-layout-sidebar {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
}

.sidebar-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.sidebar-list li a:hover,
.sidebar-list li.active a {
    color: var(--accent-teal);
}

/* Detail Pages styling */
.detail-content {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.detail-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.detail-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-meta {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .partner-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .page-layout-sidebar {
        grid-template-columns: 1fr;
    }
    .logo {
        font-size: 18px;
    }
    nav ul {
        gap: 15px;
    }
    .nav-actions {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .logo {
        font-size: 15px;
        max-width: 75%;
    }
    .logo-text {
        white-space: normal;
    }
    .logo-icon {
        font-size: 20px;
        margin-right: 6px;
    }
    .nav-actions {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        z-index: 1001;
    }
    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-white);
        z-index: 999;
        transition: var(--transition-smooth);
        padding: 40px 24px;
        box-shadow: var(--shadow-lg);
    }
    nav.active {
        left: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    nav ul li a {
        font-size: 18px;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .header-content {
        padding: 10px 0;
    }
    .top-bar {
        display: none;
    }
}

/* BCI Disclaimer Modal */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.disclaimer-box {
    background-color: #d46e49; /* Terracotta copper color matching the user image */
    color: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.disclaimer-box h2 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.disclaimer-box p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Inter', sans-serif;
}

.disclaimer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.disclaimer-btn {
    width: 180px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.disclaimer-btn.decline {
    background-color: #000000;
    color: #ffffff;
}

.disclaimer-btn.decline:hover {
    background-color: #222222;
}

.disclaimer-btn.accept {
    background-color: #000000;
    color: #ffffff;
}

.disclaimer-btn.accept:hover {
    background-color: #222222;
}

/* Disable background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .practice-grid,
    .team-grid,
    .viewpoints-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .disclaimer-box {
        padding: 24px;
    }
    .disclaimer-box h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .disclaimer-box p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .disclaimer-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .disclaimer-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
