/* ========================================
   Havenya Landing Page - Responsive Styles
   ======================================== */

/* ----------------------------------------
   Large Desktop (1400px and up)
   ---------------------------------------- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }

  .hero-title {
    font-size: 4.5rem;
  }
}

/* ----------------------------------------
   Desktop (1200px - 1399px)
   ---------------------------------------- */
@media (max-width: 1399px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

/* ----------------------------------------
   Desktop (992px - 1199px)
   ---------------------------------------- */
@media (max-width: 1199px) {
  :root {
    --container-padding: 2.5rem;
  }

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

  .footer-grid {
    gap: 3rem;
  }

  .shopleez-content.active {
    gap: 3.5rem;
  }
}

/* ----------------------------------------
   Tablet (768px - 991px)
   ---------------------------------------- */
@media (max-width: 991px) {
  :root {
    --container-padding: 2rem;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-stats {
    gap: 3rem;
  }

  .hero-stat-value {
    font-size: var(--text-3xl);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shopleez-content.active {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .shopleez-mockup {
    order: -1;
  }

  .shopleez-info {
    max-width: 550px;
    margin: 0 auto;
  }

  .shopleez-features {
    text-align: left;
  }

  .section {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .cta-banner {
    padding: 4.5rem 0;
  }

  .faq-section {
    margin-top: 4rem;
    padding-top: 3rem;
  }
}

/* ----------------------------------------
   Mobile Landscape (576px - 767px)
   ---------------------------------------- */
@media (max-width: 767px) {
  :root {
    --container-padding: 1.5rem;
  }

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

  .navbar-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    gap: 1.5rem;
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .navbar-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .navbar-link {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: var(--text-base);
  }

  .navbar-menu .btn {
    width: 100%;
    margin-top: 1rem;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: var(--text-3xl);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

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

  .section-description {
    font-size: var(--text-base);
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 2rem;
  }

  /* Why Havenya */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  /* Shopleez */
  .shopleez-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .shopleez-tab {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .phone-mockup {
    width: 260px;
    height: 540px;
    border-radius: 40px;
  }

  .shopleez-app-image {
    max-width: 280px;
    max-height: 540px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .shopleez-info h3 {
    font-size: var(--text-2xl);
  }

  .shopleez-features {
    gap: 1.25rem;
  }

  /* Tech Stack */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .tech-item {
    padding: 1.5rem 1rem;
  }

  /* Testimonials */
  .testimonial {
    padding: 2rem 1rem;
  }

  .testimonial-quote {
    font-size: var(--text-lg);
  }

  .testimonial-quote::before {
    font-size: 3rem;
  }

  /* CTA */
  .cta-banner {
    padding: 4rem 0;
  }

  .cta-title {
    font-size: var(--text-3xl);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-brand p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-column h4 {
    margin-bottom: 1.25rem;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Page Header */
  .page-header {
    padding: calc(100px + 3rem) 0 3rem;
  }

  .page-header h1 {
    font-size: var(--text-3xl);
  }

  /* Content Pages */
  .content-page {
    padding: 3.5rem 0 4rem;
  }

  .content-section {
    margin-bottom: 2.5rem;
  }

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

  /* Support Page */
  .support-info,
  .support-form {
    padding: 2rem;
  }

  .support-info h2,
  .support-form h2 {
    font-size: var(--text-xl);
    margin-bottom: 1.75rem;
  }

  .contact-method {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* FAQ */
  .faq-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .faq-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: 2rem;
  }

  .faq-question {
    padding: 1.25rem;
    font-size: var(--text-sm);
  }

  .faq-answer p {
    padding: 0 1.25rem 1.25rem;
  }
}

/* ----------------------------------------
   Mobile Portrait (up to 575px)
   ---------------------------------------- */
@media (max-width: 575px) {
  :root {
    --container-padding: 1.25rem;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: 0.5rem 1rem;
  }

  .hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-label {
    font-size: 0.7rem;
    padding: 0.375rem 0.875rem;
  }

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

  .service-card {
    padding: 1.75rem;
  }

  .why-card {
    padding: 1.75rem 1.25rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tech-item {
    padding: 1.25rem 0.875rem;
  }

  .tech-item svg {
    width: 36px;
    height: 36px;
  }

  .tech-item span {
    font-size: var(--text-xs);
  }

  .support-info,
  .support-form {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
  }

  .contact-icon {
    width: 48px;
    height: 48px;
  }

  .contact-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
    border-radius: 36px;
  }

  .shopleez-app-image {
    max-width: 240px;
    max-height: 480px;
  }

  .phone-mockup::before {
    width: 70px;
    height: 22px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .cta-banner {
    padding: 3rem 0;
  }

  .cta-title {
    font-size: var(--text-2xl);
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .deletion-warning {
    padding: 1.25rem;
  }

  .deletion-checkbox {
    padding: 1.25rem;
    gap: 0.875rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem 1rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  .navbar,
  .hero-buttons,
  .cta-banner,
  .footer-social,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .section {
    padding: 1rem 0;
  }

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

  .content-section p,
  .content-section li {
    color: black;
  }
}

/* ----------------------------------------
   High Contrast Mode
   ---------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --color-gray-400: #b0b0b0;
    --color-gray-500: #a0a0a0;
  }

  .btn-secondary {
    border-width: 2px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    border-width: 2px;
  }

  .service-card,
  .why-card,
  .faq-item {
    border-width: 2px;
  }
}

/* ----------------------------------------
   Dark Mode Preference (already dark, but ensures consistency)
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
