/**
 * Apartment Ideas — Front (Public Pages) Styles
 * Home, Login, Contact, etc.
 *
 * Depends on: common.css (design tokens), Bootstrap 5
 * Typography: Playfair Display (headings), DM Sans (body)
 */

/* =============================================================================
   0. Font & Base Overrides
   ============================================================================= */

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    padding-top: 60px;
}

h1, h2, h3, .front-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

.ls-wide { letter-spacing: 0.1em; }


/* =============================================================================
   1. Fixed Navbar
   ============================================================================= */

#main-nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    background-color: rgba(15, 25, 35, 0.95) !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#main-nav.navbar-scrolled {
    background-color: rgba(15, 25, 35, 1) !important;
    box-shadow: var(--ai-shadow-lg);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

#main-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
    color: #fff;
}

#main-nav .dropdown-menu {
    border: none;
    box-shadow: var(--ai-shadow-lg);
    border-radius: var(--ai-radius);
    padding: 0.5rem 0;
}

#main-nav .dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

#main-nav .dropdown-item:hover {
    background-color: var(--ai-teal-50);
    color: var(--ai-teal);
}

.nav-cta-group .btn {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}


/* =============================================================================
   2. Hero Section
   ============================================================================= */

.hero-section {
    background: var(--ai-dark-gradient);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0, 144, 190, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--ai-teal);
    margin-bottom: 1rem;
}

.hero-title {
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 540px;
}

.hero-trust {
    font-size: 0.85rem;
    color: #fff;
}


/* =============================================================================
   3. Placeholder Image Utility
   ============================================================================= */

.placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: var(--ai-gray-100);
    border: 2px dashed var(--ai-gray-300);
    border-radius: var(--ai-radius);
    color: var(--ai-gray-400);
    text-align: center;
    padding: 2rem;
}

.placeholder-box i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.placeholder-box span {
    font-size: 0.75rem;
    line-height: 1.4;
}

.placeholder-dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.25);
}

.hero-image-placeholder {
    height: 420px;
}

.hero-image-placeholder .placeholder-box {
    height: 100%;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.3);
    border-radius: var(--ai-radius-lg);
}


/* =============================================================================
   4. Logo Bar
   ============================================================================= */

.logo-bar-section {
    border-bottom: 1px solid var(--ai-gray-200);
}

.logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 65px;
    background: var(--ai-gray-100);
    border-radius: var(--ai-radius);
    color: var(--ai-gray-400);
    font-size: 1.5rem;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--ai-teal);
}
.logo-placeholder img{
    height:100%;
    width:100%;
    object-fit:contain;
    padding:0.5rem;
}

/* =============================================================================
   5. Value Pillars
   ============================================================================= */

.pillars-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pillar-card {
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ai-shadow-lg);
}

.pillar-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ai-teal-50);
    color: var(--ai-teal);
    font-size: 2rem;
}


/* =============================================================================
   6. Specialty Finishes (Dark Section — Visual Centerpiece)
   ============================================================================= */

.specialty-section {
    background: var(--ai-dark-gradient);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.finish-card {
    background: var(--ai-dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.finish-card:hover {
    border-color: var(--ai-gold);
    box-shadow: 0 0 24px rgba(var(--ai-gold-rgb), 0.15);
    transform: translateY(-4px);
}

.finish-card-image {
    height: 200px;
}
.finish-card-image img{
    height:100%;
    object-fit:cover;
    width:100%;
}

.finish-card-image .placeholder-box {
    min-height: 200px;
    border: none;
    border-radius: 0;
}

.finish-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(var(--ai-gold-rgb), 0.15);
    color: var(--ai-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}


/* =============================================================================
   7. How It Works
   ============================================================================= */

.how-it-works-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.step-wrapper {
    position: relative;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ai-teal);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step-wrapper:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: repeating-linear-gradient(

        90deg,
        var(--ai-gray-300) 0,
        var(--ai-gray-300) 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 1;
}


/* =============================================================================
   8. Product Overview Grid
   ============================================================================= */

.products-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.product-overview-card {
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ai-shadow-lg);
    border-color: var(--ai-teal);
}

.product-overview-card .placeholder-box {
    min-height: 180px;
    border: none;
    border-radius: 0;
}


/* =============================================================================
   9. Portfolio Teaser
   ============================================================================= */

.portfolio-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.portfolio-thumb {
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    height: 200px;
}

.portfolio-thumb .placeholder-box {
    height: 100%;
    min-height: auto;
}


/* =============================================================================
   10. Testimonials
   ============================================================================= */

.testimonials-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--ai-shadow-md);
}

.testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ai-gray-100);
    color: var(--ai-gray-400);
    font-size: 1.5rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}


/* =============================================================================
   11. Sample Kit Form (Dark Section)
   ============================================================================= */

.sample-kit-section {
    background: var(--ai-dark-gradient);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.sample-kit-form .form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: var(--ai-radius);
}

.sample-kit-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sample-kit-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ai-teal);
    box-shadow: 0 0 0 0.2rem rgba(var(--ai-teal-rgb), 0.25);
    color: #fff;
}


/* =============================================================================
   12. Footer
   ============================================================================= */

.site-footer {
    background: var(--ai-dark);
    color: rgba(255, 255, 255, 0.55);
    padding-top: 4rem;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-family: var(--ai-font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--ai-teal);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--ai-teal);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: var(--ai-teal);
    color: #fff;
}

.footer-associations-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.footer-associations {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.footer-bottom a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--ai-teal) !important;
}


/* =============================================================================
   12b. Hero Rotator (slides defined in HTML, JS cycles .is-active)
   ============================================================================= */

.hero-rotator-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-rotator {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-rotator-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    min-height: 1.4em;
}


/* =============================================================================
   12c. Three Design Approaches
   ============================================================================= */

.design-approaches-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.approach-tier {
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    padding: 2.5rem;
    background: #fff;
}

.tier-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tier-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.tier-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}

.tier-tag-teal  { color: #e8f4f5; background: #4a9eab; }
.tier-tag-gold  { color: #f5efe4; background: #b8863e; }
.tier-tag-purple { color: #efe8f5; background: #8b6cb0; }

.collateral-card {
    border-radius: var(--ai-radius);
    padding: 1.25rem 1rem;
    aspect-ratio: 8 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position:relative;
}
.collateral-card img{
    border-radius: var(--ai-radius);
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
    height:auto;
    left:0;
    object-fit:cover;
    position:absolute;
    top:0;
    width:100%;
    z-index:0;
}
.collateral-teal   { background: linear-gradient(135deg, #1a3a3f 0%, #264d54 100%); }
.collateral-gold   { background: linear-gradient(135deg, #3a2e1a 0%, #544226 100%); }
.collateral-purple { background: linear-gradient(135deg, #2a1f3a 0%, #3d2d54 100%); }

.collateral-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    position:relative;
    z-index:5;
}

.collateral-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.15rem;
    position:relative;
    z-index:5;
}

.tier-details {
    background: var(--ai-gray-50, #f8f9fa);
    border-radius: var(--ai-radius);
    overflow: hidden;
    margin-top: 0.5rem;
}

.tier-detail-col {
    padding: 1.25rem 1.5rem;
}

.tier-detail-col:not(:last-child) {
    border-right: 1px solid var(--ai-gray-200);
}

.tier-detail-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ai-gray-500, #6c757d);
    margin-bottom: 0.5rem;
}

.tier-detail-col p {
    font-size: 0.8125rem;
    color: var(--ai-gray-600, #495057);
    margin: 0;
    line-height: 1.6;
}


/* =============================================================================
   13. Scroll Animations
   ============================================================================= */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =============================================================================
   14. Login Page
   ============================================================================= */

.login-section {
    min-height: 60vh;
}


/* =============================================================================
   15. Responsive
   ============================================================================= */

@media (max-width: 991.98px) {
    .hero-rotator { max-width: 360px; }
    .approach-tier { padding: 1.75rem; }
    .tier-detail-col:not(:last-child) { border-right: none; border-bottom: 1px solid var(--ai-gray-200); }
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2.5rem; }
    .step-wrapper:not(:last-child)::after { display: none; }
    .nav-cta-group { margin-top: 1rem; }
}

@media (max-width: 767.98px) {
    body { padding-top: 64px; }
    .hero-section { min-height: auto; padding: 3rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .pillars-section,
    .specialty-section,
    .how-it-works-section,
    .products-section,
    .portfolio-section,
    .testimonials-section,
    .sample-kit-section { padding-top: 3rem; padding-bottom: 3rem; }

    .finish-card-image { height: 160px; }
    .finish-card-image .placeholder-box { min-height: 160px; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.75rem; }
    .hero-section .btn-lg { width: 100%; font-size: 0.9rem; }
    .step-number { width: 52px; height: 52px; font-size: 1.25rem; }
    .logo-placeholder { width: 100px; height: 44px; font-size: 1.25rem; }
}


/* =============================================================================
   16. Product Catalog Listing Page
   ============================================================================= */

.catalog-header-section {
    background: var(--ai-dark-gradient);
    padding: 5rem 0 3rem;
    color: #fff;
}

.catalog-header-section h1 { color: #fff; }

.catalog-grid-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.catalog-card {
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ai-shadow-lg);
    border-color: var(--ai-teal);
}

.catalog-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.catalog-card-image .placeholder-box {
    min-height: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.catalog-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.catalog-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ai-gray-900);
    margin-bottom: 0.4rem;
}

.catalog-card-desc {
    font-size: 0.85rem;
    color: var(--ai-gray-500);
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.catalog-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ai-teal);
    transition: color 0.2s ease;
}

.catalog-card:hover .catalog-card-link {
    color: var(--ai-teal-hover);
}


/* =============================================================================
   17. Product Detail Page — Hero
   ============================================================================= */

.pd-hero-section {
    background: var(--ai-dark-gradient);
    padding: 4rem 0 5rem;
    color: #fff;
}

.pd-breadcrumb {
    font-size: 0.8rem;
}

.pd-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-breadcrumb a:hover { color: var(--ai-teal); }

.pd-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
}

.pd-hero-section h1 { color: #fff; }

.pd-hero-body p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pd-hero-image {
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    min-height: 320px;
}

.pd-hero-image .placeholder-box {
    height: 100%;
    min-height: 320px;
}


/* =============================================================================
   18. Product Detail — What's Included Strip
   ============================================================================= */

.pd-included-section {
    background: var(--ai-gray-50);
    padding: 3rem 0;
    border-bottom: 1px solid var(--ai-gray-200);
}

.pd-section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ai-gray-500);
}

.pd-included-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ai-teal-50);
    color: var(--ai-teal);
    font-size: 1.4rem;
}


/* =============================================================================
   19. Product Detail — Gallery
   ============================================================================= */

.pd-gallery-section {
    padding: 5rem 0;
}

.pd-gallery-card {
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.pd-gallery-card:hover {
    box-shadow: var(--ai-shadow-md);
    transform: translateY(-3px);
}

.pd-gallery-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.pd-gallery-image .placeholder-box {
    height: 100%;
    min-height: 100%;
    border: none;
    border-radius: 0;
}

.pd-gallery-caption {
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    color: var(--ai-gray-600);
    line-height: 1.5;
}

.pd-gallery-caption strong { color: var(--ai-gray-900); }


/* =============================================================================
   20. Product Detail — Three Tiers (Condensed)
   ============================================================================= */

.pd-tiers-section {
    padding: 5rem 0;
}

.pd-tier-card {
    background: #fff;
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius-lg);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
    border-top: 3px solid var(--ai-gray-300);
}

.pd-tier-card:hover { box-shadow: var(--ai-shadow-md); }

.pd-tier-teal  { border-top-color: var(--ai-teal); }
.pd-tier-gold  { border-top-color: var(--ai-gold); }
.pd-tier-purple { border-top-color: #8b6cb0; }

.pd-tier-turn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ai-gray-500);
}


/* =============================================================================
   21. Product Detail — Formats & Finishes
   ============================================================================= */

.pd-formats-section {
    padding: 5rem 0;
}

.pd-option-card {
    background: #fff;
    border: 1px solid var(--ai-gray-200);
    border-radius: var(--ai-radius);
    padding: 1.25rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-option-card:hover {
    border-color: var(--ai-teal);
    box-shadow: var(--ai-shadow-sm);
    transform: translateY(-2px);
}

.pd-option-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--ai-radius);
    background: var(--ai-gray-100);
    color: var(--ai-gray-500);
    font-size: 1.2rem;
}


/* =============================================================================
   22. Product Detail — Steps (reuses .step-wrapper from home)
   ============================================================================= */

.pd-steps-section {
    padding: 5rem 0;
}


/* =============================================================================
   23. Product Detail — FAQ Accordion
   ============================================================================= */

.pd-faq-section {
    padding: 5rem 0;
}

.pd-faq-list {
    border-top: 1px solid var(--ai-gray-200);
}

.pd-faq-item {
    border-bottom: 1px solid var(--ai-gray-200);
}

.pd-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ai-gray-900);
    gap: 1rem;
}

.pd-faq-question:hover { color: var(--ai-teal); }

.pd-faq-chevron {
    font-size: 0.85rem;
    color: var(--ai-gray-400);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.pd-faq-question[aria-expanded="true"] .pd-faq-chevron {
    transform: rotate(180deg);
}

.pd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.pd-faq-question[aria-expanded="true"] + .pd-faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.pd-faq-answer p {
    font-size: 0.875rem;
    color: var(--ai-gray-600);
    line-height: 1.7;
    margin: 0;
}


/* =============================================================================
   24. Product Detail — Related Products
   ============================================================================= */

.pd-related-section {
    padding: 5rem 0;
}


/* =============================================================================
   25. Product Pages — Responsive
   ============================================================================= */

@media (max-width: 991.98px) {
    .pd-hero-section { padding: 3rem 0 4rem; }
    .pd-hero-image { min-height: 250px; }
    .pd-hero-image .placeholder-box { min-height: 250px; }
}

@media (max-width: 767.98px) {
    .catalog-header-section { padding: 3rem 0 2rem; }

    .catalog-grid-section,
    .pd-gallery-section,
    .pd-tiers-section,
    .pd-formats-section,
    .pd-steps-section,
    .pd-faq-section,
    .pd-related-section { padding-top: 3rem; padding-bottom: 3rem; }

    .pd-hero-section { padding: 2rem 0 3rem; }
    .pd-hero-section h1 { font-size: 2rem; }
    .pd-hero-image { min-height: 200px; }
    .pd-hero-image .placeholder-box { min-height: 200px; }
    .pd-tier-card { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .pd-hero-section h1 { font-size: 1.75rem; }
    .pd-hero-section .btn-lg { width: 100%; }
}



/* =============================================================================
   26. Global Modals (Quote + Sample Kit)
   ============================================================================= */

.modal-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    border: none;
    border-radius: var(--ai-radius-lg);
}

.modal-dark .modal-header {
    padding: 1.75rem 2rem 0;
}

.modal-dark .modal-body {
    padding: 1.25rem 2rem 2rem;
}

.modal-dark .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.modal-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-dark .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ai-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 144, 190, 0.25);
    color: #fff;
}



/* =============================================================================
   27. Legal Pages (Privacy Policy, Terms of Use)
   ============================================================================= */

.legal-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ai-gray-900);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--ai-gray-600);
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content a {
    color: var(--ai-teal);
}
