/* ==========================================================================
   Kings Music and Web Technologies - Main Stylesheet
   ========================================================================== */

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

/* Base */
html {
    font-size: 13px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    color: #747474;
    background-color: #d7d6d6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #ec0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Antic Slab', Georgia, serif;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
}

h1 { font-size: 34px; }
h2 { font-size: 18px; line-height: 1.5; }
h3 { font-size: 16px; line-height: 1.5; }

/* Screen reader only (accessible hidden h1) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: #363839;
    color: #999;
    font-size: 11px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-start;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-item .icon {
    width: 14px;
    height: 14px;
    fill: #999;
    flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.logo {
    display: inline-block;
}

.logo img {
    max-height: 80px;
    margin: 0 auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 3px solid #ec0000;
    position: relative;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    font-family: 'Antic Slab', Georgia, serif;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: #ec0000;
    background: #f8f8f8;
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 3px;
    background: #ec0000;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 5px auto;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Page Title Bar
   ========================================================================== */
.page-title-bar {
    background: #f6f6f6;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-title-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title-bar .page-title {
    font-size: 24px;
    margin: 0;
}

.breadcrumbs {
    font-size: 12px;
    color: #999;
}

.breadcrumbs a {
    color: #999;
}

.breadcrumbs a:hover {
    color: #ec0000;
}

.breadcrumbs .sep {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: #ec0000;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    background: #fff;
    flex: 1;
}

.content-section {
    padding: 55px 0 40px;
}

.content-section + .content-section {
    padding-top: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 34px;
}

/* ==========================================================================
   Grid System
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: center;
}

.col { padding: 0 15px; margin-bottom: 30px; }
.col-1-2 { width: 50%; }
.col-1-3 { width: 33.333%; }
.col-2-3 { width: 66.666%; }
.col-1-6 { width: 16.666%; }

/* ==========================================================================
   Image Styles
   ========================================================================== */
.img-liftup {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.img-liftup:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.img-dropshadow {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.img-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.img-center img {
    max-width: 100%;
}

/* Logo grid items - uniform sizing */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 10px;
}

.logo-item img {
    max-height: 100px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.logo-item-small img {
    max-height: 60px;
}

/* Product image grid */
.product-img {
    margin-bottom: 20px;
}

.product-img img {
    width: 100%;
    object-fit: contain;
}

/* ==========================================================================
   Page-Specific: Hero Layout
   ========================================================================== */
.hero-text h2 {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.hero-text a {
    color: #ec0000;
    font-weight: 700;
}

.hero-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #363839;
    color: #999;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
}

.site-footer a {
    color: #ddd;
}

.site-footer a:hover {
    color: #ec0000;
}

.footer-text {
    margin: 0;
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 80px 0;
}

.error-page h1 {
    font-size: 72px;
    color: #ec0000;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
    margin-bottom: 30px;
}

.error-page .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ec0000;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.error-page .btn:hover {
    background: #c00;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .col-1-6 { width: 33.333%; }

    .page-title-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    html { font-size: 14px; }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    /* Mobile Nav */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .container {
        justify-content: flex-end;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 3px solid #ec0000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

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

    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li.active::after {
        display: none;
    }

    /* Grid */
    .row { margin: 0 -10px; }
    .col { padding: 0 10px; }
    .col-1-2,
    .col-1-3,
    .col-2-3 { width: 100%; }
    .col-1-6 { width: 50%; }

    /* Hero text */
    .hero-text h2 {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    h1 { font-size: 26px; }

    .logo img {
        max-height: 60px;
    }

    .content-section {
        padding: 30px 0 20px;
    }
}
