/* =========================================================
   MEDDICATE Website - responsive.css
   Responsive layout for tablets and mobile screens
========================================================= */

/* =========================
   Large Screens / Small Laptops
   1200px and below
========================= */
@media (max-width: 1200px) {
  :root {
    --container: 1060px;
  }

  .header__nav {
    gap: 18px;
  }

  .header__nav a {
    font-size: 12px;
  }

  .hero__container {
    gap: 36px;
  }

  .hero__content h1,
  .hero__title {
    font-size: clamp(42px, 5.5vw, 64px);
  }

  .hero__visual > img {
    min-height: 420px;
  }

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

  .footer__container {
    gap: 30px;
  }
}

/* =========================
   Tablets
   992px and below
========================= */
@media (max-width: 992px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .section-padding {
    padding: 84px 0;
  }

  /* Header */
  .header__container {
    min-height: 78px;
  }

  .header__logo img {
    width: 150px;
  }

  .header__menu-btn {
    display: inline-block;
    flex-shrink: 0;
  }

  .header__nav {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header__nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
  }

  .header__nav a::after {
    display: none;
  }

  .header__nav a:hover {
    background: var(--color-light);
  }

  .header__cta {
    display: none;
  }

  /* Hero */
  .hero,
  .hero__slider {
    min-height: auto;
  }

  .hero__slide {
    min-height: auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    padding: 62px 0 86px;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__content h1,
  .hero__title {
    font-size: clamp(40px, 8vw, 62px);
  }

  .hero__visual > img {
    min-height: 390px;
  }

  .hero__floating-card--one {
    left: 18px;
    bottom: 36px;
  }

  .hero__floating-card--two {
    right: 18px;
    top: 36px;
  }

  /* Features */
  .features {
    margin-top: -34px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2) {
    border-right: 0;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }

  /* Welcome */
  .welcome__container {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .welcome__image {
    max-width: 720px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .services-preview__container {
    grid-template-columns: 1fr;
  }

  .services-preview__content {
    max-width: 760px;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Certificates */
  .certificates__container {
    grid-template-columns: 1fr;
  }

  .certificates__content {
    max-width: 760px;
  }

  /* Contact CTA */
  .contact-cta__container {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer__bottom-container {
    flex-direction: column;
  }

  .footer__disclaimer {
    text-align: left;
  }
}

/* =========================
   Mobile Landscape / Large Phones
   768px and below
========================= */
@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-padding {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .welcome__content h2,
  .services-preview__content h2,
  .certificates__content h2,
  .contact-cta h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .section-heading p,
  .welcome__content p,
  .services-preview__content p,
  .certificates__content p,
  .contact-cta p {
    font-size: 16px;
  }

  .section-label {
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .section-label::before {
    width: 28px;
  }

  /* Preloader */
  .preloader__content {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .preloader__content img {
    max-width: 240px;
  }

  /* Header */
  .header__container {
    min-height: 74px;
  }

  .header__nav {
    top: 74px;
  }

  .header__logo img {
    width: 138px;
  }

  /* Hero */
  .hero__container {
    padding: 48px 0 78px;
    gap: 34px;
  }

  .hero__content h1,
  .hero__title {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -0.045em;
  }

  .hero__content p {
    font-size: 16px;
    margin-bottom: 26px;
  }

  .hero__actions {
    gap: 12px;
  }

  .hero__actions a {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .hero__visual > img {
    min-height: 330px;
    border-radius: 28px;
  }

  .hero__floating-card {
    min-width: 140px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .hero__floating-card strong {
    font-size: 24px;
  }

  .hero__floating-card span {
    font-size: 12px;
  }

  .hero__controls {
    bottom: 18px;
  }

  /* Features */
  .features {
    margin-top: -24px;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .feature-card img {
    width: 42px;
    height: 42px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  /* Product Cards */
  .product-card__image {
    height: 230px;
  }

  .product-card__content {
    padding: 22px;
  }

  .product-card__content h3 {
    font-size: 22px;
  }

  /* Categories */
  .category-card {
    min-height: 210px;
    border-radius: 24px;
  }

  .category-card img {
    min-height: 210px;
  }

  .category-card span {
    font-size: 18px;
  }

  /* Services */
  .services-list {
    grid-template-columns: 1fr;
  }

  /* Certificates */
  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 220px;
  }

  /* Contact CTA */
  .contact-cta__actions {
    width: 100%;
  }

  .contact-cta__actions a {
    flex: 1;
  }
}

/* =========================
   Small Phones
   576px and below
========================= */
@media (max-width: 576px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .section-padding {
    padding: 58px 0;
  }

  /* Header */
  .header__logo img {
    width: 128px;
  }

  .header__menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .header__nav {
    left: 11px;
    right: 11px;
  }

  /* Hero */
  .hero__container {
    padding-top: 38px;
  }

  .hero__content h1,
  .hero__title {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions a {
    width: 100%;
  }

  .hero__visual > img {
    min-height: 290px;
  }

  .hero__floating-card {
    position: static;
    margin-top: 12px;
    width: 100%;
  }

  .hero__visual {
    display: grid;
  }

  /* Features */
  .features {
    margin-top: 0;
  }

  .features__grid {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  /* Welcome */
  .welcome__actions {
    flex-direction: column;
  }

  .welcome__actions a {
    width: 100%;
  }

  .welcome__image::before {
    width: 90px;
    height: 90px;
    left: -10px;
    top: -10px;
  }

  /* Grids */
  .products-grid,
  .categories-grid,
  .stats__grid,
  .partners-grid,
  .footer__container {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card img {
    min-height: 240px;
  }

  .stat-card {
    padding: 28px 20px;
  }

  .stat-card strong {
    font-size: 36px;
  }

  .partner-card,
  .certificate-card,
  .service-item {
    border-radius: 24px;
  }

  .footer__container {
    padding: 52px 0;
    gap: 30px;
  }

  .footer__brand img {
    width: 160px;
  }

  .footer__bottom {
    padding: 18px 0;
  }
}

/* =========================
   Extra Small Phones
   420px and below
========================= */
@media (max-width: 420px) {
  .section-heading h2,
  .welcome__content h2,
  .services-preview__content h2,
  .certificates__content h2,
  .contact-cta h2 {
    font-size: 30px;
  }

  .hero__content h1,
  .hero__title {
    font-size: 32px;
  }

  .hero__visual > img {
    min-height: 250px;
  }

  .product-card__image {
    height: 210px;
  }

  .category-card,
  .category-card img {
    min-height: 210px;
  }

  .contact-cta__actions {
    flex-direction: column;
  }

  .contact-cta__actions a {
    width: 100%;
  }
}
