/* ============================================
   Murray & Associates - Main Stylesheet
   Dark/Light Theme Support
   ============================================ */

/* ---- Font Faces ---- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---- CSS Variables / Theme System ---- */
:root {
    /* Brand Colors */
    --brand-navy: #0a2240;
    --brand-teal: #1a9aaa;
    --brand-teal-dark: #158a99;
    --brand-teal-light: #22b8cb;

    /* Dark Theme (Default) */
    --bg-primary: #0f1923;
    --bg-secondary: #162231;
    --bg-tertiary: #1a2d3f;
    --bg-card: #1a2a3a;
    --bg-card-hover: #213546;
    --text-primary: #f0f4f8;
    --text-secondary: #a8bdd0;
    --text-muted: #6b8299;
    --border-color: #2a3f55;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-color: rgba(15, 25, 35, 0.85);
    --header-bg: transparent;
    --header-scrolled-bg: rgba(15, 25, 35, 0.97);
    --header-scrolled-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --hero-overlay: linear-gradient(135deg, rgba(10, 34, 64, 0.88) 0%, rgba(15, 25, 35, 0.75) 100%);
    --accent: var(--brand-teal);
    --accent-hover: var(--brand-teal-light);
    --footer-bg: #0a1520;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus-border: var(--brand-teal);
    --star-color: #f5a623;
    --testimonial-bg: rgba(26, 42, 58, 0.9);
    --section-alt-bg: #121e2b;
    --logo-display-light: none;
    --logo-display-dark: block;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #eef2f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #1a2332;
    --text-secondary: #4a5e73;
    --text-muted: #8899aa;
    --border-color: #dce4ed;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --overlay-color: rgba(255, 255, 255, 0.85);
    --header-bg: transparent;
    --header-scrolled-bg: rgba(255, 255, 255, 0.97);
    --header-scrolled-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --hero-overlay: linear-gradient(135deg, rgba(10, 34, 64, 0.82) 0%, rgba(15, 25, 35, 0.68) 100%);
    --accent: var(--brand-teal);
    --accent-hover: var(--brand-teal-dark);
    --footer-bg: #0a2240;
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.15);
    --input-focus-border: var(--brand-teal);
    --star-color: #f5a623;
    --testimonial-bg: rgba(255, 255, 255, 0.95);
    --section-alt-bg: #f0f4f8;
    --logo-display-light: block;
    --logo-display-dark: none;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

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

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

/* ---- Header / Navigation ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    padding: 0;
}

.site-header.scrolled {
    background: var(--header-scrolled-bg);
    box-shadow: var(--header-scrolled-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Light theme: when NOT scrolled, add slight white tint so logo stands out */
[data-theme="light"] .site-header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Light theme: the nav bar area gets a subtle white band */
[data-theme="light"] .site-header:not(.scrolled) .main-nav {
    background: rgba(255, 255, 255, 0.15);
}

.top-bar {
    background: var(--brand-navy);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--brand-teal);
}

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

.top-bar-left {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

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

.top-bar-right a {
    color: #ffffff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.top-bar-right a:hover {
    color: var(--brand-teal-light);
}

.btn-quote-top {
    background: var(--brand-teal);
    color: #fff !important;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.btn-quote-top:hover {
    background: var(--brand-teal-light);
    color: #fff !important;
}

.main-nav {
    padding: 12px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo-wrapper img {
    height: 55px;
    width: auto;
    transition: opacity 0.4s ease;
}

.logo-light {
    display: var(--logo-display-light);
}

.logo-dark {
    display: var(--logo-display-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    display: block;
    position: relative;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.site-header.scrolled .nav-links a {
    color: var(--text-primary);
}

[data-theme="light"] .site-header:not(.scrolled) .nav-links a {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--brand-teal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

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

.site-header.scrolled .nav-links a:hover {
    color: var(--brand-teal);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--brand-teal);
    background: rgba(26, 154, 170, 0.15);
    color: var(--brand-teal-light);
    transform: rotate(20deg);
}

.site-header.scrolled .theme-toggle {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.site-header.scrolled .theme-toggle:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline-block;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: inline-block;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.site-header.scrolled .mobile-toggle {
    color: var(--text-primary);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(26, 154, 170, 0.2);
    border: 1px solid rgba(26, 154, 170, 0.4);
    color: var(--brand-teal-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--brand-teal-light);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-teal);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-teal-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 154, 170, 0.35);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--brand-teal-light);
    color: var(--brand-teal-light);
    transform: translateY(-2px);
}

/* Hero Contact Form */
.hero-form-wrapper {
    flex: 0 0 420px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-form-wrapper {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-form-wrapper h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

[data-theme="light"] .hero-form-wrapper h3 {
    color: var(--brand-navy);
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] .form-group label {
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(26, 154, 170, 0.2);
}

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

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--brand-teal);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--brand-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 154, 170, 0.35);
}

/* ---- Section Styling ---- */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--section-alt-bg);
}

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

.section-header .section-badge {
    display: inline-block;
    background: rgba(26, 154, 170, 0.12);
    color: var(--brand-teal);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-teal-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-color);
    border-color: var(--brand-teal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(26, 154, 170, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-teal);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--brand-teal);
    color: #ffffff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card .service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--brand-teal);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-teal);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(10, 34, 64, 0.9));
    color: #ffffff;
}

.about-image-overlay h4 {
    color: #ffffff;
    font-size: 1.1rem;
}

.about-image-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ---- Offices Section ---- */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.office-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--shadow-color);
    border-color: var(--brand-teal);
}

.office-card i {
    font-size: 1.8rem;
    color: var(--brand-teal);
    margin-bottom: 12px;
}

.office-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.office-card .address {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.office-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.office-rating .rating-number {
    font-weight: 700;
    color: var(--brand-teal);
    font-size: 1.1rem;
}

.office-rating .stars {
    color: var(--star-color);
    font-size: 0.85rem;
}

.office-rating .review-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Parallax / CTA Section ---- */
.parallax-section {
    position: relative;
    padding: 120px 0;
    background: url('../images/parallax-bg.jpg') center center / cover no-repeat fixed;
    text-align: center;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.92) 0%, rgba(26, 154, 170, 0.85) 100%);
}

.parallax-section .container {
    position: relative;
    z-index: 2;
}

.parallax-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.parallax-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ---- Testimonials Section ---- */
.testimonials-wrapper {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 22px);
    margin: 0 11px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    color: var(--brand-teal);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--star-color);
    font-size: 0.95rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-author-info span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.testimonial-nav button:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
    background: rgba(26, 154, 170, 0.1);
}

/* ---- Associations Section ---- */
.associations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.association-logo {
    height: 60px;
    opacity: 0.6;
    filter: grayscale(40%);
    transition: all 0.3s ease;
}

[data-theme="light"] .association-logo {
    opacity: 0.7;
}

.association-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--footer-bg);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

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

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

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

.footer-col ul li a:hover {
    color: var(--brand-teal-light);
}

.footer-col .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-col .contact-item i {
    color: var(--brand-teal);
    margin-top: 4px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #ffffff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--brand-teal-light);
}

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-teal);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(26, 154, 170, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-top:hover {
    background: var(--brand-teal-light);
    transform: translateY(-4px);
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-form-wrapper {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 22px);
    }

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

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 16px 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px var(--shadow-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-primary) !important;
        padding: 12px 24px;
    }

    .mobile-toggle {
        display: block;
    }

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

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 22px);
    }

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

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

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

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

    .parallax-section h2 {
        font-size: 1.8rem;
    }
}

/* ---- Page Loading Animation ---- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--brand-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Contact Section Social Links (light theme fix) ---- */
#contact .footer-social a {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

#contact .footer-social a:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #ffffff;
}

/* ---- Theme Transition Smoothing ---- */
.site-header,
.service-card,
.office-card,
.testimonial-card,
.stat-item,
.section,
.section-alt,
.hero-form-wrapper,
.site-footer,
.btn-submit,
.testimonial-nav button {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---- Active nav highlighting ---- */
.nav-links a.active {
    color: var(--brand-teal-light) !important;
}

.site-header.scrolled .nav-links a.active {
    color: var(--brand-teal) !important;
}
