/* ==========================================================================
   SCFIS - Premium Automotive Service Stylesheet
   Colors: Dark Blue, Metallic Silver, Black, Electric Accents
   Fonts: Outfit (Headings), Inter (Body)
   ========================================================================== */

/* 1. Theme Variables & Tokens */
:root {
    --bg-primary: #080C16;       /* Obsidian Dark Blue */
    --bg-secondary: #0E1528;     /* Metallic Deep Blue-Slate */
    --bg-tertiary: #162038;      /* Chrome Slate Blue */
    
    --text-primary: #F8FAFC;     /* Bright Off-White */
    --text-secondary: #94A3B8;   /* Slate Silver */
    --text-muted: #64748B;       /* Dark Muted Silver */
    
    --accent-blue: #3B82F6;      /* Electric Blue */
    --accent-blue-glow: rgba(59, 130, 246, 0.45);
    --accent-blue-dark: #1D4ED8; /* High-Pressure Deep Blue */
    --accent-cyan: #06B6D4;      /* Injector Spray Cyan */
    
    --accent-silver: #E2E8F0;    /* Brushed Steel Silver */
    --accent-silver-dark: #475569;
    
    --accent-gold: #F59E0B;      /* Fuel Calibration Gold */
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    
    --border-color: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(59, 130, 246, 0.15);
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.7);
    --shadow-lg: 0 16px 48px -12px rgba(0,0,0,0.8);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
}

/* 2. Global Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

/* 3. Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-silver) 0%, var(--accent-blue) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--accent-gold);
}

/* 4. Common Layout Elements */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1rem;
}

.section-desc {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

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

/* 5. Custom Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), var(--shadow-glow);
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.06);
    color: var(--accent-silver);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: var(--accent-silver-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-whatsapp-direct {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-whatsapp-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

/* 6. Sticky Header & Brand Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-normal);
}

.site-header.scrolled .header-container {
    height: 70px;
}

/* Logo Details */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    cursor: pointer;
}

.logo-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-silver-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    opacity: 0;
    transition: var(--transition-fast);
}

.logo-area:hover .logo-wrapper {
    border-color: var(--accent-blue);
    transform: rotate(5deg) scale(1.05);
}

.logo-area:hover .logo-glow {
    opacity: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

/* Nav Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Header Call Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-header-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(226, 232, 240, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-silver);
}

.btn-header-call i {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
    transition: var(--transition-fast);
}

.btn-header-call:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.btn-header-call:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

/* 7. Hero Section Grid & Ambient Glows */
.hero-section {
    position: relative;
    padding-top: 170px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(14, 21, 40, 0.6) 0%, rgba(8, 12, 22, 1) 90%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
}

.bg-glow-blue {
    top: 15%;
    right: 15%;
    width: 400px;
    height: 400px;
    background-color: var(--accent-blue);
}

.bg-glow-silver {
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background-color: var(--accent-cyan);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(226, 232, 240, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    animation: pulse-dot 2s infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent-silver);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Metrics Dashboard */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.metric-divider {
    width: 1px;
    height: 45px;
    background-color: var(--border-color);
}

/* Showcase Bezel */
.hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}

.showcase-card {
    position: relative;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.15) 0%, rgba(226, 232, 240, 0.02) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 380px;
    overflow: hidden;
}

.showcase-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: var(--transition-slow);
}

.showcase-card:hover .showcase-img {
    transform: scale(1.04);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 22, 0.7) 100%);
}

.showcase-floating-badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(14, 21, 40, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.showcase-floating-badge i {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
}

.showcase-floating-badge h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.showcase-floating-badge p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 8. About Section & Switchable Tabs */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

/* Tab Frame Styles */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-content-container {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.tab-pane.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Profile Style Frame */
.premium-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.premium-frame:hover .about-img {
    transform: scale(1.03);
}

.frame-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 22, 0.95) 100%);
    display: flex;
    align-items: flex-end;
}

.overlay-details h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.overlay-details p {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Heritage Layout */
.heritage-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.heritage-card {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.heritage-card img {
    border-radius: 6px;
    width: 100%;
    object-fit: cover;
}

.heritage-card.main-card img {
    height: 220px;
}

.heritage-card.card-overlay img {
    height: 200px;
    object-fit: contain;
    background-color: #0b0f19;
}

.heritage-card span {
    display: block;
    padding: 0.5rem 0.25rem 0.25rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Tab Navigation Buttons */
.about-tab-controls {
    display: flex;
    background: rgba(8, 12, 22, 0.5);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(226, 232, 240, 0.03);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* About Information Details */
.about-info h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent-silver);
    margin-bottom: 2rem;
}

.about-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-bullet {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    flex-shrink: 0;
}

.bullet-icon i {
    width: 20px;
    height: 20px;
}

.about-bullet h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-bullet p {
    font-size: 0.95rem;
}

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.founder-sign {
    display: flex;
    align-items: center;
}

.founder-meta {
    display: flex;
    flex-direction: column;
}

.founder-meta strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.founder-meta span {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* 9. Services Grid & Bevel Cards */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    border-radius: 8px;
    margin-bottom: 1.75rem;
    transition: var(--transition-fast);
}

.service-icon-wrapper i {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-silver);
}

.service-link i {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

/* Service Card Hover States */
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--shadow-md), 0 0 25px rgba(59, 130, 246, 0.08);
    background: var(--bg-tertiary);
}

.service-card:hover .service-icon-wrapper {
    background: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.service-card:hover .icon-pulse {
    opacity: 1;
    transform: scale(1.2);
}

.service-card:hover .service-link {
    color: var(--accent-blue);
}

.service-card:hover .service-link i {
    transform: translateX(3px);
}

/* 10. Service Branches & Google Maps */
.branches-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.branch-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.branch-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.branch-card h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-right: 100px;
}

.branch-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-item i {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.detail-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Map Embedded Area */
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-height: 380px;
}

.google-map-iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.85) contrast(1.1); /* Styled Dark Mode Map */
    transition: var(--transition-slow);
}

.google-map-iframe:hover {
    filter: none; /* Reverts to original color colors when hovering for accessibility */
}

.map-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(8, 12, 22, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.map-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.map-label i {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

/* 11. Contact Form & Hotlines Layout */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .required {
    color: #EF4444;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.input-wrapper input, .input-wrapper select, .input-wrapper textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border-radius: 6px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper textarea {
    resize: none;
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.text-area-wrapper i {
    top: 18px;
    transform: none;
}

/* Active State Styles */
.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: var(--bg-secondary);
}

.input-wrapper input:focus + i, .input-wrapper select:focus + i, .input-wrapper textarea:focus + i {
    color: var(--accent-blue);
}

/* Error States */
.form-group.invalid .input-wrapper input,
.form-group.invalid .input-wrapper select,
.form-group.invalid .input-wrapper textarea {
    border-color: #EF4444;
}

.form-group.invalid .input-wrapper i {
    color: #EF4444;
}

.error-msg {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

.form-submit-actions {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Direct Contacts Layout */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.hotline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-grow: 1;
}

.hotline-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.hotline-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hotline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.hotline-avatar i {
    width: 20px;
    height: 20px;
}

.hotline-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.hotline-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hotline-details strong {
    display: block;
    font-size: 1.05rem;
    color: var(--accent-silver);
    margin-top: 0.15rem;
}

.hotline-actions {
    display: flex;
    gap: 0.5rem;
}

.hotline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hotline-btn i {
    width: 16px;
    height: 16px;
}

.hotline-btn.call {
    background: rgba(226, 232, 240, 0.05);
    border: 1px solid var(--border-color);
    color: var(--accent-silver);
}

.hotline-btn.call:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
}

.hotline-btn.whatsapp {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.hotline-btn.whatsapp:hover {
    background: #10B981;
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.trust-badge i {
    color: var(--accent-gold);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.trust-badge h5 {
    font-size: 0.95rem;
}

.trust-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 12. Footer Styling */
.site-footer {
    background-color: #060910;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr 1.2fr;
    gap: 4rem;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--accent-silver-dark);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-socials a i {
    width: 16px;
    height: 16px;
}

.footer-socials a:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-links h4, .footer-services h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-services h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent-blue);
}

.footer-links ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a, .footer-services a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-address p {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-address i {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-address a:hover {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #04060A;
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

/* 13. Floating Elements & Badge Animations */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-normal);
}

.whatsapp-floating-btn i {
    width: 28px;
    height: 28px;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Floating Tooltip */
.tooltip-text {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.whatsapp-floating-btn:hover .tooltip-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Pulsing Ping Radar Wave */
.ping-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.8;
    animation: ping-ring 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

@keyframes ping-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px var(--accent-blue);
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
        box-shadow: 0 0 16px var(--accent-blue);
    }
}

/* 14. Toast Banner Notifications */
.toast-card {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--bg-secondary);
    border: 1px solid rgba(16, 185, 129, 0.35); /* Success border by default */
    border-left: 4px solid #10B981;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.active {
    transform: translateX(0);
}

.toast-icon {
    color: #10B981;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.toast-icon i {
    width: 20px;
    height: 20px;
}

.toast-body h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.toast-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toast-close {
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* 15. Scroll-driven Animations Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-up-delay-1 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.slide-up-delay-2 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.slide-up-delay-3 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.slide-up-delay-4 {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.slide-left {
    opacity: 0;
    animation: slideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 16. Responsiveness Breakpoints */

/* Desktop / Tablet transition */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-visual {
        max-width: 520px;
        margin: 0 auto;
    }
    
    .tab-content-container {
        min-height: 520px;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

/* Mobile Portrait Layout */
@media (max-width: 768px) {
    /* Header & Nav */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(8, 12, 22, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        padding: 3rem 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .site-header.scrolled .main-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .btn-header-call {
        display: none; /* Hide header call button on mobile to save space */
    }
    
    /* Toggle active animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .hero-metrics {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-showcase {
        display: none; /* Hide showcase block on small screens */
    }
    
    /* About */
    .about-tab-controls {
        flex-direction: row;
    }
    
    .about-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    /* Contact */
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .form-submit-actions {
        grid-template-columns: 1fr;
    }
    
    .branch-card {
        padding: 2rem;
    }
    
    .branch-card h3 {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .hotline-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .hotline-actions {
        justify-content: flex-start;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-contact {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .tooltip-text {
        display: none; /* Hide tooltip on mobile */
    }
}
