:root {
    --gold: #E2BD55;
    --paper: #FAFAFA;
    --ink: #222;
    --demo-blue: #aad9e9;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background: #e0e0e0;
}

img { max-width: 100%; }

button, .btn {
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
}

:focus-visible {
    outline: 3px solid #1b6a8a;
    outline-offset: 3px;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

.underline { text-decoration: underline; }

.soundwaves {
    display: block;
    width: 100%;
    height: auto;
}

.about-soundwaves-mini {
    display: flex;
    justify-content: center;
}

.soundwaves-mini {
    width: min(50%, 600px);
    height: auto;
}

/* HEADER */
header {
    background: var(--paper);
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 12px 0;
}

.logo img {
    display: block;
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 1.3rem;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: bold;
}

nav a[aria-current="page"]:not(.contact-btn) {
    border-bottom: 3px solid var(--gold);
}

.contact-btn {
    background: var(--gold);
    padding: 10px 20px;
    border-radius: 8px;
}

/* HERO */
.hero {
    display: grid;
    overflow: hidden;
}

.hero > * { grid-area: 1 / 1; }

.hero-bg {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: 15% center;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: end;
    width: 58%;
    padding: 0 2vw;
    text-align: center;
    color: var(--paper);
}

.hero-content h1 {
    /* The title is an image (images/title.png). font-size only sets the em
       used for the shadow and keeps the original responsive sizing. */
    font-size: clamp(3rem, 9vw, 10rem);
    line-height: 0;
    margin: 0 0 .15em;
}

.hero-content h1 img {
    display: block;
    margin: 0 auto;
    width: clamp(174px, 32.7vw, 581px);
    height: auto;
    filter: drop-shadow(0.015em 0.03em 0 #000);
}

.hero-content h3 {
    font-size: clamp(1.15rem, 2.9vw, 2.5rem);
    margin: 0 0 clamp(14px, 2vw, 30px);
    text-shadow: 2px 2px #000;
}

.hero-button {
    display: inline-block;
    padding: 15px 25px;
    background: var(--paper);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    box-shadow: 3px 3px 8px #000;
}

/* DEMOS */
.demos-section {
    padding: 32px 20px 24px;
    border-top: 2px solid #000;
    text-align: center;
    scroll-margin-top: 90px;
}

.demos-section h2 {
    font-size: 2.5rem;
    margin: 0 0 20px;
}

.demo-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 24px;
}

.demo-categories .audio-section {
    flex: 0 1 340px;
    min-width: 0;
    font-size: 1.3rem;
    padding: 20px 24px;
    background: var(--demo-blue);
    border-radius: 8px;
}

.audio-section p {
    margin: 0;
    font-weight: 700;
}

.audio-player {
    margin: 10px 0 0;
}

.audio-player audio {
    width: 100%;
    display: block;
}

.demos-tagline:empty { display: none; }
.demos-tagline { max-width: 760px; margin: 0 auto 28px; padding: 0 20px; font-size: 1.2rem; line-height: 1.6; }
.demos-tagline p { margin: 0 0 .8em; }

.about-section, .clients-section { scroll-margin-top: 90px; }

/* ABOUT */
.about-section {
    background: var(--gold);
    padding: 50px 20px;
}

.about-section h2 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.about-section h3 {
    font-size: clamp(1.15rem, 3.2vw, 1.9rem);
    text-align: center;
    margin: 0 0 12px;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.about-text {
    flex: 1 1 58%;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.65;
}

.about-text p { margin: 0 0 1.1em; }

.about-content img {
    flex: 0 0 34%;
    width: 34%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}

.cta-link {
    display: inline-block;
    margin-top: .5em;
    padding: 14px 22px;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    background: var(--paper);
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 4px 4px 0 #000;
}

.cta-link:hover { box-shadow: 2px 2px 0 #000; transform: translate(2px, 2px); }

/* CLIENTS */
.clients-section {
    background: #f7f7f7;
    text-align: center;
    padding: 40px 20px;
}

.clients-section h2 { margin-top: 0; }

.client-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 40px;
}

.client-logos img {
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 100px;
}

/* FOOTER */
footer {
    background: var(--paper);
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #ddd;
}

.footer-contact {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3rem;
    color: #000;
    text-decoration: none;
    background: var(--gold);
    border-radius: 8px;
}

footer p { margin: 20px 0 10px; }

.social-icons img {
    width: 24px;
    margin: 5px;
}

/* TABLET */
@media (max-width: 900px) {
    .about-content { flex-direction: column; align-items: center; gap: 28px; }
    .about-content img { flex: none; order: -1; width: min(320px, 72%); }
    .about-text { flex: none; width: 100%; max-width: 640px; }
    .hero-content { width: 64%; }
}

/* PHONE */
@media (max-width: 700px) {
    header { position: static; }
    .header-inner { flex-direction: column; padding: 12px 0 14px; }
    .logo img { height: 48px; }
    nav { justify-content: center; font-size: 1rem; gap: 8px 16px; }
    .contact-btn { padding: 8px 14px; }

    .hero-bg { min-height: 340px; object-position: 12% center; }
    .hero-content {
        width: 100%;
        justify-self: stretch;
        padding: 0 16px;
    }
    .hero::after {
        content: "";
        background: linear-gradient(90deg, rgba(20,60,85,0) 0%, rgba(20,60,85,.6) 40%);
    }

    .demos-section h2,
    .about-section h2,

    .demo-categories .audio-section { flex-basis: 100%; }
    .cta-link { display: block; text-align: center; }
    .client-logos img { max-width: 150px; max-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
