/*
Theme Name: Ozark Mountain Construction
Theme URI: https://www.ozarkmtnco.com/
Author: Flex360
Description: Custom modern theme for Ozark Mountain Construction. Tailwind via Play CDN + Inter/Fraunces variable fonts via Bunny Fonts.
Version: 1.0.0
Text Domain: omc
*/

:root {
    --omc-green: #006f3b;
    --omc-deep: #005725;
    --omc-darker: #005423;
    --omc-light: #2e8a53;
    --omc-pale: #64bd83;
    --omc-charcoal: #292730;
    --omc-grey-dark: #56535e;
    --omc-grey: #444444;
    --omc-stone: #e5e3df;
    --omc-light-grey: #dedede;
    --omc-accent: #f4c84a;
    --omc-paper: #fffdf7;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    color: var(--omc-charcoal);
    background: white;
    line-height: 1.6;
}

/* Page body styles */
.prose-omc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--omc-grey);
    max-width: 70ch;
}

.prose-omc h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--omc-charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.prose-omc h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--omc-deep);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prose-omc h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--omc-deep);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.prose-omc p {
    margin-bottom: 1.25rem;
}

.prose-omc a {
    color: var(--omc-green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose-omc a:hover {
    color: var(--omc-deep);
    text-decoration-thickness: 2px;
}

.prose-omc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.prose-omc ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.prose-omc ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--omc-green);
    border-radius: 50%;
}

.prose-omc ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose-omc ul ul li::before {
    background: var(--omc-pale);
    width: 0.35rem;
    height: 0.35rem;
    top: 0.85em;
}

.prose-omc strong {
    color: var(--omc-charcoal);
    font-weight: 600;
}

/* LEGACY CONTENT NORMALIZATION
   Source content from Froala WYSIWYG includes inline styles (font-family,
   color, font-size, background-color) that don't match the modern design.
   Strip them with !important so the theme typography takes over. */
.prose-omc p[style],
.prose-omc span[style],
.prose-omc strong[style],
.prose-omc em[style] {
    font-family: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    background-color: transparent !important;
    letter-spacing: normal !important;
}

.prose-omc img {
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--omc-green);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 111, 59, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--omc-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 111, 59, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--omc-deep);
    border: 2px solid var(--omc-green);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--omc-green);
    color: white;
    text-decoration: none;
}

/* Section tagline (small uppercase kicker label) */
.section-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--omc-green);
    margin-bottom: 0.75rem;
}

/* Display headlines */
.headline-xl {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--omc-charcoal);
}

.headline-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--omc-charcoal);
}

.headline-md {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--omc-charcoal);
}

/* Card lift hover */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.18);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: white;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99;
    pointer-events: none;
    transition: background 0.3s ease;
}

.mobile-drawer-overlay.is-open {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

body.drawer-open {
    overflow: hidden;
}

/* Reveal on scroll — only hides content when JS is enabled and ready, so search
   bots, headless renders, and no-JS visitors see all content immediately. */
.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Map container */
#omc-map {
    width: 100%;
    height: 600px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    #omc-map { height: 480px; }
}

.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    font-family: var(--font-body) !important;
}

.gm-style .gm-style-iw-c strong {
    font-family: var(--font-display);
    color: var(--omc-deep);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Wufoo form normalization */
.ctct-inline-form,
.ctct-form-custom,
.grecaptcha-badge {
    max-width: 100% !important;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

#wufoo-phc8unl11o1caw,
#wufoo-phc8unl11o1caw iframe {
    max-width: 100% !important;
    width: 100% !important;
    border: none;
}

/* Footer Wufoo form (rendered manually with our markup) */
.omc-contact-form input[type="text"],
.omc-contact-form input[type="email"],
.omc-contact-form textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.omc-contact-form input[type="text"]:focus,
.omc-contact-form input[type="email"]:focus,
.omc-contact-form textarea:focus {
    outline: none;
    border-color: var(--omc-accent);
    background: rgba(255, 255, 255, 0.12);
}

.omc-contact-form input[type="text"]::placeholder,
.omc-contact-form input[type="email"]::placeholder,
.omc-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

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

/* Stats strip numbers */
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    color: var(--omc-green);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--omc-grey-dark);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Smooth scroll for in-page anchors */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

#safety-experience,
#services-section,
#our-work,
#about-us {
    scroll-margin-top: 96px;
}

/* Hero overlay text shadow for readability over photographs */
.hero-text-shadow {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* Photo gallery zoom-on-hover + lightbox trigger */
.photo-tile {
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: zoom-in;
    border: 0;
    padding: 0;
    background: var(--omc-charcoal);
    width: 100%;
    display: block;
    position: relative;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.1, 1);
    display: block;
}

.photo-tile:hover img,
.photo-tile:focus-visible img {
    transform: scale(1.06);
}

.photo-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-tile:hover::after,
.photo-tile:focus-visible::after {
    opacity: 1;
}

.photo-tile .photo-tile__zoom {
    position: absolute;
    bottom: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--omc-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.photo-tile:hover .photo-tile__zoom,
.photo-tile:focus-visible .photo-tile__zoom {
    opacity: 1;
    transform: translateY(0);
}

.photo-tile:focus-visible {
    outline: 3px solid var(--omc-accent);
    outline-offset: 3px;
}

/* Lightbox */
.omc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 19, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease;
}

.omc-lightbox.is-open {
    display: flex;
    opacity: 1;
    background: rgba(20, 22, 19, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.omc-lb-figure {
    margin: 0;
    padding: 0;
    max-width: 92vw;
    max-height: 86vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.omc-lb-img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
}

.omc-lb-img.is-loading {
    opacity: 0.4;
}

.omc-lb-counter {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.omc-lb-close,
.omc-lb-prev,
.omc-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.omc-lb-close:hover,
.omc-lb-prev:hover,
.omc-lb-next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.omc-lb-close:focus-visible,
.omc-lb-prev:focus-visible,
.omc-lb-next:focus-visible {
    outline: 2px solid var(--omc-accent);
    outline-offset: 3px;
}

.omc-lb-close { top: 1.5rem; right: 1.5rem; }
.omc-lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.omc-lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.omc-lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.omc-lb-next:hover { transform: translateY(-50%) translateX(2px); }

.omc-lb-close svg,
.omc-lb-prev svg,
.omc-lb-next svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 640px) {
    .omc-lb-prev { left: 0.75rem; }
    .omc-lb-next { right: 0.75rem; }
    .omc-lb-close { top: 0.75rem; right: 0.75rem; }
}

body.lightbox-open {
    overflow: hidden;
}

/* Hide WP admin bar on front end since this is a marketing site */
@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px !important;
    }
}
