/* ═══════════════════════════════════════════════════════════════
   MERYS ENGLISH CLUB — Responsive Styles (responsive.css)
   ═══════════════════════════════════════════════════════════════
   Desktop-first: max-width ile genişten dara inilir.
   Her breakpoint için TEK bir @media bloğu.
   Sıralama: Tokens → Header → Hero → Testimonials → Bio →
             Curriculum → Credentials → Schedule → FAQ →
             Contact → Footer
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1200px Altı (Küçük Masaüstü) ────────────────────────── */
@media (max-width: 1200px) {

  /* Tokens */
  :root {
    --container-padding: 2.5rem;
    --section-gap: 96px;
    --section-gap-lg: 128px;
  }

  /*globals */

  .container {
    padding-inline: var(--space-xl);
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Hero */
  .section-hero .container {
    grid-template-columns: 1fr 0.5fr;
    gap: var(--space-xl);
  }

  .hero-title {
    font-size: var(--fs-16);
  }

  .hero-title .title-mark {
    font-size: var(--fs-17);
  }


  .hero-visual img {
    height: 60%;
  }

  .hero-visual img:nth-child(2) {
    width: 150px;
    right: 220px;
    top: 69px;
  }

  /* Testimonials */
  .testimonials-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .testimonials-content {
    align-items: center;
  }



  .slider-controls {
    position: absolute;
    bottom: var(--space-2xl);
  }

  /* Bio */
  .bio-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .bio-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .bio-content {
    align-items: center;
    text-align: center !important;
  }

  .bio-audience-list {
    justify-content: center;
  }

  /* Curriculum */

  .c-title {
    font-size: var(--fs-13);
  }

  .c-number {
    top: 0;
  }

  .c-visual {
    height: 380px;
  }

  /* Credentials */
  .credentials-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Schedule */
  .sch-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* FAQ */

  .faq-layout {
    gap: var(--space-2xl);
  }

  /* Contact */

  .contact-layout {
    gap: var(--space-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ─── 1024px Altı (Tablet) ─────────────────────────────────── */
@media (max-width: 1024px) {

  /* Tokens */
  :root {
    --section-gap: 80px;
    --section-gap-lg: 112px;
  }

  .container {
    padding-inline: var(--space-md);
  }

  /* Section Titles */

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--fs-13);
  }

  .section-description {
    max-width: 750px;
  }

  /* Header — Hamburger Menü */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--surface-page);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    z-index: var(--z-overlay);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a:not(.btn) {
    font-size: var(--fs-6);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    cursor: pointer;
    z-index: var(--z-modal);
    background: none;
    border: none;
    padding: 0;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--clr-primary-dark);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero */
  .section-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: var(--fs-15);
  }

  .hero-title .title-mark {
    font-size: var(--fs-16);
  }

  /* Bio */
  .bio-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .bio-content {
    gap: var(--space-xs);
  }

  .bio-visual {
    max-width: 480px;
    margin-inline: auto;
  }

  .bio-audience-list {
    justify-content: center;
  }

  /* Curriculum */
  .curriculum-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .curriculum-item.reverse {
    direction: ltr;
  }

  .c-content {
    order: 2;
  }

  .c-visual {
    order: 1;
    height: 320px;
    justify-content: center !important;
  }

  .c-number {
    display: none;
  }

  .c-title {
    font-size: var(--fs-12);
  }

  /* FAQ */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .faq-sidebar {
    position: static;
    text-align: center;
    align-items: center;
    gap: var(--space-xs);
  }

  .faq-sidebar .section-title,
  .faq-sidebar .section-description {
    text-align: center;
  }

  .faq-sidebar .section-title br {
    display: none;
  }

  .faq-sidebar .btn-primary {
    margin: 0 auto;
    position: absolute;
    bottom: var(--space-sm);
  }

  /* Contact */

  .contact-form-container {
    padding: var(--space-lg);
  }

  .c-form {
    gap: var(--space-md);
    padding: 0;
  }

  .form-row {
    gap: var(--space-md);
  }

  .form-group {
    height: 54px;
  }

  .form-group input {
    font-size: var(--fs-4);
  }

  .form-label {
    white-space: inherit;
    font-size: var(--fs-4);
  }

  .form-submit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);

  }
}


/* ─── 768px Altı (Büyük Mobil) ─────────────────────────────── */
@media (max-width: 768px) {

  /* Tokens */
  :root {
    --container-padding: 1.5rem;
    --section-gap: 64px;
    --section-gap-lg: 96px;
  }

  /* globals */

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: var(--fs-12);
  }

  .section-description {
    max-width: 500px;
    font-size: var(--fs-7);
  }

  /* Testimonials */

  .testimonials-layout {
    gap: var(--space-lg);
  }
  .testimonials-page {
    display: contents;
  }

  .testimonials-track {
    gap: var(--space-md);
  }
  .testimonials-content {
    gap: var(--space-md);
  }

  .testimonial-card {
    /* Tablet: 2 cards mathematically perfectly sized subtracting gaps */
    flex: 0 0 calc((100% - var(--space-md)) / 2);
    scroll-snap-align: start;
  }

  /* Credentials */
  .credentials-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .c-content {
    gap: var(--space-xl);
  }

  /* Schedule */
  .sch-cards {
    grid-template-columns: 1fr;
  }

  /* Curriculum */
  .c-visual {
    height: 280px;
  }

  .c-blob {
    width: 80%;
  }

  .c-title {
    font-size: var(--fs-10);
  }

  /* FAQ */

  .faq-layout {
    gap: var(--space-xl);
  }

  /* Contact */
  .contact-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }

  .contact-content {
    display: contents; /* İçindeki elemanları dışarı çıkarıp reorder yapabilmek için */
  }

  .contact-content .section-title {
    order: 1;
    text-align: center;
  }

  .contact-content .section-description {
    order: 2;
    text-align: center;
  }

  .contact-form-container {
    order: 3;
    width: 100%;
  }

  .contact-info-container {
    order: 4;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
  }

  .kvkk-group {
    justify-content: center;
  }

  .form-submit-row .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: var(--space-3xl) 0 var(--space-xl);
  }
}


/* ─── 480px Altı (Küçük Mobil) ─────────────────────────────── */
@media (max-width: 480px) {

  /* Tokens */
  :root {
    --container-padding: 1rem;
    --section-gap: 48px;
    --section-gap-lg: 64px;
  }

  .container {
    padding-inline: var(--space-sm);
  }


  /* Section Titles */
  .section-title {
    font-size: var(--fs-9);
  }

  /* Testimonials */
  .testimonials-track {
    gap: var(--space-sm);
  }

  .testimonial-card {
    /* Mobile: 1 card full width */
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Hero */
  .hero-title {
    font-size: var(--fs-12);
  }

  .hero-title .title-mark {
    font-size: var(--fs-13);
  }

  .hero-tagline {
    font-size: var(--fs-7);
  }

  .hero-headline {
    margin-bottom: var(--space-2xl);
  }

  /* Bio */
  .bio-audience-item {
    max-width: 100%;
  }

  /* Curriculum */
  .c-visual {
    height: 220px;
  }

  .c-title {
    font-size: var(--fs-9);
  }

  .c-subtitle {
    font-size: var(--fs-6);
  }

  /* Schedule Card */
  .sch-card {
    padding: var(--space-lg);
  }

  /* FAQ */
  .faq-question {
    font-size: var(--fs-6);
  }

  /* Contact */
  .c-form {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  /* Footer */
  .footer-brand {
    font-size: var(--fs-6);
  }

  .footer-social .btn-light {
    width: 40px;
    height: 40px;
  }
}