/**
 * Apsimum - Responsive Stylesheet
 * 
 * This file contains all media queries and responsive adjustments.
 * Mobile-first approach is used.
 * 
 * Breakpoints:
 * - Extra small (xs): < 576px (default, no media query needed)
 * - Small (sm): >= 576px
 * - Medium (md): >= 768px
 * - Large (lg): >= 992px
 * - Extra large (xl): >= 1200px
 * - Extra extra large (xxl): >= 1400px
 * 
 * @author Apsimum Development Team
 * @version 1.0.0
 */

/* ==========================================================================
   MOBILE FIRST - BASE STYLES (Extra Small Devices, < 576px)
   ========================================================================== */

/* Sections - Mobile */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-title h2 {
  font-size: var(--font-size-xl);
}

/* Footer - Mobile */
.footer-content {
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

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

.social-links {
  justify-content: center;
}

/* Typography - Mobile */
h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }

/* Buttons - Mobile */
.btn {
  width: 100%;
  justify-content: center;
}

.btn-sm,
.btn-lg {
  width: auto;
}


/* ==========================================================================
   SMALL-MEDIUM DEVICES (Large Phones, 425px and up)
   ========================================================================== */

@media (min-width: 426px) {

}

/* ==========================================================================
   SMALL DEVICES (Landscape Phones, 576px and up)
   ========================================================================== */

@media (min-width: 576px) {
  /* Buttons */
  .btn {
    width: auto;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  /* Typography */
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
}

/* ==========================================================================
   MEDIUM DEVICES (Tablets, 768px and up)
   ========================================================================== */

@media (min-width: 768px) {
  /* Sections */
  .section {
    padding: var(--spacing-3xl) 0;
  }

  .section-title h2 {
    font-size: var(--font-size-2xl);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Typography */
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

/* ==========================================================================
   LARGE DEVICES (Desktops, 992px and up)
   ========================================================================== */

@media (min-width: 992px) {
  /* Sections */
  .section {
    padding: var(--spacing-4xl) 0;
  }

  .section-title h2 {
    font-size: var(--font-size-3xl);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Typography */
  h1 { font-size: var(--font-size-5xl); }
}

/* ==========================================================================
   EXTRA LARGE DEVICES (Large Desktops, 1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
  /* Container */
  .container {
    max-width: var(--container-xl);
  }
}

/* ==========================================================================
   EXTRA EXTRA LARGE DEVICES (1400px and up)
   ========================================================================== */

@media (min-width: 1400px) {
  /* Container */
  .container {
    max-width: var(--container-xxl);
  }

  /* Sections */
  .section-title h2 {
    font-size: var(--font-size-4xl);
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  /* Hide non-essential elements */
  .header-wrapper,
  .footer,
  .btn,
  .social-links {
    display: none !important;
  }
  
  /* Reset backgrounds */
  body {
    background: white !important;
    color: black !important;
  }

  /* Page breaks */
  .section {
    page-break-inside: avoid;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
  
  /* Links */
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

/* ==========================================================================
   DARK MODE SUPPORT (Optional - for future use)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* 
   * Dark mode styles can be added here if needed.
   * Currently disabled - uncomment to enable.
   */
  
  /*
  :root {
    --white: #1a1a1a;
    --off-white: #2d2d2d;
    --light-gray: #404040;
    --gray: #9ca3af;
    --dark-gray: #d1d5db;
    --charcoal: #e5e7eb;
    --black: #f9fafb;
  }
  */
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --primary-color: #172448;
    --secondary-color: #359297;
  }
  
  .btn {
    border-width: 3px;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .navbar-menu-link,
  .navbar-dropdown-link,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects that don't work on touch */
  .card:hover {
    transform: none;
  }
}

/* ==========================================================================
   UTILITY RESPONSIVE CLASSES
   ========================================================================== */

/* Display utilities per breakpoint */
.d-sm-none { }
.d-sm-block { }
.d-md-none { }
.d-md-block { }
.d-lg-none { }
.d-lg-block { }

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
}

/* Text alignment per breakpoint */
@media (min-width: 576px) {
  .text-sm-left { text-align: left !important; }
  .text-sm-center { text-align: center !important; }
  .text-sm-right { text-align: right !important; }
}

@media (min-width: 768px) {
  .text-md-left { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-right { text-align: right !important; }
}

@media (min-width: 992px) {
  .text-lg-left { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-right { text-align: right !important; }
}


/*HERO Special Responsive*/
@media (min-width: 320px) and (max-width: 375px) {
  .hero-animation-bg{
    margin-top: 260px;
    min-height: auto;
  }
    .hero-content {
    margin-top: 76px;
  }
   .hero-subtitle {
      max-width: 270px;
      text-align: center;
  }
}
@media (min-width: 375px) and (max-width: 426px) {
  .hero{
    margin-top: 0;
  }
  .hero-content {
    margin-top: 55px;
  }
  .hero-subtitle {
      max-width: 270px;
      text-align: center;
  }
  .hero-animation-bg{
    min-height: auto;
    margin-top: 200px;
  }
}
@media (min-width: 426px) and (max-width: 768px) {
  .hero{
    margin-top: 0;
  }
  .hero-content {
    margin-top: 55px;
  }
  .hero-subtitle {
      max-width: 270px;
      text-align: center;
  }
  .hero-animation-bg{
    min-height: auto;
    margin-top: 100px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hero{
    margin-top: 0;
  }
  .hero-content {
    margin-top: 40px;
  }
  .hero-subtitle {
      max-width: 400px;
      text-align: center;
  }
  .hero-animation-bg{
    min-height: auto;
    margin-top: 40px;
  }
}
@media (min-width: 1024px) and (max-width: 1440px) {
  .hero-content {
    margin-top: 70px;
  }
}
@media (min-width: 1440px) and (max-width: 2560px) {
  .hero-content {
    margin-top: 150px;
  }
  .hero-subtitle {
    font-size: 1.6rem;
    max-width: 500px;
    text-align: center;
  }
  .hero-title-fixed {
      font-size: 2.8rem;
  }
  .hero-title-word{
    font-size: 6rem;
  }
  .hero-subtitle{
    margin-top: 55px;
  }
}
@media (min-width: 2560px) {
  .hero-title-fixed {
    font-size: 4rem;
  }
  .hero-title-word{
    font-size: 10rem;
  }
  .hero-title{
    margin-bottom: 46px;
  }
  .hero-subtitle{
    font-size: 3rem;
    max-width: 70%;
    text-align: center;
    line-height: 1.3;
  }
  .btn-hero{
        height: 80px;
        font-size: 40px;
  }
  .hero-title-rotate{
    height: 7rem;
  }
  .navbar-logo {
    min-width: 330px;
  }
  .btn-navbar-solid{
    height: 4rem;
    font-size: 1.6rem;
  }
  .main-navbar{
    max-width: 1600px;
  }
  .navbar-menu-link{
    font-size: 1.6rem;
  }
}