/*
Theme Name: Anderson Brothers Pools
Theme URI: http://andersonbrotherspools.com
Author: Code Underground
Description: Custom theme for Anderson Brothers Pools - SE Michigan's Premier Gunite Pool Builder since 1958
Version: 1.0.0
Text Domain: andersonbros
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #00174f;
    --navy-light: #001f6b;
    --blue: #0077cc;
    --blue-light: #4da8e8;
    --aqua: #00b4d8;
    --gold: #a68763;
    --gold-light: #f0e4cf;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e5ea;
    --gray-300: #c5c9d1;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1280px;
    --header-height: 90px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--aqua); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

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

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 23, 79, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header.scrolled {
    background: rgba(0, 23, 79, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text strong {
    font-size: 20px;
    letter-spacing: 2px;
}

.logo-tagline {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    border-left: 2px solid rgba(200,164,94,0.4);
    padding-left: 10px;
}

.site-logo:hover .logo-tagline { color: var(--gold); }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Dropdown submenus */
.main-nav li {
    position: relative;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 23, 79, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    list-style: none;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.08);
}

.main-nav li:hover > .sub-menu {
    display: block;
    animation: dropIn 0.25s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-nav .sub-menu li { width: 100%; }

.main-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 0;
    white-space: nowrap;
}

.main-nav .sub-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--gold-light);
}

/* Arrow indicator for parent items */
.main-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone svg { width: 16px; height: 16px; fill: var(--gold-light); }

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200,164,94,0.4);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: all var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 7s ease;
}

.hero-slide picture,
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide.prev {
    opacity: 0;
    transform: scale(1);
}

.hero-slide-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-slide-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 26, 58, 0.85) 0%,
        rgba(0, 45, 92, 0.6) 50%,
        rgba(0, 26, 58, 0.75) 100%
    );
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(200,164,94,0.15);
    border: 1px solid rgba(200,164,94,0.3);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.05;
}

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

.hero p {
    font-size: 19px;
    color: rgba(255,255,255,0.8);
    margin: 0 auto 40px;
    line-height: 1.7;
    max-width: 620px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    min-width: 220px;
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(166,135,99,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    min-width: 220px;
    background: transparent;
    color: var(--white) !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bobUp 2s ease-in-out infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    margin: 12px auto 0;
}

@keyframes bobUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
}

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

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

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

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-dark .section-label { color: var(--gold-light); }

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.6);
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--navy);
    padding: 48px 0;
    position: relative;
    z-index: 10;
}

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

.stat-item h3 {
    font-size: 48px;
    color: var(--gold-light);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.stat-item p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.service-card-img {
    height: 260px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-card-body {
    padding: 32px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link:hover { color: var(--navy); gap: 10px; }

.service-link svg { width: 16px; height: 16px; transition: all var(--transition); }

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-label { text-align: left; }

.about-content h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
}

.about-feature svg {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    flex-shrink: 0;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 16px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,26,58,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* Uniform gallery grid — no spanning, fills 4×2 cleanly with 8 items */

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.1); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ========================================
   PROCESS
   ======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--aqua));
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    border: 3px solid var(--gold);
}

.section-dark .process-num {
    background: rgba(200,164,94,0.15);
    border-color: var(--gold);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 15px;
    color: var(--gray-500);
}

.section-dark .process-step p { color: rgba(255,255,255,0.5); }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 120px;
    color: var(--gold);
    opacity: 0.15;
    font-family: var(--font-heading);
    position: absolute;
    top: -10px;
    left: 30px;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 16px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background-image: url('img/IMG_0418.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,26,58,0.9) 0%, rgba(0,45,92,0.85) 100%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}

.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-info-card:last-child { border-bottom: none; }

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(200,164,94,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg { width: 22px; height: 22px; fill: var(--gold); }

.contact-info-card h4 {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 17px;
    color: var(--navy);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--gray-700);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
}

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

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

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 18px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    padding: 80px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

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

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

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    transition: all var(--transition);
}

.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.footer-contact-item svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; margin-top: 3px; }

.footer-areas {
    padding: 28px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.9;
    text-align: center;
}
.footer-areas-label {
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    margin-right: 8px;
}
.footer-areas a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-areas a:hover { color: var(--gold-light); }
.footer-areas-more a { color: var(--gold-light); }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ========================================
   PAGE TEMPLATES
   ======================================== */
.page-hero {
    padding: 180px 0 100px;
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/IMG_0088.JPG') center/cover;
    opacity: 0.2;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 19px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.page-content .entry-content h2 {
    font-size: 32px;
    margin: 48px 0 20px;
}

.page-content .entry-content h3 {
    font-size: 24px;
    margin: 36px 0 16px;
}

.page-content .entry-content p { margin-bottom: 20px; }

.page-content .entry-content img {
    border-radius: 12px;
    margin: 32px 0;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.page-content .entry-content li { margin-bottom: 8px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 240px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    :root { --header-height: 72px; }

    /* Remove backdrop-filter on mobile so .site-header doesn't create a
       stacking context that traps the mobile menu's z-index. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #00174f;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        /* Solid, opaque navy — no transparency */
        background: #00174f;
        background: linear-gradient(180deg, #00174f 0%, #000d2e 100%);
        padding: 24px 0 80px;
        z-index: 99998;                 /* above everything except lightbox (9999) */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: inset 0 6px 12px rgba(0,0,0,0.25);
    }

    /* Lock body scroll when menu open so hero can't peek through */
    body.ab-menu-open { overflow: hidden; }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        display: block;
        padding: 18px 24px;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: #ffffff;                 /* explicit white, not rgba */
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        border-radius: 0;
        transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
    }
    .main-nav a:hover,
    .main-nav a:active,
    .main-nav .current-menu-item > a,
    .main-nav .current_page_item > a {
        background: rgba(200,164,94,0.18);
        color: var(--gold-light);
        padding-left: 32px;
    }

    /* Mobile sub-menu — inset, solid, clearly readable */
    .main-nav .sub-menu {
        position: static;
        display: block;
        background: rgba(0,0,0,0.25);   /* darker inset so it's visually distinct */
        box-shadow: none;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 0;
        min-width: 0;
        animation: none;
    }
    .main-nav .sub-menu a {
        font-size: 15px;
        font-weight: 500;
        padding: 14px 24px 14px 44px;   /* indented so hierarchy is clear */
        color: rgba(255,255,255,0.85);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav .sub-menu a::before {
        content: '›';
        margin-right: 10px;
        color: var(--gold);
        font-weight: 700;
    }
    .main-nav .sub-menu a:hover {
        background: rgba(200,164,94,0.15);
        color: var(--gold-light);
        padding-left: 52px;
    }

    .main-nav .menu-item-has-children > a::after { display: none; }

    /* Hamburger toggle: animate to an X when open (JS adds .active) */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .logo-text { font-size: 14px; }
    .logo-text strong { font-size: 16px; }
    .logo-tagline { font-size: 22px; }

    .menu-toggle { display: block; }

    .header-phone { display: none; }
    .btn-cta.desktop-only { display: none; }

    .hero { min-height: 600px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-scroll { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-accent { display: none; }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 200px);
    }

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

    .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item h3 { font-size: 36px; }

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

    .section { padding: 64px 0; }
    .cta-section { padding: 80px 0; background-attachment: scroll; }
}

@media (max-width: 480px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item { height: 250px; }
    .stats-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}

/* ========================================
   INLINE QUICK-QUOTE FORM (drops into CTA sections, dark + light variants)
   ======================================== */
.ab-inline-form {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 32px;
    border-radius: 14px;
    text-align: left;
}
.ab-inline-form__header { text-align: center; margin-bottom: 22px; }
.ab-inline-form__header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 0 0 8px;
    line-height: 1.2;
}
.ab-inline-form__header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.ab-inline-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.ab-inline-form__form input[type="text"],
.ab-inline-form__form input[type="tel"],
.ab-inline-form__form input[type="email"],
.ab-inline-form__form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 2px solid transparent;
    transition: border-color .2s ease;
}
.ab-inline-form__form textarea {
    margin-bottom: 14px;
    resize: vertical;
    min-height: 90px;
}
.ab-inline-form__form button {
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all .2s ease;
}
.ab-inline-form__form button:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(166,135,99,0.35);
}
.ab-inline-form__or {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 13px;
}
.ab-inline-form__thanks {
    padding: 24px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 10px;
    color: #065f46;
    text-align: center;
    font-size: 16px;
}

/* DARK theme — sits on navy CTA backgrounds */
.ab-inline-form--dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(200,164,94,0.25);
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ab-inline-form--dark .ab-inline-form__header h2 { color: var(--white); }
.ab-inline-form--dark .ab-inline-form__header p  { color: rgba(255,255,255,0.7); }
.ab-inline-form--dark .ab-inline-form__form input,
.ab-inline-form--dark .ab-inline-form__form textarea {
    background: rgba(255,255,255,0.96);
    color: var(--gray-700);
    border-color: rgba(255,255,255,0.2);
}
.ab-inline-form--dark .ab-inline-form__form input:focus,
.ab-inline-form--dark .ab-inline-form__form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.ab-inline-form--dark .ab-inline-form__or { color: rgba(255,255,255,0.7); }
.ab-inline-form--dark .ab-inline-form__or a { color: var(--gold-light); }

/* LIGHT theme — sits on off-white sections */
.ab-inline-form--light {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.ab-inline-form--light .ab-inline-form__header h2 { color: var(--navy); }
.ab-inline-form--light .ab-inline-form__header p  { color: var(--gray-500); }
.ab-inline-form--light .ab-inline-form__form input,
.ab-inline-form--light .ab-inline-form__form textarea {
    background: var(--off-white);
    border-color: var(--gray-200);
    color: var(--gray-700);
}
.ab-inline-form--light .ab-inline-form__form input:focus,
.ab-inline-form--light .ab-inline-form__form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}
.ab-inline-form--light .ab-inline-form__or { color: var(--gray-500); }
.ab-inline-form--light .ab-inline-form__or a { color: var(--navy); }

@media (max-width: 600px) {
    .ab-inline-form { padding: 28px 22px; }
    .ab-inline-form__row { grid-template-columns: 1fr; gap: 10px; }
    .ab-inline-form__header h2 { font-size: 24px; }
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.ab-breadcrumbs {
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    font-size: 13px;
    margin-top: var(--header-height);
}
.ab-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    color: var(--gray-500);
}
.ab-breadcrumbs li {
    display: flex;
    align-items: center;
}
.ab-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin: 0 6px 0 8px;
    color: var(--gray-300);
    font-weight: 700;
}
.ab-breadcrumbs a {
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.ab-breadcrumbs a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.ab-breadcrumbs li[aria-current] { color: var(--navy); font-weight: 600; }

/* Pages with .page-hero already account for header offset; suppress the breadcrumb's margin-top there */
.ab-breadcrumbs + .page-hero { margin-top: 0; }
.ab-breadcrumbs + .page-hero,
.ab-breadcrumbs + .hero { padding-top: 80px; }

@media (max-width: 768px) {
    .ab-breadcrumbs { padding: 10px 0; font-size: 12px; }
}

/* ========================================
   BLOG (single post + listing)
   ======================================== */
.blog-hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; }

.blog-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-700);
}
.blog-content > * + * { margin-top: 1em; }
.blog-content h2 {
    font-size: 28px;
    color: var(--navy);
    margin: 56px 0 16px;
    line-height: 1.25;
}
.blog-content h3 {
    font-size: 22px;
    color: var(--navy);
    margin: 36px 0 12px;
    font-family: var(--font-body);
    font-weight: 700;
}
.blog-content p { margin: 0 0 18px; }
.blog-content ul, .blog-content ol { margin: 0 0 24px; padding-left: 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote {
    border-left: 4px solid var(--gold);
    background: var(--off-white);
    padding: 20px 28px;
    margin: 32px 0;
    font-style: italic;
    color: var(--gray-700);
    border-radius: 0 8px 8px 0;
}
.blog-content a { color: var(--blue); border-bottom: 1px solid rgba(0,119,204,0.25); }
.blog-content a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.blog-content table th,
.blog-content table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
}
.blog-content table th {
    background: var(--off-white);
    color: var(--navy);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-content .blog-callout {
    background: var(--off-white);
    border-left: 4px solid var(--navy);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
}
.blog-content .blog-callout strong { color: var(--navy); }
.blog-content .blog-faq h3 { margin-top: 28px; font-size: 18px; }

.blog-byline {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 24px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.blog-byline-avatar {
    width: 56px; height: 56px;
    background: var(--navy);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blog-byline strong { display: block; color: var(--navy); }
.blog-byline span { display: block; font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.blog-cta-box {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 36px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    text-align: center;
}
.blog-cta-box h3 { color: var(--white); font-family: var(--font-heading); font-size: 24px; margin-bottom: 10px; }
.blog-cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.blog-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-related-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.blog-related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.blog-related-img { height: 180px; background-size: cover; background-position: center; }
.blog-related-body { padding: 22px; }
.blog-related-body h3 { color: var(--navy); font-size: 18px; line-height: 1.3; margin-top: 8px; font-family: var(--font-heading); }

.blog-listing { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 920px; margin: 0 auto; }
.blog-listing-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.blog-listing-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.12); }
.blog-listing-img { display: block; background-size: cover; background-position: center; min-height: 220px; }
.blog-listing-body { padding: 28px 28px 28px 0; display: flex; flex-direction: column; justify-content: center; }
.blog-listing-body h2 { font-size: 24px; line-height: 1.25; margin: 8px 0 12px; }
.blog-listing-body h2 a { color: var(--navy); text-decoration: none; }
.blog-listing-body h2 a:hover { color: var(--gold); }
.blog-listing-body p { color: var(--gray-500); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span {
    display: inline-block; padding: 10px 16px;
    background: var(--white); border: 1px solid var(--gray-200);
    color: var(--navy); border-radius: 6px; text-decoration: none;
    font-weight: 600; font-size: 14px;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--navy); color: var(--white); }

@media (max-width: 768px) {
    .blog-content { font-size: 16px; }
    .blog-content h2 { font-size: 24px; margin-top: 40px; }
    .blog-content h3 { font-size: 20px; }
    .blog-related-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-listing-card { grid-template-columns: 1fr; gap: 0; }
    .blog-listing-img { min-height: 220px; }
    .blog-listing-body { padding: 24px; }
    .blog-byline { padding: 20px; }
    .blog-cta-box { padding: 28px 22px; }
    .blog-cta-box h3 { font-size: 20px; }
}

/* ========================================
   MOBILE STICKY CTA BAR
   ======================================== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--navy);
    border-top: 1px solid rgba(200,164,94,0.3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    padding: env(safe-area-inset-bottom) 0 0;
}
.mobile-cta-bar > a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease;
}
.mobile-cta-bar > a svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-cta-call { background: var(--navy); color: var(--gold-light); }
.mobile-cta-call:active { background: var(--navy-light); }
.mobile-cta-quote { background: var(--gold); color: var(--navy) !important; }
.mobile-cta-quote:active { background: var(--gold-light); }
@media (max-width: 768px) {
    .mobile-cta-bar { display: flex; }
    body { padding-bottom: 64px; } /* breathing room above the bar */
    .site-footer { padding-bottom: 16px; }
}
@media (max-width: 768px) {
    /* Bring back a compact phone icon in the header */
    .header-phone { display: inline-flex !important; padding: 8px; }
    .header-phone svg { width: 18px; height: 18px; }
    .header-phone span,
    .header-phone-text { display: none; }
}

/* ========================================
   MOBILE-FIRST POLISH (touch targets, spacing)
   ======================================== */
@media (max-width: 768px) {
    /* Tighter container padding on small screens */
    .container { padding: 0 18px; }

    /* Touch targets ≥ 44px */
    .btn-primary,
    .btn-secondary,
    .btn-cta {
        min-height: 48px;
        padding: 14px 24px;
        width: 100%;
        max-width: 360px;
    }
    .hero-buttons,
    .cta-buttons {
        align-items: center;
    }

    /* Hero — reasonable on small phones */
    .hero { min-height: 560px; }
    .hero h1 { font-size: 32px; line-height: 1.15; }
    .hero p { font-size: 15px; line-height: 1.6; }
    .hero-badge { font-size: 11px; padding: 5px 12px; }
    .hero-content { padding: 20px 0; }

    /* Page hero (interior pages) */
    .page-hero { padding: 130px 0 60px; }
    .page-hero h1 { font-size: 28px; line-height: 1.2; }
    .page-hero p { font-size: 15px; }

    /* Stats and section headers */
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 26px; }
    .section-header p { font-size: 15px; }

    /* Contact form: better mobile keyboard */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* prevents iOS auto-zoom on focus */
        min-height: 48px;
        padding: 12px 14px;
    }
    .contact-form textarea { min-height: 120px; }

    /* FAQ tap targets */
    .faq-toggle { min-height: 48px; }

    /* Footer text smaller, tighter */
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-badge { letter-spacing: 1.5px; }
    .page-hero { padding: 120px 0 48px; }
    .page-hero h1 { font-size: 24px; }
    .stat-item h3 { font-size: 32px; }
    .section { padding: 56px 0; }
    .cta-section { padding: 64px 0; }
    .cta-content h2 { font-size: 26px; }
    .cta-content p { font-size: 15px; }
    .testimonial-card { padding: 28px 22px; }
    .testimonial-card blockquote { font-size: 16px; line-height: 1.7; }
}

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

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

/* WordPress classes */
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; }
