:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #c5a47e;
    --text-color: #555;
    --light-gray: #f4f4f4;
    --dark-gray: #2f2f2f;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

p.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

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

a {
    text-decoration: none;
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px;
}

.tagline {
    flex-grow: 1;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.header-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.main-nav {
    background-color: #2c5a3d;
    padding: 0.25rem 0;
}

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

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

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: background-color 0.3s;
    display: block;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c5a3d;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    border-top: 2px solid var(--accent-color);
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: none !important;
    text-transform: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.arrow {
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s;
}

.dropdown.open > .dropbtn .arrow {
    transform: rotate(180deg);
}


/* CTA Button */
.cta-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #a88a65;
}

.header-cta {
    margin-left: 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before, 
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 6px); background: var(--primary-color); }
.nav-open .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); background: var(--primary-color); }


/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero_background.png');
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    text-align: center;
    padding: 120px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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


/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--secondary-color);
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--secondary-color);
    font-size: 1.5rem;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* Showroom Section */
.showroom-section {
    padding: 80px 0;
}
.showroom-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.showroom-content {
    flex: 1;
}
.showroom-content h2 { text-align: left; margin-bottom: 1.5rem; }
.showroom-content p { margin-bottom: 1.5rem; }
.showroom-content .address { font-weight: 700; font-size: 1.1rem; }
.showroom-image {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
}

/* Why Us Section */
.why-us-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    height: 60px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}


/* Footer */
footer {
    background-color: #222222;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('footer_bg.png');
    background-size: cover;
    color: #ffffff;
    padding-top: 50px;
    border-top: 1px solid #d4af37;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}
.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}
.footer-about p {
    max-width: 350px;
    color: #f0f0f0;
}
footer h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.footer-links ul li {
    margin-bottom: 0.75rem;
}
.footer-links a, .footer-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover, .footer-contact a:hover {
    color: #d4af37;
}
.footer-contact p {
    margin-bottom: 0.75rem;
    color: #f0f0f0;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 30px 0;
    font-size: 0.9rem;
    color: #ccc;
}
.footer-bottom a {
    color: #ccc;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: #d4af37;
}


/* Generic Page Header */
.page-header {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('page_header_bg.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--secondary-color);
}

.page-header h2 {
    color: var(--secondary-color);
    font-size: 3rem;
}

.content-section {
    padding: 80px 0;
}

.content-section .container {
    max-width: 900px;
}

.content-section p {
    margin-bottom: 1rem;
}

/* About Page Specific Styles */
.about-page .container {
    max-width: 900px;
}
.about-page h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.about-page h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
}
.about-page > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.ceo-section, .why-choose-us, .visit-showroom {
    margin-bottom: 3rem;
}

.why-choose-us h3 {
    text-align: left;
    margin-bottom: 2rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reason h4 {
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.reason p {
    line-height: 1.7;
}

.visit-showroom h3 {
    text-align: left;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}
.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}


/* Gallery Page */
.gallery-controls {
    text-align: center;
    margin-bottom: 40px;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.gallery-item-info {
    padding: 15px;
    background: var(--secondary-color);
}
.gallery-item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.gallery-item-info p {
    font-size: 0.9rem;
    color: #777;
}

.slab-size {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}


/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.contact-layout h3, .contact-address-section h3 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
}

.contact-hours-column ul {
    list-style: none;
    padding: 0;
}

.contact-hours-column li {
    margin-bottom: 0.75rem;
}

.contact-address-section {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3rem;
}
.contact-address-section h3 {
    text-align: center;
}
.contact-address-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 1rem;
}
.contact-info strong {
    color: var(--primary-color);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}
.contact-form button {
    width: 100%;
    border: none;
}

.map-container {
    margin-top: 50px;
}
.map-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.map-container iframe {
    border-radius: 5px;
}


/* Product Page Specific */
.product-page-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.product-item .product-image {
    cursor: pointer;
}


/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.blog-post-card {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.blog-post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-post-card-content {
    padding: 25px;
}
.blog-post-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.blog-post-card-content p {
    margin-bottom: 20px;
}
.blog-post-card-content .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Single Blog Post */
.blog-post-full .container {
    max-width: 800px;
}
.blog-post-full h2 {
    text-align: left;
    margin-bottom: 20px;
}
.blog-post-full-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 30px;
}
.blog-post-full p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Visualizer */
.visualizer-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}
.visualizer-container {
    display: flex;
    gap: 40px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.visualizer-scene {
    flex: 3;
    position: relative;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: background-image 0.3s ease-in-out;
}
.zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.zoom-in, .zoom-out {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}
.zoom-in:hover, .zoom-out:hover {
    background-color: white;
}
.scene-base, .scene-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scene-base {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Allows clicks to go through to layers if needed */
    transition: filter 0.3s ease-in-out;
}
.scene-video {
    z-index: 0;
    display: none; /* Hidden by default */
}
.visualizer-scene.has-video .scene-base {
    display: none;
}
.visualizer-scene.has-video .scene-video {
    display: block;
}

.scene-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 800px auto;
    background-position: center;
    z-index: 1;
    transition: background-image 0.2s ease-in-out;
    pointer-events: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* DEPRECATED - MASKS ARE NOW HANDLED BY THE ROTATOR */
#kitchen-countertop, #kitchen-backsplash, #kitchen-floor,
#bathroom-vanity, #bathroom-floor, #bathroom-shower {
    -webkit-mask-image: none;
    mask-image: none;
}

#edge-scene {
    transition: background-image 0.2s ease-in-out;
}

/* 360 Rotator styles */
.rotator-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s ease-out; /* For zoom */
    transform-origin: center center;
}

.rotator-viewport:active {
    cursor: grabbing;
}

.rotator-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rotator-texture-layer {
    background-size: 800px auto;
    background-position: center;
    transition: background-image 0.2s ease-in-out;
}


/* Cabinet color styling */
.visualizer-scene .scene-base {
    transition: filter 0.3s ease-in-out;
}
/* Kitchen */
.visualizer-scene.cabinets-light-grey .scene-base {
    filter: sepia(30%) brightness(0.9) hue-rotate(-20deg) saturate(0.8);
}
.visualizer-scene.cabinets-dark-grey .scene-base {
    filter: brightness(0.6) contrast(1.1) grayscale(30%);
}
.visualizer-scene.cabinets-navy .scene-base {
     filter: sepia(100%) hue-rotate(180deg) saturate(2) brightness(0.5) contrast(1.2);
}

/* Bathroom */
.visualizer-scene.vanity-white .scene-base {
    filter: brightness(1.2) contrast(0.9) saturate(0.5);
}
.visualizer-scene.vanity-grey .scene-base {
    filter: grayscale(80%) brightness(0.9);
}
.visualizer-scene.vanity-dark .scene-base {
    filter: brightness(0.6) contrast(1.1);
}

.visualizer-controls {
    flex: 1;
    min-width: 280px;
}
.visualizer-controls h3 {
    margin-bottom: 20px;
}
.control-group {
    margin-bottom: 25px;
}
.control-group h4 {
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
}
.zone-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.zone-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 12px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.zone-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.zone-btn.active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

.material-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.material-swatch {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}
.material-swatch:hover {
    border-color: #ccc;
}
.material-swatch.active {
    border-color: var(--accent-color);
}
.color-options {
    display: flex;
    gap: 15px;
}
.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.color-swatch:hover {
    border-color: #ccc;
}
.color-swatch.active {
    border-color: var(--accent-color);
}
.visualizer-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 20px;
}

.edge-visualizer-container {
    align-items: flex-start;
}
.edge-visualizer-container .visualizer-scene {
    background-color: transparent;
}
.edge-display {
    width: 100%;
    height: 100%;
}
.edge-profile-mask {
    width: 100%;
    height: 100%;
    -webkit-mask-image: var(--mask-url);
    mask-image: var(--mask-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: transparent; /* This won't be seen */
    font-size: 0; /* Hide alt text if image fails */
    transition: -webkit-mask-image 0.3s ease-in-out;
}
.edge-display img {
    max-width: 100%;
    border-radius: 5px;
}
.edge-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.edge-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 12px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}
.edge-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.edge-btn.active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links li {
        margin-left: 15px;
    }
}


@media (max-width: 992px) {
    .top-bar {
        padding: 0.75rem 0;
        border-bottom: none; /* Remove border to integrate with tagline section */
    }

    .top-bar .container {
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 10px;
        align-items: center;
    }

    .logo {
        height: 40px;
    }

    .tagline {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        font-size: 0.8rem;
        padding: 0.5rem 10px 1.25rem 10px; /* Add padding top/bottom */
        line-height: 1.4;
        background-color: var(--secondary-color);
        border-bottom: 1px solid #e0e0e0;
        margin-top: 0;
    }

    .main-nav {
        padding: 0;
    }

    .main-nav .container {
        justify-content: flex-end;
        height: 50px; /* Give the nav bar a fixed height */
    }

    .nav-toggle {
        display: block;
        position: static; /* Change from absolute */
        transform: none; /* Reset transform */
        margin-right: 15px; /* Give it some space from the edge */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        padding-top: 0;
        z-index: 1001;
    }
    
    .nav-open .nav-links {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a,
    .nav-links .dropbtn {
        color: var(--primary-color);
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    .nav-links a:hover,
    .nav-links .dropbtn:hover {
        background-color: var(--light-gray);
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        display: none; /* JS will handle this */
        position: static;
        background-color: var(--light-gray);
        box-shadow: none;
        width: 100%;
        padding: 10px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    }
    
    .dropdown.open .dropdown-content {
        display: block;
        max-height: 500px; /* a value larger than content */
        padding: 10px 0;
    }

    .dropdown-content a {
        padding: 12px;
        text-align: center;
        color: var(--text-color);
        font-size: 1rem;
    }

    .header-cta { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p { margin: 0 auto; }
    .about-gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Typography Adjustments */
    body {
        font-size: 15px; /* Base for paragraphs */
        line-height: 1.5;
    }

    h2, .page-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .hero h2 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    p.section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .products-section, .showroom-section, .why-us-section, .content-section {
        padding: 60px 0;
    }
    
    .showroom-section .container {
        flex-direction: column;
    }

    .product-card h3 {
        font-size: 1.3rem;
        padding: 15px;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .gallery-item-info h3 {
        font-size: 1.1rem;
    }

    .blog-post-card-content h3 {
        font-size: 1.25rem;
    }

    .contact-layout {
        gap: 30px;
    }
    
    .contact-layout h3, .contact-address-section h3 {
        font-size: 1.3rem;
    }

    .visualizer-container {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    /* Most styles are inherited from 992px breakpoint. Only add specific overrides if needed. */
}