/* ==========================================================================
   myKom GmbH - Moderner, Freundlicher & Voll-Responsiver Web-Entwurf
   Optimiert für Desktop, Tablets und alle Smartphones (inkl. iPhone)
   ========================================================================== */

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

:root {
    /* Brand Colors */
    --primary: #0284c7;         /* Ocean Cyan/Blue */
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    
    --brand-blue: #1d4ed8;      /* Deep Trust Blue */
    --brand-dark: #0f172a;      /* Slate 900 */
    --brand-slate: #1e293b;
    
    --accent-red: #ef4444;       /* 24h Notdienst / Alarm Red */
    --accent-red-bg: #fef2f2;
    --accent-red-border: #fecaca;
    
    --accent-gold: #d97706;      /* Meister-Gold */
    --accent-gold-bg: #fffbeb;
    --accent-gold-border: #fde68a;

    --accent-green: #10b981;
    --accent-green-bg: #ecfdf5;

    /* Neutrals */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #0284c7;

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.07), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px -8px rgba(2, 132, 199, 0.18);
    --shadow-red: 0 10px 25px -4px rgba(239, 68, 68, 0.25);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.25;
    font-weight: 700;
}

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

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

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

.section {
    padding: 85px 0;
    position: relative;
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-gray {
    background-color: #f1f5f9;
}

/* ==========================================================================
   Top Notification / Emergency Bar
   ========================================================================== */
.top-bar {
    background: var(--brand-dark);
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.topbar-partner-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 2px 10px;
    border-radius: 9999px;
    color: #e2e8f0 !important;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topbar-partner-brand:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none !important;
}

.topbar-glasfaser-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.top-bar-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.top-bar-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.top-emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
}

.top-emergency-badge:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.pulse-dot-red {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: pulseDot 1.8s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 58px;
    gap: 0.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.header.scrolled .brand-logo img {
    height: 34px;
}

.brand-tag {
    display: none; /* Logo graphic already contains brand and subtitle text */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    padding: 0.5rem 0.2rem;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.5rem;
    color: var(--brand-dark);
    line-height: 1;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Buttons & Badges (Fully Responsive & Wrap-Safe)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: break-word;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--brand-dark);
    border-color: var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-emergency {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: var(--shadow-red);
}

.btn-emergency:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(220, 38, 38, 0.35);
    color: #ffffff;
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
}

/* Responsive CTA button text toggling */
.cta-short {
    display: none;
}
.cta-full {
    display: inline;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.3;
}

.badge-gold {
    background: var(--accent-gold-bg);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold-border);
}

.badge-blue {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge-green {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 36px 0 54px;
    background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 85%, rgba(37, 99, 235, 0.06) 0%, transparent 45%),
                var(--bg-body);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
    max-width: 600px;
}

.hero-usps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    margin: 0.3rem 0;
}

.hero-usp-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-body);
}

.hero-usp-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 0.4rem;
}

.hero-card-preview {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    gap: 0.5rem;
}

.hero-service-selection {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-body);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.75rem;
}

.service-select-item:hover {
    border-color: var(--primary);
    background: #ffffff;
    transform: translateX(3px);
    box-shadow: var(--shadow-sm);
}

.service-select-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.service-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue { background: rgba(2, 132, 199, 0.12); color: var(--primary); }
.icon-red { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }

.service-select-text h4 {
    font-size: 0.98rem;
    color: var(--text-heading);
    margin-bottom: 1px;
}

.service-select-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.arrow-icon {
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.service-select-item:hover .arrow-icon {
    color: var(--primary);
    transform: translateX(3px);
}

/* ==========================================================================
   Quick Finder / Segment Tabs Bar
   ========================================================================== */
.quick-nav-bar {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 0;
    box-shadow: var(--shadow-xs);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.quick-nav-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.quick-nav-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.quick-nav-text h5 {
    font-size: 0.92rem;
    margin-bottom: 1px;
}

.quick-nav-text p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-badge {
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-focus);
}

.card-top-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover .card-top-indicator {
    opacity: 1;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.feature-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    color: var(--brand-dark);
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-body);
}

.feature-list-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==========================================================================
   Highlight / Detail Box (Sicherheit & Glasfaser)
   ========================================================================== */
.detail-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.detail-box-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: #e2e8f0;
}

.detail-box-image-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.detail-box-image-wrap:hover img {
    transform: scale(1.03);
}

.detail-badge-float {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-box-card {
    background: #ffffff;
    border-left: 4px solid var(--accent-red);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-xs);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1.2rem 0;
}

.price-box-title {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.price-box-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   24h Emergency Banner
   ========================================================================== */
.emergency-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.emergency-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.emergency-content h3 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.emergency-content p {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.emergency-box-phone {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.emergency-phone-number {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    font-weight: 800;
    color: #f87171;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
    word-break: normal;
}

.emergency-phone-number:hover {
    color: #ffffff;
    transform: scale(1.02);
}

/* ==========================================================================
   Target Audiences Section (Für wen)
   ========================================================================== */
.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.target-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.target-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.target-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.target-title {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 0.45rem;
}

.target-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Partners & Trust Badges
   ========================================================================== */
.partners-section {
    padding: 35px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3.5rem;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: var(--transition);
    height: 44px;
}

.partner-logo-item img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: var(--transition);
}

.partner-logo-item:hover {
    opacity: 1;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* ==========================================================================
   About & Stats Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.8rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Careers Box
   ========================================================================== */
.careers-banner {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.careers-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.careers-content h3 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.careers-content p {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.careers-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.2rem;
    margin-bottom: 1.8rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.perk-item svg {
    color: #a7f3d0;
    flex-shrink: 0;
}

/* ==========================================================================
   Contact Section & Interactive Form
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.contact-card-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-text h4 {
    font-size: 1.02rem;
    color: var(--brand-dark);
    margin-bottom: 0.2rem;
}

.contact-card-text p {
    font-size: 0.92rem;
    color: var(--text-body);
}

.contact-card-text a {
    color: var(--brand-blue);
    font-weight: 600;
}

.contact-card-text a:hover {
    text-decoration: underline;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.45rem;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

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

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
}

/* Prevent iOS Zoom with font-size: 16px */
.form-control {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-heading);
    background-color: var(--bg-body);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.1em;
    padding-right: 2.5rem;
}

/* ==========================================================================
   Footer & Modals
   ========================================================================== */
.footer {
    background: var(--brand-dark);
    color: #e2e8f0;
    padding: 65px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 45px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.85rem;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 1.02rem;
    color: #ffffff;
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.86rem;
    color: #64748b;
}

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

.footer-legal-links a {
    color: #94a3b8;
    cursor: pointer;
}

.footer-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
}

.modal-close:hover {
    color: var(--brand-dark);
}

/* ==========================================================================
   Responsive Breakpoints & iPhone / Mobile Optimization
   ========================================================================== */

/* Medium Devices (Tablets, small laptops, <= 1024px) */
@media (max-width: 1024px) {
    .hero-grid, .detail-box-grid, .about-grid, .careers-grid, .emergency-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cards-grid-3, .cards-grid-4, .quick-nav-grid, .target-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .detail-box-image-wrap img {
        height: 280px;
    }
}

/* Small Devices (Smartphones, <= 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.1rem;
    }
    .section {
        padding: 60px 0;
    }

    /* Top Bar Mobile Layout */
    .top-bar {
        padding: 0.45rem 0;
        font-size: 0.78rem;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
    .top-bar-left {
        justify-content: center;
        gap: 0.8rem;
        font-size: 0.76rem;
    }
    .top-emergency-badge {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Navigation Mobile Header */
    .nav-container {
        height: 68px;
    }
    .brand-logo img {
        height: 38px;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .brand-subtitle {
        font-size: 0.64rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .nav-toggle {
        display: inline-flex;
    }
    
    /* Mobile Drawer */
    .nav-menu-wrapper {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--primary);
        padding: 1.25rem 1.5rem;
        box-shadow: 0 20px 35px rgba(15, 23, 42, 0.15);
        transform: translateY(-160%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    .nav-menu-wrapper.active {
        transform: translateY(0);
    }
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 0.7rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-link::after {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        padding: 40px 0 50px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-lead {
        font-size: 0.98rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-card-preview {
        padding: 1.3rem 1rem;
    }

    /* Grids to 1 Column */
    .cards-grid-3, .cards-grid-4, .cards-grid-2, .stats-row, .form-row-2, .careers-perks {
        grid-template-columns: 1fr;
    }
    .quick-nav-grid, .target-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Button Wrap on Mobile */
    .careers-banner .btn, .emergency-banner .btn {
        width: 100%;
    }

    .emergency-banner, .careers-banner {
        padding: 2.2rem 1.25rem;
    }
    .emergency-grid, .careers-grid {
        gap: 2rem;
    }
    .contact-form-card {
        padding: 1.6rem 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-legal-links {
        justify-content: center;
    }

    .modal-box {
        padding: 1.6rem 1.2rem;
    }
}

/* Extra Small Devices (iPhone / narrow screens <= 600px) */
@media (max-width: 600px) {
    .cta-short {
        display: inline;
    }
    .cta-full {
        display: none;
    }
    .header-cta-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.84rem;
        letter-spacing: 0.2px;
    }
}

/* Extra Small Devices (iPhone SE / narrow screens <= 420px) */
@media (max-width: 420px) {
    .brand-subtitle {
        display: none; /* Hide subtitle on tiny screens so logo + button + hamburger fit cleanly */
    }
    .quick-nav-grid, .target-grid {
        grid-template-columns: 1fr;
    }
    .quick-nav-card {
        padding: 0.75rem;
    }
    .detail-box-image-wrap img {
        height: 220px;
    }
    .top-bar-left {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* ==========================================================================
   Manufacturers Grid
   ========================================================================== */
.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

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

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

.manufacturer-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.manufacturer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.manufacturer-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    margin-bottom: 12px;
}

.manufacturer-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.manufacturer-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Contact Form Enhancements (Privacy Checkbox, Status Feedback, Loading)
   ========================================================================== */
.form-privacy {
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.45;
}

.checkbox-container input[type="checkbox"] {
    position: relative;
    top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-container a:hover {
    color: var(--primary-hover);
}

.form-feedback {
    display: none;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-top: 1rem;
    line-height: 1.5;
    animation: fadeInForm 0.3s ease;
}

.form-feedback.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

.btn:disabled, .btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed !important;
    pointer-events: none;
}

