/*
Theme Name: A-1 Custom Drywall
Theme URI: https://a1customdrywall.com
Description: Professional custom theme for A-1 Custom Drywall - Clean, modern design inspired by industry leaders
Author: A-1 Custom Drywall
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a1-drywall
*/

/* ============================================
   DESIGN SYSTEM - A-1 Custom Drywall
   ============================================ */

:root {
    /* Brand Colors */
    --color-primary: #D4AF37;
    /* Gold - Professional, Quality */
    --color-primary-dark: #B8941F;
    /* Darker Gold */
    --color-primary-light: #F5E6C3;
    /* Light Gold */

    --color-secondary: #1E3A5F;
    /* Navy Blue - Trust, Stability */
    --color-secondary-dark: #152B47;
    /* Darker Navy */
    --color-secondary-light: #2D5280;
    /* Lighter Navy */

    --color-accent: #E67E22;
    /* Orange - Energy, Action */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #F8F9FA;
    --color-gray-100: #F1F3F5;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-400: #CED4DA;
    --color-gray-500: #ADB5BD;
    --color-gray-600: #6C757D;
    --color-gray-700: #495057;
    --color-gray-800: #343A40;
    --color-gray-900: #212529;
    --color-black: #000000;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 3rem;
    /* 48px */
    --spacing-xl: 4rem;
    /* 64px */
    --spacing-2xl: 6rem;
    /* 96px */
    --spacing-3xl: 8rem;
    /* 128px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Container */
    --container-max: 1200px;
    --container-wide: 1400px;
}

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   GLOBAL RESETS & BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100% !important;
    overflow-x: hidden;
}

/* Override parent theme constraints */
#page,
#content,
.site {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   OVERRIDE PARENT THEME PAGE STYLING
   ============================================ */

/* Fix background color on all pages */
body:not(.home-page) {
    background-color: var(--color-white) !important;
}

/* Style the main content area */
.site-main,
#primary,
#main {
    background: var(--color-white) !important;
    padding: 0 !important;
}

/* Style page titles beautifully */
.entry-header,
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%) !important;
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md) !important;
    margin: 0 0 var(--spacing-2xl) 0 !important;
    text-align: center !important;
}

.entry-header .entry-title,
.page-header .entry-title,
h1.entry-title {
    color: var(--color-white) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    letter-spacing: -0.5px !important;
}

/* Style page content beautifully */
.entry-content,
article .entry-content {
    max-width: var(--container-max) !important;
    margin: 0 auto !important;
    padding: 0 var(--spacing-md) var(--spacing-3xl) var(--spacing-md) !important;
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: var(--color-gray-700) !important;
}

/* Typography within content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading) !important;
    color: var(--color-secondary) !important;
    margin-top: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-md) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.entry-content h2 {
    font-size: 2rem !important;
    position: relative;
    padding-left: var(--spacing-md);
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--color-primary);
    border-radius: 2px;
}

.entry-content h3 {
    font-size: 1.5rem !important;
    color: var(--color-secondary-light) !important;
}

.entry-content p {
    margin-bottom: var(--spacing-md) !important;
    max-width: 75ch;
}

.entry-content p:first-of-type {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: var(--color-secondary) !important;
    line-height: 1.7 !important;
}

/* Beautiful lists */
.entry-content ul,
.entry-content ol {
    margin: var(--spacing-lg) 0 !important;
    padding-left: var(--spacing-xl) !important;
}

.entry-content li {
    margin-bottom: var(--spacing-sm) !important;
    line-height: 1.7 !important;
}

.entry-content ul li {
    list-style: none !important;
    position: relative;
    padding-left: var(--spacing-md);
}

.entry-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Links */
.entry-content a {
    color: var(--color-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 2px solid transparent !important;
    transition: all var(--transition-fast) !important;
}

.entry-content a:hover {
    color: var(--color-primary-dark) !important;
    border-bottom-color: var(--color-primary) !important;
}

/* Strong text */
.entry-content strong,
.entry-content b {
    color: var(--color-secondary) !important;
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 768px) {

    .entry-header .entry-title,
    .page-header .entry-title,
    h1.entry-title {
        font-size: 2rem !important;
    }

    .entry-content {
        font-size: 1rem !important;
    }

    .entry-content h2 {
        font-size: 1.5rem !important;
    }

    .entry-content h3 {
        font-size: 1.25rem !important;
    }
}

/* ============================================
   CUSTOM HEADER STYLING
   ============================================ */

/* Top bar styling */
.top-bar {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.5rem 0;
    text-align: center;
}

.top-bar-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.top-bar-phone {
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar-phone a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.top-bar-phone a:hover {
    color: var(--color-white);
}

/* Main navigation */
.main-navigation {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Logo styling - make it clickable */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo img,
.custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text-simple {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Navigation menu - centered vertically with full-height hover */
.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
}

.nav-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.nav-menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    display: block;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
}

/* Active page highlighting */
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* Search button */
.nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: transparent;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

/* Responsive header */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-menu-wrapper {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   HEADER STYLING
   ============================================ */

/* Fix for WordPress Admin Bar - prevent header cutoff */
.admin-bar .site-header,
.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {

    .admin-bar .site-header,
    .admin-bar header {
        top: 46px !important;
    }
}

/* Remove white gap between top bar and navigation */
.site-header {
    gap: 0 !important;
    background-color: var(--color-secondary) !important;
}

/* Top bar */
.top-bar {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 0;
    overflow: visible;
}

.top-bar-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0.5rem var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    min-height: 40px;
}

.top-bar-phone {
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar-phone a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.top-bar-phone a:hover {
    color: var(--color-white);
}

/* Modern Sliding Toggle Switch */
.theme-switch {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 60px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked+.slider {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(32px);
    content: "🌙";
}

.slider:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

input:checked+.slider:hover {
    background-color: #ffd700;
}

/* Main navigation */
.main-navigation {
    background: var(--color-white);
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0.75rem var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Logo - clickable */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo img,
.custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text-simple {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

/* Navigation menu */
.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    display: block;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--color-secondary);
    border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* Search button */
.nav-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: transparent;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

/* ============================================
   DARK MODE THEME
   ============================================ */

body.dark-mode {
    --color-primary: #F4C430;
    /* Bright gold */
    --color-secondary: #1a2332;
    /* Dark navy blue */
    --color-secondary-dark: #0f1419;
    --color-secondary-light: #2d3e50;
    --color-white: #ffffff;
    --color-gray-50: #2d3e50;
    --color-gray-100: #3a4d61;
    --color-gray-200: #4a5f76;
    --color-gray-300: #5a708b;
    --color-gray-600: #c5d0dd;
    --color-gray-700: #d5dfe9;
    --color-gray-800: #e5ecf3;
    --color-gray-900: #f0f4f8;
    background-color: #1a2332 !important;
}

body.dark-mode .top-bar {
    background: #0f1419;
}

body.dark-mode .main-navigation {
    background: #1a2332;
    border-bottom-color: #2d3e50;
}

body.dark-mode .nav-menu a {
    color: #d5dfe9;
}

body.dark-mode .nav-menu a:hover {
    color: #F4C430;
}

body.dark-mode .nav-menu .current-menu-item a,
body.dark-mode .nav-menu .current_page_item a {
    color: #F4C430;
}

body.dark-mode .theme-toggle,
body.dark-mode .search-toggle {
    border-color: #4a5f76;
    color: #d5dfe9;
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .search-toggle:hover {
    background: #F4C430;
    border-color: #F4C430;
    color: #1a2332;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

body.dark-mode .hero-title {
    color: #ffffff;
}

body.dark-mode .hero-subtitle {
    color: #F4C430;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

body.dark-mode .page-content-wrapper,
body.dark-mode .page-content {
    background: #1a2332;
}

body.dark-mode .content-formatted {
    color: #d5dfe9;
}

body.dark-mode .content-formatted h1,
body.dark-mode .content-formatted h2,
body.dark-mode .content-formatted h3,
body.dark-mode .content-formatted h4 {
    color: #F4C430;
}

body.dark-mode .content-formatted h2::before {
    background: #F4C430;
}

body.dark-mode .content-formatted ul li::before {
    color: #F4C430;
}

body.dark-mode .content-formatted a {
    color: #F4C430;
}

body.dark-mode .content-formatted a:hover {
    border-bottom-color: #F4C430;
}

body.dark-mode .btn-primary {
    background: #F4C430;
    color: #1a2332;
}

body.dark-mode .btn-primary:hover {
    background: #ffd700;
}

body.dark-mode .footer {
    background: #0f1419;
    color: #d5dfe9;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-menu-wrapper {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0;
    right: 0;
    padding-top: 0 !important;
    /* Fix white space gap */
    padding-bottom: 0 !important;
}

/* Top Bar - Dark Gray with Gold Phone */
.top-bar {
    background: #4A4A4A;
    color: var(--color-white);
    padding: 0.25rem 0;
    font-size: 0.875rem;
    width: 100%;
}

.top-bar-content {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.top-bar-phone {
    color: var(--color-white);
    font-weight: 500;
}

.top-bar-phone a {
    color: var(--color-primary);
    font-weight: 700;
    margin-left: 0.5rem;
    transition: color var(--transition-fast);
}

.top-bar-phone a:hover {
    color: var(--color-primary-light);
}

/* Main Navigation */
.main-navigation {
    background: var(--color-white);
    padding: 0.25rem 0;
    /* Ultra thin padding */
    width: 100% !important;
    /* Force full width for centering to work */
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: center;
    /* Center alignment */
    align-items: center;
    gap: 2rem;
    /* Tighter gap to keep it clustered */
}

/* Logo - Centered */
.site-logo {
    flex-shrink: 0;
    order: 1;
    margin-right: 1rem;
    /* Adjust spacing */
}

.site-logo a {
    display: block;
    line-height: 1;
}

.site-logo img {
    height: 50px;
    /* Thinner logo */
    width: auto;
    display: block;
}

/* Navigation Menu - Centered */
.nav-menu-wrapper {
    display: flex;
    justify-content: center;
    order: 2;
    flex: 0 0 auto;
    /* Do not grow */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: all var(--transition-fast);
    text-transform: capitalize;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .current_page_item a::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* Search Icon */
.nav-actions {
    flex-shrink: 0;
    order: 3;
}

.search-toggle {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-menu-wrapper {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-md);
    }

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.125rem;
    }

    .logo-box {
        padding: 0.75rem 1.5rem;
    }

    .top-bar-phone {
        font-size: 0.8125rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1;
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-2xl) 0;
}

.section-sm {
    padding: var(--spacing-xl) 0;
}

.section-lg {
    padding: var(--spacing-3xl) 0;
}

.section-dark {
    background: var(--color-secondary);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-white);
}

.section-light {
    background: var(--color-gray-50);
}

.section-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-xl);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-gray-100);
}

/* ============================================
   FEATURE BOXES
   ============================================ */

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.feature-box {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-box.featured {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.feature-box.featured h3 {
    color: var(--color-white);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.feature-box.featured .feature-icon {
    color: var(--color-white);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-secondary);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--color-gray-300);
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    left: 0;
    right: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 50%,
            transparent 100%);
}

.footer-main {
    padding: var(--spacing-2xl) 0 0;
}

.site-footer .container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: 0;
    align-items: start;
}

/* ============================================
   BUSINESS CARD SECTION
   ============================================ */

.footer-business-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.business-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.business-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.business-card-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.business-card-image .card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-base);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.business-card:hover .card-image {
    transform: scale(1.02);
}

.business-card-info {
    text-align: center;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-box {
    display: inline-block;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.business-card-info .tagline {
    color: var(--color-gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
    border-color: var(--color-primary);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTACT INFORMATION SECTION
   ============================================ */

.footer-section h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

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

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(8px);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    color: var(--color-black);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-400);
    font-weight: 700;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition-fast);
    line-height: 1.3;
}

a.contact-value {
    text-decoration: none;
}

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

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.footer-cta p {
    color: var(--color-gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-black);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.cta-button span,
.cta-button svg {
    position: relative;
    z-index: 1;
}

.cta-button svg {
    transition: transform var(--transition-base);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-gray-300);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

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

.badge svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ============================================
   FOOTER BOTTOM BAR
   ============================================ */

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--color-gray-500);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

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

.footer-menu a:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-business-card {
        grid-column: 1 / -1;
    }

    .business-card {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: var(--spacing-lg);
        align-items: center;
    }

    .business-card-image {
        margin-bottom: 0;
    }

    .business-card-info {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .business-card {
        grid-template-columns: 1fr;
    }

    .business-card-info {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .footer-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-details {
        align-items: center;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 400px;
    }

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

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

    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOMEPAGE TEMPLATE STYLES
   ============================================ */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-xl);
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-box {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
    color: var(--color-primary-dark);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.feature-box p {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* About Section */
.about-section {
    padding: var(--spacing-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-md);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
}

.about-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--color-gray-700);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Services Section */
.services-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.service-content {
    padding: var(--spacing-lg);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.service-content p {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-2xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-icon {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
}

.contact-section h2,
.contact-section h3,
.contact-section h4 {
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info .lead {
    font-size: 1.25rem;
    color: var(--color-gray-200);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.contact-item a {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

.contact-item p {
    color: var(--color-gray-300);
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

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

.btn-block {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

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

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

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

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

/* ============================================
   PAGE CONTENT STYLING - MODERN & PROFESSIONAL
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

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

.page-title {
    color: var(--color-white) !important;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* Page Content Wrapper */
.page-content-wrapper {
    padding: 0 0 var(--spacing-3xl) 0;
    background: var(--color-white);
}

.page-content {
    background: var(--color-white);
}

/* Content Formatting */
.content-formatted {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.content-formatted h1,
.content-formatted h2,
.content-formatted h3,
.content-formatted h4,
.content-formatted h5,
.content-formatted h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.3;
}

.content-formatted h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: var(--spacing-sm);
}

.content-formatted h2 {
    font-size: 2rem;
    position: relative;
    padding-left: var(--spacing-md);
}

.content-formatted h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--color-primary);
    border-radius: 2px;
}

.content-formatted h3 {
    font-size: 1.5rem;
    color: var(--color-secondary-light);
}

.content-formatted h4 {
    font-size: 1.25rem;
}

.content-formatted p {
    margin-bottom: var(--spacing-md);
    max-width: 75ch;
}

.content-formatted p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-secondary);
    line-height: 1.7;
}

/* Lists */
.content-formatted ul,
.content-formatted ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.content-formatted li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    position: relative;
}

.content-formatted ul li {
    list-style: none;
    padding-left: var(--spacing-md);
}

.content-formatted ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.content-formatted ol li {
    padding-left: var(--spacing-sm);
}

/* Links */
.content-formatted a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.content-formatted a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

/* Blockquotes */
.content-formatted blockquote {
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-gray-600);
    border-radius: var(--radius-md);
}

/* Strong/Bold Text */
.content-formatted strong,
.content-formatted b {
    color: var(--color-secondary);
    font-weight: 700;
}

/* Images */
.content-formatted img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-lg) 0;
}

/* Call-to-Action Sections within Content */
.content-formatted .cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-xl);
}

.content-formatted .cta-box h3 {
    color: var(--color-white) !important;
    margin-top: 0;
}

.content-formatted .cta-box p {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

/* Service Highlights */
.content-formatted .service-highlight {
    background: var(--color-gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--color-primary);
}

.content-formatted .service-highlight h3 {
    margin-top: 0;
}

/* Responsive Page Content */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .content-formatted {
        font-size: 1rem;
    }

    .content-formatted h1 {
        font-size: 1.75rem;
    }

    .content-formatted h2 {
        font-size: 1.5rem;
    }

    .content-formatted h3 {
        font-size: 1.25rem;
    }

    .content-formatted p:first-of-type {
        font-size: 1.125rem;
    }

    .page-header {
        padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    }
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0;
    margin-bottom: 0 !important;
}

/* Remove gap after carousel */
.features-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: transparent !important;
}

.features-section .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Full-width features grid */
.features-grid {
    display: flex;
    gap: 0;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.feature-box {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    background: var(--color-white);
    min-height: 280px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
    position: relative;
    flex: 1;
}

/* Overlap effect - each box overlaps the previous one */
.feature-box:nth-child(1) {
    z-index: 1;
    margin-right: -25px;
}

.feature-box:nth-child(2) {
    z-index: 2;
    margin-right: -25px;
}

.feature-box:nth-child(3) {
    z-index: 3;
    padding-right: calc(var(--spacing-lg) + 25px);
}

/* Middle feature box with yellow background */
.feature-box:nth-child(2) {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.feature-box:nth-child(2) h3,
.feature-box:nth-child(2) p {
    color: var(--color-secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-primary);
}

.feature-box:nth-child(2) .feature-icon {
    color: var(--color-secondary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.feature-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        min-height: 200px;
    }
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--color-white);
    max-width: 700px;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.carousel-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.carousel-buttons {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Carousel Navigation Arrows */
/* Carousel Navigation Arrows */
/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(30, 58, 95, 0.7);
    /* Dark Navy Glass for contrast on light drywall */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-nav svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
    transition: color 0.3s ease;
    stroke-width: 3;
}

.carousel-nav:hover svg {
    color: var(--color-secondary);
}

.carousel-prev {
    left: var(--spacing-lg);
}

.carousel-next {
    right: var(--spacing-lg);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    width: 40px;
    border-radius: 6px;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel {
        height: 500px;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-subtitle {
        font-size: 1.25rem;
    }

    .carousel-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .carousel-nav {
        width: 50px;
        height: 50px;
    }

    .carousel-prev {
        left: var(--spacing-sm);
    }

    .carousel-next {
        right: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 400px;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-subtitle {
        font-size: 1.1rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   BEFORE & AFTER SECTION
   ============================================ */

.before-after-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.before-after-item {
    position: relative;
}

.ba-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ba-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.ba-after-image,
.ba-before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-white);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.ba-slider::before,
.ba-slider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30%;
    background: var(--color-white);
}

.ba-slider::before {
    top: 0;
}

.ba-slider::after {
    bottom: 0;
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

.ba-slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-secondary);
}

.ba-slider-button svg {
    color: var(--color-white);
}

.ba-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm);
    z-index: 4;
}

.ba-label {
    background: var(--color-white);
    color: var(--color-secondary);
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .ba-slider-button {
        width: 40px;
        height: 40px;
    }

    .ba-slider-button svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xl) 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* Hide default WordPress page title when page-header is present */
.page-header+#main-content .entry-header,
.page-header+#main-content .page-title,
.page-header+#main-content h1.entry-title {
    display: none !important;
}

/* Remove top margin/padding from main content */
#main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Target parent theme elements */
.site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page .entry-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Completely hide page titles on pages with page-header */
body:not(.home) .entry-title {
    display: none !important;
}

body:not(.home) .page-header-wrapper {
    display: none !important;
}

/* NUCLEAR OPTION - Kill ALL white space */
.page-header {
    margin-bottom: 0 !important;
}

.page-header+* {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page #main-content,
body.page .site-main,
body.page article,
body.page .entry-content,
body.page .site-content {
    margin: 0 !important;
    padding-top: 0 !important;
}

body.page header+* {
    margin-top: 0 !important;
}

/* Override Twenty Twenty-One spacing */
.singular .entry-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.singular .site-main>article {
    padding-top: 0 !important;
}

/* Kill any container spacing */
.page .container:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide the extra blue block/section below page header */
body:not(.home) .entry-content>*:first-child {
    display: none !important;
}

body:not(.home) .entry-content>div:first-child,
body:not(.home) .entry-content>section:first-child,
body:not(.home) .entry-content>p:first-child {
    display: none !important;
}

/* If it's a specific class, hide it */
.page-intro,
.page-banner,
.hero-section:not(.hero-carousel) {
    display: none !important;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.7) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header .page-title {
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-top: var(--spacing-sm);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
        padding: var(--spacing-lg) 0;
    }

    .page-header .page-title {
        font-size: 2rem;
    }
}