/* public/assets/css/home.css */

/* Fonts & Globals */
:root {
    --primary: #0289cc;
    --roof-color: #f68d4b;
    --wall-color: #b2c943;
    --floor-color: #4a4a4a;
    --dark: #1e293b;
    --muted: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --shadow-sm:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-subheading {
    color: var(--wall-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Buttons */
.btn-custom {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(2, 137, 204, 0.39);
}

.btn-primary-custom:hover {
    background: #026b9c;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 137, 204, 0.23);
}

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

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.spec-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 1px solid #f1f5f9 !important;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.spec-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    margin-bottom: 1.25rem;
}

.spec-value {
    font-size: 1.75rem;
}

.locations-section {
    background: #ffffff;
    padding: 96px 0;
}

.locations-eyebrow {
    color: #64748b;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.locations-title {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.12;
    margin-bottom: 16px;
}

.locations-subtext {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 760px;
}

.location-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    padding: 24px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.location-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.location-card-title {
    color: #1f2937;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    margin-bottom: 18px;
}

.location-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.location-pill {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    min-height: 38px;
    padding: 10px 14px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    white-space: nowrap;
}

.location-pill:hover,
.location-pill:focus-visible {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

.location-pill:focus-visible {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
    outline: none;
}

@media (max-width: 767.98px) {
    .locations-section {
        padding: 64px 0;
    }

    .location-card {
        padding: 20px;
    }

    .location-pill {
        min-height: 36px;
        padding: 9px 12px;
    }
}

/* ═══════════════════════════════════════════════════
   Main content — normal flow (no vw breakout hack)
   ═══════════════════════════════════════════════════ */
.main-content {
    width: 100%;
}

/* ═══════════════════════════════════════════════════
   1. Hero Carousel — full bleed breakout from .container
   Uses calc() so no scrollbar/overflow-x is triggered
   ═══════════════════════════════════════════════════ */
.hero-carousel-section {
    position: relative;
    width: calc(100vw);
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    padding: 0;
}

/* Slide images */
.hero-carousel-img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    object-position: center;
}

/* Subtle zoom-in animation on active slide */
.carousel-item.active .hero-carousel-img {
    animation: heroZoomIn 6s ease forwards;
}

@keyframes heroZoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }
}

/* Smooth fade transition override */
#heroCarouselSlider .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

/* Custom indicators */
#heroCarouselSlider .carousel-indicators {
    bottom: 24px;
    gap: 6px;
}

#heroCarouselSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    opacity: 1;
    transition: var(--transition);
}

#heroCarouselSlider .carousel-indicators button.active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Custom navigation arrows */
#heroCarouselSlider .carousel-control-prev,
#heroCarouselSlider .carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50%;
    opacity: 0;
    transition:
        opacity 0.35s ease,
        background 0.35s ease;
}

#heroCarouselSlider .carousel-control-prev {
    left: 20px;
}

#heroCarouselSlider .carousel-control-next {
    right: 20px;
}

.hero-carousel-section:hover .carousel-control-prev,
.hero-carousel-section:hover .carousel-control-next {
    opacity: 1;
}

#heroCarouselSlider .carousel-control-prev:hover,
#heroCarouselSlider .carousel-control-next:hover {
    background: var(--primary);
}

#heroCarouselSlider .carousel-control-prev-icon,
#heroCarouselSlider .carousel-control-next-icon {
    width: 22px;
    height: 22px;
}

/* 2. About Us */
.about-section {
    padding: 100px 0;
}

.about-subheading {
    color: var(--wall-color);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wall-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-img-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* 3. Our Products */
.products-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.product-card {
    border-radius: 16px;
    padding: 40px 30px;
    color: var(--white);
    height: 100%;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-card p {
    opacity: 0.95;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-card-roof {
    background-color: var(--roof-color);
}

.product-card-wall {
    background-color: var(--wall-color);
}

.product-card-floor {
    background-color: var(--floor-color);
}

.applications-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1.5rem;
}

.applications-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

/* 4. Grades Section (Tabs & Tables) */
.grades-section {
    padding: 100px 0;
}

.grades-tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    justify-content: center;
}

.grades-tabs .nav-link {
    color: var(--muted);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    background: transparent;
    border-radius: 0;
}

.grades-tabs .nav-link:hover {
    color: var(--dark);
    border-color: #e2e8f0;
}

.grades-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.grades-table-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.grades-table {
    margin-bottom: 0;
}

.grades-table th,
.grades-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.grades-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-top: none;
}

.grades-table td {
    color: var(--dark);
    font-weight: 500;
}

.grades-table tbody tr {
    transition: var(--transition);
}

.grades-table tbody tr:hover {
    background-color: #f8fafc;
}

/* 5. Other Products */
.other-products-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

/* Video Container */
.video-container {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

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

/* Product List Card */
.other-products-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.other-products-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
    position: relative;
}

.other-products-card-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.other-product-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.other-product-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.other-product-list-item:first-of-type {
    padding-top: 0;
}

.other-product-list-item:hover .other-product-list-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.08);
}

.other-product-list-icon {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    background: rgba(2, 137, 204, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.other-product-list-text h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

/* 6. Why Choose Us */
.why-choose-section {
    padding: 100px 0;
}

.why-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    transition: var(--transition);
    color: var(--dark);
}

.why-card h4 {
    margin-bottom: 1rem;
    transition: var(--transition);
    font-size: 1.25rem;
}

.why-card p {
    color: var(--muted);
    transition: var(--transition);
    margin-bottom: 0;
    line-height: 1.6;
}

.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.why-card-1::before {
    background-color: var(--primary);
}

.why-card-2::before {
    background-color: var(--wall-color);
}

.why-card-3::before {
    background-color: var(--roof-color);
}

.why-card:hover {
    transform: scale(1.03);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover h4,
.why-card:hover p,
.why-card:hover .why-icon svg {
    color: var(--white) !important;
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

/* 7. Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 137, 204, 0.1);
    outline: none;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--wall-color), #8fa334);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-detail-icon {
    font-size: 1.5rem;
    margin-right: 1.25rem;
    opacity: 0.9;
    display: inline-flex;
    margin-top: 0.25rem;
}

.contact-detail-content h6 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-detail-content p,
.contact-detail-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-detail-content a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Turnstile Placeholder */
.turnstile-placeholder {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   7. Gallery Section
   ═══════════════════════════════════════════════════ */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Dark overlay on hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(30, 41, 59, 0.55);
}

/* Center icon */
.gallery-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Remove link underline in gallery */
[data-fancybox="gallery"] {
    text-decoration: none;
    outline: none;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-carousel-img {
        height: 55vh;
    }

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

    .about-section,
    .products-section,
    .grades-section,
    .other-products-section,
    .why-choose-section,
    .gallery-section,
    .contact-section {
        padding: 60px 0;
    }

    .gallery-img {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-img {
        height: auto;
        min-height: 260px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
    }

    .gallery-img {
        height: 220px;
    }

    #heroCarouselSlider .carousel-control-prev,
    #heroCarouselSlider .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #heroCarouselSlider .carousel-control-prev {
        left: 10px;
    }

    #heroCarouselSlider .carousel-control-next {
        right: 10px;
    }
}
