/* ======================================================
   Main Stylesheet for Kuhle's LUXE LAB
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ======================================================
   Definitive Fix for Mobile Overflow (White Border)
   ====================================================== */
html,
body {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}


:root {
    /* Colors */
    --white-color: #fff;
    --dark-color: #1a1a1a;
    --primary-color: #2a1a0a;
    --secondary-color: #d4af37;
    --accent-color: #4fb6d2;
    --light-bg-color: #f9f7f2;
    --medium-gray-color: #888;

    /* FLUID FONT SIZES for Perfect Responsiveness */
    --font-size-xs: clamp(0.75rem, 2vw, 0.8rem);
    --font-size-s: clamp(0.8rem, 2.2vw, 0.9rem);
    --font-size-n: clamp(0.9rem, 2.5vw, 1rem);
    --font-size-m: clamp(1rem, 2.8vw, 1.12rem);
    --font-size-l: clamp(1.2rem, 4vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 6vw, 2rem);
    --font-size-xxl: clamp(2.2rem, 8vw, 2.8rem);

    /* Border radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Site max width */
    --site-max-width: 1300px;

    /* Shadows */
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --text-shadow-light: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 3px;
    display: block;
    margin: 15px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-color);
}

/* --- Header --- */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .navbar {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
}

.navbar .nav-logo .header-logo {
    height: 60px;
    width: auto;
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color: var(--white-color);
    font-weight: 500;
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--dark-color);
    background: var(--secondary-color);
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-section .hero-details .punters-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: var(--text-shadow-light);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xl);
    color: var(--white-color);
    font-family: "Playfair Display", serif;
    font-weight: 700;
    text-shadow: var(--text-shadow-light);
    letter-spacing: 1px;
}

.hero-section .hero-details .subtitle {
    margin-top: 12px;
    max-width: 80%;
    font-size: var(--font-size-l);
    font-weight: 600;
}

.hero-section .hero-details .description {
    max-width: 80%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
    line-height: 1.6;
}

.hero-section .hero-details .buttons {
    display: flex;
    gap: 23px;
}

.hero-section .hero-details .button {
    padding: 12px 28px;
    border: 2px solid transparent;
    color: var(--dark-color);
    border-radius: var(--border-radius-m);
    background: var(--secondary-color);
    font-weight: 500;
    transition: 0.3s ease;
    box-shadow: var(--box-shadow-light);
}

.hero-section .hero-details .button:hover,
.hero-section .hero-details .contact-us {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background: transparent;
}

.hero-section .hero-details .contact-us:hover {
    color: var(--dark-color);
    background: var(--secondary-color);
}

.hero-section .hero-image-wrapper {
    max-width: 400px;
    margin-right: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- About Section --- */
.about-section {
    padding: 120px 0;
    background: var(--light-bg-color);
}

.about-section .section-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.about-section .about-image-wrapper .about-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
    box-shadow: var(--box-shadow-medium);
    border: 5px solid var(--white-color);
}

.about-section .about-details .section-title {
    padding: 0;
    text-align: left;
}

.about-section .about-details .section-title::after {
    margin: 15px 0 0;
}

.about-section .about-details {
    max-width: 50%;
}

.about-section .about-details .text {
    line-height: 1.8;
    margin: 30px 0;
    font-size: var(--font-size-m);
    color: var(--dark-color);
}

.about-section .social-link-list {
    display: flex;
    gap: 25px;
    justify-content: flex-start;
}

.about-section .social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    transition: 0.3s ease;
}

.about-section .social-link-list .social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* --- Products Section --- */
.products-section {
    color: var(--white-color);
    background: linear-gradient(to bottom, var(--dark-color), var(--primary-color));
    padding: 50px 0 100px;
}

.products-section .section-title {
    color: var(--secondary-color);
}

.products-section .products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
    justify-content: center;
}

.products-section .products-list .products-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-s);
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.products-section .products-list .products-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-medium);
}

.products-section .products-list .products-item .products-image {
    max-width: 83%;
    aspect-ratio: 1;
    margin-bottom: 20px;
    object-fit: contain;
}

.products-section .products-list .products-item .name {
    margin: 12px 0;
    font-size: var(--font-size-l);
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.products-section .products-list .products-item .text {
    font-size: var(--font-size-n);
    margin-bottom: 15px;
    line-height: 1.5;
}

.products-section .products-list .products-item .price {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto;
    padding: 5px 15px;
    border-radius: var(--border-radius-m);
    background: rgba(0, 0, 0, 0.2);
}

/* --- Other Products Section --- */
.other-section {
    padding: 80px 0 120px;
    background: var(--light-bg-color);
}

.other-section .section-content {
    position: relative;
}

.other-section .slider-wrapper {
    overflow: hidden;
    margin: 0 40px 50px;
}

.other-section .other {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease;
    height: 100%;
    user-select: none;
}

.other-section .other:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.other-section .other .other-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: var(--border-radius-circle);
    border: 5px solid rgba(212, 175, 55, 0.1);
}

.other-section .other .name {
    margin-bottom: 16px;
    font-size: var(--font-size-l);
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.other-section .other .feedback {
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.other-section .other .price {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: auto;
    padding: 5px 15px;
    border-radius: var(--border-radius-m);
    background: rgba(212, 175, 55, 0.1);
}

.other-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 1;
    background: var(--medium-gray-color);
}

.other-section .swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

.other-section .swiper-slide-button {
    color: var(--secondary-color);
    transition: 0.3s ease;
}

.other-section .swiper-slide-button:hover {
    color: var(--primary-color);
}

/* --- Final Gallery Swiper Styles for Coverflow Effect --- */
.gallery-section .section-content {
    position: relative;
    padding: 0 40px;
}

.gallery-swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.gallery-swiper-container .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 320px;
    height: 400px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-s);
    overflow: hidden;
}

.gallery-swiper-container .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-button {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.gallery-nav-button:hover {
    transform: scale(1.1);
}

.gallery-pagination .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.8;
}

.gallery-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, var(--light-bg-color) 0%, #f0ece3 100%);
}

.contact-section .section-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-info-list,
.contact-section .contact-form {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius-s);
    box-shadow: var(--box-shadow-light);
}

.contact-section .contact-info-list {
    width: 45%;
}

.contact-section .contact-form {
    width: 55%;
}

.contact-section .contact-info {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    align-items: center;
}

.contact-section .contact-info i {
    font-size: var(--font-size-l);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius-circle);
}

.contact-section .contact-info p {
    color: var(--dark-color);
}

.contact-section .contact-form .form-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    outline: none;
    margin-bottom: 20px;
    background: var(--light-bg-color);
    border-radius: var(--border-radius-s);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-section .contact-form .form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-section .contact-form textarea.form-input {
    height: 150px;
    padding: 15px;
    resize: vertical;
}

.contact-section .contact-form .submit-button {
    padding: 12px 30px;
    color: var(--dark-color);
    font-weight: 500;
    background: var(--secondary-color);
    border-radius: var(--border-radius-m);
    border: 2px solid var(--secondary-color);
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover {
    background: transparent;
    color: var(--secondary-color);
}

#form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    min-height: 1.2em;
}

/* --- Footer Section --- */
.footer-section {
    padding: 30px 0;
    background: var(--dark-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-section :where(.copyright-text, .social-link, .policy-link) {
    color: var(--white-color);
    transition: 0.3s ease;
}

.footer-section .social-link-list {
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link {
    font-size: var(--font-size-l);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-circle);
}

.footer-section .social-link-list .social-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-section .policy-text .policy-link:hover {
    color: var(--secondary-color);
}

.footer-section .policy-text .separator {
    margin: 0 5px;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white-color);
    color: var(--dark-color);
    margin: 5% auto;
    padding: 25px;
    border-radius: var(--border-radius-s);
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: var(--box-shadow-medium);
    animation: slideIn 0.4s;
}

.close-button {
    color: #888;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--dark-color);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.modal-options {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-m);
    transition: background-color 0.3s, color 0.3s;
}

.modal-button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.pricelist-container h3 {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 600;
}

.pricelist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pricelist-table th,
.pricelist-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.pricelist-table th {
    background-color: #f9f7f2;
    font-weight: bold;
}

.pricelist-table .pricelist-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-s);
    border: 2px solid #f0f0f0;
}

.size-notice {
    display: block;
    text-align: center;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius-m);
    font-size: var(--font-size-s);
    font-weight: 600;
    margin: -10px auto 20px auto;
    max-width: 150px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tekkie-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: var(--border-radius-s);
    padding: 15px;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tekkie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.tekkie-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius-s);
    margin-bottom: 15px;
}

.tekkie-name {
    font-size: var(--font-size-n);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.tekkie-price {
    font-size: var(--font-size-m);
    font-weight: 700;
    color: var(--secondary-color);
}

.brand-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.brand-button {
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-m);
    transition: background-color 0.3s, color 0.3s;
}

.brand-button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.policy-modal-content {
    text-align: left;
    line-height: 1.7;
}

.policy-modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
}

.policy-modal-content h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.policy-modal-content p,
.policy-modal-content ol {
    margin-bottom: 15px;
}

.policy-modal-content ol {
    padding-left: 20px;
}

/* ======================================================
   Animations
   ====================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.page-loaded {
    opacity: 1;
}

.products-item,
.gallery-swiper-container,
.about-image-wrapper,
.about-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.products-item.animate,
.gallery-swiper-container.animate,
.about-image-wrapper.animate,
.about-details.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   Responsive Media Queries
   ====================================================== */
@media screen and (max-width: 900px) {

    /* Tablet */
    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0;
    }

    body.show-mobile-menu::before {
        content: "";
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);
    }

    .navbar :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;
        color: var(--dark-color);
    }

    .navbar #menu-open-button {
        color: var(--white-color);
    }

    .hero-section .section-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 50px;
        justify-content: center;
        padding: 120px 20px 40px;
    }

    .hero-section .hero-details :is(.subtitle, .description) {
        max-width: 100%;
    }

    .hero-section .hero-details .buttons {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .about-section .section-content {
        flex-direction: column;
        text-align: center;
        gap: 70px;
    }

    .about-section .about-details {
        max-width: 100%;
    }

    .about-section .about-details .section-title {
        text-align: center;
    }

    .about-section .about-details .section-title::after {
        margin: 15px auto 0;
    }

    .about-section .social-link-list {
        justify-content: center;
    }

    .contact-section .section-content {
        flex-direction: column;
        gap: 40px;
    }

    .contact-section .contact-info-list,
    .contact-section .contact-form {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {

    /* Mobile */
    .other-section .swiper-slide-button {
        display: none;
    }

    .footer-section .section-content {
        flex-direction: column;
        gap: 20px;
    }

    .modal-content {
        margin: 10% auto;
    }
}

/* Definitive Mobile Fix for iPhone Tables */
@media screen and (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        display: block;
        border: 1px solid #ddd;
        border-radius: var(--border-radius-s);
        margin-bottom: 15px;
        padding: 10px;
    }

    .responsive-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: 1px dotted #eee;
        min-height: 2em;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .responsive-table tr td:last-child {
        border-bottom: none;
    }

    .responsive-table td[data-label]::before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
        color: #333;
    }

    .responsive-table td[data-label="Photo"] {
        padding: 0;
        min-height: 0;
        border-bottom: 10px solid transparent;
    }

    .responsive-table td[data-label="Photo"]::before {
        content: none;
    }

    .responsive-table td[data-label="Photo"] .pricelist-photo {
        margin: 0 auto 10px auto;
        width: 120px;
        height: 120px;
    }

    .responsive-table td[data-label="Model"] {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: bold;
        text-align: center;
        padding-left: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .responsive-table td[data-label="Model"]::before {
        content: none;
    }
}