/* ==========================================
   WYNDHAM FINANCIAL GROUP - Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #e8832a;
    --primary-dark: #d46e1a;
    --primary-light: #f5a54a;
    --secondary-color: #1a1a2e;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --light-blue-bg: #e8f4fc;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --body-bg: #ffffff;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --secondary-color: #0d0d1a;
    --text-dark: #ffffff;
    --text-light: #c5c5c5;
    --text-muted: #a0a0a0;
    --white: #1a1a2e;
    --light-bg: #252540;
    --light-blue-bg: #1e2a38;
    --border-color: #3a3a5a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --header-bg: #1a1a2e;
    --card-bg: #252540;
    --body-bg: #0d0d1a;
}

/* Dark mode specific fixes for headings */
[data-theme="dark"] section h2 {
    color: #ffffff;
}

[data-theme="dark"] .services-hero h2 {
    color: #ffffff;
}

[data-theme="dark"] .specialties-section h2 {
    color: #f5a54a;
    font-style: italic;
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .review-card .reviewer-info h4,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] .experience-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .specialty-item h4 {
    color: #ffffff;
}

[data-theme="dark"] .about-intro,
[data-theme="dark"] .about-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .section-tag {
    color: var(--primary-color);
}

[data-theme="dark"] .areas-section h3 {
    color: #ffffff;
}

[data-theme="dark"] .contact-form-wrapper h2 {
    color: #ffffff;
}

/* Additional dark mode fixes for all text visibility */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-subtitle {
    color: #ffffff;
}

[data-theme="dark"] .hero h1 .highlight {
    color: var(--primary-color);
}

[data-theme="dark"] .about-content p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .tool-card p,
[data-theme="dark"] .specialty-item p,
[data-theme="dark"] .review-card p {
    color: var(--text-light);
}

[data-theme="dark"] .service-list li {
    color: var(--text-light);
}

[data-theme="dark"] .feature-item span {
    color: var(--text-light);
}

[data-theme="dark"] .areas-section h4 {
    color: #ffffff;
}

[data-theme="dark"] .areas-section li {
    color: var(--text-light);
}

[data-theme="dark"] .footer h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer li,
[data-theme="dark"] .footer a {
    color: var(--text-light);
}

[data-theme="dark"] .footer a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-text h4 {
    color: #ffffff;
}

[data-theme="dark"] .rating-text {
    color: #ffffff;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-light);
}

[data-theme="dark"] .lenders-note {
    color: var(--text-light);
}

[data-theme="dark"] .section-header p {
    color: var(--text-light);
}

[data-theme="dark"] .section-header h2 {
    color: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--body-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    position: relative;
}

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

ul {
    list-style: none;
}

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

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

/* Ensure all sections fill full width */
section {
    width: 100%;
    max-width: 100vw;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: 140px;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.3px;
}

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

.nav-link.active-orange {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 10px;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    margin-right: 15px;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle i::before {
    content: "\f185"; /* sun icon */
}

/* Phone Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Phone Button */
.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
}

.phone-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Contact Sidebar */
.contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.contact-sidebar a {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 8px 0 0 8px;
}

.contact-sidebar a:hover {
    background: var(--primary-dark);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 100px 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--text-dark);
}

.btn-outline-sm {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline-sm:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Rating */
.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.google-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}

.stars {
    display: flex;
    gap: 5px;
}

.stars i {
    color: #ffc107;
    font-size: 20px;
}

.rating-text {
    font-size: 16px;
    opacity: 0.95;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-tag.light {
    color: var(--primary-light);
}

section h2 {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--body-bg);
}

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

.about-content h2 {
    margin-bottom: 30px;
}

.about-intro {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

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

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.experience-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.exp-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.experience-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.experience-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    background: var(--light-bg);
}

.services-hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.services-hero h2 {
    color: var(--white);
}

[data-theme="dark"] .services-hero h2 {
    color: #f5a54a;
    font-style: italic;
}

.services-hero p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 15px;
}

.service-list li i {
    color: var(--primary-color);
    font-size: 10px;
}

/* ==========================================
   TOOLS SECTION
   ========================================== */
.tools-section {
    padding: 100px 0;
    background: var(--body-bg);
    text-align: center;
}

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

.tool-card {
    background: var(--light-blue-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

/* ==========================================
   SPECIALTIES SECTION
   ========================================== */
.specialties-section {
    padding: 100px 0;
    background: var(--secondary-color);
    text-align: center;
}

.specialties-section .section-tag {
    color: var(--primary-light);
}

.specialties-section h2 {
    color: var(--white);
}

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

.specialty-item {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.specialty-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.specialty-item h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.specialty-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

/* Specialties in dark mode - italic golden heading */
.specialties-section h2 {
    color: #ffffff;
}

[data-theme="dark"] .specialties-section h2,
.specialties-section h2 {
    color: #f5a54a;
    font-style: italic;
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
.reviews-section {
    padding: 100px 0;
    background: var(--light-bg);
    text-align: center;
}

.reviews-header {
    margin-bottom: 50px;
}

.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.rating-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-dark);
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 26px;
}

.rating-count {
    font-size: 18px;
    color: var(--text-light);
}

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

.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.reviewer-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review-stars {
    display: flex;
    gap: 3px;
}

.review-stars i {
    color: #ffc107;
    font-size: 14px;
}

.review-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.reviews-cta {
    margin-top: 30px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--body-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper {
    background: var(--light-blue-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.required {
    color: #e53935;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 131, 42, 0.1);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--primary-color);
}

.radio-label input[type="radio"] {
    width: auto;
    accent-color: var(--primary-color);
}

/* Contact Info */
.contact-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.contact-card h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.contact-text p,
.contact-text a {
    font-size: 15px;
    color: var(--text-light);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

/* ==========================================
   AREAS SECTION
   ========================================== */
.areas-section {
    padding: 60px 0;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.areas-section h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

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

.area-column h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.area-column ul li {
    font-size: 15px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.area-column ul li:last-child {
    border-bottom: none;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
    width: 100%;
}

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

.footer-logo {
    height: 65px;
    width: 150px;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

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

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

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

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Critical mobile overflow fix */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .header,
    .hero,
    .footer,
    section,
    .container {
        max-width: 100vw !important;
    }
    
    /* Hide contact sidebar on mobile to prevent overflow */
    .contact-sidebar {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-actions .phone-btn {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 10px;
    }
    
    .theme-toggle {
        margin-right: 0;
        order: 0;
    }
    
    .navbar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        order: 0;
    }
    
    .nav-menu {
        order: 1;
    }
    
    /* Mobile right side: theme toggle + hamburger */
    .navbar > .nav-actions {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar > .hamburger {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid,
    .tools-grid,
    .reviews-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-sidebar {
        display: none;
    }
    
    section h2 {
        font-size: 30px;
    }
    
    .rating-summary {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo img {
        height: 50px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 40px;
        width: auto;
    }
    
    .logo {
        padding: 6px 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-rating {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-card {
        padding: 20px 15px;
    }
    
    .experience-card h3 {
        font-size: 22px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .tool-card {
        padding: 25px 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 24px;
    }
    
    section h2 {
        font-size: 26px;
    }
    
    .footer-brand p {
        font-size: 14px;
    }
}
