/* Laser Genesis - site styles.
   Written fresh for the rebuild; values match the live design (see _source/design.md).
   Bootstrap 5 (vendored) supplies the grid and a few utilities only. */

/* ---------- Fonts (Poppins, SIL OFL - public/fonts/OFL.txt) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --blue: #3D4CB7;
    --yellow: #F7DF03;
    --navy: #242C6A;
    --link-hover: #928402;
    --nav-hover: #43C513;
    --card-blue: #27AAE1;
    --card-pink: #EC168C;
    --card-yellow: #F3E312;
    --card-bg: #EFEFEF;
    --text: #707070;
    --content-text: #4B5563;
    --content-heading: #111827;
    --focus: #F7DF03;
    --font: "Poppins", sans-serif;
}

/* ---------- Base ---------- */
html { overflow-x: hidden; }
body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    font-size: 1em;
    line-height: 1.8em;
    background-color: var(--blue);
    /* PHOTO (optional): page background artwork placeholder, 1440x2224 - currently flat brand blue */
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 500; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h5 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--yellow); text-decoration: none; }
a:hover, a:active { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
strong { font-weight: bold; }

/* Bootstrap 5 -> match the live Bootstrap 4 container (max 1140px, 15px gutters) */
.container, .container-fluid { --bs-gutter-x: 15px; } /* BS 5.0.x pads containers by the full variable */
.row { --bs-gutter-x: 30px; }
@media (min-width: 1400px) { .container { max-width: 1140px; } }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--yellow); color: var(--blue); padding: .5rem 1rem; font-weight: 600; border-radius: 100px;
}
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--navy);
}
.icon { display: inline-block; vertical-align: -.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn-pill {
    display: inline-block;
    padding: .375rem .75rem;
    background: var(--yellow);
    color: var(--blue);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    text-align: center;
    border: 0;
    border-radius: 100px;
    transition: all .5s;
}
.btn-pill:hover, .btn-pill:active { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 99; }
.nav-wrapper { padding: 20px 15px 0; }
.top-nav-row {
    display: flex; align-items: center;
    padding: 0 25px 20px; position: relative;
}
.nav-logo .brand { display: inline-block; }
.nav-logo img { display: block; width: 100%; max-width: 260px; }
.nav-social {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; gap: 18px;
}
.social-link { color: var(--yellow); display: block; line-height: 0; --icon-fg: var(--blue); }
.social-link .icon { width: 52px; height: 52px; transition: all .3s ease; }
.social-link:hover { color: var(--yellow); }
.social-link:hover .icon { transform: translateY(-4px) scale(1.05); }
.nav-call { display: none; margin-left: auto; }
@media (min-width: 768px) { .nav-call { display: flex; } }

.main-nav { display: flex; flex-direction: column; align-items: center; padding: 0 1rem .5rem; }
.nav-toggle {
    display: none;
    margin: 0 auto 15px; padding: .25rem .75rem;
    background: transparent; border: 0; border-radius: .25rem; cursor: pointer;
}
.nav-toggle-icon {
    display: block; width: 30px; height: 30px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.5)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center/100% no-repeat;
}
.nav-menu {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 25px;
    list-style: none; margin: 0; padding: 0; text-align: center;
}
.nav-menu a {
    display: inline-block;
    margin-right: 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .3s ease;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"]:hover { color: var(--nav-hover); }

@media (max-width: 1199.98px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; gap: 10px; }
    .main-nav.is-open .nav-menu { display: flex; }
    .nav-menu a { margin-right: 0; }
}
@media (max-width: 991px) {
    .top-nav-row { flex-direction: column; gap: 20px; padding-bottom: 10px; }
    .nav-social { position: relative; left: auto; transform: none; }
    .nav-logo img { max-width: 220px; }
    .nav-call { margin-left: 0; }
}

/* ---------- Photo placeholders (swap for real photos - see PHOTOS.md) ---------- */
.photo-ph {
    display: inline-flex; align-items: center; justify-content: center;
    width: calc(var(--w) * 1px); max-width: 100%;
    aspect-ratio: var(--w) / var(--h);
    border: 2px dashed rgba(255, 255, 255, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
    font-size: .875rem; font-weight: 500;
    vertical-align: middle;
}
.band .photo-ph { border-color: rgba(61, 76, 183, .35); background: rgba(61, 76, 183, .06); color: var(--blue); }

/* ---------- Home: hero ---------- */
.hero-section {
    position: relative;
    display: flex; align-items: center;
    min-height: 90vh;
    padding: 40px 0;
}
.hero-section .container-fluid { width: 100%; position: relative; z-index: 1; }

/* Background video: same box as the old 1394x631 photo (contain, bottom center) */
.hero-media {
    position: absolute; z-index: 0;
    left: 50%; bottom: 0; transform: translateX(-50%);
    width: min(100%, calc(90vh * 1394 / 631));
    aspect-ratio: 1394 / 631;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    background: #1d2a6e;
}
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { /* brand-blue tint so white text stays readable */
    content: ""; position: absolute; inset: 0;
    background: #5C78CC;
    mix-blend-mode: multiply;
}
@media (max-width: 992px) {
    .hero-media { inset: 0; transform: none; width: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}
.hero-section h1 { color: #fff; font-size: 3.3rem; font-weight: 700; }
.hero-section p { color: #fff; max-width: 600px; }
.hero-photo { width: min(517px, 100%); }
@media (max-width: 992px) {
    .hero-section h1 { font-size: 1.6rem; }
}
@media (max-width: 767.98px) {
    .hero-section .col-md-6:first-child { margin-bottom: 1.5rem; }
}

/* ---------- Home: about band with service cards ---------- */
.about-section { margin: 20px 0; }
.about-section h2 {
    color: #fff; font-size: 3rem; font-weight: 600; text-transform: uppercase; margin-bottom: 60px;
}
.service-card {
    background: var(--card-bg);
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    position: relative;
    height: 100%;
    transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-8px); }
.service-card-top { height: 130px; padding: 35px; display: flex; align-items: flex-start; }
.service-card-top i { color: #fff; font-size: 54px; line-height: 1; }
.service-card-body { padding: 35px; position: relative; min-height: 310px; }
.service-card-body h3 {
    font-size: 1.7rem; font-weight: 600; text-transform: uppercase; color: #000; line-height: 1.1; margin-bottom: 25px;
}
.service-card-body p { font-size: 20px; line-height: 1.7; color: #222; margin-bottom: 70px; }
.card-btn {
    width: 45px; height: 45px; border-radius: 50%;
    position: absolute; right: 30px; bottom: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
    transition: transform .3s ease;
}
.card-btn .icon { color: #fff; }
.card-btn:hover { transform: scale(1.1); }
.blue { background: var(--card-blue); }
.pink { background: var(--card-pink); }
.yellow { background: var(--card-yellow); }
.card-btn.yellow .icon { color: #000; }
@media (max-width: 991px) {
    .service-card-body h3 { font-size: 28px; }
    .service-card-body p { font-size: 18px; }
}

/* ---------- Home: gradient bands ---------- */
.band { position: relative; overflow: hidden; }
.band-yellow { background: linear-gradient(135deg, #ffff90 0%, #f3f3f3 100%); }
.band-blue { background: linear-gradient(135deg, #1AABE4 0%, #f3f3f3 100%); }
.band h2 { color: var(--blue); font-size: 3rem; font-weight: 600; text-transform: uppercase; margin: 0 0 60px; }
.band h3 { font-size: 1.7rem; font-weight: 600; text-transform: uppercase; color: #000; line-height: 1.1; margin-bottom: 25px; }
.band-content { padding-right: 30px; }
.band-content p { font-size: 20px; line-height: 1.9; color: #333; margin-bottom: 40px; }
.band-content a { color: inherit; }
.band-photo { width: min(550px, 100%); filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .15)); }
.band-img { height: auto; border-radius: 28px; }

/* Craig caricatures (transparent WebP) - same heights as the old images */
.char-img { height: auto; max-width: 100%; }
.hero-char { width: 211px; }
.band-char { width: 219px; filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .15)); }
.footer-char { width: 259px; }
.footer-char-link { display: inline-block; }
@media (max-width: 767.98px) {
    .hero-char { width: 160px; }
    .band-char { width: 180px; }
    .footer-char { width: 200px; }
}
@media (max-width: 991px) {
    .band-content { padding-right: 0; text-align: center; margin-bottom: 50px; }
    .band-content h3 { font-size: 30px; }
    .band-content p { font-size: 18px; line-height: 1.7; }
    .band-photo { width: min(420px, 100%); }
}

/* ---------- Inner pages ---------- */
.page-hero {
    position: relative;
    padding: 0 0 90px;
    text-align: center;
    overflow: hidden;
    background-color: var(--blue);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(16, 23, 72, .55) 0%, rgba(61, 76, 183, .35) 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .site-header { z-index: 99; }
.entry-title {
    position: relative;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.entry-title::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -15px; margin: 0 auto;
    width: 100px; height: 3px; background: var(--blue);
}
.page-content { padding: 80px 0; background: #fff; }
.entry-content { font-size: 18px; line-height: 1.8; color: var(--content-text); }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--content-heading); font-weight: 800; line-height: 1.2; letter-spacing: -1px;
    margin-top: 45px; margin-bottom: 20px;
}
.entry-content h2 { font-size: clamp(34px, 4vw, 48px); }
.entry-content h3 { font-size: clamp(28px, 3vw, 38px); }
.entry-content h4 { font-size: clamp(22px, 2vw, 30px); }
.entry-content h5 { color: var(--content-text); }
.entry-content p { font-size: 18px; line-height: 1.9; color: var(--content-text); margin-bottom: 24px; }
.entry-content a { color: var(--blue); font-weight: 600; transition: .3s ease; }
.entry-content a:hover { color: #25338f; }
.entry-content ul, .entry-content ol { margin-bottom: 30px; padding-left: 24px; }
.entry-content li { margin-bottom: 10px; }
@media (max-width: 767px) {
    .page-hero { padding-bottom: 70px; }
    .page-content { padding: 60px 0; }
    .entry-content, .entry-content p { font-size: 16px; }
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 10px; font-size: 15px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2%; }
.form-field { grid-column: span 12; margin-bottom: 20px; }
.form-field.half { grid-column: span 6; }
@media (max-width: 600px) { .form-field.half { grid-column: span 12; } }
.form-field label { display: block; width: 100%; padding: 0 0 5px; color: #344054; font-weight: 400; line-height: 1.5; }
.req { color: #F04438; }
.form-field input, .form-field textarea {
    display: block; width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    font: inherit; font-size: 14px; line-height: 1.3;
    color: #1D2939; background: #fff;
    border: 1px solid #D0D5DD; border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.form-field textarea { min-height: 144px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: #4199FD; outline-color: #4199FD; }
.form-field [aria-invalid="true"] { border-color: #F04438; }
.field-error { color: #F04438; font-size: 14px; margin-top: 4px; }
.form-submit {
    margin-top: 15px;
    padding: 8px 16px; font: inherit; font-size: 14px; line-height: 1.5;
    color: #fff; background: #4199FD; border: 1px solid #4199FD; border-radius: 8px; cursor: pointer;
}
.form-submit:hover { background: #2E86EC; border-color: #2E86EC; }
.form-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.form-notice-success { background: #ECFDF3; border: 1px solid #ABEFC6; color: #067647; }
.form-notice-error { background: #FEE4E2; border: 1px solid #F5B8AA; color: #B42318; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
    background-color: #131B40; /* dark navy, sampled from the live footer artwork */
    /* PHOTO (optional): footer background artwork placeholder, 1436x699 */
    padding: 60px;
    color: #fff;
}
.site-footer h2 { color: #fff; font-size: 2rem; font-weight: 700; }
.site-footer p { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn-pill { color: var(--blue); }
.site-footer .btn-pill:hover { color: #fff; text-decoration: none; }
.footer-logo { display: block; width: 100%; max-width: 280px; margin-bottom: 1.5rem; }
@media (min-width: 992px) { .footer-logo { width: 280px; max-width: none; } } /* live logo overhangs its column */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-contact { line-height: 2; }
.footer-photo { width: min(381px, 100%); }
.footer-bottom { margin-top: 1.5rem; }
.footer-bottom p { margin-bottom: .25rem; }
.footer-bottom .credit { font-size: .75rem; opacity: .75; }
@media (max-width: 992px) {
    .site-footer { padding: 60px 20px; }
    .footer-logo { margin: 0 auto 30px; }
}

/* ---------- Mobile call bar (new) ---------- */
.call-bar { display: none; }
@media (max-width: 767.98px) {
    .call-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 12px 16px;
        background: var(--yellow); color: var(--blue);
        font-weight: 700; text-transform: uppercase;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, .25);
    }
    .call-bar:hover { color: var(--blue); }
    body { padding-bottom: 56px; }
}

/* ---------- Scroll reveal (replaces the live site's WOW.js/animate.css) ----------
   Usage: data-reveal="up | left | right | fade | zoom | flip", optional style="--delay:.2s".
   Elements start hidden only when <html> has .js-reveal (set in _head.php), and
   site.js adds .is-visible as each one scrolls into view.
   Put data-reveal on a wrapper, not on an element with its own hover transform. */
.js-reveal [data-reveal] {
    opacity: 0;
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}
.js-reveal [data-reveal="up"]    { transform: translateY(50px); }
.js-reveal [data-reveal="left"]  { transform: translateX(-80px); }
.js-reveal [data-reveal="right"] { transform: translateX(80px); }
.js-reveal [data-reveal="zoom"]  { transform: scale(.85); }
.js-reveal [data-reveal="flip"]  { transform: perspective(400px) rotateX(90deg); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
@media (max-width: 767.98px) { /* smaller sideways travel on phones */
    .js-reveal [data-reveal="left"]  { transform: translateX(-40px); }
    .js-reveal [data-reveal="right"] { transform: translateX(40px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
