/*
 * ============================================================
 * Theme Name:  Valley Vision Child
 * Description: Child theme for Valley Vision Construction &
 *              Development LLC — based on Hello Elementor.
 *              Deep navy + warm gold brand palette.
 *              Lead-generation focused. Elementor compatible.
 * Author:      Keep it Simple Web Services
 * Template:    hello-elementor
 * Version:     1.0.0
 * License:     GPL-2.0-or-later
 * Text Domain: valley-vision-child
 * ============================================================
 *
 * HOW THIS FILE WORKS:
 * WordPress requires style.css to exist with the theme header
 * above (the comment block starting with "Theme Name:").
 * All actual CSS styles live below and also in assets/css/custom.css.
 * The parent theme (Hello Elementor) styles are loaded first,
 * then these child theme styles override or extend them.
 * ============================================================
 */


/* ============================================================
   SECTION 1: CSS CUSTOM PROPERTIES (VARIABLES)
   ------------------------------------------------------------
   Define brand colors, fonts, spacing, and shadows in one
   place. Change a value here and it updates everywhere.
   ============================================================ */

:root {
    /* --- Brand Colors --- */
    --color-primary:     #1A2E4A;   /* Deep navy blue — main brand color */
    --color-secondary:   #C9943A;   /* Warm gold — accent / CTA color */
    --color-white:       #FFFFFF;   /* Clean white — backgrounds */
    --color-text:        #1C1C1C;   /* Near black — body text */
    --color-text-light:  #555555;   /* Medium gray — secondary text */
    --color-bg-light:    #F5F7FA;   /* Light gray — section backgrounds */
    --color-bg-dark:     #0F1E30;   /* Darker navy — footer background */
    --color-border:      #E0E4EA;   /* Subtle border color */
    --color-gold-light:  #E8B86D;   /* Lighter gold for hover states */
    --color-overlay:     rgba(26, 46, 74, 0.72); /* Navy overlay for hero */

    /* --- Typography --- */
    --font-heading:      'Montserrat', 'Arial Black', sans-serif;
    --font-body:         'Open Sans', 'Arial', sans-serif;

    /* --- Font Sizes (mobile-first base) --- */
    --text-xs:    0.75rem;   /*  12px */
    --text-sm:    0.875rem;  /*  14px */
    --text-base:  1rem;      /*  16px */
    --text-md:    1.125rem;  /*  18px */
    --text-lg:    1.25rem;   /*  20px */
    --text-xl:    1.5rem;    /*  24px */
    --text-2xl:   1.875rem;  /*  30px */
    --text-3xl:   2.25rem;   /*  36px */
    --text-4xl:   3rem;      /*  48px */
    --text-5xl:   3.75rem;   /*  60px */

    /* --- Spacing Scale --- */
    --space-xs:   0.5rem;    /*   8px */
    --space-sm:   0.75rem;   /*  12px */
    --space-md:   1rem;      /*  16px */
    --space-lg:   1.5rem;    /*  24px */
    --space-xl:   2rem;      /*  32px */
    --space-2xl:  3rem;      /*  48px */
    --space-3xl:  4rem;      /*  64px */
    --space-4xl:  6rem;      /*  96px */

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

    /* --- Shadows --- */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
    --shadow-md:  0 4px 16px rgba(26,46,74,0.12);
    --shadow-lg:  0 8px 32px rgba(26,46,74,0.18);
    --shadow-gold: 0 4px 20px rgba(201,148,58,0.30);

    /* --- Transitions --- */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* --- Layout --- */
    --header-height:     80px;
    --header-height-sm:  64px;
    --container-max:     1200px;
    --container-wide:    1400px;
    --container-narrow:  800px;
}


/* ============================================================
   SECTION 2: GLOBAL RESET & BASE STYLES
   ------------------------------------------------------------
   Normalize browser differences and set sane defaults.
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;           /* Base font size — rem units scale from this */
    scroll-behavior: smooth;   /* Smooth scrolling for anchor links */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove bottom gap under images */
}

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

a:hover,
a:focus {
    color: var(--color-gold-light);
    text-decoration: underline;
}

/* Remove default list styles in nav / utility contexts */
ul, ol {
    list-style: none;
}

/* Accessible focus outline */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}


/* ============================================================
   SECTION 3: TYPOGRAPHY
   ------------------------------------------------------------
   Heading styles, body text, and utility type classes.
   ============================================================ */

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 700;
}

/* Section headline — centered with gold underline accent */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-sm);
    position: relative;
}

/* Gold underline bar beneath section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    margin: var(--space-sm) auto 0;
}

/* Left-aligned version of section title */
.section-title.left {
    text-align: left;
}
.section-title.left::after {
    margin-left: 0;
}

.section-subtitle {
    font-size: var(--text-md);
    color: var(--color-text-light);
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

/* Gold uppercase label above headings */
.eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}


/* ============================================================
   SECTION 4: LAYOUT UTILITIES
   ------------------------------------------------------------
   Container, section wrappers, grid helpers.
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* Standard section vertical padding */
.section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.section--sm {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.section--lg {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

/* Background variants for alternating sections */
.bg-white    { background-color: var(--color-white); }
.bg-light    { background-color: var(--color-bg-light); }
.bg-primary  { background-color: var(--color-primary); }
.bg-dark     { background-color: var(--color-bg-dark); }

/* Text color helpers */
.text-white  { color: var(--color-white); }
.text-gold   { color: var(--color-secondary); }
.text-navy   { color: var(--color-primary); }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Flex utilities */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* Visually hidden — accessible but not visible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
   SECTION 5: BUTTONS
   ------------------------------------------------------------
   Primary CTA (gold), secondary (navy outline), ghost.
   ============================================================ */

/* Base button — shared styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-fast),
        box-shadow var(--transition-base);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

/* Primary — gold fill (main CTAs: "Get a Free Estimate") */
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-white);
    box-shadow: 0 6px 24px rgba(201,148,58,0.40);
}

/* Secondary — navy fill */
.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #243d5e;
    border-color: #243d5e;
    color: var(--color-white);
}

/* Outline — navy border, transparent fill */
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Outline white — for use on dark/navy backgrounds */
.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

/* Size modifier — large */
.btn-lg {
    font-size: var(--text-base);
    padding: 1.1rem 2.5rem;
}

/* Size modifier — small */
.btn-sm {
    font-size: var(--text-xs);
    padding: 0.625rem 1.25rem;
}


/* ============================================================
   SECTION 6: HEADER
   ------------------------------------------------------------
   Sticky top bar — logo, nav, phone, CTA.
   Full styles here; behavior JS is in assets/js/main.js.
   ============================================================ */

/* Outer header wrapper */
#site-header {
    position: fixed;          /* Stick to top of viewport */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;            /* Sit above all page content */
    height: var(--header-height);
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), height var(--transition-base);
}

/* When user has scrolled down (class added by JS) */
#site-header.scrolled {
    box-shadow: var(--shadow-md);
    height: 68px;
}

/* Inner flex row */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-lg);
}

/* Logo image */
.site-logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity var(--transition-base);
}

.site-logo:hover img {
    opacity: 0.85;
}

/* Primary navigation menu */
.site-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu a {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    transition:
        color var(--transition-base),
        border-color var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
    text-decoration: none;
}

/* Header right-side actions: phone + CTA */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* Phone number in header */
.header-phone {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-base);
}

.header-phone:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.header-phone::before {
    content: '📞 '; /* Phone icon prefix */
    font-size: 0.85em;
}

/* Mobile hamburger button — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Animate hamburger into X when open */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   SECTION 7: HERO BANNER
   ------------------------------------------------------------
   Full-width hero with background image, overlay, headline.
   ============================================================ */

.hero {
    position: relative;
    min-height: 90vh;               /* At least 90% of viewport height */
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: var(--header-height); /* Push content below fixed header */
}

/* Hero background image — set inline via PHP or Elementor */
.hero-bg {
    position: absolute;
    inset: 0;                        /* Shorthand for top/right/bottom/left: 0 */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark navy overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: 1;
}

/* Hero content sits on top of overlay */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 4rem); /* Fluid responsive size */
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-headline .accent {
    color: var(--color-secondary);
}

.hero-tagline {
    font-size: var(--text-xl);
    font-weight: 400;
    color: rgba(255,255,255,0.90);
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.06em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}


/* ============================================================
   SECTION 8: TRUST BAR
   ------------------------------------------------------------
   Horizontal strip of trust signals below the hero.
   ============================================================ */

.trust-bar {
    background-color: var(--color-primary);
    padding: var(--space-lg) 0;
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
}

.trust-item-icon {
    font-size: var(--text-xl);
    color: var(--color-secondary);
    flex-shrink: 0;
}

.trust-item-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
}

.trust-item-text span {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: rgba(255,255,255,0.70);
}

/* Thin gold divider between trust items */
.trust-divider {
    width: 1px;
    height: 36px;
    background-color: rgba(201,148,58,0.40);
}


/* ============================================================
   SECTION 9: SERVICE CARDS
   ------------------------------------------------------------
   Three-pillar layout: Trust | Build | Preserve
   ============================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Gold top accent bar on card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

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

.service-card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.service-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Services detail list (for Services page) */
.service-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 var(--space-lg);
    text-align: left;
}

.service-list li {
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: var(--text-sm);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.service-list li:last-child {
    border-bottom: none;
}

/* Gold checkmark bullet */
.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}


/* ============================================================
   SECTION 10: ABOUT SNIPPET / BIO BLOCK
   ============================================================ */

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Gold border accent on photo */
.about-photo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 3px solid var(--color-secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-title {
    text-align: left;
}
.about-content .section-title::after {
    margin-left: 0;
}

/* Credentials badge list */
.credentials-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list li::before {
    content: '★';
    color: var(--color-secondary);
    font-size: var(--text-md);
    flex-shrink: 0;
    margin-top: 1px;
}


/* ============================================================
   SECTION 11: PORTFOLIO / GALLERY
   ============================================================ */

/* Grid layout for portfolio thumbnails */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;             /* Consistent card proportions */
    background-color: var(--color-bg-light);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* Fill container, crop smartly */
    transition: transform var(--transition-slow);
}

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

/* Hover overlay with caption */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,46,74,0.80);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.portfolio-caption {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
}

.portfolio-caption small {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--color-secondary);
    margin-top: var(--space-xs);
}


/* ============================================================
   SECTION 12: PARTNERS / TESTIMONIALS
   ============================================================ */

.partners-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.partner-item {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-light);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.partner-item:hover {
    color: var(--color-secondary);
}

.partner-divider {
    width: 2px;
    height: 32px;
    background-color: var(--color-border);
}


/* ============================================================
   SECTION 13: CONTACT SECTION
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-info-icon {
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.contact-info-text a {
    color: var(--color-text);
    font-size: var(--text-md);
}

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

/* ============================================================
   Elementor Native Form (Elementor Pro Form widget)
   Applies brand styles to all Elementor-built forms sitewide.
   ============================================================ */

/* Field inputs, textareas, and selects */
.elementor-form .elementor-field-group input[type="text"],
.elementor-form .elementor-field-group input[type="email"],
.elementor-form .elementor-field-group input[type="tel"],
.elementor-form .elementor-field-group input[type="number"],
.elementor-form .elementor-field-group input[type="url"],
.elementor-form .elementor-field-group textarea,
.elementor-form .elementor-field-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-white);
    border: 2px solid var(--color-border) !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color var(--transition-base);
    outline: none;
    box-shadow: none !important;
}

/* Focus state — gold border */
.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus,
.elementor-form .elementor-field-group select:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(201,148,58,0.15) !important;
}

/* Textarea minimum height */
.elementor-form .elementor-field-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Field label */
.elementor-form .elementor-field-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.375rem;
}

/* Required asterisk — gold */
.elementor-form .elementor-mark-required .elementor-field-label::after {
    color: var(--color-secondary);
}

/* Submit button — gold fill */
.elementor-form .elementor-button[type="submit"],
.elementor-form button[type="submit"] {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--text-sm) !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 0.875rem 2.5rem !important;
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--color-secondary) !important;
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-fast) !important;
    box-shadow: var(--shadow-gold) !important;
}

.elementor-form .elementor-button[type="submit"]:hover,
.elementor-form button[type="submit"]:hover {
    background-color: var(--color-gold-light) !important;
    border-color: var(--color-gold-light) !important;
    transform: translateY(-2px) !important;
}

/* Success message */
.elementor-message.elementor-message-success {
    background-color: rgba(201,148,58,0.10);
    border: 1px solid var(--color-secondary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
}

/* Error message */
.elementor-message.elementor-message-danger {
    background-color: rgba(220,38,38,0.08);
    border: 1px solid #DC2626;
    color: #991B1B;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
}

/* Inline field error text */
.elementor-form .elementor-field-group .elementor-message {
    font-size: var(--text-xs);
    color: #DC2626;
    margin-top: 0.25rem;
}

/* Map embed wrapper */
.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-embed iframe {
    width: 100%;
    height: 320px;
    border: none;
    display: block;
}


/* ============================================================
   SECTION 14: FOOTER
   ============================================================ */

#site-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255,255,255,0.80);
    padding-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.footer-brand-logo {
    max-width: 160px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1); /* Make logo white in dark footer */
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.12em;
    margin-bottom: var(--space-md);
}

.footer-brand-desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(201,148,58,0.30);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.70);
}

.footer-contact-item .icon {
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.70);
}

.footer-contact-item a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Footer bottom bar — copyright / license */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
}

.footer-license {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
}

.footer-license a {
    color: var(--color-secondary);
}


/* ============================================================
   SECTION 15: UTILITY & MISCELLANEOUS COMPONENTS
   ============================================================ */

/* Divider line */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-2xl) 0;
}

/* Gold divider */
.divider-gold {
    border-color: var(--color-secondary);
    opacity: 0.4;
}

/* Pill badge */
.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: rgba(201,148,58,0.15);
    color: var(--color-secondary);
    border: 1px solid rgba(201,148,58,0.30);
}

/* Highlight box */
.highlight-box {
    background: rgba(26,46,74,0.05);
    border-left: 4px solid var(--color-secondary);
    padding: var(--space-lg) var(--space-xl);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: var(--space-xl) 0;
}

/* Faith / quote block */
.faith-quote {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
    padding: var(--space-2xl) var(--space-3xl);
    position: relative;
}

.faith-quote::before,
.faith-quote::after {
    content: '"';
    font-size: 5rem;
    color: var(--color-secondary);
    opacity: 0.25;
    position: absolute;
    font-family: Georgia, serif;
    line-height: 1;
}

.faith-quote::before {
    top: 0;
    left: var(--space-xl);
}

.faith-quote::after {
    content: '"';
    bottom: -1rem;
    right: var(--space-xl);
}

/* "More Projects Coming Soon" placeholder */
.coming-soon-box {
    grid-column: 1 / -1;           /* Span all grid columns */
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3xl);
    text-align: center;
    color: var(--color-text-light);
}

.coming-soon-box h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* Page hero (inner pages — not full-height like homepage) */
.page-hero {
    background-color: var(--color-primary);
    padding: var(--space-4xl) 0 var(--space-3xl);
    margin-top: var(--header-height);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle geometric background pattern for page hero */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(201,148,58,0.04) 40px,
            rgba(201,148,58,0.04) 80px
        );
}

.page-hero-title {
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.page-hero-breadcrumb {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.60);
    position: relative;
    z-index: 1;
}

.page-hero-breadcrumb a {
    color: var(--color-secondary);
}


/* ============================================================
   SECTION 16: RESPONSIVE STYLES
   ------------------------------------------------------------
   Mobile-first breakpoints.
   Tablet: max-width 1024px
   Mobile: max-width 768px
   Small:  max-width 480px
   ============================================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {

    :root {
        --header-height: var(--header-height-sm);
    }

    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    /* Typography scale down */
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }

    /* Header — show hamburger, hide nav + phone */
    .site-nav {
        display: none;             /* Hidden until toggled by JS */
        position: fixed;
        top: var(--header-height-sm);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-xl);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    /* Show mobile nav when toggle is active */
    .site-nav.nav-open {
        display: flex;
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: var(--space-md) var(--space-sm);
        font-size: var(--text-base);
        border-bottom: none;
    }

    .header-phone {
        display: none;             /* Hide in header on mobile — visible in nav */
    }

    .menu-toggle {
        display: flex;
    }

    /* Grids collapse to single column */
    .services-grid,
    .portfolio-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* About block stacks vertically */
    .about-block {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    /* Contact grid stacks */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    /* Footer grid collapses */
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    /* Trust bar wraps naturally */
    .trust-bar-inner {
        gap: var(--space-lg);
    }

    .trust-divider {
        display: none;
    }

    /* Hero adjustments */
    .hero {
        min-height: 75vh;
        text-align: center;
    }

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

/* --- Small mobile (≤ 480px) --- */
@media (max-width: 480px) {

    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

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

    .hero-headline {
        font-size: var(--text-2xl);
    }

    .faith-quote {
        padding: var(--space-xl) var(--space-lg);
    }
}
