/* ============================================
   RESPONSIVE CSS FRAMEWORK
   For EPA - EVOLVE Professional Alliance
   ============================================ */

/* Base Responsive Utilities */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container Responsive Widths */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MOBILE FIRST - Base Styles (320px+)
   ============================================ */

/* Typography */
body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Grid Systems */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* Two Column Layouts */
.intro-content,
.services-content,
.benefits-content,
.why-need-content,
.how-works-content,
.pricing-content,
.cta-content,
.requirements-content,
.types-content,
.amendments-content,
.why-protect-content,
.process-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Image Grids */
.intro-images,
.services-images,
.why-need-images,
.documents-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Cards */
.service-card,
.benefit-item,
.reason-card,
.document-card,
.requirement-card,
.type-card {
    margin-bottom: 20px;
}

/* Buttons */
.btn-get-started,
.btn-primary,
.btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Navigation */
.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s;
}

/* Hero Sections */
.agent-hero,
.compliance-hero,
.documents-hero,
.ip-hero,
.mnc-hero {
    min-height: 400px;
    padding: 60px 0;
}

.agent-hero h1,
.compliance-hero h1,
.documents-hero h1,
.ip-hero h1,
.mnc-hero h1 {
    font-size: 2rem;
    letter-spacing: 1px;
}

/* ============================================
   SMALL MOBILE (480px+)
   ============================================ */
@media (min-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn-get-started,
    .btn-primary,
    .btn-secondary {
        width: auto;
    }
    
    .intro-images,
    .services-images,
    .why-need-images,
    .documents-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    /* Grid Systems */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Navigation */
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        background: transparent;
    }
    
    /* Hero Sections */
    .agent-hero,
    .compliance-hero,
    .documents-hero,
    .ip-hero,
    .mnc-hero {
        min-height: 450px;
        padding: 80px 0;
    }
    
    .agent-hero h1,
    .compliance-hero h1,
    .documents-hero h1,
    .ip-hero h1,
    .mnc-hero h1 {
        font-size: 3rem;
    }
    
    /* Services Cards Grid */
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DESKTOP (968px+)
   ============================================ */
@media (min-width: 968px) {
    .container {
        padding: 0 40px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Grid Systems */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Two Column Layouts */
    .intro-content,
    .services-content,
    .benefits-content,
    .why-need-content,
    .how-works-content,
    .pricing-content,
    .cta-content,
    .requirements-content,
    .types-content,
    .amendments-content,
    .why-protect-content,
    .process-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    /* Image Grids */
    .intro-images,
    .services-images,
    .why-need-images,
    .documents-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-images .img-large,
    .services-images .img-large,
    .why-need-images .img-large,
    .documents-images .img-large {
        grid-row: span 2;
    }
    
    /* Hero Sections */
    .agent-hero,
    .compliance-hero,
    .documents-hero,
    .ip-hero,
    .mnc-hero {
        min-height: 500px;
        padding: 100px 0;
    }
    
    .agent-hero h1,
    .compliance-hero h1,
    .documents-hero h1,
    .ip-hero h1 {
        font-size: 72px;
    }
    
    .mnc-hero h1 {
        font-size: 72px;
    }
    
    /* Services Cards Grid */
    .services-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   LARGE DESKTOP (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Hide on Mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on Tablet */
@media (min-width: 768px) and (max-width: 967px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Hide on Desktop */
@media (min-width: 968px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on Mobile */
.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* Responsive Padding */
.section-padding {
    padding: 40px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

@media (min-width: 968px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Responsive Text Alignment */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
}

.container,
section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for Images Breaking Layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo Images Responsive */
.logo img,
.logo-image {
    max-width: 200px;
    width: auto;
    height: auto;
}

@media (max-width: 767px) {
    .logo img,
    .logo-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo img,
    .logo-image {
        max-width: 120px;
    }
}

/* Content Images Responsive */
.intro-images img,
.services-images img,
.why-need-images img,
.documents-images img,
.benefits-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .intro-images img,
    .services-images img,
    .why-need-images img,
    .documents-images img,
    .benefits-images img {
        max-height: 250px;
    }
}

/* Hero Images Responsive */
.hero img,
.agent-hero img,
.compliance-hero img,
.documents-hero img,
.ip-hero img,
.mnc-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero img,
    .agent-hero img,
    .compliance-hero img,
    .documents-hero img,
    .ip-hero img,
    .mnc-hero img {
        max-height: 300px;
    }
}

/* Partnership Hero Responsive */
.partnership-hero {
    background-attachment: scroll !important;
}

@media (max-width: 767px) {
    .partnership-hero {
        min-height: 350px !important;
        padding: 60px 20px !important;
    }
    
    .partnership-hero h1 {
        font-size: 42px !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 480px) {
    .partnership-hero {
        min-height: 300px !important;
        padding: 40px 15px !important;
    }
    
    .partnership-hero h1 {
        font-size: 32px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Partnership Intro Section Responsive */
@media (max-width: 967px) {
    .intro-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .intro-images {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 767px) {
    .intro-text h2 {
        font-size: 28px !important;
    }
    
    .intro-text h3 {
        font-size: 16px !important;
    }
    
    .intro-text p,
    .intro-text li {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .intro-images {
        grid-template-columns: 1fr !important;
    }
    
    .intro-images img {
        height: 180px !important;
    }
}

/* LLP Section Responsive */
@media (max-width: 967px) {
    .llp-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .llp-images {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 767px) {
    .llp-section {
        padding: 60px 0 !important;
    }
    
    .llp-text h2 {
        font-size: 28px !important;
    }
    
    .llp-text h3 {
        font-size: 16px !important;
    }
    
    .llp-text p,
    .llp-text li {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .llp-images {
        grid-template-columns: 1fr !important;
    }
    
    .llp-images img {
        height: 180px !important;
    }
}

/* General vs Limited Partners Section Responsive */
@media (max-width: 967px) {
    .comparison-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .comparison-image img {
        height: 400px !important;
    }
}

@media (max-width: 767px) {
    .general-vs-limited {
        padding: 60px 0 !important;
    }
    
    .comparison-text {
        padding: 35px !important;
    }
    
    .comparison-text h2 {
        font-size: 28px !important;
    }
    
    .comparison-text h3 {
        font-size: 16px !important;
    }
    
    .comparison-text p {
        font-size: 14px !important;
    }
    
    .comparison-image img {
        height: 350px !important;
    }
}

@media (max-width: 480px) {
    .comparison-text {
        padding: 25px !important;
    }
    
    .comparison-text h2 {
        font-size: 24px !important;
    }
    
    .comparison-image img {
        height: 300px !important;
    }
}

/* Card Images Responsive */
.service-card img,
.benefit-item img,
.reason-card img,
.document-card img,
.requirement-card img,
.type-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .service-card img,
    .benefit-item img,
    .reason-card img,
    .document-card img,
    .requirement-card img,
    .type-card img {
        max-height: 200px;
    }
}

/* Team/Profile Images Responsive */
.team-member-card img,
.member-image img,
.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .team-member-card img,
    .member-image img,
    .profile-image img {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Responsive Tables */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Responsive Iframes (Videos) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
