/* ================================================
   RKINFO - Responsive Design System
   Mobile-first approach with breakpoint-aware styles
   ================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --brand-green: #064e3b;
    --brand-orange: #f97316;
    --transition-base: 0.3s ease;
}

/* ---- Base Styles ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Typography Responsive ---- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    word-wrap: break-word;
}

/* ---- Navigation ---- */
@media (max-width: 1023px) {
    nav {
        padding: 0.75rem 0;
    }
    
    nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: white;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.25rem;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* ---- Buttons ---- */
@media (max-width: 640px) {
    .btn-brand {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 641px) {
    .btn-brand {
        padding: 0.875rem 2rem;
    }
}

/* ---- Hero Section ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* ---- Card Grids ---- */
@media (max-width: 640px) {
    .grid-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ---- Bento Grid ---- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

/* ---- Footer ---- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Forms ---- */
@media (max-width: 640px) {
    input, textarea, select {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* ---- Utilities ---- */
@media (max-width: 1023px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .hide-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hide-small {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .show-small-only {
        display: none !important;
    }
}

/* ---- Spacing ---- */
@media (max-width: 640px) {
    .section-padding {
        padding: 3rem 0;
    }
}

@media (min-width: 641px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* ---- Container ---- */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 641px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ---- Smooth Animations ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}