/* ==========================================================================
   DylanRobertTV — shared site styles
   Used by every public page: Home, Our Work, Services, Pricing, About,
   Inquire and the case studies. Change it here and every page follows.
   ========================================================================== */

:root {
    --navy: #0a426e;
    --navy-dark: #081e3c;
    --navy-top: #0a2850;
    --gold: #e6c59c;
    --gold-dark: #d4ad7c;
    --panel: rgba(102, 157, 214, 0.5);
    --panel-strong: rgba(102, 157, 214, 0.72);
    --line: rgba(10, 66, 110, 0.3);
    --radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-photo: 0 4px 12px rgba(0, 0, 0, 0.25);
    --font: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
}

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

html { scroll-behavior: smooth; background: var(--navy-top); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--navy);
    line-height: 1.6;
    background-image: var(--drtv-bg, url('/Images/DylanRobertTV_Background_LowRes.jpg'));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; }
.center { text-align: center; }
.muted { opacity: 0.85; }
.small { font-size: 0.9rem; }

/* ---------- Header and menu ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 30, 60, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.15rem;
    margin-right: auto;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav a {
    display: block;
    color: var(--gold);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(230, 197, 156, 0.14); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.site-nav a.nav-cta {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: bold;
    margin-left: 6px;
}
.site-nav a.nav-cta:hover { background: var(--gold-dark); }
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(230, 197, 156, 0.5);
    color: var(--gold);
    border-radius: 4px;
    padding: 6px 12px;
    font: inherit;
    cursor: pointer;
}

/* ---------- Page body ---------- */
main.page {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 18px 40px;
}
.panel {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 40px;
    margin-bottom: 28px;
}
.panel-strong { background: var(--panel-strong); }
.page-title { text-align: center; margin-bottom: 26px; }
.page-title h1 { margin-bottom: 6px; }
.page-title p { max-width: 640px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head p { max-width: 620px; margin: 0 auto; }
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0.85;
    margin-bottom: 4px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font);
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}
.btn:hover { background: var(--navy-dark); transform: translateY(2px) scale(0.98); }
.btn-gold { background: var(--gold); color: var(--navy-dark); font-weight: bold; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
}
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; font-weight: bold; }
.card .photo { margin: 0 0 14px; }

/* ---------- Photos (hidden until the file is uploaded) ---------- */
.photo { margin: 0; }
.photo img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-photo);
    object-fit: cover;
}
.photo.ratio-16x9 img { aspect-ratio: 16 / 9; }
.photo.ratio-3x2 img { aspect-ratio: 3 / 2; }
.photo.ratio-4x5 img { aspect-ratio: 4 / 5; }
.photo figcaption { font-size: 0.85rem; margin-top: 6px; opacity: 0.85; }
.no-photo { display: none !important; }

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.steps li {
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 8px;
}
.steps strong { display: block; }

/* ---------- Ticks list ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.ticks li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--navy);
    border-bottom: 3px solid var(--navy);
    transform: rotate(-45deg);
}

/* ---------- Video ---------- */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.video-frame iframe, .video-frame video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

/* ---------- Tags ---------- */
.tag-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { background: var(--navy); color: var(--gold); padding: 5px 14px; border-radius: 50px; font-size: 0.9rem; }

/* ---------- Quote / testimonial ---------- */
.quote {
    margin: 0;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.28);
    border-left: 5px solid var(--navy);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-style: italic;
}
.quote footer { font-style: normal; font-size: 0.95rem; margin-top: 10px; font-weight: bold; }

/* ---------- Call to action box ---------- */
.cta {
    text-align: center;
    background: rgba(8, 30, 60, 0.9);
    color: var(--gold);
    border-radius: var(--radius);
    padding: 30px 20px;
    margin-top: 8px;
}
.cta h2 { color: var(--gold); }
.cta p { max-width: 560px; margin: 0 auto 6px; }

/* ---------- Footer ---------- */
.site-footer {
    background: rgba(8, 30, 60, 0.96);
    color: var(--gold);
    font-size: 0.95rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 18px 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 30px;
    line-height: 1.7;
}
.site-footer h2 { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.site-footer a { color: var(--gold); }
.site-footer .social { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.site-footer .social:empty { display: none; }
.staff-login { opacity: 0.6; }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 18px 22px;
    border-top: 1px solid rgba(230, 197, 156, 0.2);
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 10px; animation: zoom 0.3s ease; }
@keyframes zoom { from { transform: scale(0.85); } to { transform: scale(1); } }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 66, 110, 0.8);
    color: var(--gold);
    font-size: 28px;
    cursor: pointer;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: bold; margin-bottom: 4px; }
.field .hint { font-size: 0.85rem; opacity: 0.85; margin-top: 3px; }
.field input, .field select, .field textarea {
    font: inherit;
    color: var(--navy-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 66, 110, 0.45);
    border-radius: 6px;
    padding: 10px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 3px solid var(--gold);
    outline-offset: 1px;
}
.form-status { margin-top: 14px; font-weight: bold; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Phones ----------
   Narrow screens, plus phones held sideways. Phone browsers ignore
   background-attachment: fixed, so the picture moves to a fixed layer. */
@media (max-width: 860px) {
    .menu-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 30, 60, 0.98);
        padding: 8px 18px 16px;
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; }
    .site-nav a { padding: 12px; }
    .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 760px), (hover: none) and (pointer: coarse) and (max-height: 500px) {
    body { background-image: none; background-attachment: scroll; }
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background: var(--drtv-bg, url('/Images/DylanRobertTV_Background_LowRes.jpg')) center / cover no-repeat;
    }
    main.page { padding: 14px 8px 28px; }
    .panel { padding: 30px 18px; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.3rem; }
    .btn:hover { transform: none; }
    .brand span { font-size: 1.05rem; }
}
