/* --- 1. CSS VARIABLES (Dark Theme) --- */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --highlight-yellow: #ffff00;
    --link-grey: #cccccc;
    --takealot-blue: #0b4d8e;
    --card-bg: #111111;
    --border-color: #333333;
    --container-width: 950px;
}

/* --- 2. BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 150px; /* Offsets scroll for sticky header */
    scroll-behavior: smooth; 
}

body {
    font-family: Verdana, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Accessibility: Hidden H1 for SEO without altering layout */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: var(--link-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--highlight-yellow);
}

h2 {
    color: var(--highlight-yellow);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

/* --- 3. HEADER --- */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.header-right {
    text-align: right;
}

.main-nav {
    font-size: 0.95rem;
}

.nav-row {
    margin-bottom: 10px;
}

.nav-row .divider {
    color: #555555;
    margin: 0 10px;
}

.main-nav a.active {
    color: var(--text-color);
}

/* --- 4. HERO / VIDEO SECTION --- */
.hero-section {
    padding: 50px 0;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.video-wrapper {
    flex: 1 1 500px;
    position: relative;
    padding-bottom: 31.5%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.surfaces-list {
    flex: 1 1 300px;
}

.surfaces-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.surfaces-list li {
    color: var(--highlight-yellow);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- 5. BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--takealot-blue);
    color: #ffffff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #083c70;
    color: #ffffff;
}

/* --- 6. COMMON CONTENT SECTION --- */
.content-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

/* --- 7. PRODUCT DETAILS SECTION --- */
.product-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.product-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--card-bg);
    border-radius: 6px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.03);
}

/* Alternating layout on desktops */
.product-detail-item:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1 1 55%;
}

.detail-content h3 {
    font-size: 1.25rem;
    color: var(--highlight-yellow);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.detail-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--link-grey);
}

.detail-media {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    background: #181818;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
}

.detail-media img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.25s ease;
}

.detail-media img:hover {
    transform: scale(1.03);
}

/* Side-by-side display for dual images */
.detail-media.dual-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-media.dual-image img {
    max-height: 170px;
    width: 100%;
}

/* --- 8. FAQ ACCORDION --- */
.faq-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.accordion details {
    background: var(--card-bg);
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion summary {
    padding: 15px;
    font-weight: bold;
    color: var(--highlight-yellow);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--link-grey);
}

.accordion details[open] summary::after {
    content: '-';
}

.accordion p {
    padding: 0 15px 15px 15px;
    color: var(--link-grey);
}

/* --- 9. STOCKISTS --- */
.stockists {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.stockist-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--link-grey);
}

.region-group {
    margin-bottom: 40px;
}

.region-title {
    color: var(--highlight-yellow);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.store-card h4 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.store-card p {
    font-size: 0.9rem;
    color: #999999;
    margin-bottom: 15px;
}

/* --- 10. CONTACT SECTION --- */
.contact-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    color: var(--link-grey);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.company-reg {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #777777;
}

.highlight-card {
    border-color: var(--highlight-yellow);
}

.highlight-card p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- 11. FOOTER --- */
.main-footer {
    padding: 40px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #777777;
    font-size: 0.9rem;
}

.footer-bar img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- 12. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .header-container, .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .header-right {
        text-align: center;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%;
    }
    
    .surfaces-list {
        margin-top: 20px;
    }

    .product-detail-item,
    .product-detail-item:nth-child(even) {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .detail-content,
    .detail-media {
        width: 100%;
        flex: 1 1 100%;
    }

    .detail-media {
        min-height: auto;
        padding: 12px;
    }

    .detail-media.dual-image {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}