/* =============================================
   SHARED PRODUCT PAGE STYLES
   Used by: retractable-awnings, retractable-screen-doors,
            motorized-power-screens, louver-pergolas,
            retractable-roof-systems, garage-screens
   ============================================= */

/* ---- Page Hero with Slideshow ---- */
.page-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    color: var(--white);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 0;
    text-align: left;
}

.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
}

.hero-content p {
    text-shadow: 1px 1px 6px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.7);
}

.hero-content .breadcrumb {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.hero-content .breadcrumb a {
    color: var(--gold);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.page-hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 28px;
    margin: 0;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    color: var(--white);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ---- Hero Indicators ---- */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.hero-indicator.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 15px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- Hero CTA Buttons (Below Hero Bar) ---- */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--navy-dark);
}

.hero-cta .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-cta .btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.hero-cta .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.hero-cta .btn-call {
    background: #22c55e;
    color: white;
}

.hero-cta .btn-call:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* ---- Product Content ---- */
.product-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.product-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.product-intro-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.product-intro-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
}

.product-intro-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Video Section ---- */
.video-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

.video-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--navy-dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    gap: 15px;
}

.video-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

.video-placeholder p {
    font-size: 18px;
    opacity: 0.8;
}

/* ---- Features Grid ---- */
.features-section {
    margin-bottom: 60px;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card h4 svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
}

.feature-card p {
    color: var(--gray);
    font-size: 16px;
}

/* ---- Installation / Options Section ---- */
.installation-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

.installation-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
}

.installation-section > p {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.installation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.installation-card {
    text-align: center;
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.installation-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.installation-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.installation-card:hover .installation-card-image img {
    transform: scale(1.05);
}

.installation-card-content {
    padding: 25px 20px;
}

.installation-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--navy);
}

.installation-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.install-icon {
    width: 70px;
    height: 70px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.install-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(rgba(15, 40, 64, 0.92), rgba(26, 58, 92, 0.95));
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 60px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 19px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

/* ---- Gallery Section ---- */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: var(--navy);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
}

/* ---- Footer ---- */
footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 15px;
    line-height: 1.7;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.6;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Floating Call Button ---- */
.floating-call {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-call svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---- Brochure Download Button ---- */
.btn-brochure {
    background: var(--navy);
    color: var(--white);
}

.btn-brochure:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-buttons .btn {
    margin-top: 0;
}

/* ---- Desktop Hero Adjustments ---- */
@media (min-width: 769px) {
    .page-hero {
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 12px;
    }
    .hero-slide {
        background-position: center 30%;
    }
}

/* ---- Hero Tagline Banner ---- */
.hero-tagline-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 14px 20px;
    position: relative;
    overflow: visible;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-name-label {
    position: absolute;
    left: 20px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 0;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 5;
}

.tagline-container {
    position: relative;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    min-height: 42px;
    overflow: visible;
}

.tagline-slide {
    color: var(--white);
    font-size: 27px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1.2s ease-in-out;
    white-space: nowrap;
}

.tagline-slide.active {
    opacity: 1;
}

.tagline-slide .highlight {
    color: var(--gold-light);
}

/* Picture frame - no rounded corners on hero */
.page-hero, .hero-slideshow, .hero-slide {
    border-radius: 0 !important;
}

/* Desktop: constrain all sections to same width */
@media (min-width: 769px) {
    header, .hero-tagline-banner, .trust-bar, .page-hero {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .product-content, .trust-items, .services, .about-content,
    .why-us-grid, .about-cta, .google-reviews-container,
    .contact-wrapper, .footer-content, .testimonials-grid {
        max-width: 1200px;
    }
}

/* ---- Hero CTA Mobile ---- */
@media (max-width: 768px) {
    .hero-cta {
        padding: 12px 15px;
        gap: 10px;
    }
    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ---- Mobile Styles (768px) ---- */
@media (max-width: 768px) {
    /* Hide top bar on mobile */
    .top-bar { display: none; }

    /* Mobile Header */
    header {
        padding: 8px 15px;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .logo-img { height: 50px; margin-top: 0; }

    /* Mobile Navigation - Full Screen */
    nav { display: none; }
    nav.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 0;
        overflow-y: auto;
        z-index: 999;
    }
    nav.active a,
    nav a {
        padding: 18px 25px;
        border-bottom: 1px solid #eee;
        font-size: 18px;
        flex-direction: row;
    }
    nav.active a::after,
    nav a::after {
        content: '\2192';
        color: var(--gold);
        margin-left: auto;
    }
    nav.active a.nav-cta,
    nav a.nav-cta {
        background: var(--gold);
        margin: 20px;
        border-radius: 12px;
        justify-content: center;
    }
    nav.active a.nav-cta::after,
    nav a.nav-cta::after {
        display: none;
    }
    .menu-toggle { display: flex; }

    /* Mobile Hero */
    .page-hero {
        margin-top: 0 !important;
        height: 300px !important;
        min-height: 250px !important;
    }
    .page-hero h1 { font-size: 20px; }
    .page-hero p { font-size: 15px; }

    /* Product Content */
    .product-content { padding: 40px 15px; }
    .product-intro { grid-template-columns: 1fr; gap: 25px; }
    .product-intro h2 { font-size: 24px; }

    /* Video Section */
    .video-section { padding: 30px 15px; }
    .video-section h2 { font-size: 22px; }

    /* Features */
    .features-section h2 { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; gap: 15px; }
    .feature-card { padding: 20px; }

    /* Installation/Options */
    .installation-section h2 { font-size: 22px; }

    /* CTA Section */
    .cta-section { padding: 30px 20px; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Footer */
    .footer-columns { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin-bottom: 20px; padding-bottom: 20px; }

    /* Floating Call Button - Full-width bottom bar */
    .floating-call {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: white;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        width: auto;
        height: auto;
        border-radius: 0;
    }

    /* Scroll fix */
    html {
        overflow-y: scroll !important;
        height: auto !important;
    }

    body {
        padding-top: 95px !important;
        padding-bottom: 70px !important;
        overflow-y: visible !important;
        position: static !important;
        height: auto !important;
        min-height: 100% !important;
    }
}

/* ---- Small Mobile (480px) ---- */
@media (max-width: 480px) {
    .page-hero h1 { font-size: 18px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .installation-grid { grid-template-columns: 1fr; }
}

/* ---- Accessibility: Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ---- Accessibility: Focus Indicators ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--gold) !important;
    outline-offset: 2px !important;
}
