/* ==========================================================================
   Calgary Concrete Masters - Primary Stylesheet
   ========================================================================== */

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

:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Variables - Light Mode (Default) */
    --primary-color: #1a1e24; /* Deep Charcoal */
    --secondary-color: #5a6270; /* Concrete Slate */
    --accent-color: #DB9000; /* Gold/Yellow */
    --accent-hover: #C57E00;
    --accent-rgb: 219, 144, 0;
    --primary-rgb: 26, 30, 36;
    
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --surface-color: #ffffff;
    --surface-card: #ffffff;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    
    --text-color: #1f2937;
    --text-muted: #4b5563;
    --text-on-accent: #ffffff;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #DB9000 0%, #F0A91A 100%);
    --primary-gradient: linear-gradient(135deg, #1a1e24 0%, #303742 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    --footer-gradient: linear-gradient(135deg, #0e1115 0%, #1a1e24 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: #eee;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 8px 24px rgba(219, 144, 0, 0.25);
    
    --header-height: 80px;
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    scroll-behavior: smooth;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-color: #0f1114;
    --bg-alt: #161a20;
    --surface-color: #0f1114;
    --surface-card: #1c2027;
    --border-color: #2e3541;
    --border-hover: #3f4756;
    
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #DB9000 0%, #F3B73A 100%);
    --primary-gradient: linear-gradient(135deg, #0a0c0e 0%, #15181e 100%);
    --card-gradient: linear-gradient(135deg, rgba(22, 26, 32, 0.95) 0%, rgba(30, 36, 46, 0.95) 100%);
    --footer-gradient: linear-gradient(135deg, #07080a 0%, #0e1115 100%);
    --glass-bg: rgba(15, 17, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 8px 24px rgba(219, 144, 0, 0.35);
}

/* Base Document Styling */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color var(--transition-speed) var(--transition-smooth), 
                color var(--transition-speed) var(--transition-smooth);
    -webkit-font-smoothing: antialiased;
}

p {
    font-size: 15px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-color);
    transition: color var(--transition-speed) var(--transition-smooth);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: #ffffff;
}

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
    border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   Helper Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

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

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }

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


.section-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all var(--transition-speed) var(--transition-smooth);
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(219, 144, 0, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

[data-theme="dark"] .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    transform: translateY(-2px);
}

/* Screen reader only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed) var(--transition-smooth),
                height var(--transition-speed) var(--transition-smooth),
                box-shadow var(--transition-speed) var(--transition-smooth);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 17, 20, 0.95);
}

.header.is-sticky {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-color);
}

[data-theme="dark"] .header.is-sticky {
    background-color: var(--bg-color);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
}

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

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

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

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

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

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

.phone-link-header svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
}

.header-estimate-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.theme-toggle:hover {
    background-color: var(--border-color);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--transition-smooth);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #1a1e24;
    color: #ffffff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 30, 36, 0.9) 0%, rgba(26, 30, 36, 0.6) 80%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

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

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
}

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

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-buttons .btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
}

.hero-buttons .btn-secondary:hover {
    background-color: #ffffff !important;
    color: #ffffff !important;
}

.hero-trust-badges {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #d1d5db;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

/* Floating Hero Card (Form) */
.hero-card {
    background-color: var(--surface-card);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) var(--transition-smooth),
                border-color var(--transition-speed) var(--transition-smooth);
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* Form controls */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(219, 144, 0, 0.15);
}

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

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Trust Stats Section
   ========================================================================== */
.trust-stats {
    padding: 50px 0;
    background-color: #0C0E12;
    color: #ffffff;
    transition: background-color var(--transition-speed) var(--transition-smooth);
}

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

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
}

.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e5e7eb;
}

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

.service-card {
    background-color: var(--surface-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.service-card-img-wrapper {
    position: relative;
    height: 220px;
    background-color: var(--bg-alt);
}

.service-card-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

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

.service-card-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 5;
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.service-card:hover .service-card-icon-badge {
    transform: rotate(15deg) scale(1.05);
}

.service-card-icon-badge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card-content {
    padding: 35px 24px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

[data-theme="dark"] .service-card-link {
    color: #ffffff;
}

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

.service-card-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   About Section (Split Content)
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-stack {
    position: relative;
    padding-bottom: 40px;
    margin-left: 20px;
}

.about-img-main {
    width: 90%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 380px;
}

.about-img-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--accent-color);
    transition: border-color var(--transition-speed) var(--transition-smooth);
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 140px;
}

.about-badge span {
    display: block;
}

.about-badge .years {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

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

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

.about-features {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.about-feature-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

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

.why-card {
    background-color: var(--surface-card);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
}

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

.why-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(219, 144, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Projects Section (Gallery with Lightbox)
   ========================================================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

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

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: opacity var(--transition-speed) var(--transition-smooth),
                transform var(--transition-speed) var(--transition-smooth);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 30, 36, 0.9) 0%, rgba(26, 30, 36, 0.3) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: opacity var(--transition-speed) var(--transition-smooth);
    z-index: 2;
}

.project-item:hover img {
    transform: scale(1.06);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.project-overlay p {
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.project-item:hover .project-zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

.project-zoom-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* Lightbox Styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 17, 20, 0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.lightbox-nav:hover {
    background-color: var(--accent-color);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* ==========================================================================
   Reviews (Testimonials) Section
   ========================================================================== */
.reviews-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s var(--transition-smooth);
}

.review-slide {
    flex: 0 0 100%;
    padding: 10px 24px;
}

.review-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.review-stars svg {
    width: 18px;
    height: 18px;
    fill: #f59e0b; /* Google star gold color */
}

.google-review-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.google-review-badge svg {
    width: 16px;
    height: 16px;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-color);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.review-author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-author-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.reviews-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-smooth);
}

.reviews-nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.reviews-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    transition: fill var(--transition-speed);
}

.reviews-nav-btn:hover svg {
    fill: var(--text-on-accent);
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

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

.faq-trigger:hover, .faq-trigger[aria-expanded="true"] {
    color: var(--accent-color);
}

.faq-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) var(--transition-smooth);
}

.faq-content {
    padding: 8px 8px 24px 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section (Split form and info)
   ========================================================================== */
.contact-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.contact-card-form {
    background-color: var(--surface-card);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-card-form h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-card-form p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(219, 144, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-color);
}

.contact-info-details h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-info-details p, .contact-info-details a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-info-details a:hover {
    color: var(--accent-color);
}

.contact-map-placeholder {
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-alt);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.contact-map-svg {
    width: 100%;
    height: 100%;
}

.map-marker-pulse {
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% { r: 6px; opacity: 1; }
    100% { r: 18px; opacity: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 70px 0 30px 0;
    border-top: 4px solid var(--accent-color);
    transition: background-color var(--transition-speed) var(--transition-smooth);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo .logo-main {
    color: #ffffff;
}

.footer-about p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 300px;
}

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

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.footer-social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.footer-col h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-links a svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9ca3af;
}

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

.footer-bottom-links a {
    color: #9ca3af;
}

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

.developer-info {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

.developer-link {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Footer Back to Top Button */
.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    background-color: transparent;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-smooth);
}

.footer-back-to-top:hover {
    background-color: #ffffff;
    color: #0e1115;
    border-color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) var(--transition-smooth);
}

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

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

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* ==========================================================================
   Internal Service & Content Page Specific Layouts
   ========================================================================== */
.page-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 140px 0 60px 0;
    position: relative;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 30, 36, 0.8) 0%, rgba(26, 30, 36, 0.95) 100%);
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    font-size: 2.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #d1d5db;
    list-style: none;
}

.breadcrumbs a {
    color: #d1d5db;
}

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

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #9ca3af;
}

/* Service Detail Layout */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-main-content h2 {
    font-size: 1.85rem;
    margin: 30px 0 15px 0;
}

.service-main-content h2:first-of-type {
    margin-top: 0;
}

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

.service-main-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.service-features-list {
    list-style: none;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.service-features-list li svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.service-features-list li span {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-services-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--bg-alt);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: all var(--transition-speed);
}

.sidebar-services-list a:hover, 
.sidebar-services-list a.active {
    background-color: var(--surface-card);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.sidebar-services-list a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.widget-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    border: none;
}

[data-theme="dark"] .widget-cta {
    background-color: var(--bg-alt);
}

.widget-cta h3 {
    border-bottom: none;
    padding-bottom: 0;
    color: #ffffff;
}

.widget-cta p {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.widget-cta-phone {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 24px;
}

/* ==========================================================================
   Content Layouts: Privacy / Terms / 404
   ========================================================================== */
.content-page-main {
    max-width: 800px;
    margin: 0 auto;
}

.content-page-main h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
}

.content-page-main p, .content-page-main li {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.content-page-main ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

/* 404 Page Styling */
.error-page-container {
    text-align: center;
    padding: 120px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.error-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
[data-scroll] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Gradient Theme Enhancements
   ========================================================================== */

/* Button Sliding Gradients */
.btn-primary {
    background-image: linear-gradient(135deg, #DB9000 0%, #F0A91A 50%, #DB9000 100%);
    background-size: 200% auto;
    color: #ffffff;
    border: none;
    transition: all 0.4s var(--transition-smooth);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    transition: all 0.4s var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Card & Section Enhancements */
.service-card,
.why-card,
.testimonial-card {
    background: var(--card-gradient) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--transition-smooth) !important;
}

.about-badge {
    background: var(--accent-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-glow) !important;
}

.service-card:hover,
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent-color);
}

/* Section dividers with gradient */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, rgba(219, 144, 0, 0) 0%, rgba(219, 144, 0, 0.5) 50%, rgba(219, 144, 0, 0) 100%);
    border: none;
    margin: 60px 0;
}

/* Icons Accent Gradient Badge */
.service-card-icon-badge {
    background: var(--accent-gradient) !important;
    box-shadow: var(--shadow-glow);
    color: #ffffff;
}

.service-card-icon-badge svg {
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2;
}

/* Footer Gradient Background */
.footer {
    background: var(--footer-gradient) !important;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Navigation Dropdown Submenu
   ========================================================================== */
.nav-menu li {
    position: relative;
}

/* Submenu container (Desktop hover dropdown) */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s var(--transition-smooth);
    z-index: 1000;
    list-style: none;
}

.submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px; /* Bridge gap to prevent losing hover */
}

/* Desktop hover toggle */
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
    margin: 0 !important;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background: var(--accent-gradient);
    color: #ffffff !important;
    padding-left: 25px;
}

/* Arrow indicator inside navigation link */
.submenu-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

/* Hide toggle buttons on desktop navigation */
.submenu-toggle-btn {
    display: none;
}

/* ==========================================================================
   Floating Call Now Button
   ========================================================================== */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.floating-call-btn svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(219, 144, 0, 0.45);
}

.floating-call-btn:hover svg {
    transform: rotate(15deg);
}

/* Stack Back to Top button above Floating Call button */
.back-to-top {
    bottom: 95px !important;
}

/* Pulse rings animation */
.floating-call-btn .pulse-ring,
.floating-call-btn .pulse-ring2 {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.8;
    z-index: -1;
}

.floating-call-btn .pulse-ring {
    animation: ring-pulse 2s infinite ease-out;
}

.floating-call-btn .pulse-ring2 {
    animation: ring-pulse 2s infinite ease-out 0.6s;
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==========================================================================
   Services Quick View Modal Styling
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 15, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
    background: var(--surface-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 90%;
    max-width: 680px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

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

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 0.9;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: rotate(90deg);
}

/* Modal Content Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.modal-img-wrapper {
    height: 100%;
    min-height: 320px;
    background-color: var(--bg-alt);
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.modal-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Bullet Features */
.modal-features {
    list-style: none;
    margin-bottom: 25px;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.modal-features li svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* CTA Wrapper */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Responsive Modal Grid */
@media (max-width: 600px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-img-wrapper {
        height: 160px;
        min-height: auto;
    }
    
    .modal-details {
        padding: 24px;
    }
    
    .modal-details h2 {
        font-size: 1.3rem;
    }
    
    .modal-details p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .modal-features li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Quick View Button Style Customization */
.btn-quick-view {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.4s var(--transition-smooth) !important;
}

.btn-quick-view:hover {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Hide mobile off-canvas CTA on desktop view */
.mobile-menu-cta {
    display: none;
}

/* ==========================================================================
   Mobile Menu CTA – shown when body has .mobile-menu-open class (JS-toggled)
   ========================================================================== */
body.mobile-menu-open .mobile-menu-cta {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Performance: content-visibility for below-fold sections
   ========================================================================== */
.section:not(.hero):not(.trust-stats) {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* ==========================================================================
   Performance: Reduce motion for users who prefer it
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .nav-menu {
        transition: none !important;
    }
}

/* ==========================================================================
   Performance: GPU-accelerated elements
   ========================================================================== */
.nav-menu,
.floating-call-btn,
.back-to-top,
.hero-card {
    will-change: transform;
}

/* Avoid will-change on elements that are always static */
.footer,
.header:not(.is-sticky) {
    will-change: auto;
}
