/* ===================================
   LUXURY FAMILY OFFICE WEBSITE
   Primary Brand Color: #BA0C2F
   =================================== */

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

:root {
    --primary-color: #BA0C2F;
    --primary-dark: rgb(140, 9, 37);
    --primary-light: rgb(206, 32, 69);
    --gold-accent: #d4af37;
    --charcoal: #2c2c2c;
    --light-gray: #f8f7f5;
    --cream: #faf9f7;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Prevent overflow from images, iframes, and embedded content */
img, iframe, embed, object, video {
    max-width: 100%;
    height: auto;
}

/* ===================================
   TYPOGRAPHY: Prevent Orphans/Widows
   Avoid single words on a line by themselves
   Use text-wrap: balance for headings
   Use &nbsp; manually for edge cases
   =================================== */
h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-subtitle,
.section-title,
.section-subtitle,
.banner-title,
.banner-subtitle {
    text-wrap: balance;
    text-wrap: pretty;
}

iframe {
    width: 100%;
    border: 0;
}

/* Sepia Filter for All Images */
img {
    filter: sepia(35%) saturate(0.8) brightness(1.05);
    transition: filter 0.4s ease;
}

img:hover {
    filter: sepia(25%) saturate(0.9) brightness(1.1);
}

/* Black and white filter for banner/hero images - MUST come after general img rules */
.hero-image img,
.services-hero .hero-image img,
section.services-hero .hero-image img,
.services-hero > .hero-image > img {
    filter: grayscale(100%) contrast(1.15) brightness(0.95) !important;
    -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.95) !important;
}

.hero-image img:hover,
.services-hero .hero-image img:hover,
section.services-hero .hero-image img:hover,
.services-hero > .hero-image > img:hover {
    filter: grayscale(100%) contrast(1.15) brightness(0.95) !important;
    -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.95) !important;
}

/* Stronger Sepia for Specific Images */
img.sepia-strong {
    filter: sepia(70%) saturate(0.7) brightness(1.02);
}

img.sepia-strong:hover {
    filter: sepia(65%) saturate(0.75) brightness(1.05);
}

/* No Filter for Specific Images */
img.no-filter {
    filter: none !important;
}

img.no-filter:hover {
    filter: none !important;
}

/* Hero Video Styles */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.15) brightness(0.95);
    -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.95);
    transition: filter 0.8s ease;
    -webkit-transition: -webkit-filter 0.8s ease;
}

.services-hero:hover .hero-video video {
    filter: grayscale(0%) contrast(1) brightness(1);
    -webkit-filter: grayscale(0%) contrast(1) brightness(1);
}

/* Mobile: Auto-fade from B&W to color */
@media (max-width: 768px) {
    .hero-video video {
        animation: fadeToColor 3s ease-out forwards;
        animation-delay: 2s;
    }
}

@keyframes fadeToColor {
    0% {
        filter: grayscale(100%) contrast(1.15) brightness(0.95);
        -webkit-filter: grayscale(100%) contrast(1.15) brightness(0.95);
    }
    100% {
        filter: grayscale(0%) contrast(1) brightness(1);
        -webkit-filter: grayscale(0%) contrast(1) brightness(1);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--charcoal);
}

.section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    /* transition removed to prevent hero shifting issues */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-right: 2rem;
}

.logo-image {
    height: 62px;
    width: auto;
    filter: none;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.85;
    filter: none;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--charcoal);
}

.logo-subtext {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-right: 4rem;
}

.nav-menu li a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 0.7rem 1.8rem;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(186, 12, 49, 0.3);
}

/* Navigation Contact Info */
.nav-contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin-left: auto;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.nav-contact-item:hover {
    color: var(--primary-color);
}

.nav-contact-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Larger LinkedIn icon */
.nav-contact-item[title="Follow us on LinkedIn"] svg {
    width: 26px;
    height: 26px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Global fix: Add spacing for fixed header on ALL pages */
/* This ensures every page's first section clears the fixed navbar */
nav.navbar + * {
    margin-top: 85px !important;
}

/* Hero Section */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

/* Spacer for content after .hero */
.hero + section {
    margin-top: 100vh !important;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    color: #ffffff !important;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(186, 12, 49, 0.4);
}

/* About Section */
.about {
    padding: 1.5rem 0 3rem;
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Services Section */
.services {
    padding: 1.5rem 0 3rem;
    background: var(--white);
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.services-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(186, 12, 49, 0.2);
}

.service-card:hover::before {
    width: 100%;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Service Item Cards (used on Family Office and similar pages) */
.fos-service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fos-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.fos-service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.fos-service-icon svg {
    width: 100%;
    height: 100%;
}

.fos-service-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 1rem;
}

.fos-service-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #000;
    line-height: 1.7;
    text-align: center;
}

/* Threat Cards (used on Family Office and similar pages) */
.fos-threat-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fos-threat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.fos-threat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.fos-threat-icon svg {
    width: 100%;
    height: 100%;
}

.fos-threat-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.fos-threat-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #000;
    line-height: 1.6;
}

/* Benefit Cards (used on Join Us and similar pages) */
.benefit-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #000;
}

/* Global Red Bullet Points for Content Lists */
.service-card ul,
.content-list,
.services-description ul,
.opportunity-card ul,
.insight-content ul,
.article-content ul,
.services-menu .services-header ul,
.services .services-header ul,
.services .container > div ul:not(.nav-menu),
section.services ul:not(.nav-menu):not([style*="white-space"]) {
    list-style: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin: 1rem 0;
}

.service-card ul li,
.content-list li,
.services-description ul li,
.opportunity-card ul li,
.insight-content ul li,
.article-content ul li,
.services-menu .services-header ul li,
.services .services-header ul li,
.services .container > div ul:not(.nav-menu) li,
section.services ul:not(.nav-menu):not([style*="white-space"]) li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-medium);
    padding: 0.5rem 0;
    padding-left: 1.25rem !important;
    position: relative;
    line-height: 1.7;
}

.service-card ul li::before,
.content-list li::before,
.services-description ul li::before,
.opportunity-card ul li::before,
.insight-content ul li::before,
.article-content ul li::before,
.services-menu .services-header ul li::before,
.services .services-header ul li::before,
.services .container > div ul:not(.nav-menu) li::before,
section.services ul:not(.nav-menu):not([style*="white-space"]) li::before {
    content: '' !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Reusable red bullets class */
.red-bullets,
ul.red-bullets {
    list-style: none !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin: 1rem 0;
}

.red-bullets li,
ul.red-bullets li {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-medium);
    padding: 0.5rem 0 !important;
    padding-left: 1.25rem !important;
    position: relative;
    line-height: 1.7;
}

.red-bullets li::before,
ul.red-bullets li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50%;
    transform: translateY(-50%);
    width: 6px !important;
    height: 6px !important;
    background: var(--primary-color) !important;
    border-radius: 50% !important;
}

/* Exclude footer lists from red bullets */
.footer ul,
.footer-column ul,
footer ul {
    list-style: none !important;
}

.footer ul li::before,
.footer-column ul li::before,
footer ul li::before {
    display: none !important;
}

/* Concierge Section */
.concierge {
    padding: 0 0 8rem 0;
    background: var(--light-gray);
}

.concierge-banner {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 6rem;
}

.concierge-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concierge-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.concierge-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.concierge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.concierge-card {
    background: var(--white);
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.concierge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.concierge-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.concierge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.concierge-card:hover .concierge-image img {
    transform: scale(1.1);
}

.concierge-info {
    padding: 2.5rem;
}

.concierge-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.concierge-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 1.5rem 0 3rem;
    position: relative;
    z-index: 10;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #BA0C2F;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

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

/* About Excellence Section */
.about-excellence {
    padding: 1.5rem 0 3rem;
    background: #2c2c2c;
    color: var(--white);
    text-align: center;
}

.excellence-divider {
    width: 80px;
    height: 3px;
    background: var(--white);
    margin: 0 auto 3rem auto;
}

.excellence-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.excellence-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5rem;
}

.excellence-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.excellence-content p:last-child {
    margin-bottom: 0;
}

.excellence-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem auto 0 auto;
    max-width: 1000px;
}

.excellence-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.excellence-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

.excellence-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

.excellence-card-inactive {
    opacity: 0.5;
    cursor: default;
}

.excellence-card-inactive:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--charcoal);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info .section-label {
    color: var(--gold-accent);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-container {
    background: #F8F6F3;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-group select {
    padding: 1rem;
    background: var(--white);
    border: 1px solid #D8D8D8;
    color: #2C2C2C;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    cursor: pointer;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--white);
    border: 1px solid #D8D8D8;
    color: #2C2C2C;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 12, 49, 0.1);
}

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

.form-group input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(186, 12, 49, 0.4);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    overflow-x: hidden;
}

.footer .container {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 2rem;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-image {
    height: 75px;
    filter: brightness(0) invert(1);
}

.footer-brand .logo-image:hover {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

/* Footer grid layouts - desktop */
.footer-outer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
}

.footer-column {
    flex: 0 1 auto;
    min-width: 180px;
}

/* Footer lists - single column to prevent overflow */
.footer-expertise-list,
.footer-sitemap-list,
.footer-legal-list {
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: normal !important;
}

.footer-expertise-list li,
.footer-sitemap-list li,
.footer-legal-list li {
    padding: 0;
    margin: 0 0 0.5rem 0;
    white-space: normal !important;
}

.footer-expertise-list li a,
.footer-sitemap-list li a,
.footer-legal-list li a {
    white-space: normal !important;
    word-wrap: break-word;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem !important;
    font-style: italic;
}

/* Services Page Styles */
.services-hero {
    position: relative;
    width: 100%;
    height: 520px;
    min-height: 520px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Account for fixed navbar */
}

/* No spacer needed for relative positioning */
.services-hero + section,
.services-hero + .services-menu,
.services-hero + .tabs-container,
.services-hero + .login-container {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* Login container needs background and z-index for parallax */
.login-container {
    position: relative;
    z-index: 10;
    background: var(--white);
}

/* Full-width background for containers with max-width */
.login-container::before,
.tabs-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--white);
    z-index: -1;
}

/* Ensure tabs-container has proper positioning */
.tabs-container {
    position: relative;
    z-index: 10;
    background: var(--white);
}

/* Home page has taller hero */
#home.services-hero {
    height: 100vh;
    min-height: 600px;
}

#home.services-hero + section {
    margin-top: 100vh !important;
}

/* Home page specific image styling */
#home.services-hero .hero-overlay {
    display: none;
}

#home.services-hero .hero-image img {
    filter: none !important;
    -webkit-filter: none !important;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

/* Content sections scroll over the hero */
section:not(.services-hero),
.services-menu,
.tabs-container,
footer {
    position: relative;
    z-index: 10;
}

/* Ensure content sections have backgrounds so they cover the hero */
section:not(.services-hero):not(.about-excellence) {
    background: var(--white);
}

.services-menu {
    background: var(--cream) !important;
}

/* Dark sections keep their background */
.about-excellence {
    background: #2c2c2c !important;
}

.contact {
    background: var(--charcoal) !important;
}

footer.footer {
    background: #1a1a1a !important;
}

.services-hero .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.services-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.75), rgba(50, 50, 50, 0.6));
    z-index: 2;
}

.services-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
}

.services-hero .hero-title {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.services-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
}

.services-menu {
    padding: 1.5rem 0 1.5rem;
    background: var(--cream);
}

.back-to-services {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-to-services:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.back-to-services svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-services:hover svg {
    transform: translateX(-3px);
}

/* Back to Insights link for insight articles */
.back-to-insights {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.back-to-insights:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.back-to-insights svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-insights:hover svg {
    transform: translateX(-3px);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-category-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-category-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.service-category-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.08);
}

.service-category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-category-icon svg {
    width: 100%;
    height: 100%;
}

.service-category-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.service-category-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    align-self: flex-start;
}

.service-category-card:hover .card-arrow {
    transform: translateX(10px);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--light-gray);
    color: var(--text-medium);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* People/Team Page Styles */
.team-section-header {
    margin-top: 5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.team-section-header:first-of-type {
    margin-top: 3rem;
}

.team-section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    width: 350px;
    margin: 0 auto;
}

.team-card.hidden {
    display: none;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.team-info {
    padding: 2.5rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.team-role {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-location {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.team-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Profile Modal Styles */
.profile-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.modal-header {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem;
    border-bottom: 1px solid var(--light-gray);
}

.modal-photo-container {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.modal-header-info .modal-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-header-info .modal-location {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-body {
    padding: 3rem;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.experience-item,
.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h4,
.education-item h4 {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}

.experience-item .company,
.education-item .degree {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.2rem;
}

.experience-item .dates,
.education-item .dates {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.experience-item .exp-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.modal-contact {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-contact div {
    font-size: 1rem;
}

.modal-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-contact a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */

/* Desktop and larger screens - prevent banner text from going under navbar when scrolling */
@media (min-width: 769px) {
    .hero {
        padding-top: 140px;
    }

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

/* iPad and tablet landscape mode - needs more top spacing */
@media (min-width: 769px) and (max-width: 1366px) {
    nav.navbar + * {
        margin-top: 120px !important;
    }

    /* Hero sections on iPad/tablet landscape */
    .services-hero {
        position: relative !important;
        height: 520px !important;
        min-height: 520px !important;
        padding-top: 80px !important;
    }

    .services-hero + section,
    .services-hero + .services-menu,
    .services-hero + .tabs-container,
    .services-hero + .login-container {
        margin-top: 0 !important;
    }

    .services-hero .hero-content {
        position: relative !important;
        padding: 2rem !important;
    }

    .services-hero .hero-title {
        font-size: 3rem !important;
    }

    .services-hero .hero-subtitle {
        font-size: 1.2rem !important;
    }

    /* Home page hero can be taller */
    #home.services-hero {
        min-height: 70vh !important;
    }

    #home.services-hero + section {
        margin-top: 0 !important;
    }

    .nav-container {
        padding-right: 2rem !important;
    }

    /* Fix Contact Us button being compressed on iPad landscape */
    .nav-cta {
        white-space: nowrap;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 1rem !important;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-contact-info {
        gap: 0.75rem;
    }

    .nav-contact-item {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

/* iPad Portrait - hide contact text, show icons only */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-contact-item span {
        display: none;
    }

    .nav-contact-item svg {
        width: 24px;
        height: 24px;
    }

    .nav-contact-info {
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu li a {
        font-size: 0.9rem !important;
    }

    /* Stack contact section columns in portrait */
    .contact-content {
        grid-template-columns: 1fr !important;
    }

    /* Stack service card grids vertically on iPad portrait */
    /* This fixes Asset Management and Retirement Plan Services pages */
    .services-grid[style*="repeat(3, 1fr)"],
    .services-grid[style*="repeat(4, 1fr)"],
    .services-grid[style*="repeat(3, minmax"],
    .services-grid[style*="repeat(4, minmax"],
    .services-grid[style*="repeat(2, minmax"] {
        grid-template-columns: 1fr !important;
        max-width: 700px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .nav-container {
        padding: 0.75rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .excellence-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer tablet styles - stack columns to prevent overflow */
    .footer-outer-grid {
        display: flex !important;
        flex-wrap: wrap;
        gap: 2rem 3rem;
        justify-content: center;
        padding: 0 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-column {
        flex: 0 1 auto;
        min-width: 180px;
        max-width: 280px;
    }

    /* Footer lists - single column on tablet with text wrapping */
    .footer-expertise-list,
    .footer-sitemap-list,
    .footer-legal-list {
        display: block !important;
        grid-template-columns: 1fr !important;
        white-space: normal !important;
    }

    .footer-expertise-list li,
    .footer-sitemap-list li,
    .footer-legal-list li {
        margin-bottom: 0.5rem;
        white-space: normal !important;
    }

    .footer-expertise-list li a,
    .footer-sitemap-list li a,
    .footer-legal-list li a {
        white-space: normal !important;
        word-wrap: break-word;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Ensure all containers respect mobile width */
    .container, section, div {
        max-width: 100%;
    }

    /* Ensure bullet points have enough left space on mobile */
    .service-card ul,
    .services-header ul,
    .services ul:not(.nav-menu),
    section.services ul:not(.nav-menu),
    .container ul:not(.nav-menu):not([style*="white-space"]),
    .red-bullets,
    ul.red-bullets {
        margin-left: 1rem !important;
        padding-left: 1rem !important;
    }

    .service-card ul li,
    .services-header ul li,
    .services ul:not(.nav-menu) li,
    section.services ul:not(.nav-menu) li,
    .container ul:not(.nav-menu):not([style*="white-space"]) li,
    .red-bullets li,
    ul.red-bullets li {
        padding-left: 1.75rem !important;
    }

    /* Force iframes and embeds to be responsive */
    iframe, embed, object {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Map containers */
    #map-container, [id*="map"] {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Adjust header spacing for smaller navbar on mobile */
    nav.navbar + * {
        margin-top: 130px !important;
    }

    /* Extra padding for hero sections on mobile */
    .services-hero .hero-content {
        padding-top: 60px;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    /* Hide navigation items on mobile - they'll be in the slide-out menu */
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        align-items: flex-start;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-right: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-left: 0;
        margin-top: 2rem;
        padding: 1.5rem 0;
        width: 100%;
        border-top: 2px solid #f0f0f0;
    }

    .nav-contact-item {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .nav-contact-item span {
        display: inline;
    }

    .nav-contact-item svg {
        width: 18px;
        height: 18px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        margin-top: 1.5rem;
        display: block;
        padding: 1rem 2rem;
    }

    /* Mobile menu backdrop */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-excellence {
        padding: 4rem 0;
    }

    .excellence-title {
        font-size: 2rem;
    }

    .excellence-content p {
        font-size: 0.95rem;
    }

    .excellence-card {
        padding: 3rem 1.5rem;
        min-height: 150px;
    }

    .excellence-card h3 {
        font-size: 0.95rem;
    }

    .concierge-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .concierge-banner {
        height: 300px;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Services cards */
    .services-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Force all grids to single column on mobile */
    [class*="grid"] {
        grid-template-columns: 1fr !important;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
    }

    .team-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }

    /* Team Filters */
    .team-filters {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .filter-group {
        min-width: 100%;
    }

    /* Profile Pages */
    .profile-hero {
        padding: 1.5rem 0 1rem !important;
    }

    .profile-container {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .profile-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }

    .profile-photo {
        width: 100%;
        height: auto;
    }

    .profile-main {
        width: 100%;
    }

    /* Footer */
    footer.footer .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    footer.footer .footer-column {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Override inline grid styles for mobile footer */
    .footer-outer-grid {
        display: block !important;
    }

    .footer-grid {
        display: block !important;
    }

    /* Footer lists - single column on mobile */
    .footer-expertise-list,
    .footer-sitemap-list {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-expertise-list li,
    .footer-sitemap-list li {
        display: block !important;
        padding: 0 !important;
        padding-left: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 0.7rem !important;
    }

    footer .footer-column ul,
    .footer-grid ul {
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        list-style: none !important;
        display: block !important;
    }

    footer .footer-column ul li,
    .footer-grid ul li {
        padding-left: 0 !important;
        margin-left: 0 !important;
        display: block !important;
    }

    /* Contact Forms */
    .contact-content,
    #contact .contact-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .contact-form-container {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Office Locations Grid - Override inline styles */
    .contact-form-container > div[style*="grid-template-columns"],
    .contact-form-container div[style*="repeat(3"],
    div[style*="repeat(3, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .office-location {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Map Container */
    #map-container {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    #office-map {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Login Page */
    .login-container {
        padding: 3rem 1.5rem !important;
    }

    .login-options {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .login-card {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }

    /* Services/Expertise Pages - Fix for mobile */
    .services-hero {
        position: relative !important;
        height: auto !important;
        min-height: 350px !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    .services-hero + section,
    .services-hero + .services-menu,
    .services-hero + .tabs-container,
    .services-hero + .login-container {
        margin-top: 0 !important;
    }

    .services-hero .hero-content {
        position: relative !important;
        z-index: 3 !important;
        padding: 2rem 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .services-hero .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .services-hero .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }

    /* Buttons */
    .btn, .btn-primary, .btn-submit {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .nav-container {
        padding: 0.5rem 1.5rem;
    }

    .logo-image {
        max-height: 50px;
    }

    /* About page */
    .about-content {
        grid-template-columns: 1fr !important;
    }

    /* Careers page */
    .careers-content {
        padding: 2rem 1.5rem;
    }

    .job-listing {
        padding: 1.5rem;
    }

    /* Tabs and tab content */
    .tabs-container {
        max-width: 100%;
        padding: 0 1rem !important;
    }

    .tabs {
        max-width: 100%;
    }

    .tab-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Insight/Blog pages */
    .insight-grid {
        grid-template-columns: 1fr !important;
    }

    .insight-card {
        padding: 1.5rem;
    }

    /* Office locations */
    .office-grid {
        grid-template-columns: 1fr !important;
    }

    .office-card {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Back to Team link */
    .back-link {
        font-size: 0.95rem;
    }

    /* Experience and Education sections */
    .experience-section, .education-section {
        padding: 2rem 0;
    }

    .experience-item, .education-item {
        padding: 1.5rem 0;
    }

    /* Adjust section padding */
    section {
        padding: 3rem 0;
    }

    /* Hero sections */
    .hero {
        height: 100vh;
        max-height: 500px;
    }

    .hero-image img {
        object-fit: cover;
    }

    /* Home page hero mobile adjustments */
    #home.services-hero {
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
    }

    #home.services-hero .hero-content {
        padding: 120px 1.5rem 80px 1.5rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
    }

    #home.services-hero .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    #home.services-hero .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        padding-bottom: 2rem !important;
    }

    #home.services-hero + section {
        margin-top: 0 !important;
    }

    /* Stats section mobile */
    .stats-section {
        position: relative !important;
        z-index: 10 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
    }

    /* Awards section mobile */
    .awards-section .awards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .awards-section .awards-grid a {
        padding: 1rem 0.5rem;
    }

    .awards-section .awards-grid span {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .awards-section .awards-grid svg {
        width: 45px !important;
        height: 45px !important;
    }

    /* Excellence cards mobile */
    .excellence-categories {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Team Filters */
.team-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-search-group {
    position: relative;
}

.filter-search-group > div {
    position: relative;
}

.filter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.filter-label span {
    color: var(--primary-color);
    font-weight: 500;
}

.filter-select {
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.filter-search {
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    color: var(--text-dark);
    width: 100%;
    transition: all 0.3s ease;
}

.filter-search:hover {
    border-color: var(--primary-color);
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1);
}

.filter-search::placeholder {
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    /* Adjust header spacing for even smaller navbar */
    nav.navbar + * {
        margin-top: 120px !important;
    }

    /* Extra padding for hero sections on very small screens */
    .services-hero .hero-content {
        padding-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about {
        padding: 3rem 0;
    }

    .services {
        padding: 3rem 0;
    }

    .concierge {
        padding: 0 0 3rem 0;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .about-image img {
        height: 300px;
    }

    .concierge-image {
        height: 200px;
    }

    .excellence-title {
        font-size: 1.75rem;
    }

    .excellence-content p {
        font-size: 0.9rem;
    }

    .excellence-card {
        padding: 2.5rem 1rem;
        min-height: 120px;
    }

    .excellence-card h3 {
        font-size: 0.85rem;
    }

    /* Smaller team photos on very small screens */
    .team-photo {
        width: 120px;
        height: 120px;
    }

    .profile-photo {
        width: 100%;
        height: auto;
    }

    /* Smaller buttons */
    .btn, .btn-primary, .btn-submit {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    /* Tighter spacing */
    .team-grid {
        gap: 1rem;
    }

    .login-options {
        gap: 1.5rem;
    }

    /* Smaller hero height */
    .hero {
        height: 100vh;
        max-height: 400px;
    }

    .services-hero {
        position: relative !important;
        height: auto !important;
        min-height: 300px !important;
        padding-top: 70px !important;
        padding-bottom: 30px !important;
    }

    .services-hero .hero-title {
        font-size: 1.6rem !important;
    }

    .services-hero .hero-subtitle {
        font-size: 0.85rem !important;
    }

    /* Home page hero - ensure full visibility on small screens */
    #home.services-hero {
        min-height: 100vh !important;
    }

    #home.services-hero .hero-content {
        padding: 90px 1rem 50px 1rem !important;
    }

    #home.services-hero .hero-title {
        font-size: 1.8rem !important;
    }

    #home.services-hero .hero-subtitle {
        font-size: 0.9rem !important;
    }

    /* Stats on very small screens */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    /* Awards on very small screens */
    .awards-section .awards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .awards-section .awards-grid span {
        font-size: 0.7rem !important;
    }

    .awards-section .awards-grid svg {
        width: 40px !important;
        height: 40px !important;
    }

    /* Contact info font size */
    .nav-contact-item {
        font-size: 0.85rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 2rem 0;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Profile hero */
    .profile-hero {
        padding: 1rem 0 0.5rem !important;
    }

    .profile-container {
        padding: 1.5rem 1rem;
    }

    /* Forms */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }
}

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

.service-card,
.concierge-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== GLOBAL HERO FIX - MUST BE LAST ========== */
/* These rules override ALL media queries to prevent hero shifting on scroll */
html body section.services-hero {
    margin-top: 0 !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    padding-top: 100px !important;
    padding-bottom: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body nav.navbar + section.services-hero {
    margin-top: 0 !important;
}

html body section.services-hero .hero-content {
    position: relative !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

html body section.services-hero + section,
html body section.services-hero + .services-menu,
html body section.services-hero + .tabs-container,
html body section.services-hero + .login-container {
    margin-top: 0 !important;
}

/* Home page hero is taller */
html body section#home.services-hero {
    height: 100vh !important;
    min-height: 600px !important;
    max-height: none !important;
}

html body section#home.services-hero + section {
    margin-top: 0 !important;
}
/* ========== END GLOBAL HERO FIX ========== */
