/* =====================================================
   MATT WALFORD MUSIC — Visual refresh
   Dark, elegant, image-rich, animated.
===================================================== */

:root {
    --bg:        #0e0e10;
    --bg-soft:   #16161a;
    --bg-elev:   #1d1d22;
    --fg:        #f3f1ec;
    --muted:     #a8a39a;
    --line:      #2a2a30;
    --accent:    #d4af7a;   /* warm champagne gold */
    --accent-2:  #f0d8a8;
    --danger:    #e57373;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;

    --radius:    14px;
    --radius-lg: 22px;
    --ease:      cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
    --shadow:    0 18px 50px -20px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: #111; }

/* =====================================================
   SCROLL PROGRESS BAR
===================================================== */
.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 2000;
    transition: width .08s linear;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(14,14,16,0);
    backdrop-filter: blur(0);
    transition: background .35s var(--ease),
                padding .35s var(--ease),
                box-shadow .35s var(--ease),
                backdrop-filter .35s var(--ease);
}
.navbar.shrink {
    background: rgba(14,14,16,.82);
    backdrop-filter: blur(14px);
    padding: 10px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fg);
}
.brand-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 4px;
    transition: transform .4s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.nav-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--fg);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color .25s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    border: 1px solid var(--accent);
    padding: 10px 20px !important;
    border-radius: 999px;
    color: var(--accent) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
    background: var(--accent);
    color: #111 !important;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 38px; height: 38px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    margin: 5px auto;
    background: var(--fg);
    transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 120px 24px 80px;
}
.hero-media {
    position: absolute;
    inset: -8% 0;
    z-index: 0;
    will-change: transform;
}
.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(.2) contrast(1.05);
    animation: kenburns 22s ease-out infinite alternate;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(14,14,16,.35) 0%, rgba(14,14,16,.85) 70%, #0e0e10 100%),
        linear-gradient(180deg, rgba(14,14,16,.4), rgba(14,14,16,.85));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
}
.hero-eyebrow {
    font-size: .85rem;
    letter-spacing: .35em;
    color: var(--accent);
    margin: 0 0 18px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    margin: 0 0 28px;
    letter-spacing: -.01em;
}
.hero-title .accent {
    color: var(--accent);
    font-style: italic;
}
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--muted);
}
.mouse {
    width: 22px; height: 36px;
    border: 1.5px solid var(--muted);
    border-radius: 14px;
    position: relative;
}
.mouse::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 6px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}
.scroll-label {
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
}
@keyframes scrollDot {
    0%   { transform: translate(-50%, 0); opacity: 1; }
    80%  { transform: translate(-50%, 16px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}
@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1%, -1%); }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
    will-change: transform;
}
.btn-primary {
    background: var(--accent);
    color: #111;
    box-shadow: 0 12px 30px -10px rgba(212,175,122,.5);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent-2);
    box-shadow: 0 18px 40px -10px rgba(212,175,122,.65);
}
.btn-ghost {
    border-color: rgba(255,255,255,.25);
    color: var(--fg);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* =====================================================
   STATS
===================================================== */
.stats {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    padding: 48px 24px;
    text-align: center;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-plus {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--accent);
    margin-left: 2px;
}
.stat-label {
    display: block;
    margin-top: 10px;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* =====================================================
   SECTION HEADER
===================================================== */
.section-head {
    max-width: 760px;
    margin: 0 auto;
    padding: 110px 24px 30px;
    text-align: center;
}
.kicker {
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}
.section-head h2,
.about-content h2,
.cta-banner-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.1;
}
.section-head h2 em { color: var(--accent); font-style: italic; }
.lead {
    color: var(--muted);
    font-size: 1.05rem;
}

/* =====================================================
   SERVICES
===================================================== */
.service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 32px;
}
.service.alt .service-img { order: 2; }
.service.alt .service-content { order: 1; }

.service-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}
.service-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.service-img:hover img { transform: scale(1.06); }
.service-tag {
    position: absolute;
    bottom: 20px; left: 20px;
    background: rgba(14,14,16,.7);
    backdrop-filter: blur(8px);
    color: var(--fg);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.1);
}
.service-tag i { color: var(--accent); margin-right: 6px; }

.service-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 18px;
    color: var(--fg);
}
.service-content p { color: var(--muted); margin: 0 0 22px; }
.ticks {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.ticks li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    color: var(--fg);
}
.ticks li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0; top: 2px;
}

.link-arrow {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* =====================================================
   ABOUT
===================================================== */
.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 80px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 120px 32px;
}
.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}
.about-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.about-img:hover img { transform: scale(1.05); }
.about-content p { color: var(--muted); margin: 0 0 18px; }
.about-content .btn { margin-top: 14px; }

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials {
    background: var(--bg-soft);
    padding-bottom: 110px;
}
.testimonial-grid {
    max-width: 1240px;
    margin: 30px auto 0;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonials blockquote {
    margin: 0;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    color: var(--fg);
    transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.testimonials blockquote:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}
.stars { color: var(--accent); margin-bottom: 14px; font-size: .9rem; letter-spacing: 2px; }
.testimonials blockquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0 0 18px;
    line-height: 1.6;
}
.testimonials cite {
    font-style: normal;
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* =====================================================
   CTA BANNER
===================================================== */
.cta-banner {
    position: relative;
    padding: 130px 24px;
    text-align: center;
    overflow: hidden;
}
.cta-banner-media { position: absolute; inset: -8% 0; z-index: 0; }
.cta-banner-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(.4) brightness(.6);
}
.cta-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,14,16,.7), rgba(14,14,16,.85));
    z-index: 1;
}
.cta-banner-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-banner-content p { color: var(--muted); margin: 0 0 30px; font-size: 1.1rem; }

/* =====================================================
   CONTACT
===================================================== */
.contact { padding-bottom: 110px; }
.contact-flex {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--fg);
}
.contact-info i {
    color: var(--accent);
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}
.contact-info a {
    color: var(--fg);
    text-decoration: none;
    transition: color .2s var(--ease);
}
.contact-info a:hover { color: var(--accent); }

#contactForm {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
}
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }
#contactForm input,
#contactForm select,
#contactForm textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg);
    padding: 14px 16px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #111;
}
#contactForm textarea { resize: vertical; min-height: 120px; }
#contactForm button { align-self: flex-start; margin-top: 6px; }
#formMessage {
    margin: 0;
    color: var(--accent);
    font-size: .95rem;
    min-height: 1.2em;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #08080a;
    text-align: center;
    padding: 60px 24px 40px;
    border-top: 1px solid var(--line);
}
.footer-logo {
    max-width: 220px;
    margin: 0 auto 24px;
    opacity: .85;
    filter: brightness(1.05);
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}
.footer-social a {
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    text-decoration: none;
    transition: all .25s var(--ease);
}
.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}
.footer p {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
    letter-spacing: .08em;
}

/* =====================================================
   BACK TO TOP
===================================================== */
.to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 46px; height: 46px;
    background: var(--accent);
    color: #111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all .3s var(--ease);
    z-index: 900;
}
.to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.to-top:hover { background: var(--accent-2); transform: translateY(-4px); }

/* =====================================================
   REVEAL ANIMATIONS
===================================================== */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    will-change: transform, opacity;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 980px) {
    .service,
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 70px 24px;
    }
    .service.alt .service-img { order: 0; }
    .service.alt .service-content { order: 0; }
    .service-img, .about-img { aspect-ratio: 16 / 11; max-width: 720px; margin: 0 auto; width: 100%; }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

    .testimonial-grid { grid-template-columns: 1fr; }
    .contact-flex { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        inset: 0 0 0 30%;
        background: rgba(14,14,16,.96);
        backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.1rem; }
}

@media (max-width: 560px) {
    .navbar-inner { padding: 0 20px; }
    .brand-text { display: none; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
    .form-row { flex-direction: column; }
    #contactForm { padding: 24px; }
    .section-head { padding-top: 80px; }
    .hero { min-height: 92vh; }
}
