/* ==============================================================================
   SRI AMMA BUILDER PVT LTD — MASTER GLOBAL STYLESHEET
   Core CSS Reset, Typography, Reusable UI Components, Page Banners, Global CTA
   ============================================================================== */

@import url('./root.css');

/* ==========================================================================
   1. RESET & FOUNDATION
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color-scheme: light dark;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img,
video,
svg,
iframe {
    max-width: 100%;
}

img,
video,
svg {
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ==========================================================================
   2. ACCESSIBILITY & FOCUS
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: var(--font-size-sm);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 20px;
}

/* ==========================================================================
   3. CONTAINER & GRID
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.section-padding-top {
    padding-top: var(--section-spacing);
}

.section-padding-bottom {
    padding-bottom: var(--section-spacing);
}

/* ==========================================================================
   4. TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 800;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.section-eyebrow,
.sub-heading,
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    color: var(--accent-color);
    margin-bottom: 14px;
}

.section-eyebrow::before,
.sub-heading::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background-color: var(--accent-color);
}

.badge-tag--dark {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--border-dark-subtle);
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: 16px;
    line-height: var(--line-height-snug);
}

.section-title--light {
    color: var(--white);
}

.section-title span {
    color: var(--accent-color);
}

.section-desc {
    font-size: var(--font-size-md);
    color: var(--text-muted);
    line-height: var(--line-height-relaxed);
    max-width: 640px;
}

.section-desc--light {
    color: var(--text-light);
}

.section-header {
    margin-bottom: 56px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn i,
.btn svg {
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.btn:hover i,
.btn:hover svg {
    transform: translateX(4px);
}

/* Accent (Red) Primary Button */
.btn-accent,
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(165, 0, 13, 0.35);
}

.btn-accent:hover,
.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(165, 0, 13, 0.5);
}

.btn-accent:active,
.btn-primary:active {
    background-color: var(--accent-pressed);
    transform: translateY(0);
}

/* Dark Button */
.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    color: var(--white);
}

/* White Button */
.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Outline Buttons */
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background-color: var(--white);
    color: #0A0A0A;
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-dark:hover {
    background-color: var(--white);
    color: #0A0A0A;
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 18px 36px;
    font-size: var(--font-size-base);
}

/* ==========================================================================
   6. GLOBAL PAGE BANNER SYSTEM (STANDARDIZED ARCHITECTURAL HERO)
   ========================================================================== */
.global-page-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-color: #0A0A0A;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
    padding-top: clamp(140px, 15vw, 180px);
    padding-bottom: clamp(60px, 8vw, 90px);
    box-sizing: border-box;
    z-index: 1;
}

/* Gradient Overlay for Superior Text Contrast */
.global-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.72) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Subtle Architectural Bottom Border */
.global-page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Video Background Support (Optional) */
.global-page-banner .banner-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.global-page-banner .banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
}

.global-page-banner .banner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--border-radius-full);
    background: rgba(165, 0, 13, 0.2);
    border: 1px solid rgba(165, 0, 13, 0.5);
    color: #FF5252;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.banner-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: #D1D5DB;
    line-height: var(--line-height-normal);
    max-width: 720px;
    margin-bottom: 24px;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.breadcrumbs a {
    color: #E5E7EB;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs span.separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin-inline: 2px;
}

.breadcrumbs span.current {
    color: var(--accent-color);
    font-weight: 700;
}

/* Page-Specific Banner Background Images (Centralized - No Inline HTML Styles) */
.page-banner--about {
    background-image: url('../img/page-banner.png');
}

.page-banner--services {
    background-image: url('../img/page-banner.png');
}

.page-banner--projects {
    background-image: url('../img/page-banner.png');
}

.page-banner--team {
    background-image: url('../img/page-banner.png');
}

.page-banner--contact {
    background-image: url('../img/page-banner.png');
}

.page-banner--industrial {
    background-image: url('../img/page-banner.png');
}

.page-banner--residential {
    background-image: url('../img/page-banner.png');
}

.page-banner--commercial {
    background-image: url('../img/page-banner.png');
}

.page-banner--godown {
    background-image: url('../img/godown_building.jpg');
}

.page-banner--legal,
.page-banner--privacy,
.page-banner--terms {
    background-image: url('../img/page-banner.png');
}

/* ==========================================================================
   7. GLOBAL CORPORATE CTA SECTION
   ========================================================================== */
.global-cta-section {
    position: relative;
    background-color: var(--surface-dark-1);
    color: var(--white);
    padding: 90px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-dark-subtle);
}

.global-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.global-cta-card,
.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #181818 0%, #101010 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl, 24px);
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.global-cta-card::before,
.cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 0 0 3px 3px;
}

.global-cta-content {
    max-width: 680px;
}

.global-cta-eyebrow,
.cta-badge {
    display: inline-block;
    color: var(--accent-color);
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest, 2px);
    margin-bottom: 12px;
}

.global-cta-title,
.cta-title {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    line-height: var(--line-height-snug, 1.2);
    letter-spacing: -0.5px;
}

.global-cta-title span,
.cta-title span {
    color: var(--accent-color);
}

.global-cta-text,
.cta-description {
    font-size: var(--font-size-md, 0.95rem);
    color: var(--text-color);
    line-height: var(--line-height-relaxed, 1.7);
    max-width: 650px;
    margin-bottom: 0;
}

.global-cta-actions,
.cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.35s ease;
    text-decoration: none;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: #0A0A0A;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

@media (max-width: 992px) {
    .global-cta-card,
    .cta-inner {
        padding: 40px 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .global-cta-card::before,
    .cta-inner::before {
        left: 32px;
    }

    .global-cta-actions,
    .cta-actions {
        width: 100%;
    }
}

/* ==========================================================================
   8. CARD & UI COMPONENTS
   ========================================================================== */
.card-base {
    background-color: var(--surface-dark-2);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.card-base:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(165, 0, 13, 0.2);
}

.card-dark {
    background: var(--surface-dark-2);
    border: 1px solid var(--border-dark-subtle);
    border-radius: var(--border-radius-md);
    color: var(--white);
    transition: all var(--transition-normal);
}

.card-dark:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-dark-hover);
}

/* Image Frame with Architectural Zoom */
.image-zoom-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.image-zoom-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.image-zoom-box:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   9. SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.slide-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.slide-on-scroll.slide-left {
    transform: translateX(-40px);
}

.slide-on-scroll.slide-right {
    transform: translateX(40px);
}

.slide-on-scroll.slide-zoom {
    transform: scale(0.94);
}

.slide-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger delay children */
.stagger-group>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-group>*:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-group>*:nth-child(3) {
    transition-delay: 0.19s;
}

.stagger-group>*:nth-child(4) {
    transition-delay: 0.26s;
}

.stagger-group>*:nth-child(5) {
    transition-delay: 0.33s;
}

.stagger-group>*:nth-child(6) {
    transition-delay: 0.40s;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .slide-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   GLOBAL PROCESS STEPS COMPONENT
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background-color: var(--surface-dark-2);
    padding: 2.25rem 1.75rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.step-card:hover {
    background-color: var(--surface-dark-3);
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 36px rgba(165, 0, 13, 0.2);
}

.step-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.step-phase {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    display: block;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}