/* ============================================
   RAILINGS PAGE
   Requires: common.css
============================================ */


/* ============================================
   SHARED
============================================ */
.eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
}

.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 25px 0 30px;
}

/* Buttons */
.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 18px 45px;
    border-radius: 50px;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.35);
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    gap: 8px;
    transition: color var(--transition);
    text-decoration: none;
}

.btn-ghost-light:hover {
    color: var(--gold);
}

.btn-outline-gold {
    display: inline-block;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Scroll animations */
.observe-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.observe-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.observe-fade.delay-1 { transition-delay: 0.15s; }

.observe-stagger {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.observe-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.85s ease forwards;
}

.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.65s; }
.delay-4 { animation-delay: 0.85s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   HERO
============================================ */
.railings-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.railings-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.railings-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 15s ease;
    filter: brightness(0.85);
}

.railings-hero:hover .railings-hero-bg img {
    transform: scale(1.06);
}

.railings-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.65) 0%,
        rgba(10, 10, 10, 0.4) 40%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

.railings-hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

.railings-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 30px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 25px;
}

.railings-hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 6vw, 92px);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: white;
    line-height: 1.08;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 25px auto 0;
    max-width: 650px;
    line-height: 1.6;
}

.hero-line {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 35px auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-hero-primary,
.btn-hero-outline {
    display: inline-block;
    padding: 16px 42px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-hero-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 110, 0.3);
}

.btn-hero-outline {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.btn-hero-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUpAnim 0.8s ease 1.2s forwards;
}

.scroll-cue span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50%       { opacity: 0.4; height: 25px; }
}


/* ============================================
   INTRO SECTION
============================================ */
.railings-intro {
    background: var(--darker);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 80px);
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.intro-text {
    max-width: 580px;
}

.intro-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--light);
}

.intro-text p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
}

.intro-highlights {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
}

.highlight-text {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* Intro Image */
.intro-image {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: end;
}

.intro-img-main,
.intro-img-accent {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.intro-img-main img,
.intro-img-accent img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.intro-img-accent {
    margin-bottom: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.intro-img-main:hover img,
.intro-img-accent:hover img {
    transform: scale(1.05);
}

/* Floating badge */
.intro-badge-float {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 130px;
    height: 130px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(201, 169, 110, 0.4);
    z-index: 3;
    text-align: center;
    padding: 10px;
}

.badge-line-1,
.badge-line-2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 1px;
}

.badge-line-2 {
    font-size: 15px;
    opacity: 0.8;
    font-style: italic;
    margin-top: 2px;
}


/* ============================================
   COLLECTION
============================================ */
.railings-collection {
    background: var(--dark);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 60px);
}

.collection-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto clamp(40px, 5vw, 60px);
}

.collection-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.15;
}

.collection-header p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
}

/* Filter */
.railings-filter {
    max-width: 900px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 60px;
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    transition: all var(--transition);
    font-family: inherit;
}

.filter-tab:hover {
    color: var(--gold);
}

.filter-tab.active {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.3);
}


/* Gallery Grid */
.railings-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 380px;
    gap: 20px;
}

.railing-card-large {
    grid-row: span 2;
}

.railing-card-wide {
    grid-column: span 2;
}

/* Railing Card */
.railing-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #1a1a1a;
}

.railing-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.railing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: brightness(0.9);
}

.railing-card:hover .railing-card-img img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Overlay */
.railing-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.railing-card:hover .railing-card-overlay {
    opacity: 1;
}

/* Badge */
.railing-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 14px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 20px;
    opacity: 1 !important;
    z-index: 2;
}

.railing-badge.featured {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(201, 169, 110, 0.4);
}

.railing-badge.new {
    background: rgba(0, 0, 0, 0.85);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
    backdrop-filter: blur(10px);
}

/* Card Info */
.railing-info {
    transform: translateY(15px);
    transition: transform 0.5s ease 0.1s;
}

.railing-cat {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.railing-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 500;
    color: white;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.railing-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
}

.railing-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.railing-tags span {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.railing-card:hover .railing-info {
    transform: translateY(0);
}

/* Zoom Button */
.railing-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    transform: scale(0.85);
    z-index: 3;
}

.railing-card:hover .railing-zoom {
    opacity: 1;
    transform: scale(1);
}

.railing-zoom:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 60px auto 0;
}

.empty-state.visible {
    display: block;
}

.empty-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--light);
    margin-bottom: 12px;
    font-weight: 500;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}


/* ============================================
   APPLICATIONS SECTION
============================================ */
.applications-section {
    background: var(--darker);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 80px);
}

.applications-container {
    max-width: 1400px;
    margin: 0 auto;
}

.applications-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(50px, 6vw, 80px);
}

.applications-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.15;
}

.applications-header p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.application-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition);
}

.application-card:hover {
    background: rgba(201, 169, 110, 0.04);
    border-color: rgba(201, 169, 110, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    transition: all var(--transition);
}

.application-card:hover .app-icon {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

.application-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--light);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.application-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}


/* ============================================
   SPLIT SHOWCASE
============================================ */
.split-showcase {
    background: var(--dark);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.split-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/5;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.image-tag {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 8px 18px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.split-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--light);
}

.split-content > p {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 35px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.process-step {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.step-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--light);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
}


/* ============================================
   MATERIALS
============================================ */
.materials-section {
    background: var(--darker);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 80px);
}

.materials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.materials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(50px, 6vw, 80px);
}

.materials-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.15;
}

.materials-header p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.6);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.material-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition);
}

.material-card:hover {
    background: rgba(201, 169, 110, 0.04);
    border-color: rgba(201, 169, 110, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.material-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 22px;
    box-shadow:
        inset 0 3px 8px rgba(255, 255, 255, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition);
}

.material-card:hover .material-swatch {
    transform: scale(1.1) translateY(-4px);
}

.material-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--light);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.material-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 18px;
}

.material-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 5px 14px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 20px;
    font-weight: 600;
}


/* ============================================
   SPECS BANNER
============================================ */
.specs-banner {
    background: linear-gradient(135deg, #1a1508 0%, var(--dark) 40%, #1a1508 100%);
    padding: 60px clamp(25px, 5vw, 80px);
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.specs-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.spec-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.spec-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.spec-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
}


/* ============================================
   CUSTOMIZE SECTION
============================================ */
.customize-section {
    background: var(--darker);
    padding: clamp(80px, 10vw, 130px) clamp(25px, 5vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.customize-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--light);
}

.customize-content > p {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 35px;
}

.custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all var(--transition);
}

.custom-list li:hover {
    background: rgba(201, 169, 110, 0.04);
    border-color: rgba(201, 169, 110, 0.2);
}

.check-icon {
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-list li > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.custom-list strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-weight: 500;
    color: var(--light);
    letter-spacing: 0.5px;
}

.custom-list span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* Customize Image */
.customize-image {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
    align-items: start;
}

.customize-img-primary {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    aspect-ratio: 3/4;
    grid-row: span 2;
}

.customize-img-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.customize-img-primary:hover img {
    transform: scale(1.05);
}

.customize-img-accent {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    aspect-ratio: 1/1;
    margin-top: 60px;
}

.customize-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.customize-img-accent:hover img {
    transform: scale(1.05);
}


/* ============================================
   CTA
============================================ */
.railings-cta {
    background: linear-gradient(135deg, #1a1508 0%, var(--dark) 40%, #1a1508 100%);
    padding: clamp(80px, 10vw, 140px) clamp(25px, 5vw, 60px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(201, 169, 110, 0.05) 0%,
        transparent 50%
    );
    animation: ctaGlowAnim 8s ease infinite alternate;
    pointer-events: none;
}

@keyframes ctaGlowAnim {
    0%   { transform: scale(1);   }
    100% { transform: scale(1.2); }
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.15;
}

.cta-container > p {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* CTA Features */
.cta-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.cta-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-feat-icon {
    font-size: 22px;
    color: var(--gold);
}

.cta-feature span:last-child {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}


/* ============================================
   LIGHTBOX
============================================ */
.railings-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 30px;
}

.railings-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1000px;
    width: 100%;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 20px;
    text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 20001;
}

.lightbox-close {
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.lightbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: rotate(90deg);
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 28px;
    line-height: 1;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-50%) scale(1.1);
}


/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 1200px) {
    .railings-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }

    .railing-card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .railing-card-wide {
        grid-column: span 2;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .intro-container,
    .split-showcase,
    .customize-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro-image,
    .customize-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .split-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .railings-hero {
        min-height: 100vh;
    }

    .railings-hero-content h1 {
        font-size: 40px;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .scroll-cue {
        display: none;
    }

    /* Filter */
    .railings-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        border-radius: 20px;
        padding: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .railings-filter::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 22px;
        font-size: 10px;
    }

    /* Gallery */
    .railings-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 380px;
    }

    .railing-card-large,
    .railing-card-wide {
        grid-column: span 1;
    }

    /* Always show overlay on mobile */
    .railing-card-overlay {
        opacity: 1;
        background: linear-gradient(
            180deg,
            transparent 40%,
            rgba(0, 0, 0, 0.9) 100%
        );
        padding: 22px;
    }

    .railing-info {
        transform: translateY(0);
    }

    .railing-zoom {
        opacity: 1;
        transform: scale(1);
    }

    /* Applications */
    .applications-grid {
        grid-template-columns: 1fr;
    }

    /* Materials */
    .materials-grid {
        grid-template-columns: 1fr;
    }

    /* Specs banner */
    .specs-banner-inner {
        gap: 25px;
    }

    .spec-divider {
        display: none;
    }

    .spec-num {
        font-size: 32px;
    }

    /* Intro highlights */
    .intro-highlights {
        gap: 25px;
    }

    /* Intro image */
    .intro-image {
        grid-template-columns: 1fr;
    }

    .intro-img-accent {
        display: none;
    }

    .intro-badge-float {
        width: 100px;
        height: 100px;
        bottom: -15px;
        left: -15px;
    }

    .badge-line-1 { font-size: 14px; }
    .badge-line-2 { font-size: 12px; }

    /* Customize image */
    .customize-image {
        grid-template-columns: 1fr;
    }

    .customize-img-accent {
        display: none;
    }

    /* Split image */
    .split-image {
        aspect-ratio: 3/4;
    }

    /* Process step */
    .process-step {
        gap: 15px;
    }

    .step-number {
        font-size: 32px;
        min-width: 45px;
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn-gold {
        text-align: center;
    }

    .cta-actions .btn-ghost-light {
        justify-content: center;
    }

    .cta-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .railings-hero-content h1 {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .railings-gallery {
        grid-auto-rows: 340px;
    }

    .railing-info h3 {
        font-size: 20px;
    }

    .cta-features {
        grid-template-columns: 1fr 1fr;
    }

    .spec-num {
        font-size: 28px;
    }

    .application-card,
    .material-card {
        padding: 30px 22px;
    }

    .application-card h3,
    .material-card h3 {
        font-size: 20px;
    }
}

/* Touch */
@media (hover: none) and (pointer: coarse) {
    .railing-card-overlay {
        opacity: 1;
    }

    .railing-info {
        transform: translateY(0);
    }

    .railing-zoom {
        opacity: 1;
        transform: scale(1);
    }

    .railing-card:hover .railing-card-img img {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .observe-fade,
    .observe-stagger {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .scroll-line,
    .cta-bg-glow,
    .railings-hero-bg img {
        animation: none;
        transition: none;
    }
}