/* =============================================
   HMH Law Firm - Main Stylesheet
   RTL Arabic Layout
   ============================================= */

:root {
    --navy: #0a1628;
    --navy-light: #132240;
    --navy-mid: #1a3056;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-dark: #b08e30;
    --sand: #f5f0e8;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #2ecc71;
    --danger: #e74c3c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

/* French mode: use Poppins for Latin text */
body.lang-fr {
    font-family: 'Poppins', 'Cairo', sans-serif;
}

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

ul { list-style: none; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Top Bar
   ============================================= */
.top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

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

.top-bar-contact {
    display: flex;
    gap: 24px;
}

.top-bar-contact a {
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-contact a:hover { color: var(--gold); }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px 14px;
    cursor: pointer;
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-size: 0.82rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--gold);
}

.lang-option {
    color: var(--gray-400);
    font-weight: 600;
    transition: var(--transition);
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.lang-option.active {
    color: var(--gold);
}

.lang-option:hover:not(.active) {
    color: var(--white);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-weight: 300;
    user-select: none;
}

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

.top-bar-social a {
    color: var(--gray-400);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--white);
    background: var(--gold);
}

/* =============================================
   Header
   ============================================= */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo with real image */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

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

.logo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.logo-subtitle {
    font-size: 0.72rem;
    color: var(--gray-600);
    line-height: 1.3;
}

/* Navigation */
.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
    background: var(--sand);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   Hero
   ============================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px 80px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 28px;
    filter: drop-shadow(0 4px 20px rgba(201,168,76,0.3));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(201,168,76,0.25);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat { text-align: center; color: var(--white); }

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    display: block;
    margin-top: 4px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--sand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* =============================================
   Section Common
   ============================================= */
.section { padding: 90px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--sand);
    color: var(--gold-dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   About / Team Section
   ============================================= */
.about { background: var(--gray-50); }

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

/* Lawyer Photo */
.team-photo {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c8cfe8 0%, #e0e4f0 100%);
    min-height: 380px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

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

/* Placeholder for missing photo */
.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--gold);
    font-size: 4rem;
    border-radius: 50%;
}

/* Lawyer Info */
.team-info {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 2px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 400;
    direction: ltr;
    text-align: right;
    margin-bottom: 4px;
}

.team-position {
    display: inline-block;
    background: var(--sand);
    color: var(--gold-dark);
    padding: 3px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: fit-content;
}

.team-qualifications {
    margin-bottom: 18px;
}

.team-qualifications h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-qualifications h4 i {
    color: var(--gold-dark);
    font-size: 1rem;
}

.team-qualifications ul {
    padding-right: 20px;
    list-style: none;
}

.team-qualifications ul li {
    position: relative;
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 6px;
    padding-right: 16px;
}

.team-qualifications ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.team-contact-bar {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.team-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    direction: ltr;
    padding: 8px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.team-phone:hover {
    color: var(--white);
    background: var(--navy);
}

.team-portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gold);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.team-portfolio-btn::after {
    content: '←';
    font-size: 0.9em;
    transition: transform 0.2s;
}

[dir="ltr"] .team-portfolio-btn::after {
    content: '→';
}

.team-portfolio-btn:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.team-portfolio-btn:hover::after {
    transform: translateX(-3px);
}

[dir="ltr"] .team-portfolio-btn:hover::after {
    transform: translateX(3px);
}

/* =============================================
   Services Section
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--sand);
    color: var(--gold-dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--navy);
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* =============================================
   Articles Section
   ============================================= */
.articles { background: var(--gray-50); }

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

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.article-img {
    height: 200px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.article-img-2 { background: linear-gradient(135deg, var(--navy-mid), #1e4070); }
.article-img-3 { background: linear-gradient(135deg, #1a3056, var(--navy)); }

.article-category {
    background: var(--gold);
    color: var(--navy);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.article-body { padding: 24px; }

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--gray-500);
}

.article-meta i { margin-left: 4px; }

.article-body h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.article-link {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-link:hover {
    color: var(--navy);
    gap: 10px;
}

/* =============================================
   Advice Form Section
   ============================================= */
.advice-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.advice-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.advice-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advice-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.advice-info-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.advice-info-icon {
    width: 50px;
    height: 50px;
    background: var(--sand);
    color: var(--gold-dark);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.advice-info-card h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.advice-info-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =============================================
   Booking Section
   ============================================= */
.booking { background: var(--gray-50); }

.booking-wrapper { max-width: 800px; margin: 0 auto; }

.booking-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 80px 0;
}

.cta-content { text-align: center; }

.cta-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 15px rgba(201,168,76,0.3));
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--navy);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-right: 6px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.contact-list li i {
    color: var(--gold);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-list li a {
    color: var(--gray-400);
    direction: ltr;
    display: inline-block;
}

.contact-list li a:hover { color: var(--gold); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* =============================================
   Scroll to Top
   ============================================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold-dark);
    transform: translateY(-4px);
}

/* =============================================
   LTR (French) Overrides
   ============================================= */
[dir="ltr"] .team-role {
    text-align: left;
}

[dir="ltr"] .team-qualifications ul {
    padding-right: 0;
    padding-left: 20px;
}

[dir="ltr"] .team-qualifications ul li {
    padding-right: 0;
    padding-left: 16px;
}

[dir="ltr"] .team-qualifications ul li::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 6px;
}

[dir="ltr"] .form-group select {
    background-position: right 16px center;
    padding-left: 16px;
    padding-right: 40px;
}

[dir="ltr"] .service-card::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .team-role {
    text-align: left;
}

[dir="ltr"] .nav {
    right: auto;
    left: -100%;
}

[dir="ltr"] .nav.open {
    right: auto;
    left: 0;
}

/* =============================================
   Animations
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 999;
        gap: 0;
    }

    .nav.open { right: 0; left: auto; }

    [dir="ltr"] .nav {
        right: auto;
        left: -100%;
    }

    [dir="ltr"] .nav.open {
        right: auto;
        left: 0;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .menu-toggle { display: flex; z-index: 1001; }

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

    .team-card {
        grid-template-columns: 260px 1fr;
    }

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

    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .advice-wrapper { grid-template-columns: 1fr; }

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

/* Mobile */
@media (max-width: 768px) {
    .top-bar-contact { gap: 12px; font-size: 0.78rem; }

    .hero { min-height: 80vh; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-logo { width: 90px; height: 90px; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 2rem; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }

    /* Team cards stack vertically on mobile */
    .team-card {
        grid-template-columns: 1fr;
    }

    .team-photo {
        min-height: 320px;
        max-height: 400px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .form-row { grid-template-columns: 1fr; }

    .advice-form,
    .booking-form { padding: 28px 20px; }

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

    .cta-content h2 { font-size: 1.6rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .top-bar-contact a:last-child { display: none; }

    .logo-text { display: none; }

    .hero-title { font-size: 1.7rem; }
    .hero-logo { width: 75px; height: 75px; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .btn-lg { padding: 12px 24px; font-size: 0.95rem; }

    .team-photo { min-height: 280px; }
}


/* =============================================
   Why HMH Section
   ============================================= */

/* -- Stats Strip -- */
.why-stats-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.why-stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(data:image/svg+xml,%3Csvg width=60 height=60 viewBox=0 0 60 60 xmlns=http://www.w3.org/2000/svg%3E%3Cg fill=none fill-rule=evenodd%3E%3Cg fill=%23c9a84c fill-opacity=0.04%3E%3Cpath d=M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z/%3E%3C/g%3E%3C/g%3E%3C/svg%3E);
    pointer-events: none;
}
.why-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.why-stat-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 20px 32px;
}
.why-stat-divider {
    width: 1px;
    height: 70px;
    background: rgba(201,168,76,0.3);
    flex-shrink: 0;
}
.why-stat-top {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-bottom: 10px;
}
.why-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -1px;
}
.why-stat-suffix {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.why-stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* -- Why Cards -- */
.why-cards-section {
    background: var(--gray-50);
}
.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 12px;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.why-card:hover::before {
    transform: scaleX(1);
}
.why-card-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}
.why-card-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}
.why-card:hover .why-card-icon {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.why-card:hover .why-card-icon i {
    color: var(--navy);
}
.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.why-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* -- Responsive -- */
@media (max-width: 900px) {
    .why-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-stat-divider { display: none; }
    .why-stat-item { min-width: 140px; padding: 16px 20px; }
}
@media (max-width: 560px) {
    .why-cards-grid { grid-template-columns: 1fr; }
    .why-stats-grid { gap: 8px; }
    .why-stat-item { min-width: 45%; padding: 14px 12px; }
}
