/* ==========================================
   SELARAS AGENCY - RESPONSIVE STYLES
   ========================================== */

/* ==========================================
   TABLET (768px and below)
   ========================================== */

@media (max-width: 768px) {

  /* Typography adjustments */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

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

  /* Hero section */
  .hero {
    padding: 80px 0 60px;
  }

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

  .hero p {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .cta-buttons {
    gap: 1rem;
  }

  .trust-badges {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .trust-badges span {
    padding: 0.6rem 1.2rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background: var(--light-gray);
  }

  .nav-menu .btn-primary {
    width: 100%;
    padding: 14px 24px;
    margin-top: 1rem;
    color: var(--white) !important;
    background: var(--primary-navy);
  }

  .nav-menu .btn-primary:hover {
    color: var(--white) !important;
    background: var(--accent-teal);
  }

  /* Service grid */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  /* Stats section */
  .success-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Timeline */
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Contact info */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  /* Tables */
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  /* Forms */
  .contact-form {
    padding: 2rem 1.5rem;
  }

  /* News grid */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing */
  .price {
    font-size: 2.5rem;
  }

  /* Credentials */
  .credentials {
    padding: 2rem 1rem;
  }

  .badges {
    gap: 2rem;
  }

  .badges img {
    height: 60px;
  }
}

/* ==========================================
   MOBILE (480px and below)
   ========================================== */

@media (max-width: 480px) {

  /* Typography adjustments */
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.35rem; }
  h4 { font-size: 1.15rem; }

  body {
    font-size: 15px;
  }

  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Section spacing */
  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  /* Hero section */
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary,
  .cta-buttons .btn-outline {
    width: 100%;
    padding: 14px 24px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Service cards */
  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .service-card p {
    min-height: auto;
    font-size: 0.95rem;
  }

  /* Stats section */
  .success-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  /* Timeline */
  .timeline-item .step {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .timeline-item h4 {
    font-size: 1.1rem;
  }

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

  /* Testimonials */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-card::before {
    font-size: 3rem;
    left: 1.5rem;
  }

  .client-photo {
    width: 70px;
    height: 70px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
  }

  /* Forms */
  .contact-form {
    padding: 1.5rem;
  }

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

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .contact-form button[type="submit"] {
    padding: 14px;
    font-size: 1rem;
  }

  /* Info cards */
  .info-card {
    padding: 1.5rem;
  }

  .info-card .icon {
    font-size: 2rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  /* Tables - Make them scrollable */
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  /* Service detail sections */
  .eligibility-section,
  .documents-section {
    padding: 1.5rem;
  }

  .checklist li,
  .documents-section ul li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  /* Pricing */
  .pricing-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .package-includes {
    font-size: 0.95rem;
  }

  .pricing-card .btn-primary {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  /* Success rate */
  .success-rate {
    padding: 1.5rem;
  }

  .success-rate h3 {
    font-size: 1.25rem;
  }

  .success-rate p {
    font-size: 1rem;
  }

  .success-rate strong {
    font-size: 1.15rem;
  }

  /* News cards */
  .news-card {
    padding: 1.75rem;
  }

  .news-card .date {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .news-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .news-card p {
    font-size: 0.95rem;
  }

  /* Map */
  .map-container iframe {
    height: 300px;
  }

  /* Credentials */
  .credentials {
    padding: 1.5rem 1rem;
  }

  .credentials h3 {
    font-size: 1.25rem;
  }

  .badges {
    flex-direction: column;
    gap: 1.5rem;
  }

  .badges img {
    height: 50px;
    margin: 0 auto;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

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

  .footer-section p,
  .footer-section ul li a {
    font-size: 0.95rem;
  }

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

  .social-links a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .trust-badges span {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================
   LARGE SCREENS (1400px and above)
   ========================================== */

@media (min-width: 1400px) {

  .container {
    max-width: 1320px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.35rem;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media print {

  .header,
  .nav-toggle,
  .footer,
  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .cta-buttons {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-light: #000000;
    --border-radius: 0;
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
}
