/* ==========================================================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0F1E36;        /* Luxury Deep Navy Blue */
    --color-primary-light: #1A3154;  /* Medium Slate Navy */
    --color-primary-dark: #070F1C;   /* Almost Black Navy */
    --color-accent: #C5A880;         /* Classic Muted Luxury Gold */
    --color-accent-light: #DFCDA8;   /* Light Champagne Gold */
    --color-accent-hover: #A3855E;   /* Darker Gold for Hover States */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8F9FB;       /* Soft Premium Light Gray */
    --color-text-dark: #2D3748;      /* Deep Slate for high-readability body */
    --color-text-muted: #5A6A85;    /* Gray-blue for subtitles and descriptions */
    --color-text-light: #F8F9FA;     /* Clean Off-white for dark background text */
    --color-border: #E8ECEF;         /* Subtle gray for layout divisions */
    --color-border-gold: rgba(197, 168, 128, 0.25); /* Transparent gold border */

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;

    /* Shadow & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 30, 54, 0.05), 0 4px 6px -2px rgba(15, 30, 54, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 30, 54, 0.08), 0 10px 10px -5px rgba(15, 30, 54, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll animation base classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for lists or grid items */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-tagline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 20px;
}

.title-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 0 auto 24px auto;
}

.section-header.text-center .title-divider {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border-color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.accent-color {
    color: var(--color-accent);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    padding: 24px 0;
}

.main-header.sticky {
    background-color: rgba(15, 30, 54, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

/* Desktop Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.05em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Navigation Call to Action Button */
.nav-btn-cta {
    background-color: var(--color-accent);
    color: var(--color-primary-dark) !important;
    padding: 8px 18px !important;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

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

.nav-btn-cta:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-light);
    transition: var(--transition-smooth);
}

/* Hamburger active animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    /* Subtle luxury dark grid pattern */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(26, 49, 84, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(197, 168, 128, 0.1) 0%, transparent 50%);
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(7, 15, 28, 0.9) 0%, rgba(15, 30, 54, 0.5) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    background-color: rgba(197, 168, 128, 0.05);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-text-light);
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-title .highlight {
    font-style: italic;
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(248, 249, 250, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* Mouse Scroll Down Icon */
.hero-scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-down a:hover {
    color: var(--color-accent);
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.hero-scroll-down a:hover .scroll-mouse {
    border-color: var(--color-accent);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouseWheel 2s infinite;
}

@keyframes scrollMouseWheel {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 16px; }
    100% { opacity: 0; top: 16px; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.about-text-content {
    padding-right: 20px;
}

.about-text-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    line-height: 1.6;
    color: var(--color-primary) !important;
    font-weight: 500;
}

.mission-box {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.mission-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.mission-box p {
    margin-bottom: 0;
    font-style: italic;
    font-size: 0.95rem;
}

/* Values Sidebar */
.about-values {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-gold);
}

.values-header h3 {
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.values-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    font-size: 1.25rem;
    color: var(--color-accent);
    background-color: rgba(197, 168, 128, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.value-info h4 {
    color: var(--color-text-light);
    font-size: 1.05rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 6px;
}

.value-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   PRACTICE AREAS SECTION
   ========================================================================== */
.practice-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-card {
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-smooth);
    z-index: 3;
}

.practice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 30%,
            rgba(255, 255, 255, 0.25) 40%,
            rgba(197, 168, 128, 0.25) 45%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 60%,
            transparent 100%
        ) no-repeat -200% 0 / 200% 100%,
        radial-gradient(
            600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(197, 168, 128, 0.12),
            transparent 50%
        );
    opacity: 0;
    transition: opacity 0.5s ease, background-position 0s;
    z-index: 1;
    pointer-events: none;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    display: inline-block;
}

.practice-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-primary);
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
    transition: var(--transition-smooth);
}

.practice-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transform: translateZ(10px);
    transition: var(--transition-smooth);
}

/* Practice Card Hover States */
.practice-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.45);
}

.practice-card:hover::before {
    background-color: var(--color-accent);
}

.practice-card:hover::after {
    opacity: 1;
    background-position: 200% 0, 0 0;
    transition: opacity 0.5s ease, background-position 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.practice-card:hover h3 {
    color: var(--color-primary-light);
}

.practice-card:hover .card-icon {
    color: var(--color-primary);
    transform: translateZ(35px) scale(1.05);
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.why-us-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.why-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(197, 168, 128, 0.2);
    line-height: 1;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.why-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--color-primary);
}

.why-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.why-card:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-card:hover .why-num {
    color: var(--color-accent);
}

.why-card:hover h3 {
    color: var(--color-text-light);
}

.why-card:hover p {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   FOUNDER SECTION
   ========================================================================== */
.founder-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
}

.founder-frame {
    padding: 12px;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.founder-frame::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60%;
    height: 60%;
    border-top: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
    z-index: -1;
}

.founder-frame::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60%;
    height: 60%;
    border-bottom: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    z-index: -1;
}

.founder-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    display: block;
}

.founder-placeholder-img {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-accent-light);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    text-align: center;
}

.founder-placeholder-img i {
    font-size: 4.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.founder-placeholder-img span {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.founder-details {
    padding-left: 10px;
}

.founder-role {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-weight: 500;
}

.founder-bio {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.credentials-box {
    margin-top: 35px;
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.credentials-box h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credentials-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.credentials-list li i {
    color: var(--color-accent);
    margin-top: 3px;
    font-size: 0.95rem;
}


/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--color-primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--color-accent-light);
}

.team-img-placeholder {
    font-size: 5rem;
    color: rgba(197, 168, 128, 0.4);
    transition: var(--transition-smooth);
}

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

.team-card:hover .team-img-placeholder {
    color: var(--color-accent);
    transform: scale(1.1);
}

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

.team-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media screen and (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.column-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.info-intro {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    background-color: rgba(197, 168, 128, 0.08);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-gold);
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.contact-detail-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-link:hover {
    color: var(--color-accent);
}

.sub-detail {
    font-size: 0.8rem !important;
    opacity: 0.8;
    margin-top: 2px;
}

/* Social Icon Blocks */
.social-connect {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.social-connect h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    border: 1px solid var(--color-border);
}

.social-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(197, 168, 128, 0.2);
}

/* Contact Form CSS */
.consultation-form {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.consultation-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary-light);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.consultation-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6A85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.consultation-form textarea {
    resize: vertical;
}

.form-feedback {
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
}

.form-feedback.success {
    color: #2F855A;
}

.form-feedback.error {
    color: #C53030;
}

/* Styled Map */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.map-container iframe {
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: var(--transition-smooth);
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border-gold);
}

.footer-top {
    padding: 80px 0 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1);
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.footer-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-contacts h4 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contacts h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul a:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

.footer-contacts p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contacts p i {
    color: var(--color-accent);
}

.footer-contacts p a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 30px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px; /* Initially hidden */
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

#back-to-top.show {
    right: 30px;
}

#back-to-top:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* 1024px and below (Large Tablets) */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text-content {
        padding-right: 0;
    }
    
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .founder-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }
    
    .founder-details {
        padding-left: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

/* 768px and below (Mobile & Tablets) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
    }

    .main-header {
        padding: 16px 0;
    }

    .main-header.sticky {
        padding: 12px 0;
    }

    /* Full-screen drawer for mobile navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-primary-dark);
        border-left: 1px solid var(--color-border-gold);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 1005;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--color-text-light);
    }
    
    .nav-btn-cta {
        padding: 12px 30px !important;
        width: 200px;
        text-align: center;
    }

    .hero-section {
        height: auto;
        min-height: 820px;
        padding: 120px 0 100px 0;
    }

    .hero-container {
        padding-top: 0;
    }

    .hero-scroll-down {
        bottom: 15px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   PREMIUM WHATSAPP CHAT WIDGET
   ========================================================================== */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    font-family: var(--font-sans);
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    outline: none;
}

.whatsapp-float-btn i {
    font-size: 1.4rem;
}

.whatsapp-float-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
}

/* Red notifying badge on button */
.whatsapp-badge-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #FF3B30;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.6);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Chat Window Box */
.whatsapp-chat-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 350px;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 1001;
}

.whatsapp-chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header style with website logo */
.chat-header {
    background-color: var(--color-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    border-bottom: 2px solid var(--color-accent);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-accent);
    padding: 2px;
}

.chat-header-info h5 {
    color: var(--color-text-light);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-serif);
    letter-spacing: 0.03em;
}

.chat-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #25D366;
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.chat-close:hover {
    color: var(--color-accent);
}

.chat-body {
    padding: 16px;
    background-color: #F4F6F9;
    max-height: 280px;
    overflow-y: auto;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 10px 10px;
}

.chat-bubble {
    background-color: var(--color-bg-white);
    padding: 12px 14px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 95%;
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--color-bg-white);
}

.chat-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.chat-msg {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    line-height: 1.5;
    text-align: right;
    direction: rtl;
}

.chat-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    display: block;
    text-align: right;
    margin-top: 6px;
}

/* Chat Footer with green CTA button */
.chat-footer {
    padding: 15px 20px;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.btn-whatsapp-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: #FFFFFF !important;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
    transition: var(--transition-smooth);
    border: none;
    width: 100%;
}

.btn-whatsapp-chat:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.3);
}

.btn-whatsapp-chat i {
    font-size: 1.15rem;
}

/* Hide chat button text on small mobile screens if open */
@media screen and (max-width: 480px) {
    .whatsapp-widget-container {
        left: 20px;
        bottom: 20px;
    }
    .whatsapp-float-btn {
        padding: 12px;
        border-radius: 50%;
    }
    .whatsapp-float-btn span.whatsapp-btn-text {
        display: none;
    }
    .whatsapp-chat-window {
        width: calc(100vw - 40px);
        bottom: 60px;
    }
}

/* ==========================================================================
   RTL / ARABIC LAYOUT SUPPORT
   ========================================================================== */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', sans-serif;
}

/* Scroll progress */
[dir="rtl"] #scroll-progress {
    left: auto;
    right: 0;
}

/* Mission box border and border radius */
[dir="rtl"] .mission-box {
    border-left: none;
    border-right: 3px solid var(--color-accent);
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

/* Founder frame borders alignment */
[dir="rtl"] .founder-frame::after {
    left: auto;
    right: -15px;
    border-left: none;
    border-right: 3px solid var(--color-accent);
}

[dir="rtl"] .founder-frame::before {
    right: auto;
    left: -15px;
    border-right: none;
    border-left: 3px solid var(--color-accent);
}

/* Consultation form dropdown arrow */
[dir="rtl"] .consultation-form select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

/* Back to top button swaps to the left side */
[dir="rtl"] #back-to-top {
    right: auto;
    left: -60px;
}

[dir="rtl"] #back-to-top.show {
    left: 30px;
    right: auto;
}

/* WhatsApp Widget swaps to the right side */
[dir="rtl"] .whatsapp-widget-container {
    left: auto;
    right: 30px;
}

[dir="rtl"] .whatsapp-chat-window {
    left: auto;
    right: 0;
}

/* WhatsApp chat close button and status dot */
[dir="rtl"] .chat-close {
    right: auto;
    left: 15px;
}

[dir="rtl"] .chat-bubble {
    border-radius: var(--border-radius-md) 0 var(--border-radius-md) var(--border-radius-md);
}

[dir="rtl"] .chat-bubble::before {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 8px solid var(--color-bg-white);
}

[dir="rtl"] .chat-msg, 
[dir="rtl"] .chat-time {
    text-align: right;
}



/* Mobile responsive drawer override for RTL */
@media screen and (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--color-border-gold);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        transition: left 0.4s ease-in-out;
    }

    [dir="rtl"] .nav-menu.active {
        left: 0;
        right: auto;
    }
    
    [dir="rtl"] .whatsapp-widget-container {
        left: auto;
        right: 20px;
        bottom: 20px;
    }
    
    [dir="rtl"] .whatsapp-chat-window {
        width: calc(100vw - 40px);
        bottom: 60px;
        right: 0;
        left: auto;
    }
}
