/*
Theme Name: Almazyed Law Firm
Theme URI: https://almazyadlaw.sa
Author: Ekal Marketing Agency
Description: Custom theme for Dr. Waleed Almazyed Law Firm — a premium Saudi law firm website with RTL support, blog, and independent service pages.
Version: 2.0.0
License: Proprietary
Text Domain: almazyed
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Tags: rtl, arabic, law-firm, custom-theme
*/

/* ==========================================================================
   1. CSS VARIABLES (:root)
   ========================================================================== */

:root {
    /* Core Colors */
    --primary-dark: #0A1A2F;
    --primary-color: #102C4C;
    --secondary-color: #B7934B;
    --secondary-light: #D4B683;
    --accent-gold: #C5A572;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-light: #6C7A89;
    --white: #FFFFFF;

    /* Variable aliases used throughout */
    --tertiary-color: #D4B683;
    --bg-dark: #0A1A2F;
    --gold: #C5A572;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-speed: 0.25s;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    --gradient-gold: linear-gradient(135deg, var(--secondary-color), var(--accent-gold));

    /* Shadows — 3-tier system (softer) */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 4px 16px rgba(183, 147, 75, 0.15);

    /* Typography */
    --font-heading: 'Tajawal', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    /* Dimensions */
    --header-height: 80px;
    --header-height-scrolled: 64px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius System */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* ==========================================================================
   2. RESET & GLOBAL
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

::-moz-selection {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

/* Focus-visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   3. SMOOTH SCROLLBAR
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--primary-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* ==========================================================================
   4. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==========================================================================
   5. BASE TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.9;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 0;
    margin: 0;
    width: 100%;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 1.15rem);
}

h6 {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

p + p {
    margin-top: 1.25rem;
}

/* ==========================================================================
   6. UTILITY / LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    width: 100%;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay removed from generic .section::before for performance.
   Applied individually on hero, services, contact, and footer sections. */

/* Subtle gold gradient divider between sections */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(183, 147, 75, 0.25), transparent);
    z-index: 2;
}

/* Standardized Section Titles (clamp-based, elegant) */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Section Headers Consistency */
.about-section .section-title,
.vision-section .section-title,
.services-section .section-title,
.team-section .section-title,
.contact-section .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Section Headers Alignment */
.services-section,
.team-section,
.contact-section {
    text-align: center;
}

.services-section .section-title,
.team-section .section-title,
.contact-section .section-title {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.services-section .section-title::after,
.team-section .section-title::after,
.contact-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.9;
}

.services-section .section-description,
.contact-section .section-description {
    color: #ffffff;
}

.team-section .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

/* ==========================================================================
   7. INTERACTIVE ELEMENTS BASE TRANSITIONS
   ========================================================================== */

/* Removed generic transition: all on a, button, input, img for performance.
   Each component defines its own specific transitions. */

/* ==========================================================================
   8. BUTTONS — Clean, professional
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    text-decoration: none;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 147, 75, 0.2);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    box-shadow: 0 4px 12px rgba(183, 147, 75, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 147, 75, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--white);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border-color: transparent;
}

.btn-icon {
    display: inline-block;
    margin-inline-start: 0.5rem;
    transition: transform var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-submit {
    width: 100%;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 0.875rem 2.25rem;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-submit:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-submit i {
    font-size: 1.1rem;
}

.btn-subscribe {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-subscribe:hover {
    background: var(--secondary-light);
    transform: translateY(-50%) scale(1.05);
}

/* ==========================================================================
   9. PRELOADER
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader::after {
    content: '';
    width: 44px;
    height: 44px;
    border: 2px solid var(--tertiary-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* ==========================================================================
   10. HEADER — Thinner, more elegant
   ========================================================================== */

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 26, 47, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    -ms-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
    padding: 0;
}

/* Scrolled Header State — slightly translucent glass */
.main-header.scrolled {
    position: fixed;
    background: rgba(10, 26, 47, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.main-header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.main-header.scrolled .nav-container {
    height: var(--header-height-scrolled);
}

.main-header.scrolled .logo img {
    max-height: 40px;
}

/* Cross-browser fallback */
@supports not (backdrop-filter: blur(10px)) {
    .main-header {
        background: rgba(10, 26, 47, 0.96);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height var(--transition-smooth);
    padding: 0 3.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    z-index: 2;
    padding: 0.25rem;
}

.logo img {
    max-height: 52px;
    width: auto;
    transition: var(--transition-smooth);
    filter: brightness(1.05);
    margin: 0 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.75rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--secondary-light);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   11. HEADER CTA BUTTON — Pill shape with subtle glow
   ========================================================================== */

.header-cta-btn {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(183, 147, 75, 0.3);
}

@media (max-width: 768px) {
    .header-cta-btn {
        display: none;
    }
}

/* ==========================================================================
   12. MOBILE MENU TOGGLE
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   13. HERO SECTION — Full viewport, gradient mesh, frosted CTA
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 44, 76, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(183, 147, 75, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(16, 44, 76, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    background-repeat: repeat;
    opacity: 0.03;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    color: var(--white);
    position: relative;
    letter-spacing: 0.02em;
}

/* h1::after line removed — .hero-divider handles this */

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2V6h4V4H6zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.08;
    z-index: 1;
}

.hero .highlight {
    display: block;
    color: var(--secondary-light);
    font-size: 0.85em;
    margin-top: 0.5rem;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto 2rem;
    border-radius: 2px;
    opacity: 0.8;
}

.hero p,
.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Frosted glass CTA buttons in hero */
.hero .btn-outline {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(183, 147, 75, 0.4);
}

.hero .btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border-color: transparent;
}

/* ==========================================================================
   14. ABOUT SECTION — Gold frame image
   ========================================================================== */

.about-section {
    background: linear-gradient(to bottom, var(--white), rgba(196, 165, 114, 0.06));
    padding: 60px 0;
}

/* Remove section divider for about since it starts clean */
.about-section::after {
    display: none;
}

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

/* Gold frame / double border image effect */
.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(183, 147, 75, 0.25);
    border-radius: calc(var(--radius-md) + 4px);
    z-index: 0;
    pointer-events: none;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid rgba(183, 147, 75, 0.1);
    border-radius: calc(var(--radius-md) + 10px);
    z-index: 0;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

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

.lead-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   15. VISION SECTION — Cleaner, larger icon
   ========================================================================== */

.vision-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(to bottom, #F8F9FC, #FFFFFF);
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    opacity: 0.03;
    pointer-events: none;
}

.vision-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vision-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.vision-header .section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
}

.title-accent {
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 0 auto;
    position: relative;
}

.title-accent::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    right: 90px;
    top: 0;
}

.title-accent::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    left: 90px;
    top: 0;
}

/* Vision Content */
.vision-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(183, 147, 75, 0.08);
}

.vision-text {
    position: relative;
}

.vision-text::before {
    content: '\201C';
    position: absolute;
    top: -2rem;
    right: -1rem;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.08;
    font-family: serif;
    line-height: 1;
}

.vision-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin: 0;
    text-align: justify;
}

.vision-decoration {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-icon {
    width: 140px;
    height: 140px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(183, 147, 75, 0.15);
    position: relative;
    z-index: 1;
}

.vision-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2.5s infinite;
}

.vision-icon i {
    font-size: 3.5rem;
    color: var(--primary-dark);
}

/* ==========================================================================
   16. SERVICES SECTION — Dark with animated gradient bg
   ========================================================================== */

.services-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #0d2240 100%);
    background-size: 200% 200%;
    animation: subtleGradientShift 12s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

@keyframes subtleGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.services-section::before {
    opacity: 0.02;
    transform: rotate(10deg) scale(1.2);
}

/* Remove section divider on dark sections */
.services-section::after {
    display: none;
}

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

/* Service card — gradient border top, inner glow on hover */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: right;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gradient border top effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), var(--accent-gold), transparent);
    opacity: 0.4;
    transition: opacity var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 40px rgba(183, 147, 75, 0.03), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-light);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.08);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
    transition: width var(--transition-smooth);
}

.service-card:hover h3::after {
    width: 60px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
    transition: var(--transition-smooth);
}

.service-card ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary-light);
    transition: var(--transition-smooth);
}

.service-card:hover ul li::before {
    background: var(--secondary-color);
}

.service-card ul li:hover {
    color: var(--white);
    transform: translateX(-3px);
}

/* ==========================================================================
   17. TEAM SECTION — Softer shadows, cleaner cards
   ========================================================================== */

.team-section {
    background: linear-gradient(to bottom, var(--white), rgba(16, 44, 76, 0.02));
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(183, 147, 75, 0.2), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.team-card {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 360px;
    perspective: 1500px;
    margin-bottom: 2rem;
    background: transparent;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s cubic-bezier(.175, .885, .32, 1.1);
    transform-style: preserve-3d;
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Front card: elegant, centered, soft shadow */
.team-card-front {
    background: white;
    transform: rotateY(0);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    transition: box-shadow var(--transition-smooth);
}

.team-card:hover .team-card-front {
    box-shadow: var(--shadow-lg);
}

/* Back card: better typography */
.team-card-back {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: rotateY(180deg);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 0;
    left: 0;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-member-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(197, 164, 126, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

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

.team-member-name {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 0.5rem 0;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.02em;
}

.team-member-title {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Back card: gold icon bullets */
.team-member-qualifications {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    color: var(--white);
}

.team-member-qualifications li {
    position: relative;
    padding-right: 1.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Gold diamond icon instead of dot */
.team-member-qualifications li::before {
    content: '\25C6';
    position: absolute;
    right: 0;
    color: var(--secondary-light);
    font-size: 0.6rem;
    top: 0.45rem;
}

/* ==========================================================================
   18. TRUST SECTION — Horizontal layout on desktop
   ========================================================================== */

.trust-section {
    background: linear-gradient(to bottom, var(--white), rgba(183, 147, 75, 0.04));
    text-align: center;
}

.trust-section .stats-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.trust-section .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(183, 147, 75, 0.06);
}

.trust-section .stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Icon in circular gold-bordered container */
.trust-section .stat-item .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Numbers with gradient text + thin underline */
.trust-section .stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.trust-section .stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--gradient-gold);
}

.trust-section .stat-label {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.stat-item:hover .stat-icon {
    background: var(--gradient-gold);
    color: var(--white);
    border-color: transparent;
}

.trust-licenses {
    margin-top: 3rem;
    text-align: center;
}

.trust-licenses-inner {
    display: inline-block;
    padding: 2.5rem 3rem;
    background: rgba(183, 147, 75, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(183, 147, 75, 0.15);
    max-width: 700px;
}

.trust-licenses h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.trust-licenses p {
    color: var(--text-secondary);
    line-height: 2;
}

@media (max-width: 768px) {
    .trust-section .stats-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trust-section .stat-item {
        padding: 2rem 1.5rem;
    }

    .trust-licenses-inner {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   19. CONTACT SECTION — Better focus states with gold glow
   ========================================================================== */

.contact-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    display: none;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    background-repeat: repeat;
    background-size: 400px;
    opacity: 0.02;
    transform: rotate(5deg) scale(1.2);
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.contact-section .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-section .section-description {
    color: #ffffff !important;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

/* Contact form */
.contact-form {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 35px;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.25s ease;
    text-align: right;
}

.contact-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.25s ease;
    text-align: right;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B7934B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1.25rem;
}

.contact-form input[type="tel"] {
    direction: rtl;
    text-align: right;
}

/* Gold glow focus states */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(183, 147, 75, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Tajawal', sans-serif;
}

.contact-form select option {
    background-color: var(--primary-dark);
    color: var(--white);
}

.contact-form button {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 147, 75, 0.25);
}

/* Contact Info */
.contact-info {
    color: var(--white);
}

.contact-info h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 100%;
    height: 1px;
    background: var(--secondary-color);
}

.info-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Remove pattern overlay from info-card */
.info-card::before {
    display: none;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 24px;
}

.info-content h4 {
    color: var(--secondary-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.info-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

.info-content a:hover {
    color: var(--secondary-color);
}

/* Social Links — smaller, refined, border instead of bg */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.social-link:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.social-link:hover i {
    color: var(--secondary-color);
}

/* ==========================================================================
   20. BRANCHES SECTION — Cleaner layout
   ========================================================================== */

.branches-section {
    padding: 4rem 0;
    margin-top: 4rem;
    background-color: var(--bg-dark);
    position: relative;
}

.branches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.branches-section::after {
    display: none;
}

.branches-section .section-title {
    text-align: center;
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 0.05em;
}

.gold-underline {
    position: relative;
    padding-bottom: 1rem;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Branch card — cleaner */
.branch-card {
    background: rgba(16, 44, 76, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.branch-card:hover {
    transform: translateY(-4px);
    background: rgba(16, 44, 76, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.branch-card:hover::before {
    opacity: 1;
}

.branch-content {
    padding: 2rem;
}

.branch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(183, 147, 75, 0.15);
}

.branch-name {
    font-size: 1.4rem;
    color: var(--white);
    margin: 0;
    position: relative;
}

/* Better icon badge */
.branch-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    color: var(--secondary-color);
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.branch-card:hover .branch-icon {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border-color: transparent;
}

.branch-details {
    padding-top: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.detail-item i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 0.25rem;
    color: var(--gold);
    font-size: 1.1rem;
    opacity: 0.85;
    transition: all 0.25s ease;
}

.detail-item:hover i {
    opacity: 1;
}

.detail-item p,
.detail-item a {
    flex: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
    transition: var(--transition-fast);
}

.detail-item a:hover {
    color: var(--secondary-light);
}

/* Branch info styling (within contact section) */
.branch-info {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    padding-right: 25px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.branch-info:last-child {
    margin-bottom: 0;
}

.branch-info .branch-title {
    color: var(--secondary-light);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.branch-info .info-item {
    margin-bottom: 1rem;
}

.branch-info .info-content {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.branch-info .info-content:last-child {
    margin-bottom: 0;
}

.branch-info .info-content i {
    color: var(--secondary-light);
    margin-left: 10px;
    font-size: 1.1rem;
}

.branch-info .info-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.25s ease;
}

.branch-info .info-content a:hover {
    color: var(--secondary-light);
}

/* ==========================================================================
   21. THANK YOU MESSAGE
   ========================================================================== */

.thank-you-message {
    text-align: center;
    padding: 3rem;
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.thank-you-message::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    opacity: 0.4;
}

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.thank-you-message i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.thank-you-message h3 {
    color: var(--secondary-color);
    font-size: 1.75rem;
    margin: 0;
    font-weight: 600;
}

.thank-you-message p {
    color: #ffffff;
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.7;
    opacity: 0.9;
}

/* Submit button variant */
.submit-btn {
    background: var(--primary-dark);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.875rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    font-family: var(--font-body);
}

.submit-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

/* ==========================================================================
   22. FOOTER — Cleaner grid, more whitespace
   ========================================================================== */

.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    pointer-events: none;
    opacity: 0.03;
    transform: rotate(-15deg) scale(1.5);
    mix-blend-mode: soft-light;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-about {
    max-width: 380px;
}

.footer-logo {
    margin-bottom: 25px;
}

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

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

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

/* Footer social — smaller, border style */
.footer-social .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social .social-link:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.footer-links h3 {
    color: var(--secondary-light);
    margin-bottom: 25px;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

/* Clean hover — no arrow animation */
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-light);
}

/* Newsletter form — sleek rounded design */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.04);
    padding: 28px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.footer-newsletter h3 {
    color: var(--secondary-light);
    margin-bottom: 15px;
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.newsletter-form .form-group {
    position: relative;
    margin: 0;
}

/* Sleek rounded newsletter input */
.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(183, 147, 75, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* MC4WP Mailchimp form styling in footer */
.footer-newsletter .mc4wp-form {
    margin-top: 0.5rem;
}

.footer-newsletter .mc4wp-form .form-group,
.footer-newsletter .mc4wp-form p {
    position: relative;
    margin: 0;
}

.footer-newsletter .mc4wp-form input[type="email"] {
    width: 100%;
    padding: 12px 50px 12px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.25s ease;
}

.footer-newsletter .mc4wp-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(183, 147, 75, 0.1);
}

.footer-newsletter .mc4wp-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .mc4wp-form input[type="submit"],
.footer-newsletter .mc4wp-form button[type="submit"] {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0;
}

.footer-newsletter .mc4wp-form input[type="submit"]:hover,
.footer-newsletter .mc4wp-form button[type="submit"]:hover {
    background: var(--secondary-light);
    transform: translateY(-50%) scale(1.05);
}

.footer-newsletter .mc4wp-form .mc4wp-response {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-newsletter .mc4wp-form .mc4wp-response .mc4wp-alert {
    padding: 0.5rem 0;
}

/* Footer bottom */
.footer-bottom {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-light);
}

.separator {
    color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   23. SCROLL-TO-TOP BUTTON
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   24. WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 1.6rem;
    transition: var(--transition-smooth);
    min-width: 44px;
    min-height: 44px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   25. BLOG & POST STYLES
   ========================================================================== */

/* Blog Section */
.blog-section {
    background: var(--white);
}

/* Category Filter Tabs */
.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.category-tab {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(16, 44, 76, 0.04);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.category-tab:hover,
.category-tab.active {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card — image overlay on hover, pill category badge */
.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(16, 44, 76, 0.04);
}

.post-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 26, 47, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.post-card:hover .post-card-image::after {
    opacity: 1;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform var(--transition-smooth);
}

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

.post-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: rgba(255, 255, 255, 0.25);
    font-size: 3rem;
}

/* Pill-shaped category badge */
.post-card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-card-meta i {
    margin-left: 0.25rem;
    color: var(--secondary-color);
}

.post-card-readmore {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.post-card:hover .post-card-readmore {
    color: var(--primary-dark);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-posts h3 {
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .nav-links,
.posts-navigation .nav-links,
nav.navigation .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(16, 44, 76, 0.04);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark);
}

.page-numbers.dots {
    background: none;
}

/* ==========================================================================
   26. SINGLE POST — Elegant article styles
   ========================================================================== */

/* Post Hero */
.post-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background: var(--gradient-primary);
    overflow: hidden;
}

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

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

.post-hero-overlay {
    position: relative;
    width: 100%;
    padding: 4rem 0 3rem;
    background: linear-gradient(to top, rgba(10, 26, 47, 0.95) 0%, rgba(10, 26, 47, 0.5) 50%, transparent 100%);
    z-index: 2;
}

.post-hero-category {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-hero-title {
    color: var(--white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 800px;
}

.post-hero-meta {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-hero-meta i {
    margin-left: 0.4rem;
    color: var(--secondary-light);
}

/* Post Article Content — elegant drop cap */
.post-content-section {
    background: var(--white);
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-primary);
}

/* Drop cap on first paragraph */
.post-article > p:first-of-type::first-letter {
    float: right;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.75rem;
    margin-top: 0.1rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.post-article h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--secondary-color);
    margin: 2.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.post-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.post-article h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-dark);
    margin: 2rem 0 0.75rem;
}

.post-article p {
    margin-bottom: 1.5rem;
}

/* Blockquote: refined with gold left+right borders, centered with max-width */
.post-article blockquote {
    border-right: 3px solid var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
    padding: 1.75rem 2.5rem;
    margin: 2.5rem auto;
    max-width: 90%;
    background: rgba(183, 147, 75, 0.04);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
}

.post-article a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.post-article a:hover {
    text-decoration: underline;
}

.post-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.post-article ul,
.post-article ol {
    margin: 1rem 0 1.5rem 0;
    padding-right: 2rem;
}

.post-article li {
    margin-bottom: 0.5rem;
    line-height: 1.9;
}

/* Share Buttons — inline text-style */
.post-share {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-share-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 0.4rem;
    background: transparent;
    color: var(--text-secondary);
    min-height: 44px;
}

.share-twitter {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.share-linkedin {
    border-color: #0A66C2;
    color: #0A66C2;
}

.share-copy {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: white;
}

.share-copy:hover {
    background: var(--primary-color);
    color: white;
}

/* Post CTA */
.post-cta {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.post-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Related Posts — 3-column grid */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-posts .posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

.related-posts-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   27. KEYFRAME ANIMATIONS — Reduced, more professional
   ========================================================================== */

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

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

/* ==========================================================================
   28. AOS OVERRIDES — Less aggressive
   ========================================================================== */

[data-aos] {
    opacity: 0;
    transition-duration: 0.4s !important;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Cap delay to 400ms */
[data-aos][data-aos-delay="500"],
[data-aos][data-aos-delay="600"],
[data-aos][data-aos-delay="700"],
[data-aos][data-aos-delay="800"],
[data-aos][data-aos-delay="900"],
[data-aos][data-aos-delay="1000"] {
    transition-delay: 400ms !important;
}

/* ==========================================================================
   29. ACCESSIBILITY
   ========================================================================== */

:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Touch-friendly minimum tap targets */
a, button, input[type="submit"], .btn, .category-tab, .share-btn, .page-numbers {
    min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   30. PRINT STYLES
   ========================================================================== */

@media print {
    .main-header,
    .mobile-menu-toggle,
    .scroll-top,
    .cta-group,
    .whatsapp-float,
    .scroll-progress {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================================================
   31. Z-INDEX UTILITIES
   ========================================================================== */

.section > .container,
.footer > .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   32. RESPONSIVE BREAKPOINTS — ALL CONSOLIDATED
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

/* --- 1024px --- */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* --- 992px --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .contact-info {
        order: -1;
    }

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

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

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

/* --- 768px (ALL merged) --- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --header-height-scrolled: 60px;
    }

    /* Header & Navigation */
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        padding: 0.25rem 0.5rem;
    }

    .logo img {
        max-height: 44px;
        margin: 0;
    }

    .main-header .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: transform 0.3s ease-in-out;
        z-index: 998;
        transform: translateX(100%);
    }

    .main-header .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 26, 47, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: -1;
    }

    .main-header .nav-links.active {
        transform: translateX(0);
    }

    .main-header .nav-links a,
    .main-header .nav-links ul li a {
        color: var(--white);
        font-size: 1.4rem;
        font-weight: 500;
        text-align: center;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        width: 100%;
        padding: 1rem 0;
        min-height: 44px;
    }

    .main-header .nav-links.active a,
    .main-header .nav-links.active ul li a {
        opacity: 1;
        transform: translateY(0);
    }

    /* WordPress nav menu — mobile */
    .main-header .nav-links ul,
    .main-header .nav-links .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-header .nav-links ul li {
        width: 100%;
    }

    .main-header .nav-links ul li a {
        font-size: 1.4rem;
        text-align: center;
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
        position: relative;
        cursor: pointer;
        z-index: 999;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        position: absolute;
        right: 10px;
        transition: var(--transition-smooth);
    }

    .mobile-menu-toggle span:nth-child(1) {
        top: 12px;
    }

    .mobile-menu-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-toggle span:nth-child(3) {
        bottom: 12px;
    }

    /* Hamburger → X animation via class */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero — better mobile sizing */
    .hero {
        min-height: 100vh;
        padding-top: var(--header-height);
        padding-bottom: 3rem;
    }

    .hero h1,
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.35;
        text-align: center;
    }


    .hero p,
    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    /* Buttons — full width mobile */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 160px;
        width: 100%;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    /* Container & Sections — more padding */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Section Titles */
    .section-title,
    .about-section .section-title,
    .vision-section .section-title,
    .services-section .section-title,
    .team-section .section-title,
    .contact-section .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
    }

    /* About */
    .about-content {
        flex-direction: column;
    }

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

    .about-image::before,
    .about-image::after {
        display: none;
    }

    .stat-item {
        padding: 1.75rem;
    }

    .lead-text {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    /* Vision */
    .vision-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .vision-decoration {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .vision-icon {
        width: 110px;
        height: 110px;
    }

    .vision-icon i {
        font-size: 2.75rem;
    }

    .vision-text p {
        font-size: 1rem;
        text-align: right;
    }

    .title-accent::before,
    .title-accent::after {
        width: 30px;
    }

    .title-accent::before {
        right: 70px;
    }

    .title-accent::after {
        left: 70px;
        right: auto;
    }

    /* Services — 2-col on tablet, 1-col at 480px */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 0.5rem;
    }

    .team-card {
        height: 380px;
    }

    .team-member-image {
        width: 140px;
        height: 140px;
    }

    .team-member-name {
        font-size: 1.15rem;
    }

    .section-description {
        font-size: 1.05rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    /* Contact */
    .contact-section {
        padding: 4rem 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .info-card {
        gap: 1.5rem;
    }

    /* Branches — full width */
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .branches-section .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .branch-content {
        padding: 1.75rem;
    }

    .branch-name {
        font-size: 1.25rem;
    }

    .branch-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    /* Social Links */
    .social-links {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Detail items */
    .detail-item {
        gap: 0.5rem;
    }

    .detail-item i {
        margin-top: 0.2rem;
    }

    /* Blog responsive */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-posts .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-hero-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .post-hero-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-article {
        font-size: 1.05rem;
    }

    .post-article > p:first-of-type::first-letter {
        font-size: 2.75rem;
    }

    .post-article h2 {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
    }

    .post-share {
        flex-wrap: wrap;
    }

    .post-cta {
        padding: 2rem 1.5rem;
    }

    .category-filters {
        justify-content: flex-start;
    }

    /* Drop cap smaller on mobile */
    .post-article blockquote {
        padding: 1.25rem 1.5rem;
        max-width: 100%;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    :root {
        --header-height: 70px;
        --header-height-scrolled: 60px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .logo img {
        max-height: 40px;
    }

    .section-title,
    .about-section .section-title,
    .vision-section .section-title,
    .services-section .section-title,
    .team-section .section-title,
    .contact-section .section-title {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
        margin-bottom: 1rem;
    }

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

    .footer {
        padding: 60px 0 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }

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

    .stat-item {
        padding: 1.5rem;
    }

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

    .service-card {
        padding: 1.75rem;
    }

    .team-card {
        height: 360px;
    }

    .team-member-image {
        width: 120px;
        height: 120px;
    }

    .branch-content {
        padding: 1.5rem;
    }
}

/* --- iOS Safari 100vh fix --- */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* ==========================================================================
   33. WORDPRESS NAV MENU COMPATIBILITY
   ========================================================================== */

/* WordPress nav menu compatibility */
.nav-links ul,
.nav-links .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
    outline: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-links ul li a:hover {
    color: var(--secondary-light);
}

.nav-links ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
