/* ═══════════════════════════════════════════════════════════════
   MyBemer.us - Modern Design System
   Inspired by the Diesel Truck Analogy Section
   ═══════════════════════════════════════════════════════════════ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {  
    margin: 0;  
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  
    line-height: 1.6;  
    color: #333;  
    background: #f5f5f5;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Force all images to be responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent any element from breaking viewport */
iframe,
video,
embed,
object {
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION - Unified Pink Gradient
   ═══════════════════════════════════════════════════════════════ */

header {
    background: linear-gradient(135deg, #d946a6 0%, #c026d3 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #d946a6 0%, #c026d3 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        z-index: 1000;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        margin: 5px 20px;
        border-radius: 8px;
        transition: background 0.3s;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-text {
        display: block !important;
        margin-left: 0 !important;
        padding: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MODERN CARD SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section h2 {
    font-size: 2.5rem;
    color: #d946a6;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section h3 {
    font-size: 1.8rem;
    color: #334155;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #475569;
}

/* ═══════════════════════════════════════════════════════════════
   COLOR-CODED BOXES (Diesel Style)
   ═══════════════════════════════════════════════════════════════ */

.box-gold {
    background: rgba(251, 191, 36, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #fbbf24;
    margin-bottom: 2rem;
}

.box-gold h3 {
    color: #f59e0b;
}

.box-red {
    background: rgba(239, 68, 68, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #ef4444;
    margin-bottom: 2rem;
}

.box-red h3 {
    color: #dc2626;
}

.box-green {
    background: rgba(34, 197, 94, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #22c55e;
    margin-bottom: 2rem;
}

.box-green h3 {
    color: #16a34a;
}

.box-blue {
    background: rgba(59, 130, 246, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #3b82f6;
    margin-bottom: 2rem;
}

.box-blue h3 {
    color: #2563eb;
}

.box-pink {
    background: rgba(217, 70, 166, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid #d946a6;
    margin-bottom: 2rem;
}

.box-pink h3 {
    color: #c026d3;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
    background: linear-gradient(135deg, #d946a6 0%, #c026d3 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(217, 70, 166, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(217, 70, 166, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(51, 65, 85, 0.3);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(51, 65, 85, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 191, 36, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   GRID LAYOUTS
   ═══════════════════════════════════════════════════════════════ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO CARDS
   ═══════════════════════════════════════════════════════════════ */

.video-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-contact-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(217, 70, 166, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PILLAR CARDS
   ═══════════════════════════════════════════════════════════════ */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pillar-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 15px;
    padding: 2.5rem;
    border-left: 5px solid #d946a6;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(217, 70, 166, 0.2);
}

.pillar-card h3 {
    color: #d946a6;
    margin-top: 0;
    font-size: 1.5rem;
}

.pillar-card ul {
    list-style: none;
    padding-left: 0;
}

.pillar-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.pillar-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d946a6;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.accent {
    color: #d946a6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .video-contact-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }
    
    .btn-primary, .btn-secondary, .btn-gold {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Portrait Mobile Fixes (iPhone 14 Pro Max and similar) */
@media (max-width: 430px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    /* Force all color boxes to be mobile-friendly */
    .box-gold,
    .box-red,
    .box-green,
    .box-blue,
    .box-pink {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Ensure video wrappers are responsive */
    .video-wrapper {
        height: 200px;
    }
    
    /* Make buttons full-width on very small screens */
    .btn-primary,
    .btn-secondary,
    .btn-gold {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Grid adjustments for portrait mobile */
    .grid-2,
    .grid-3,
    .grid-4,
    .pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    /* Additional padding reductions for smallest screens */
    nav {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}
