/* ═══════════════════════════════════════════════════════════
   RESPONSIVE.CSS
   Veškerá responzivní pravidla na jednom místě.
   Organizace: globální → navigace → stránka po stránce.
   Po každé změně zvýšit ?v= v base.html.
   ═══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   GLOBÁLNÍ — NAVIGACE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .main-header {
    height: 64px;
    padding: 0 20px;
  }

  .logo-img {
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    height: 28px;
  }

  .text-logo {
    transform: translateY(-50%) scale(1.2);
  }

  .nav-right {
    gap: 16px;
  }

  /* Schovat CTA tlačítko a přepínač jazyků */
  .cta-button,
  .language-switcher {
    display: none;
  }

  .client-zone-btn {
    padding: 6px 12px;
  }

  .client-zone-logo {
    height: 22px;
  }

  /* Větší touch plocha pro MENU */
  .menu-wrapper {
    top: 0;
    padding: 10px 6px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Zachovat proporce výšek čar */
  .menu-line {
    width: 5px;
    height: calc(var(--height) * 0.6);
  }

  p, li, .cta-button3, .cta-button4, .btn {
    font-size: calc(3.4vw - 1.5px);
  }
}


/* ══════════════════════════════════════════════════════════
   HOMEPAGE (index.html)
   ══════════════════════════════════════════════════════════ */

/* ── Hero ── */
@media (max-width: 768px) {
  .hero {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-content {
    margin-top: 24vw;
    padding: 2rem 0;
    max-width: 100%;
  }

  .background-slideshow img:nth-child(2),
  .background-slideshow img:nth-child(3) {
    object-position: 75% 50%;
  }

  .hero-text h1 .brand{
    font-size: 22vw;
  }

  .hero-text h2{
    font-size: 10vw;
  }

  .hero-text h3{
    font-size: 6vw;
  }
}

/* ── Růžové linky ── */
@media (max-width: 768px) {
  .line-1-global,
  .line-2-global {
    width: 7.2vw;
  }
}

/* ── Reason / PROČ ── */
@media (max-width: 768px) {
  .reason-section {
    padding: 6vh 6vw;
  }

  .reason-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .reason-left {
    flex-shrink: 0;
  }

  .reason-right {
    margin-left: 12vw;
    margin-top: 0;
    padding-right: 0;
    flex: 1;
  }

  .sm_heading {
    font-size: 3.5vw;
    margin-top: 0;
    padding-left: 0;
  }

  .reason-list {
    padding-left: 0;
    font-size: calc(3.4vw - 1.5px);
    line-height: 1.6;
  }

  .reason-icon {
    width: 19.8%;
    right: 0;
    transform: rotate(-15deg) translateY(5%);
  }

  .reason-vertical-text {
    font-size: 13.26vw;
  }
}

/* ── Sekce 3 (simple-section) ── */
@media (max-width: 768px) {
  .simple-section .container {
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px;
  }

  .image-block img {
    width: 100%;
    max-width: 100%;
  }

  .text-block {
    margin-left: 0;
    max-width: 100%;
  }

  .text-block h2 {
    font-size: 7.2vw;
  }

  .text-block h3 {
    font-size: 14px;
    margin-top: 1vw;
  }

  .text-block p {
    font-size: calc(3.4vw - 1.5px);
  }

  .cta2-wrapper {
    margin-top: 4vw;
  }
}

/* ── CTA3 wrapper ── */
@media (max-width: 768px) {
  .cta3-wrapper {
    margin-bottom: 16vw;
  }
}

/* ── KDY sekce ── */
@media (max-width: 768px) {
  .kdy-section {
    margin-bottom: 50px;
  }

  .clock-hover-wrapper {
    display: block;
    position: absolute;
    top: 2vw;
    left: auto;
    right: 5vw;
    width: 22%;
  }

  .pink-line {
    width: 7.2vw;
  }

  .kdy-title {
    font-size: 22.5vw;
  }

  .kdy_question {
    font-size: 4.2vw;
  }
}

/* ── JAK sekce ── */
@media (max-width: 768px) {
  .jak-wrapper {
    flex-direction: column;
    gap: 6vw;
  }

  .jak-left {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: -2vh;
  }

  .jak-vertical-text {
    writing-mode: horizontal-tb;
    text-align: left;
    font-size: 21vw;
    margin-left: 0;
    margin-bottom: -5vw;
    padding: 0;
  }

  .jak-images {
    flex-direction: column;
    gap: 4vw;
    width: 100%;
  }

  .jak-image-card {
    width: 100%;
  }

  .jak-image-card img {
    height: auto;
    width: 100%;
    display: block;
  }
}

/* ── Služby tlačítka (CTA2 + CTA3) ── */
@media (max-width: 768px) {
  .cta2-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3vw;
  }

  .text-block .cta-button2 {
    font-size: 2.5vw;
    padding: 10px 16px;
    margin-top: 10px;
  }

  .cta3-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3vw;
  }

  .cta-button3 {
    font-size: 3.5vw;
    padding: 14px 14px;
    white-space: normal;
  }
}

/* ── Recenze ── */
@media (max-width: 768px) {
  .review-slide {
    flex: 0 0 95vw;
    height: 50vh;
  }

  .review-text {
    max-width: 80%;
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .quote {
    font-size: 0.65rem;
  }

  .author {
    font-size: 0.65rem;
  }

  .reviews-section {
    margin-bottom: 0;
    height: auto;
  }
}

/* ── Portfolio ticker ── */
@media (max-width: 768px) {
  .portfolio-ticker {
    margin-top: 0;
  }

  .ticker-track .text {
    font-size: 4.2vw;
  }

  .ticker-track img {
    height: 4.2vw;
  }
}

/* ── Socials ── */
@media (max-width: 768px) {
  .socials-section {
    overflow: hidden;
    padding: 0 6vw;
  }

  .socials-hashtag {
    height: 100vh;
    left: -30vw;
  }

  .socials-heart {
    top: auto;
    left: auto;
  }

  .socials-title {
    font-size: 14vw;
    margin-left: 0;
    margin-top: 4vw;
  }

  .socials-description {
    margin: 4vh 6vw;
    font-size: 3vw;
    max-width: 100%;
    padding-right: 60px;
  }

  .social-icons img {
    width: 6.5vw;
  }

  .socials-videos {
    flex-direction: column;
    align-items: center;
  }
}

/* ── Portfolio (homepage sekce) ── */
@media (max-width: 1024px) {
  .portfolio-section {
    flex-direction: column;
  }

  .portfolio-grid-free,
  .portfolio-content {
    width: 100%;
    min-width: unset;
    aspect-ratio: unset;
  }

  .portfolio-content {
    margin-left: 0;
    margin-top: 5vw;
  }

  .portfolio-heading {
    font-size: 6vw;
  }

  .portfolio-text,
  .cta-button4 {
    font-size: 4vw;
  }
}

@media (max-width: 768px) {
  .portfolio-grid-free {
    min-width: 0;
    min-height: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .portfolio-content {
    min-width: 0;
    width: 100%;
  }

  .portfolio-heading {
    font-size: 8vw;
  }

  .portfolio-text,
  .cta-button4 {
    font-size: 4vw;
  }
}


/* ══════════════════════════════════════════════════════════
   STRÁNKA: ALEX.HATAL (alex.html)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .alex-hero-content { padding: 0 32px 60px; }
  .alex-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .alex-intro-label { display: none; }
  .alex-tl-outer { padding: 16px 0 40px; }
  .alex-skills-cols { grid-template-columns: 1fr; gap: 40px; }
  .alex-certs-grid { grid-template-columns: 1fr; }
  .alex-cert-item:nth-child(even) { padding-left: 0; border-left: none; }
  .alex-cert-item:nth-child(odd) { padding-right: 0; }
  .alex-section-inner { padding: 80px 24px; }
}

@media (max-width: 768px) {
  .alex-roles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .alex-role-card {
    aspect-ratio: unset;
    overflow: hidden;
    border-radius: 12px;
    height: 180px;
    cursor: pointer;
  }

  /* Disable 3D context completely on mobile */
  .alex-role-inner,
  .alex-role-card.is-flipped .alex-role-inner {
    transform: none !important;
    transform-style: flat !important;
  }

  /* Back face: neutralise webkit backface hiding, use opacity instead */
  .alex-role-back {
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .alex-role-front {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: opacity 0.3s ease;
  }

  /* Flip stav */
  .alex-role-card.is-flipped .alex-role-front { opacity: 0; }
  .alex-role-card.is-flipped .alex-role-back  { opacity: 1; }

  /* Tlačítko – bílá šipka bez pozadí */
  .alex-role-flip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 768px) {
  /* Hero image shift right */
  .alex-hero-img {
    background-position: 80% top;
  }

  .alex-roles-coda {
    font-size: calc(3.4vw - 1.5px);
  }

  /* "Cesta" nadpis – na obrázku vlevo, min 30 px od vrchu */
  .alex-tl-title {
    position: absolute;
    top: 30px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff0068;
    margin: 0;
  }

}

@media (max-width: 600px) {
  .alex-hero-name { letter-spacing: -1px; }
  .alex-hero-scroll-hint { display: none; }
  .alex-tl-hint { padding: 0 16px; }
  .alex-social-inline { gap: 10px; }
  .alex-social-pill { padding: 10px 16px; font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════
   STRÁNKA: CO JE AH STUDIO (co_je_ahstudio.html)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .ahstudio-banner-inner { flex-direction: column; }
  .ahstudio-banner-right { width: 100%; }
  .ahstudio-how-grid { grid-template-columns: 1fr 1fr; }
  .ahstudio-perks-grid { grid-template-columns: 1fr; }
  .ahstudio-pricing-grid { grid-template-columns: 1fr; }
  .ahstudio-pricing-featured { transform: none; }
}

@media (max-width: 600px) {
  .ahstudio-banner { padding: 60px 24px; }
  .ahstudio-how-grid { grid-template-columns: 1fr; }
  .ahstudio-page-section-inner { padding: 60px 24px; }
}


/* ══════════════════════════════════════════════════════════
   STRÁNKA: SLUŽBY + SUBPAGES (subpage.html)
   ══════════════════════════════════════════════════════════ */

/* Bannery substránek */
@media screen and (max-width: 768px) {
  .banner-heading {
    font-size: 1.6rem;
    padding: 0 1rem;
  }

  .subpage-banner {
    height: 40vh;
  }
}

/* Branding fáze → pravidla jsou v subpage.css (načítá se po responsive.css) */

/* Discovery grid → pravidla jsou v subpage.css (načítá se po responsive.css) */

/* Subpage heading – page-specific sizes on mobile */
@media (max-width: 768px) {
  .sluzby-banner ~ .subpage-heading p {
    font-size: 4rem;
    line-height: 1;
  }

  .kontakt-banner ~ .subpage-heading p,
  .legal-banner ~ .subpage-heading p {
    font-size: 3.5rem;
    line-height: 1;
  }
}

/* Sluzby – CTA tlačítka na stránce služby */
@media (max-width: 768px) {
  .sluzby-banner ~ .subpage-body .cta-button3 {
    font-size: 3.75vw;
  }
}

/* Sluzby accordion → pravidla jsou v subpage.css (načítá se po responsive.css) */

/* Kontakt – CTA full button */
@media (max-width: 768px) {
  .cta-full {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .kontakt-banner {
    background-position: 0% center;
  }
}

/* Subpage body text → pravidla jsou v subpage.css (načítá se po responsive.css) */

/* Kontakt */
@media (max-width: 768px) {
  .contact-icons-grid,
  .contact-icons-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-block {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }

  /* Formulář – šířka 95 %, bez přetékání */
  .contact-form {
    width: 95%;
    max-width: 95%;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px;
  }

  /* Pole vedle sebe → pod sebou */
  .form-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .form-and-image {
    gap: 0;
  }

  /* Skrýt fotku vedle formuláře */
  .form-image {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════
   STRÁNKA: PORTFOLIO / BLOG
   ══════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .cards-grid .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-overlay { padding: 18px; }
  .post-content { padding-top: 2rem !important; }
}

@media (max-width: 820px) {
  .hub-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cards-grid .grid {
    grid-template-columns: 1fr;
  }

  .hub-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-btn {
    width: auto;
  }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .post-cta > div { width: 100%; }
}


/* ══════════════════════════════════════════════════════════
   STRÁNKA: LEGAL (legal.html)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card--wide {
    flex-direction: column;
  }

  .legal-card--wide .legal-card-thumb {
    width: 100%;
    height: 160px;
  }

  .cenik-tier {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cenik-tier-name,
  .cenik-tier-price {
    min-width: unset;
  }

  /* Legal text -25 % */
  .legal-card-title {
    font-size: 1.01rem;
  }

  .legal-card-desc {
    font-size: 0.675rem;
  }

  /* 1 sloupec – explicitní override */
  .legal-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ══════════════════════════════════════════════════════════
   FOOTER (globální)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column p,
  .footer-column a,
  .footer-column label {
    font-size: 0.81rem;
  }

  .footer-logo {
    height: 60px;
  }

  .footer-socials img {
    height: 30px;
  }

  .footer-copyright p {
    font-size: 0.6rem;
  }

  .footer-studio-label {
    font-size: 0.55rem !important;
  }

  .footer-studio-btn {
    font-size: 0.64rem;
  }
}
