/* Asyjo - Responsive Styles */
/* ===== Safari-safe BASE layout for card grids ===== */
.advantage-grid,
.team-grid,
.values-grid,
.industries-grid,
.differentiators-grid {
  display: grid;
  grid-template-columns: 1fr;       /* mobile default */
  gap: 2rem;
  align-items: stretch;
  justify-items: stretch;
}

@media (min-width: 768px) {
  .advantage-grid,
  .team-grid,
  .values-grid,
  .industries-grid,
  .differentiators-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .advantage-grid,
  .team-grid,
  .values-grid,
  .industries-grid,
  .differentiators-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .criteria-content,
    .testimonial-content,
    .contact-content,
    .support-content,
    .track-record-content,
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Mobile */
    .mobile-menu {
        display: block;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #DDDDDD;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid #EEEEEE;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .header-content {
        position: relative;
    }

    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
        text-align: center;
        background-attachment: scroll;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        display: block;
        margin: 0 0 1rem 0;
        text-align: center;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Section Mobile */
    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-intro,
    .section-summary {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Grid Mobile */
    .advantage-grid,
    .team-grid,
    .process-grid,
    .philosophy-grid,
    .industries-grid,
    .faq-grid,
    .values-grid,
    .differentiators-grid,
    .evaluation-process,
    .advisory-grid,
    .exclusions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid,
    .timeline-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .criteria-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Card Mobile */
    .advantage-card,
    .team-card,
    .process-card,
    .philosophy-card,
    .industry-card,
    .criteria-category,
    .step-content {
        padding: 1.5rem;
    }

    .team-photo {
        height: 200px;
    }

    /* Process Steps Mobile */
    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
    }

    /* Testimonial Mobile */
    .testimonial-image {
        height: 250px;
        margin-bottom: 2rem;
    }

    .testimonial-text {
        padding-left: 1rem;
        border-left: 3px solid #FF6B35;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    /* Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }

    /* CTA Mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 0 1rem 0;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid #DDDDDD;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    /* Gamma Badge Mobile */
    .gamma-badge {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Support Items Mobile */
    .support-items {
        gap: 1rem;
    }

    /* Detailed Criteria Mobile */
    .detailed-criteria {
        gap: 2rem;
    }

    .criteria-category {
        padding: 1.5rem;
    }

    .criteria-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Typography Small Mobile */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    /* Card Padding Small Mobile */
    .advantage-card,
    .team-card,
    .process-card,
    .philosophy-card,
    .industry-card,
    .criteria-category,
    .step-content,
    .contact-form,
    .criteria-box {
        padding: 1rem;
    }

    /* Stats Small Mobile */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-description {
        font-size: 0.8rem;
    }

    /* Team Small Mobile */
    .team-photo {
        height: 180px;
    }

    .team-info {
        padding: 1rem;
    }

    .team-name {
        font-size: 1.2rem;
    }

    .team-bio {
        font-size: 0.9rem;
    }

    /* Icons Small Mobile */
    .advantage-icon,
    .process-icon,
    .industry-icon,
    .differentiator-icon,
    .step-icon {
        font-size: 1.8rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Form Small Mobile */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Testimonial Small Mobile */
    .testimonial-quote {
        font-size: 1rem;
    }

    .testimonial-image {
        height: 200px;
    }

    /* CTA Small Mobile */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Process Small Mobile */
    .step-content h3 {
        font-size: 1.2rem;
    }

    .step-details p,
    .step-details li {
        font-size: 0.9rem;
    }

    /* Industry Details Small Mobile */
    .industry-details li {
        font-size: 0.85rem;
    }

    /* FAQ Small Mobile */
    .faq-item {
        padding: 1rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
    }

    /* Footer Small Mobile */
    .footer-content {
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .stats-grid,
    .timeline-stats {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .gamma-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Landscape Mobile Styles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .page-header {
        padding: 80px 0 30px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    header,
    .mobile-menu,
    .gamma-badge,
    .cta-section,
    footer {
        display: none !important;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .page-header {
        padding: 20px 0;
    }

    .hero {
        background: none !important;
        color: black !important;
        padding: 20px 0;
        min-height: auto !important;
    }

    .hero-content h1 {
        color: black !important;
    }

    .hero-content .subtitle {
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    .advantage-card,
    .team-card,
    .process-card,
    .philosophy-card,
    .industry-card {
        border: 1px solid #CCCCCC !important;
        margin-bottom: 10px;
        page-break-inside: avoid;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        border: 1px solid #CCCCCC !important;
    }
}

/* High DPI / Retina Styles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .team-photo img,
    .testimonial-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .advantage-card:hover,
    .team-card:hover,
    .process-card:hover,
    .philosophy-card:hover,
    .industry-card:hover,
    .differentiator-card:hover,
    .evaluation-step:hover {
        transform: none;
    }

    .cta-button:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Note: This website uses a light theme by default 
       Dark mode styles can be added here if needed */
}

/* Container Queries Support (Future Enhancement) */
@supports (container-type: inline-size) {
    .advantage-grid {
        container-type: inline-size;
    }

    @container (max-width: 600px) {
        .advantage-card {
            padding: 1rem;
        }
    }
}
/* Safari-specific Fixes */
@supports (-webkit-hyphens: none) {
  @media (min-width: 1024px) {
    .advantage-grid,
    .team-grid,
    .values-grid,
    .industries-grid,
    .differentiators-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}
