/* ==========================================================================
   SARATHI TYRES — Index Page Styles
   All index-specific styles live in shared.css (hero, brand slider, services,
   modal, branches, contact form). This file is reserved for future additions.
   ========================================================================== */

/* Cinematic Hero Styles */
.cinematic-hero {
    padding-top: 40px;
    min-height: calc(100vh - 85px);
    background-image: url('../images/hero-front-image.png');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(22, 22, 22, 0.3) 0%, rgba(22, 22, 22, 0.7) 60%, rgba(22, 22, 22, 1) 100%);
    z-index: 1;
}

.cinematic-container {
    display: flex !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    width: 100%;
    z-index: 2;
}

.text-center {
    text-align: center;
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.justify-center {
    justify-content: center;
}

.cinematic-badge {
    margin-top: 50px;
    display: inline-block;
    background: #ffffff;
    border: 4px solid var(--accent-yellow);
    padding: 12px 24px;
    border-radius: 4px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease;
}

.cinematic-badge:hover {
    border-color: var(--accent-blue);
}

.cinematic-badge i {
    color: var(--accent-yellow);
    margin-right: 8px;
}

/* Breathing Text Animation */
.breathing-text {
    background: linear-gradient(270deg, #fbbf24, #ffffff, #c084fc, #7dd3fc, #fbbf24);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: breathing-gradient 20s ease infinite;
    display: inline-block;
}

@keyframes breathing-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Spread and uppercase modifications */
.cinematic-hero .hero-content {
    width: 90%;
    max-width: 1400px;
}

.cinematic-hero .hero-headline {
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(2.5rem, 5vw, 4rem);
    width: 100%;
    letter-spacing: 2px;
}

.cinematic-hero .hero-subheadline {
    text-transform: uppercase;
    max-width: 900px !important;
    font-size: clamp(1rem, 2vw, 1.3rem);
    letter-spacing: 1px;
}

.breathing-welcome {
    color: #fbbf24;
    display: inline-block;
}

.breathing-text {
    background: linear-gradient(270deg, #fbbf24, #ffffff, #c084fc, #7dd3fc, #fbbf24);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: breathing-gradient 20s ease infinite;
    display: inline-block;
}



/* --- Image Gallery Grid --- */
.gallery-section {
    padding: 80px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 8px;
    max-width: 100%;
    margin: 40px 0 0 0;
    padding: 0;
    height: auto;
}
.gallery-item {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}


.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
    z-index: 10;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1.2fr 1fr 0.8fr 1.6fr;
        grid-template-rows: repeat(3, 220px);
        height: 680px; /* 3 rows * 220px + 2 gaps * 8px */
    }
    
    .item-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
    .item-2 { grid-column: 2 / 3; grid-row: 1 / 3; }
    .item-3 { grid-column: 1 / 3; grid-row: 3 / 4; }
    
    .item-4 { grid-column: 3 / 4; grid-row: 1 / 4; }
    
    .item-5 { grid-column: 4 / 5; grid-row: 1 / 2; }
    .item-6 { grid-column: 4 / 5; grid-row: 2 / 3; }
    .item-7 { grid-column: 4 / 5; grid-row: 3 / 4; }
}

@media (min-width: 1024px) {
    /* Larger screens can just use the same grid but taller if needed */
    .gallery-grid {
        grid-template-rows: repeat(3, 260px);
        height: 800px;
    }
}
/* --- Gallery Background Images --- */
#gallery-v1 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/vertical1.jpg');
    background-size: cover;
    background-position: center;
}
#gallery-v2 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/vertical2.jpg');
    background-size: cover;
    background-position: center;
}
#gallery-v3 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/vertical3.jpg');
    background-size: cover;
    background-position: center;
}
#gallery-h1 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/horizontal1.png');
    background-size: cover;
    background-position: center;
}
#gallery-h2 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/horizontal2.jpg');
    background-size: cover;
    background-position: center;
}
#gallery-h3 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/horizontal3.jpg');
    background-size: cover;
    background-position: center;
}
#gallery-h4 {
    background-image: radial-gradient(circle at center, rgba(22, 22, 22, 0.1) 0%, rgba(22, 22, 22, 0.9) 100%), url('../images/Gallery-Images/horizontal4.jpg');
    background-size: cover;
    background-position: center;
}


/* --- Gallery Item Hover Overlay (Reviews) --- */
.gallery-review-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(22, 22, 22, 0.85); /* Deep Navy semi-transparent */
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.gallery-item:hover .gallery-review-overlay {
    opacity: 1;
}

.gallery-review-overlay .stars {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gallery-review-overlay .half-star {
    opacity: 0.5; /* Representing a half star visually for now */
}

.gallery-review-overlay p {
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-review-overlay h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-yellow);
}


.review-card { scroll-margin-top: 150px; }

/* --- Unpredictable Tyre Options Layout --- */
.tyre-options-section {
    position: relative;
    overflow: hidden;
}
.unpredictable-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .unpredictable-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 60px;
    }
}
.unpredictable-images {
    position: relative;
    height: 500px;
    width: 100%;
}
.img-box {
    position: absolute;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.img-box-1 {
    width: 65%;
    height: 350px;
    top: 0;
    left: 0;
    z-index: 2;
}
.img-box-2 {
    width: 70%;
    height: 400px;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* The dark vignette effect matching Services */
.img-gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(22,22,22,0) 20%, rgba(22,22,22,0.95) 100%);
    z-index: 3;
    pointer-events: none;
}

/* --- Philosophy Vertical Layout --- */
.philosophy-section {
    background-color: var(--bg-secondary);
}
.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 992px) {
    .philosophy-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}
.philosophy-image-wrapper {
    display: flex;
    justify-content: flex-end;
}
.vertical-img-box {
    width: 100%;
    max-width: 450px;
    height: 650px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background-color: #0c0c0c;
}
.vertical-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 1;
}
