/*
Theme Name: Photo Video Plus
Theme URI: https://photovideoplus.com
Author: Photo Video Plus
Author URI: https://photovideoplus.com
Description: One-page brochure theme for Photo Video Plus — printing, photography, film & restoration in Kalispell, MT.
Version: 1.0
Requires at least: 5.2
Requires PHP: 7.4
Text Domain: photovideoplus
*/

/* ===================================================================
   Design system — dark, high-contrast, brand-blue accents.
   Blue theme variant of the Photo Video Plus site.
   =================================================================== */
:root {
    /* Surfaces */
    --bg:            #121212;
    --bg-section:    #161616;
    --bg-elevated:   #1a1a1a;
    --bg-footer:     #0d0d0d;
    --border:        #262626;
    --border-strong: #333333;

    /* Text */
    --text:        #ffffff;
    --text-muted:  #b5b5b5;

    /* Brand — blue theme */
    --brand:       #004B9B;
    --brand-hover: #0056b3;
    --brand-tint:  rgba(0, 75, 155, 0.14);
    --brand-glow:  rgba(0, 75, 155, 0.35);
    --accent:      #ff3366;

    /* Spacing scale */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    /* Radii */
    --radius-sm:   8px;
    --radius:      14px;
    --radius-pill: 30px;

    /* Type scale (fluid) */
    --fs-hero:  clamp(2.25rem, 5.5vw, 3.75rem);
    --fs-h2:    clamp(1.9rem, 3.5vw, 2.5rem);
    --fs-h3:    1.3rem;
    --fs-lead:  clamp(1.05rem, 2vw, 1.4rem);
    --fs-small: 0.9rem;

    /* Layout */
    --maxw: 1200px;
    --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; }

/* --- Buttons --- */
.btn, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.25s, color 0.25s, border-color 0.25s,
                transform 0.15s, box-shadow 0.25s;
}
.btn { background-color: var(--brand); color: #fff; }
.btn:hover, .btn:focus-visible {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--brand-glow);
}
.btn-outline { background: transparent; color: #fff; border-color: var(--brand); }
.btn-outline:hover, .btn-outline:focus-visible {
    background-color: var(--brand);
    transform: translateY(-2px);
}
.btn-lg { padding: 15px 38px; font-size: 1.05rem; }

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: var(--header-h);
    padding: 12px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.logo img { max-width: 170px; height: auto; }

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-3);
}

nav ul li a {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 4px 2px;
    position: relative;
    transition: color 0.25s;
}
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background-color: var(--brand-hover);
    transition: width 0.25s;
}
nav ul li a:hover,
nav ul li a:focus-visible { color: var(--text); }
nav ul li a:hover::after { width: 100%; }

.header-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.header-buttons .btn,
.header-buttons .btn-outline { padding: 10px 20px; font-size: 0.9rem; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-7) var(--space-3);
    background:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)),
        url('https://i.postimg.cc/1X0m9160/IMG-6287better-edit.jpg') no-repeat center center / cover;
}

.hero-inner { max-width: 760px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
    content: '';
    width: 26px; height: 2px;
    background-color: rgb(225, 6, 0);
}

.hero h1 {
    font-size: var(--fs-hero);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.hero .lead {
    font-size: var(--fs-lead);
    max-width: 620px;
    margin: 0 auto var(--space-5);
    color: #f0f0f0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-cta {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Section shell --- */
.section { padding: var(--space-7) 6%; }
.section--alt { background-color: var(--bg-section); }

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2);
}
.section-title::after {
    content: '';
    display: block;
    width: 54px; height: 3px;
    background-color: var(--brand);
    margin: 14px auto 0;
    border-radius: 3px;
}
.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto var(--space-6);
    font-size: 1.05rem;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: var(--maxw);
    margin: 0 auto;
}
@media (min-width: 600px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background-color: var(--bg-elevated);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

/* Flagship printing card spans the full row */
.service-card.featured {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-align: left;
    padding: var(--space-5) var(--space-4);
    background:
        linear-gradient(135deg, var(--brand-tint), transparent 60%),
        var(--bg-elevated);
}
.service-card.featured .icon-badge { flex-shrink: 0; }

.icon-badge {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-tint);
    color: var(--brand-hover);
    margin-bottom: var(--space-3);
}
.service-card.featured .icon-badge {
    width: 76px; height: 76px;
    margin-bottom: 0;
}
.icon-badge svg { width: 30px; height: 30px; }
.service-card.featured .icon-badge svg { width: 38px; height: 38px; }

.service-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-1);
    line-height: 1.3;
}
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

/* --- Meet the Staff --- */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    max-width: var(--maxw);
    margin: 0 auto;
}

.staff-card {
    background-color: var(--bg-elevated);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    flex: 0 1 calc(33.333% - var(--space-3));
    min-width: 260px;
    max-width: 320px;
    text-align: center;
}
/* Owner spotlight: subtle brand accent + forced onto its own top row */
.staff-card.top-leader { border-color: var(--brand); }
.staff-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.staff-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

.staff-img-slot {
    width: 140px; height: 140px;
    margin: 0 auto var(--space-3);
    border-radius: 50%;
    overflow: hidden;
    background-color: #252525;
    border: 3px solid var(--border-strong);
    transition: border-color 0.3s;
}
.staff-card:hover .staff-img-slot { border-color: var(--brand); }
.staff-img-slot img { width: 100%; height: 100%; object-fit: cover; }

.staff-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.staff-card p {
    font-size: var(--fs-small);
    color: var(--brand-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Contact --- */
.contact-form {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6f6f6f; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.18);
}
.contact-form button { align-self: flex-start; border: none; }

/* --- Footer --- */
footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: var(--space-6) 6% var(--space-4);
    font-size: 0.95rem;
    color: var(--text-muted);
}
.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}
.footer-col h4 {
    color: var(--text);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
}
.footer-col p, .footer-col a { line-height: 1.9; }
.footer-col a:hover { color: var(--text); }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    padding: 8px;
    background-color: var(--brand-hover);
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.25s;
}
.social-icons a:hover { transform: translateY(-3px); background-color: var(--brand); }
.social-icons svg { width: 100%; height: 100%; display: block; fill: #fff; }

.footer-bottom {
    max-width: var(--maxw);
    margin: var(--space-5) auto 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--fs-small);
}

/* --- Scroll reveal (progressive enhancement) --- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .service-card.featured {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    .service-card.featured .icon-badge { margin-bottom: 0; }
}

@media (max-width: 768px) {
    header { position: static; }
    .nav-inner { justify-content: center; text-align: center; }
    .header-buttons { width: 100%; }
    .header-buttons .btn,
    .header-buttons .btn-outline { flex: 1 1 auto; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
    .section { padding: var(--space-6) 6%; }
    .hero { padding: var(--space-6) var(--space-3); }
    .staff-card { flex: 1 1 100%; max-width: 100%; }
    .contact-form button { align-self: stretch; }
}
