/* Roll Shaper Australia - Main Stylesheet */
/* Exact replica of rollshaper.com design */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary-orange: #FF9100;
    --primary-orange-light: #FFA733;
    --primary-blue: #006EFF;
    --primary-blue-light: #338BFF;
    --dark-text: #000E21;
    --body-text: rgba(0, 14, 33, 0.75);
    --background: #F8F8F8;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --card-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    --button-shadow: 0px 4px 8px rgba(33, 0, 57, 0.25);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
}

body {
    background: var(--background);
    color: var(--dark-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
    color: var(--dark-text);
    font-size: 48px;
    font-weight: 600;
    line-height: 130%;
}

h2 {
    color: var(--dark-text);
    font-size: 36px;
    font-weight: 600;
    line-height: 130%;
}

h3 {
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
}

p {
    color: var(--body-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 160%;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 { width: 50%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-5 { width: 41.666%; }
    .col-lg-6 { width: 50%; }
    .col-lg-9 { width: 75%; }
}

/* Flexbox utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Spacing */
.m-0 { margin: 0; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.p-3 { padding: 1rem; }
.pt-5 { padding-top: 3rem; }
.pb-5 { padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-orange);
}

.main-nav a.active {
    color: var(--primary-orange);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 45px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(93deg, var(--primary-blue) 8.28%, var(--primary-blue-light) 91.95%);
    color: var(--white);
    box-shadow: var(--button-shadow);
}

.btn-primary:hover {
    background: linear-gradient(93deg, var(--primary-blue-light) 8.28%, var(--primary-blue) 91.95%);
    transform: translateY(-2px);
}

.btn-orange {
    background: linear-gradient(93deg, var(--primary-orange) 8.28%, var(--primary-orange-light) 91.95%);
    color: var(--white);
    box-shadow: 0px 4px 8px rgba(255, 145, 0, 0.25);
}

.btn-orange:hover {
    background: linear-gradient(93deg, var(--primary-orange-light) 8.28%, var(--primary-orange) 91.95%);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Animated gradient button */
.btn-gradient-animate {
    position: relative;
    overflow: hidden;
    border-radius: 45px;
    box-shadow: var(--button-shadow);
}

.btn-gradient-animate .btn-inner {
    position: absolute;
    width: 300%;
    height: 100%;
    left: -100%;
    z-index: 0;
    transition: all 0.4s;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-blue-light), var(--primary-blue), var(--primary-blue-light));
}

.btn-gradient-animate .btn-text {
    position: relative;
    z-index: 1;
    padding: 12px 28px;
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-gradient-animate:hover .btn-inner {
    left: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: var(--background);
    padding: 60px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-content h1 {
    margin-bottom: 10px;
}

.hero-content p {
    margin-bottom: 10px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
}

/* Customize CTA Banner */
.customize-banner {
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0px 0px 48px var(--shadow);
    padding: 35px 40px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.customize-banner p {
    font-size: 16px;
    max-width: 500px;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
    padding: 60px 0;
    background: var(--white);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    position: relative;
    padding: 30px;
    text-align: center;
}

.benefit-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--white);
}

.benefit-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 15px;
}

/* Decorative dots */
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 145, 0, 0.25) 3px, transparent 3px);
    background-size: 22px 22px;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    padding: 60px 0;
}

.products h1 {
    text-align: center;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e1e1e1;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--body-text);
}

.product-card .btn {
    width: 100%;
}

/* ========================================
   CUSTOMISATION PAGE
   ======================================== */
.customization-section {
    padding: 60px 0;
}

.customization-section h1 {
    margin-bottom: 40px;
}

/* 3D Model Viewer */
.model-viewer-container {
    width: 100%;
    height: 500px;
    background: var(--background);
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
}

model-viewer .progress-bar {
    display: block;
    width: 100%;
    height: 6px;
    background: #ddd;
}

model-viewer .progress-bar .update-bar {
    background: var(--primary-orange);
    height: 100%;
    transition: width 0.3s;
}

#ar-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Customization Options */
.customization-options {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.custom-option-group {
    margin-bottom: 25px;
}

.custom-option-group h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.custom-option-group .option-name {
    font-size: 14px;
    color: var(--body-text);
    margin-bottom: 15px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.option-btn:hover {
    transform: scale(1.1);
}

.option-btn.active {
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.5);
}

/* Stitching pattern buttons */
.option-btn.pattern-plain { background: linear-gradient(135deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%); }
.option-btn.pattern-cross { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M0 0h10v10H0zM10 10h10v10H10z" fill="%23ccc"/></svg>'); }
.option-btn.pattern-diamond { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="%23888"/></svg>'); }
.option-btn.pattern-checkered { background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect x="0" y="0" width="10" height="10" fill="%23ddd"/><rect x="10" y="10" width="10" height="10" fill="%23ddd"/></svg>'); }

/* Color swatches */
.color-K1110 { background-color: #ffffff; border: 1px solid #ddd; }
.color-K1112 { background-color: #f5f5dc; }
.color-K1101 { background-color: #1a1a1a; }
.color-K1126 { background-color: #8b4513; }
.color-K1122 { background-color: #d2691e; }
.color-K1119 { background-color: #cd853f; }
.color-K1128 { background-color: #a0522d; }
.color-K1135 { background-color: #dc143c; }
.color-K1120 { background-color: #ff6347; }
.color-K1116 { background-color: #ff69b4; }
.color-K1132 { background-color: #4169e1; }
.color-K1190 { background-color: #2e8b57; }
.color-K1118 { background-color: #9400d3; }
.color-K1114 { background-color: #808080; }

/* Roller wood colors */
.color-Wood { background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%); }
.color-DarkWood { background: linear-gradient(135deg, #3d2314 0%, #5d3a1a 100%); }
.color-LightWood { background: linear-gradient(135deg, #d2b48c 0%, #deb887 100%); }
.color-VeryLightWood { background: linear-gradient(135deg, #f5deb3 0%, #ffe4b5 100%); }
.color-Black { background-color: #1a1a1a; }
.color-White { background-color: #ffffff; border: 1px solid #ddd; }
.color-Cream { background-color: #fffdd0; }

/* Chair leg colors */
.color-LBlack { background-color: #1a1a1a; }
.color-LWhite { background-color: #ffffff; border: 1px solid #ddd; }
.color-LGrafit { background-color: #383838; }
.color-LMetal { background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%); }
.color-LGold { background: linear-gradient(135deg, #ffd700 0%, #daa520 100%); }

/* Back button */
.back-btn {
    display: none;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Configuration form */
.config-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.config-form-section h2 {
    margin-bottom: 10px;
}

.config-form-section > p {
    margin-bottom: 30px;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 110, 255, 0.1);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    box-shadow: inset 0 0 0 4px var(--white);
}

/* File upload */
.file-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--background);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background: #e8e8e8;
}

.file-upload input[type="file"] {
    display: none;
}

/* ========================================
   CLINICAL RESEARCH PAGE
   ======================================== */
.research-section {
    padding: 60px 0;
}

.research-content {
    max-width: 900px;
    margin: 0 auto;
}

.research-content h1 {
    margin-bottom: 30px;
}

.research-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
}

.research-content p {
    margin-bottom: 20px;
}

.research-content ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.research-content li {
    margin-bottom: 10px;
    color: var(--body-text);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--white);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 180px;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-copyright {
    font-size: 13px;
    color: var(--body-text);
}

.footer-copyright a {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.4);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .customize-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px var(--shadow);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .model-viewer-container {
        height: 350px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .option-buttons {
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden { display: none !important; }
.visible { display: block !important; }
.img-fluid { max-width: 100%; height: auto; }
.w-100 { width: 100%; }
.bg-white { background: var(--white); }
.bg-gray { background: var(--background); }
.rounded { border-radius: 15px; }
.shadow { box-shadow: var(--card-shadow); }
