/* ============================================
   responsive.css – mobilní a tablet layout
   (přepisuje původní styly pro menší šířky)
   ============================================ */

/* TABLETY A MENŠÍ NOTEBOOKY
   ------------------------------------------ */
@media (max-width: 1024px) {

  .main_nav {
    margin-left: 2em;
    margin-right: 2em;
  }

  .content,
  .content__contact {
    padding: 3em 2em;
  }
  .toogle_flex {
    gap: 2em;
  }

  .aboutMe_grid {
    margin: 3em 2em;
  }

  .products__gallery {
    margin: 0 2em 3em 2em;
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-item1 img {
    width: 100%;
    max-width: 420px;
  }
}

/* MOBILY (HLAVNÍ BREAKPOINT)
   ------------------------------------------ */
@media (max-width: 768px) {

  /* Základní typografie */
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 18px;
  }

  /* NAVIGACE / HEADER */
  .main_nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 1.25rem;
  }

  .main_nav h1 {
    font-size: 20px;
  }

  .main_nav h1 span {
    font-size: 13px;
  }

  .nav_list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .nav_list li {
    margin-right: 0;
  }

  .nav_list li.active a {
    font-size: 16px;
    padding: 0.35em 0.75em;
  }

  .main_button {
    width: 100%;
    text-align: center;
    padding: 1em;
  }

  .main_button a {
    display: inline-block;
    width: 100%;
  }

  /* HERO / ÚVODNÍ SEKCE */
  .content,
  .content__contact {
    grid-template-columns: 1fr;
    padding: 3em 1.5em 3em 1.5em;
    row-gap: 2em;
  }

  .content_gridOne {
    margin-top: 0;
  }

  .content_gridTwo {
    margin-top: 0;
    justify-content: center;
  }

  .content img {
    width: 100%;
    max-width: 340px;
    rotate: 3deg;
  }

  .content p {
    font-size: 0.95rem;
  }

  /* SEKCE „JSEM TU PRO VÁS“ + IFRAME */
  .aboutMe_grid {
    grid-template-columns: 1fr;
    margin: 3em 1.5em;
    row-gap: 2em;
  }

  .iframe {
    margin-top: 0;
  }

  .grid-item1 img {
    width: 100%;
    max-width: 360px;
  }

  .grid-item1 h2,
  .grid-item2 h2 {
    font-size: 32px;
  }

  .element,
  .element2 {
    margin-top: -1em;
    max-width: 160px;
  }

  iframe {
    max-width: 100%;
  }

  /* SLUŽBY / PRODUCTS */
  .products {
    margin-top: 3em;
    padding: 2.5em 1.5em 3em 1.5em;
  }

  .products h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 1.5em;
  }

  .products__gallery {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 1em;
  }

  .product__card {
    height: auto;
    padding: 0.9em 1em;
  }

  .product__card h3 {
    font-size: 0.95rem;
  }

  /* ORDINACE V LIBERCI */
  .grid-item1.img {
    justify-content: center;
  }

  .ordinace__p {
    margin-bottom: 1.5em;
  }

  .ordinace_about {
    flex-direction: column;
    gap: 1.5em;
  }

  .address_name {
    font-size: 20px;
  }

  .map iframe {
    width: 100%;
    height: 220px;
  }

  /* FOOTER (doplňuje existující styly) */
  .site-footer {
    padding: 2.5em 1.5em 2em 1.5em;
  }

  .footer_inner {
    flex-direction: column;
    gap: 1.8em;
  }

  .footer_bottom {
    flex-direction: column;
    gap: 0.4em;
    text-align: center;
  }

  .footer_brand h2 {
    font-size: 20px;
  }

  .footer_brand p {
    font-size: 0.9rem;
  }

  .footer_nav h3,
  .footer_contact h3 {
    font-size: 14px;
  }

  .footer_nav a {
    font-size: 0.9rem;
  }

  .footer_cta {
    width: 100%;
    text-align: center;
  }
}

/* EXTRA MALÉ MOBILY (volitelné doladění)
   ------------------------------------------ */
@media (max-width: 480px) {

  .main_nav {
    margin: 0.75rem 1rem;
  }

  .content,
  .content__contact,
  .aboutMe_grid {

    padding: 0;
  }

  .products {
    padding: 2.5em 1rem 2.5em 1rem;
  }
}

@media (max-width: 1024px) {
  .main_nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1.5rem;
    margin: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }



  .main_nav h1 span {
    font-size: 12px;
  }

  /* hamburger se ukáže */
  .nav_toggle {
    display: flex;
  }

  /* horizontální menu se mění na dropdown pod headerem */
  .nav_list {
    position: absolute;
    top: 100%;
    margin: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem 1.25rem 1.5rem;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease;
  }

  body.nav-open .nav_list {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav_list a {
    padding: 0.4em 0;
    border-radius: 0;
    background: transparent;
  }

  .nav_list li.active a {
    box-shadow: none;
    padding: 0.4em 0;
    background: transparent;
    color: #0053B1;
  }

  /* CTA vpravo, stále viditelné */
  .nav_cta {
    padding: 1.6em 2em;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}


@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 18px;
  }

  /* HERO / ÚVODNÍ SEKCE */
  .content,
  .content__contact {
    grid-template-columns: 1fr;
    padding: 3em 1.5em 3em 1.5em;
    row-gap: 2em;
  }

  .content_gridOne {
    margin-top: 0;
  }

  .content_gridTwo {
    margin-top: 0;
    justify-content: center;
  }

  .content img {
    width: 100%;
    max-width: 340px;
    rotate: 3deg;
  }

  .content p {
    font-size: 0.95rem;
  }

  /* SEKCE „Jsem tu pro vás“ */
  .aboutMe_grid {
    grid-template-columns: 1fr;

    row-gap: 2em;
  }

  .iframe {
    margin-top: 0;
  }

  .grid-item1 img {
    width: 100%;
    max-width: 360px;
  }

  .grid-item1 h2,
  .grid-item2 h2 {
    font-size: 32px;
  }

  .element,
  .element2 {
    margin-top: -1em;
    max-width: 160px;
  }

  /* SLUŽBY */
  .products {
    margin-top: 3em;
    padding: 2.5em 1.5em 3em 1.5em;
  }

  .products h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 1.5em;
  }

  .products__gallery {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 1em;
  }

  .product__card {
    height: auto;
    padding: 0.9em 1em;
  }

  .product__card h3 {
    font-size: 0.95rem;
  }

  /* ORDINACE */
  .grid-item1.img {
    justify-content: center;
  }

  .ordinace__p {
    margin-bottom: 1.5em;
  }

  .ordinace_about {
    flex-direction: column;
    gap: 1.5em;
  }

  .address_name {
    font-size: 20px;
  }

  .map iframe {
    width: 100%;
    height: 220px;
  }

  /* FOOTER */
  .site-footer {
    padding: 2.5em 1.5em 2em 1.5em;
  }

  .footer_inner {
    flex-direction: column;
    gap: 1.8em;
  }

  .footer_bottom {
    flex-direction: column;
    gap: 0.4em;
    text-align: center;
  }

  .footer_brand h2 {
    font-size: 20px;
  }

  .footer_brand p {
    font-size: 0.9rem;
  }

  .footer_nav h3,
  .footer_contact h3 {
    font-size: 14px;
  }

  .footer_nav a {
    font-size: 0.9rem;
  }

  .footer_cta {
    width: 100%;
    text-align: center;
  }
}

