/* ==========================================================================
   Total Fencing — Premium redesign
   ========================================================================== */

:root {
    --brand: #1e3a8a;
    --brand-hover: #1e40af;
    --brand-dark: #172554;
    --brand-light: #dbeafe;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #ffffff;
    --nav-height: 80px;
    --section-y: clamp(4rem, 8vw, 7rem);
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.15);
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
    font-size: 1.05rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a[href^="#"] {
    transition: color var(--transition), opacity var(--transition);
}

/* Typography utilities */
.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.section-eyebrow--light {
    color: var(--brand-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.section-title strong {
    font-weight: 700;
    color: var(--brand);
}

.section-title--light {
    color: var(--text-on-dark);
}

.section-title--light strong {
    color: var(--brand-light);
}

.section-header--center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header--center .section-eyebrow {
    margin-bottom: 0.75rem;
}

.section-header--center .section-title {
    margin-bottom: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar--scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    transition: transform var(--transition);
}

.nav-logo:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-cta-section {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-on-dark);
    font-weight: 500;
    transition: color var(--transition), opacity var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    position: relative;
}

.navbar--scrolled .nav-link {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-light);
}

.navbar--scrolled .nav-link:hover,
.navbar--scrolled .nav-link.active {
    color: var(--brand);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phone-cta {
    background: var(--brand);
    color: var(--text-on-dark);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.phone-cta:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

.navbar--scrolled .phone-cta {
    background: var(--brand);
}

.facebook-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.facebook-button:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-on-dark);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar--scrolled .bar {
    background: var(--text);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(23, 37, 84, 0.92) 0%,
        rgba(30, 58, 138, 0.55) 45%,
        rgba(30, 58, 138, 0.15) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-on-dark);
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    border-radius: 50px;
}

.australian-flag {
    width: 20px;
    height: 15px;
    object-fit: contain;
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-on-dark);
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.hero h1 strong {
    font-weight: 700;
    color: var(--brand-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 40ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cta-button--primary {
    background: var(--brand);
    color: var(--text-on-dark);
    border: 2px solid var(--brand);
}

.cta-button--primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.45);
}

.cta-button--ghost {
    background: transparent;
    color: var(--text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.7);
    animation: heroBounce 2s ease-in-out infinite;
    transition: color var(--transition);
}

.hero-fence {
    --fence-progress: 0;
    --fence-h: 76px;
    --fence-ground-h: 8px;
    --fence-picket-lift: 6px;
    --fence-bottom-rail: 12px;
    --fence-top-rail: 30px;
    --fence-rail-thickness: 4px;
    --fence-picket-h: 48px;
    --fence-post-h: 38px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--fence-h);
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.hero-fence__ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--fence-ground-h);
    background: rgba(255, 255, 255, 0.15);
    clip-path: inset(0 calc((1 - var(--fence-progress)) * 100%) 0 0);
    z-index: 4;
}

.hero-fence__build {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--fence-h);
    clip-path: inset(0 calc((1 - var(--fence-progress)) * 100%) 0 0);
}

.hero-fence__rails {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.hero-fence__rail {
    position: absolute;
    left: 0;
    right: 0;
    height: var(--fence-rail-thickness);
    background: var(--brand-light);
    border-radius: 1px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Bottom rail — pickets nail on here, just above ground gap */
.hero-fence__rail--bottom {
    bottom: var(--fence-bottom-rail);
}

/* Top rail — picket points extend well above this */
.hero-fence__rail--top {
    bottom: var(--fence-top-rail);
}

.hero-fence__segments {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    gap: 5px;
    box-sizing: border-box;
    z-index: 2;
}

.hero-fence__unit {
    flex-shrink: 0;
    transform: scaleY(var(--seg-scale, 0));
    transform-origin: bottom center;
}

/* Posts: shorter, still anchored to ground */
.hero-fence__post {
    width: 5px;
    height: var(--fence-post-h);
    align-self: flex-end;
    background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 40%, #f1f5f9 100%);
    border-radius: 1px 1px 0 0;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Pickets: bottom clears ground, pointed top rises above top rail */
.hero-fence__picket {
    width: 7px;
    height: var(--fence-picket-h);
    margin-bottom: var(--fence-picket-lift);
    background: #ffffff;
    clip-path: polygon(50% 0%, 100% 12%, 100% 100%, 0% 100%, 0% 12%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
    z-index: 2;
}

.hero-scroll:hover {
    color: var(--text-on-dark);
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    padding: var(--section-y) 0;
    background: var(--surface-muted);
}

.about-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-text {
    max-width: 36rem;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-wa-graphic {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(30, 58, 138, 0.08);
    overflow: hidden;
}

.about-wa-map-wrap {
    margin: 0 auto 0.75rem;
    width: 140px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-wa-map {
    width: 140px;
    height: auto;
    display: block;
    transform: scale(var(--wa-map-scale, 1));
    transform-origin: var(--wa-map-origin, 21% 90%);
    will-change: transform;
}

.about-wa-caption {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    font-weight: 500;
}

.about-wa-caption strong {
    color: var(--brand);
    font-weight: 700;
}

.about-wa-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.65rem;
    min-height: 280px;
}

.about-photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-photo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-photo--1 {
    grid-row: span 2;
    min-height: 200px;
}

.about-photo--2,
.about-photo--3 {
    min-height: 96px;
}

.about .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.about p {
    color: var(--text-muted);
    line-height: 1.8;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.trust-item:last-child {
    border-right: none;
}

.trust-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
    padding: var(--section-y) 0;
    background: var(--surface);
}

.services-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-box {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--brand);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    color: var(--brand);
    margin-bottom: 1.25rem;
}

.service-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-box p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.service-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-section {
    padding: var(--section-y) 0;
    background: var(--surface-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
    background: var(--brand-dark);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 37, 84, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay::after {
    content: 'View';
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
}

.gallery-more {
    text-align: center;
    margin-top: 3rem;
}

.more-button {
    background: var(--brand);
    color: var(--text-on-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.more-button:hover {
    background: var(--brand-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.more-arrow {
    transition: transform var(--transition);
}

.more-button:hover .more-arrow {
    transform: translateY(3px);
}

.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-images h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--brand);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    padding: 0;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.contact-panel {
    background: var(--brand-dark);
    color: var(--text-on-dark);
    padding: var(--section-y) 2rem;
}

.contact-panel-inner {
    max-width: 520px;
    margin: 0 auto;
}

.contact-panel-lead {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-light);
    min-width: 80px;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--brand-light);
}

.contact-panel .random-gallery {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.contact-panel .random-gallery h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-panel .random-gallery h3 strong {
    font-weight: 700;
    color: var(--brand-light);
}

.random-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.random-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform var(--transition);
}

.random-gallery-item:hover {
    transform: scale(1.04);
}

.random-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 250px;
    border: 0;
}

.contact-form-side {
    background: var(--surface-muted);
    padding: var(--section-y) 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-form-container {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 520px;
    position: relative;
}

.quality-sticker {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 10;
}

.quality-sticker img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form h3 strong {
    font-weight: 700;
    color: var(--brand);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.contact-form input.valid,
.contact-form textarea.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.contact-form label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.contact-form .required {
    color: #ef4444;
    margin-left: 4px;
}

.contact-form .field-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.contact-form .field-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.contact-form .alert-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.contact-form .alert-message.success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.contact-form .alert-message.error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--brand);
    color: var(--text-on-dark);
    border: 2px solid var(--brand);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.submit-btn:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.contact-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #6b7280;
    border-color: #6b7280;
    transform: none;
    box-shadow: none;
}

/* Form overlays */
.form-loading-overlay,
.form-success-overlay,
.form-error-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--radius);
}

.form-loading-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.form-success-overlay {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.form-error-overlay {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.loading-content,
.success-content,
.error-content {
    text-align: center;
    padding: 2rem;
}

.success-title { font-size: 1.8rem; font-weight: 700; color: #065f46; margin-bottom: 1rem; }
.success-message { color: #047857; margin-bottom: 1rem; }
.error-title { font-size: 1.8rem; font-weight: 700; color: #991b1b; margin-bottom: 1rem; }
.error-message { color: #b91c1c; margin-bottom: 1rem; }

.retry-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-on-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.service-areas {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(30, 58, 138, 0.3);
    border-left: 3px solid var(--brand);
    border-radius: 0 6px 6px 0;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: slideInUp 0.6s ease both;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .services-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--surface);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        padding: 7rem 0 3rem;
        overflow-y: auto;
        z-index: 1000;
        transform: none;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        color: var(--text);
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .header-cta {
        display: none;
    }

    .mobile-cta-section {
        display: block;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .mobile-phone-cta {
        background: var(--brand);
        color: var(--text-on-dark);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-facebook-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: #1877f2;
        color: #fff;
        border-radius: 50%;
        text-decoration: none;
    }

    .logo-img {
        height: 70px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    .hero-fence {
        --fence-h: 60px;
        --fence-picket-lift: 5px;
        --fence-bottom-rail: 10px;
        --fence-top-rail: 24px;
        --fence-picket-h: 38px;
        --fence-post-h: 32px;
        --fence-rail-thickness: 3px;
    }

    .hero-fence__picket {
        width: 6px;
    }

    .hero-fence__post {
        width: 4px;
    }

    .hero-fence__segments {
        gap: 4px;
        padding: 0 6px;
    }

    .trust-bar {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        max-width: none;
    }

    .about-photo-grid {
        min-height: 240px;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 2rem 1.5rem;
    }

    .trust-item:last-child {
        border-bottom: none;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-panel,
    .contact-form-side {
        padding: 3rem 1.5rem;
    }

    .random-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-sticker {
        top: -10px;
        right: 10px;
    }

    .quality-sticker img {
        width: 70px;
        height: 70px;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item--featured {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .contact-form-container {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-scroll {
        animation: none;
    }

    .hero-fence__build,
    .hero-fence__ground {
        clip-path: none;
    }

    .hero-fence .hero-fence__unit {
        --seg-scale: 1;
    }
}
