@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F9FA;
    --text-heading: #1F2937;
    --text-body: #4B5563;
    --gradient-1: linear-gradient(135deg, #F04C63, #F97316);
    --gradient-2: linear-gradient(135deg, #3B82F6, #06B6D4);
    --nav-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-body);
    background-color: var(--primary-bg);
    line-height: 1.6;
    padding-top: var(--nav-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}
.page-h1-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: block;
    text-align: center;
    color: #5f97ce;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--secondary-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 117, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 117, 80, 0.4);
}

.btn-secondary {
    background: var(--gradient-2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(82, 136, 199, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 136, 199, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
}

.logo-img {
    height: 100px;
    width: auto;
    max-height: calc(var(--nav-height) - 10px);
    aspect-ratio: 720 / 450;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: #f37550;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-bg);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    border-top: 3px solid #7ab5dd;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--secondary-bg);
    color: #f37550;
    font-weight: 700;
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-heading);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #111;
    color: #fff;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: transform, opacity;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide.is-exiting {
    opacity: 0;
    z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes kenBurnsZoomIn {
        0% {
            transform: scale(1) translate3d(0, 0, 0);
        }
        100% {
            transform: scale(1.12) translate3d(-1.5%, -1%, 0);
        }
    }

    @keyframes kenBurnsZoomOut {
        0% {
            transform: scale(1.12) translate3d(1.5%, 1%, 0);
        }
        100% {
            transform: scale(1) translate3d(0, 0, 0);
        }
    }

    .hero-slide:nth-child(odd).is-active,
    .hero-slide:nth-child(odd).is-exiting {
        animation: kenBurnsZoomIn 7.5s linear forwards;
    }

    .hero-slide:nth-child(even).is-active,
    .hero-slide:nth-child(even).is-exiting {
        animation: kenBurnsZoomOut 7.5s linear forwards;
    }

    .hero-slideshow.is-paused .hero-slide {
        animation-play-state: paused;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.slideshow-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.slideshow-toggle:hover,
.slideshow-toggle:focus-visible {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .slideshow-toggle {
        display: none;
    }
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.12rem;
    margin-bottom: 2rem;
}

/* About Us Section */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.1rem;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.process-step {
    background: var(--primary-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #f37550;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #7ab5dd;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.process-img-container {
    width: 100%;
    overflow: hidden;
}

.process-img-container img {
    width: 100%;
    height: clamp(260px, 35vw, 500px);
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Advantage Section */
.advantage-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.advantage-card {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 300px;
    background: var(--primary-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-bottom: 4px solid #7ab5dd;
}

.advantage-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.advantage-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 4rem;
}

.advantage-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Products Section */
.product-section {
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    gap: 40px;
}

.product-section:nth-child(even) {
    flex-direction: row-reverse;
}

.product-content {
    flex: 1;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.advantage-list .product-image img {
    object-fit: cover;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.product-list li {
    padding: 15px;
    background: var(--secondary-bg);
    border-radius: 5px;
    border-left: 3px solid #f98091;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid #5f97ce;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #f37550;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail a {
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: #f37550;
}

.contact-detail h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #5288c7;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: max(1rem, 1em);
    min-height: 48px;
}

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

.form-control:focus-visible {
    outline: 2px solid #5288c7;
    outline-offset: 1px;
    border-color: #7ab5dd;
    box-shadow: 0 0 5px rgba(122, 181, 221, 0.3);
}

.form-control:user-invalid {
    border-color: #F04C63;
}

.form-status {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.is-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.is-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.visually-hidden {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

/* Configuration Box (Sliding Series) */
.config-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #f37550;
}

/* Product Series Image Grids */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.image-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-grid-16-9 img {
    aspect-ratio: 16 / 9;
}

.image-grid-4-3 img {
    aspect-ratio: 4 / 3;
}

.image-grid-1-1 img {
    aspect-ratio: 1 / 1;
}

/* Signature Colour Collection Styles */
.color-series-section h2 {
    text-align: center;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.color-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eaeaea;
}

.color-swatch {
    width: 100%;
    height: 150px;
}

.color-name {
    padding: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

/* Swatch colors */
.swatch-white { background-color: #ffffff; border-bottom: 1px solid #ddd; }
.swatch-grey { background-color: #3d4e58; }
.swatch-brown { background-color: #2d1908; }
.swatch-black { background-color: #070202; }

/* Swatch textures */
.swatch-golden-oak { background-color: #cda34f; background-image: url('images/Wood-Series-golden-oak.jpg'); background-size: cover; }
.swatch-golden-oak-light { background-color: #dfbf88; background-image: url('images/Wood-Series-golden-oak-light.jpg'); background-size: cover; }
.swatch-mahogany { background-color: #4c1d19; background-image: url('images/Wood-Series-mahagony.jpg'); background-size: cover; }
.swatch-walnut { background-color: #3b2818; background-image: url('images/Wood-Series-walnut.jpg'); background-size: cover; }

/* Specialized Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.service-item {
    background: var(--secondary-bg);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #f37550;
    font-weight: 600;
    color: var(--text-heading);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-left-color: #5f97ce;
}

/* Footer */
footer {
    background-color: var(--text-heading);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .product-section, .product-section:nth-child(even) {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--secondary-bg);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .page-h1-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .logo-img {
        height: 80px;
    }
}
