/* ==========================================================================
   ISO-TEC SAS | Ultra-Luxury Architectural Corporate Theme (Süslü & Profesyonel)
   Design: French High-End Construction Enterprise & Luxury Gold/Navy Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Outfit:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0a192f;
    --primary-dark: #030a16;
    --primary-light: #1e293b;
    --accent: #d4af37;
    --accent-gold: #f59e0b;
    --accent-glow: rgba(212, 175, 55, 0.35);
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #b45309 50%, #f59e0b 100%);
    --accent-subtle: #fffbe0;
    
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-page: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-dark-glass: rgba(10, 25, 47, 0.85);
    
    --border-color: #e2e8f0;
    --border-gold: rgba(212, 175, 55, 0.3);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px -5px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 22px 50px -10px rgba(10, 25, 47, 0.15);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Ribbon Bar */
.top-ribbon {
    height: 4px;
    background: linear-gradient(90deg, #0a192f 0%, #d4af37 35%, #f59e0b 65%, #0a192f 100%);
}

.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.86rem;
    padding: 10px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.top-contact i {
    color: var(--accent-gold);
    font-size: 0.92rem;
}

.top-badges {
    display: flex;
    gap: 10px;
}

.badge-rge {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid #fde68a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-maprime {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 82px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    padding: 6px;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.brand-logo:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* Nav Menu Tabs */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.nav-item a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
}

.nav-item a i {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.nav-item a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.nav-item a.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 25, 47, 0.25);
}

.nav-item a.active i {
    color: var(--accent-gold);
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
    display: none;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accent {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.45);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.94) 0%, rgba(15, 23, 42, 0.88) 100%), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 85px 0 95px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 55px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    color: #fde68a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 22px;
}

.hero-title span {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.12rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-photo-stack {
    display: flex;
    gap: 16px;
    margin-top: 35px;
}

.transparent-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.thumb-img {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.card-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.card-info p {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* 3-Step Wizard Simulator */
.wizard-card {
    background: #ffffff;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    position: relative;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wizard-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.wizard-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 26px;
}

.wizard-step-item {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.wizard-step-item.active {
    color: var(--accent-gold);
    font-weight: 800;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 0.9rem;
    font-weight: 800;
}

.wizard-step-item.active .step-num {
    background: var(--accent-gradient);
    color: #ffffff;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #ffffff;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 55px 0;
    border-bottom: 1px solid var(--border-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.92rem;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 600;
}

/* Services Grid Section */
.section {
    padding: 95px 0;
}

.section-header {
    margin-bottom: 55px;
    text-align: center;
}

.section-tag {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto;
}

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

.service-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease;
}

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

.service-img-wrapper {
    position: relative;
    height: 215px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-badge-icon {
    position: absolute;
    bottom: -22px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid #ffffff;
}

.service-body {
    padding: 32px 28px 28px;
}

.service-box h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 800;
}

.service-box p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Before / After Slider Section */
.ba-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 95px 0;
}

.ba-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.ba-slider-box {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-gold);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-after-img {
    width: 50%;
    border-right: 4px solid var(--accent-gold);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 18px;
    background: rgba(10, 25, 47, 0.88);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    z-index: 5;
}

.ba-label-before { left: 20px; }
.ba-label-after { right: 20px; background: var(--accent-gradient); }

/* Reviews Section */
.reviews-section {
    padding: 95px 0;
    background: #ffffff;
}

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

.review-card {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
}

.stars {
    color: #f59e0b;
    margin-bottom: 14px;
}

.review-text {
    font-size: 0.96rem;
    color: var(--text-body);
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.reviewer-badge {
    font-size: 0.78rem;
    color: #059669;
    font-weight: 700;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Page Header (Subpages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.page-header h1 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 800;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 70px 0 30px;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 45px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 22px;
    font-weight: 800;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .services-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ba-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile Layout */
    .top-bar-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .top-contact {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }
    .top-contact span {
        margin-right: 0;
    }
    .top-badges {
        justify-content: center;
    }

    /* Mobile Header & Logo */
    .navbar {
        padding: 10px 0;
    }
    .brand-logo {
        height: 56px;
    }
    .mobile-toggle {
        display: flex;
    }
    
    /* Navigation Menu Mobile Drawer */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 16px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border: 1px solid var(--border-color);
        gap: 10px;
    }

    .nav-menu.mobile-open {
        display: flex;
        animation: slideDown 0.25s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-item a {
        width: 100%;
        padding: 12px 18px;
        border-radius: var(--radius-sm);
        background: var(--bg-page);
    }

    .nav-item a.active {
        background: var(--primary);
    }

    .nav-flex .btn-accent {
        display: none; /* Hidden on header, accessible inside hero/footer */
    }

    /* Hero Section Mobile */
    .hero {
        padding: 45px 0 55px;
    }
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }
    .hero-desc {
        font-size: 0.98rem;
    }
    .hero-photo-stack {
        flex-direction: column;
        gap: 12px;
    }
    .transparent-card {
        width: 100%;
    }
    .hero div[style*="display: flex; gap: 14px;"] {
        flex-direction: column;
        gap: 10px;
    }
    .hero .btn {
        width: 100%;
        justify-content: center;
    }

    /* 3-Step Wizard Simulator Card */
    .wizard-card {
        padding: 24px 18px;
    }
    .wizard-steps {
        margin-bottom: 20px;
    }
    .wizard-step-item span {
        font-size: 0.72rem;
    }

    /* Stats Bar Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 15px;
    }
    .stat-box:nth-child(3), .stat-box:nth-child(4) {
        border-bottom: none;
    }
    .stat-number {
        font-size: 2.1rem;
    }

    /* Services & Reviews Mobile Grid */
    .section {
        padding: 55px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Before / After Slider Mobile */
    .ba-section {
        padding: 55px 0;
    }
    .ba-slider-box {
        height: 270px;
    }
    .ba-label {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Footer Mobile */
    footer {
        padding: 45px 0 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-box {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .stat-box:last-child {
        border-bottom: none;
    }
}
