/*
Theme Name: Sound Analysts
Description: Sidebar + continuous-scroll theme for soundanalysts.co.uk,
             based on the SyncXP site layout, re-skinned to SAL branding.
Version: 1.0
*/

/* ===== Fonts (self-hosted, Barlow — free lookalike for DIN Next) ===== */
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/barlow-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/barlow-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/barlow-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/barlow-700.woff2') format('woff2');
}

/* ===== Palette =====
   ink       #2a2a2a  primary text
   dark      #3b3b3d  logo background / sidebar / hero
   darkest   #2e2e30  contact band
   accent    #ffc824  SAL yellow
   muted     #555     secondary text
   line      #e5e5e5  hairlines
*/

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Global scale-up: the design is compact, so render everything larger on
   desktop (like browser zoom). Adjust this ONE number to taste. */
@media (min-width: 901px) {
    html { zoom: 1.25; }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #2a2a2a;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #2a2a2a; text-decoration: none; }
a:hover { opacity: 0.8; }

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

/* ===== LEFT SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #3b3b3d;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 20px;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 32px;
    text-align: center;
}

.sidebar-logo img {
    width: 150px;
    margin: 0 auto;
}

.sidebar-links {
    list-style: none;
    flex: 1;
}

.sidebar-links li { margin-bottom: 6px; }

.sidebar-links a {
    display: block;
    padding: 9px 14px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    opacity: 1;
}

.sidebar-links a.active {
    color: #ffc824;
}

/* Dropdown groups */
.sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.72);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sub-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sub-toggle.active { color: #ffc824; }

.sub-toggle .chev {
    font-size: 11px;
    transition: transform 0.25s;
    opacity: 0.7;
}

.has-sub.open .sub-toggle .chev { transform: rotate(180deg); }

.sub-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.has-sub.open .sub-menu { max-height: 520px; }

.sub-menu li { margin: 0; }

.sub-menu li.sub-heading {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sub-menu li.sub-heading a {
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.sub-menu a {
    display: block;
    padding: 6px 14px 6px 26px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    border-radius: 8px;
}

.sub-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    opacity: 1;
}

.sub-menu a.active { color: #ffc824; }

.sidebar-cta {
    background: #ffc824 !important;
    color: #2a2a2a !important;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.sidebar-cta:hover { opacity: 0.9 !important; }

.sidebar-cta.active { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255,200,36,0.5); }

.sidebar-contact {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.sidebar-contact a {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    padding: 3px 0;
}

.sidebar-contact a:hover { color: #ffc824; opacity: 1; }

.sidebar-contact .phone {
    color: #ffc824;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
}

/* ===== MAIN CONTENT (offset by sidebar) ===== */
.site-content { margin-left: 220px; }

/* ===== HERO (dark, speaker-grille texture) ===== */
.hero {
    padding: 90px 40px 100px;
    text-align: center;
    background: linear-gradient(rgba(59,59,61,0.86), rgba(46,46,48,0.94)),
                url('/assets/img/grille.jpg') center/cover;
    border-bottom: 4px solid #ffc824;
}

.hero-logo {
    width: 300px;
    margin: 0 auto 28px;
}

.hero h1 {
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    max-width: 720px;
    margin: 0 auto 14px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 720px;
    margin: 0 auto 18px;
}

.hero p:last-of-type { margin-bottom: 34px; }

.btn {
    display: inline-block;
    padding: 13px 32px;
    font-size: 15px;
    background: #ffc824;
    color: #2a2a2a;
    border: none;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 8px 10px;
}

.btn:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    padding: 11px 30px;
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ===== HERO CAROUSEL ===== */
.carousel {
    position: relative;
    max-width: 940px;
    margin: 0 auto 46px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product-shot slides: show the whole item on a clean white background */
.carousel-slide.product { background: #fff; }

.carousel-slide.product img {
    object-fit: contain;
    padding: 24px 24px 40px;
}

.carousel-slide figcaption,
.carousel-slide .slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 22px 16px;
    background: linear-gradient(transparent, rgba(20,20,22,0.85));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: left;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(20,20,22,0.55);
    color: #ffc824;
    font-size: 17px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.carousel-arrow:hover { background: rgba(20,20,22,0.85); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

.carousel-dots {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dots button.is-active {
    background: #ffc824;
    transform: scale(1.25);
}

/* Mini carousel (inside split sections) */
.carousel-mini {
    margin: 0;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.carousel-mini .carousel-slide { display: block; cursor: pointer; }

.carousel-mini .carousel-slide figcaption { font-size: 13px; padding: 30px 16px 12px; }

.carousel-mini .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.carousel-mini .carousel-dots { right: 14px; bottom: 14px; }

/* Wide showcase carousel (full section width) */
.carousel-wide {
    margin: 0 auto;
    max-width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 14px;
}

.carousel-wide .carousel-slide { display: block; cursor: pointer; }

@media (max-width: 900px) {
    .carousel-wide { aspect-ratio: 16 / 9; }
}

/* ===== GENERIC SECTIONS ===== */
.section { padding: 70px 40px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a2a2a;
}

.section .subtitle {
    text-align: center;
    color: #555;
    font-size: 15px;
    margin-bottom: 44px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-alt { background: #f7f7f5; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 26px;
}

.service {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    border-top: 3px solid #ffc824;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.service:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }

.service > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.service .service-body { padding: 14px 16px 18px; }

/* Text-only variant (used on installation page "Why choose us") */
.service:not(:has(> img)) { padding: 20px 18px; }

.service h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2a2a2a;
}

.service p { color: #555; font-size: 13px; line-height: 1.55; }

/* ===== PHOTO STRIP ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.photo-grid figure {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-grid figure:hover img { transform: scale(1.04); }

.photo-grid figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 24px 14px 10px;
    background: linear-gradient(transparent, rgba(30,30,32,0.85));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ===== SPLIT (image + text) ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split + .split { margin-top: 64px; }

.split img { border-radius: 12px; width: 100%; }

.split h2 { text-align: left; }

.split .kicker,
.kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #aa8924;
    margin-bottom: 8px;
}

.split p { color: #444; font-size: 15px; margin-bottom: 14px; }

.split .btn { margin: 8px 8px 0 0; }

/* ===== CHECK LIST ===== */
.check-list { list-style: none; margin: 12px 0 18px; }

.check-list li {
    padding: 7px 0 7px 28px;
    position: relative;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffc824;
    font-weight: 700;
}

/* ===== BRAND STRIP ===== */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 34px 44px;
    padding: 10px 0;
}

.brand-strip img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* ===== CASE STUDY CARDS ===== */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cs-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    display: block;
}

.cs-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.10); opacity: 1; }

.cs-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.cs-card .cs-body { padding: 18px 20px 20px; }

.cs-card h3 { font-size: 16px; font-weight: 600; color: #2a2a2a; margin-bottom: 4px; }

.cs-card p { font-size: 13px; color: #555; }

.cs-card .cs-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #aa8924;
}

/* ===== CONTACT (dark band) ===== */
.contact-dark {
    background: #2e2e30;
    border-top: 4px solid #ffc824;
}

.contact-dark h2, .contact-dark .subtitle { color: #fff; }
.contact-dark .subtitle { color: rgba(255,255,255,0.65); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    padding: 30px 26px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    text-align: center;
}

.contact-card h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }

.contact-card p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 12px; }

.contact-card a { color: #ffc824; font-size: 14px; font-weight: 600; }

.contact-address {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
}

.contact-address strong { color: #fff; font-size: 16px; }

.contact-address .phone-big {
    display: block;
    color: #ffc824;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 4px;
    letter-spacing: 0.03em;
}

/* ===== PAGE FOOTER ===== */
.page-footer {
    padding: 34px 40px;
    background: #232325;
}

.page-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

.page-footer a { color: rgba(255,255,255,0.65); }
.page-footer a:hover { color: #ffc824; opacity: 1; }

/* ===== SUBPAGE HERO ===== */
.page-hero {
    padding: 60px 40px 48px;
    background: linear-gradient(rgba(59,59,61,0.90), rgba(46,46,48,0.95)),
                url('/assets/img/grille.jpg') center/cover;
    border-bottom: 4px solid #ffc824;
}

.page-hero .section-inner { max-width: 1100px; }

.page-hero .kicker { color: #ffc824; }

.page-hero h1 {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    max-width: 800px;
}

.page-hero p { color: rgba(255,255,255,0.7); margin-top: 10px; max-width: 700px; font-size: 16px; }

/* ===== PROSE (T&C, case study body) ===== */
.prose { max-width: 780px; margin: 0 auto; }

.prose h2 {
    text-align: left;
    font-size: 21px;
    margin: 36px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ffc824;
    display: inline-block;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li { color: #444; font-size: 15px; margin-bottom: 13px; }

.prose ol, .prose ul { padding-left: 22px; margin-bottom: 14px; }

.prose img { border-radius: 12px; margin: 26px 0; }

.prose blockquote {
    border-left: 4px solid #ffc824;
    padding: 12px 20px;
    background: #f7f7f5;
    border-radius: 0 8px 8px 0;
    margin: 22px 0;
    font-size: 16px;
    color: #333;
    font-style: italic;
}

.prose blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    color: #aa8924;
}

/* ===== EQUIPMENT HIRE CATALOGUE ===== */
.hire-cat { margin-bottom: 54px; }

.hire-cat > h2 {
    text-align: left;
    font-size: 22px;
    border-left: 5px solid #ffc824;
    padding-left: 14px;
    margin-bottom: 26px;
}

.hire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 22px;
}

.hire-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.hire-item img {
    height: 140px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

.hire-item h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    flex: 1;
}

.hire-item .price {
    font-size: 13px;
    color: #444;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.hire-item .price strong { color: #2a2a2a; }

.hire-item .note { font-size: 12px; color: #888; margin-top: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sidebar-nav {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px 14px;
        align-items: center;
        overflow-y: visible;
        box-shadow: 0 -3px 14px rgba(0,0,0,0.25);
    }
    .sidebar-logo { margin-bottom: 0; margin-right: 12px; flex-shrink: 0; }
    .sidebar-logo img { width: 56px; }
    .sidebar-links { display: flex; gap: 4px; flex: 1; align-items: center; }
    .sidebar-links li { margin-bottom: 0; }
    .sidebar-links a { padding: 7px 9px; font-size: 12px; }
    .sidebar-links li.m-hide { display: none; }
    .sidebar-cta { margin-top: 0; }
    .sidebar-contact { display: none; }
    .site-content { margin-left: 0; margin-bottom: 70px; }
    .hero { padding: 60px 24px; }
    .hero h1 { font-size: 26px; }
    .hero-logo { width: 230px; }
    .section { padding: 52px 22px; }
    .services-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 26px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
    .cs-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 44px 22px 36px; }
    .page-hero h1 { font-size: 25px; }
}
