/* Bedrock Audio - Static Site Stylesheet
   Light theme, professional acoustic measurement instruments
*/

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #eef0f3;
    --bg-card: #ffffff;
    --bg-nav: #ffffff;
    --accent: #1a4fa0;
    --accent-hover: #133c80;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #e2e2e2;
    --border-light: #d0d0d0;
    --white: #ffffff;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 4px;
    --radius-lg: 8px;
    --max-width: 1100px;
    --nav-height: 60px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1em;
    color: var(--text-primary);
}

p:last-child {
    margin-bottom: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

/* ==================== NAVIGATION ==================== */
.site-nav {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 0;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    white-space: nowrap;
    margin-right: 2rem;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: var(--accent) !important;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    flex-wrap: wrap;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    height: var(--nav-height);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    background: rgba(0,0,0,0.04);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

.nav-links li a .nav-icon {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: auto;
    font-size: 1.2rem;
}

/* ==================== HEADER BANNER ==================== */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.site-header .logo-img {
    max-width: 400px;
    width: 100%;
}

.site-header .tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==================== HERO / SLIDESHOW SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef0f3 100%);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, transform 0.2s;
}

.hero-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-card h2 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.hero-card h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.hero-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== CARD / PANEL ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card h2 {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==================== VIDEO GRID ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s;
}

.video-card:hover {
    border-color: var(--accent);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== PRODUCT LISTING ==================== */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.product-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.product-item:hover {
    border-color: var(--accent);
}

.product-item h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0;
}

/* ==================== DISTRIBUTORS ==================== */
.region-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.region-jump a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-card);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.region-jump a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-primary);
    text-decoration: none;
}

.continent-section {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.continent-section > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* ==================== NEWS GRID ==================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.distributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.distributor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.distributor-card .dist-country {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.distributor-card h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.distributor-card address {
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.distributor-card address a {
    color: var(--accent);
}

.distributor-card .dist-logo {
    margin-top: 0.6rem;
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-block h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-block p,
.contact-block address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== INTRO SECTION ==================== */
.intro-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.intro-section h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

.intro-section p {
    max-width: 680px;
    margin: 0.5rem auto 0;
    color: var(--text-secondary);
}

/* ==================== NEWS FEED / ARTICLES ==================== */
.news-section {
    margin-top: 2.5rem;
}

.news-section h2 {
    font-size: 1.3rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.article-card .card-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: 1.25rem;
}

.article-card h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ==================== HOMEPAGE VIDEO ==================== */
.homepage-video {
    max-width: 600px;
    margin: 1.5rem auto;
}

.homepage-video .video-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ==================== SUPPORT MENU ==================== */
.support-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support-menu li {
    border-bottom: 1px solid var(--border);
}

.support-menu li:last-child {
    border-bottom: none;
}

.support-menu li a {
    display: block;
    padding: 0.7rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}

.support-menu li a:hover {
    color: var(--accent);
    padding-left: 0.9rem;
    text-decoration: none;
}

/* ==================== PAGE LAYOUT: SIDEBAR + CONTENT ==================== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}

.sidebar h4 {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* ==================== BADGE / HIGHLIGHT ==================== */
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-box {
    background: rgba(26, 79, 160, 0.06);
    border: 1px solid rgba(26, 79, 160, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h3 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.footer-brand p,
.footer-links p,
.footer-legal p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a {
    font-size: 0.825rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

@media (max-width: 700px) {
    :root {
        --nav-height: auto;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding: 0.75rem 1.25rem;
        height: auto;
        gap: 0.5rem;
    }

    .nav-brand {
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0.5rem 0;
        border-top: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        height: auto;
        padding: 0.6rem 0.5rem;
        border-bottom: none;
        margin-bottom: 0;
        border-left: 2px solid transparent;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        background: rgba(0,0,0,0.04);
        border-bottom: none;
        border-left-color: var(--accent);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .distributor-grid {
        grid-template-columns: 1fr;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.25rem;
    }
}
