/* Mobile Responsive CSS - 24.7 Barbearia */
/* Mobile First Approach */

/* Ensure mobile menu toggle is always visible on small screens */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* Force proper image scaling - MOBILE ONLY */
  .gallery-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    aspect-ratio: 3 / 4 !important;
    width: 100% !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .gallery-item:hover img {
    transform: translate(-50%, -50%) scale(1.08) !important;
  }

  /* Espaço abaixo do Instagram link */
  .instagram-cta {
    margin-bottom: 1.5rem !important;
    display: inline-block !important;
  }
}

/* Base Mobile Styles (< 768px) */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  :root {
    --spacing-sm: 0.5rem;
    --spacing-md: 0.9rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
  }

  /* Prevent content overflow */
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .container,
  section {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Touch optimization */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* Improve button/link touch targets */
  button,
  a,
  .btn,
  .service-toggle,
  .time-slot,
  .calendar-day {
    min-height: 44px;
    min-width: 44px;
  }

  /* Global */
  .container {
    padding: 0 0.85rem;
  }

  /* Reduzir espaços entre seções */
  section {
    margin-bottom: 0 !important;
  }

  h1 {
    font-size: 1.7rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1rem !important;
  }

  p {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* Consistent button sizing */
  .btn,
  button:not(.mobile-menu-toggle):not(.booking-close):not(.calendar-nav) {
    font-size: 0.82rem !important;
    padding: 0.6rem 1.1rem !important;
    min-height: 44px;
  }

  /* Header & Navigation - NÃO STICKY no mobile */
  header {
    position: relative !important;
    z-index: 1000;
  }

  .header-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0.875rem 0;
    gap: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Logo + Título à esquerda */
  .header-content > .logo {
    font-size: 0.95rem;
    gap: 0.5rem;
    order: 1 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .logo span {
    display: inline-block !important;
  }

  /* Hide nav on mobile - FORA DO FLUXO */
  .header-content > nav {
    position: fixed !important;
    display: none !important;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    padding-top: 70px;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
  }

  .header-content > nav.mobile-menu-open {
    display: flex !important;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    border-radius: 0.375rem;
    border: 1px solid var(--border-light);
    background: var(--bg-lighter);
  }

  /* Hide nav-info on mobile */
  .header-content > .nav-info {
    display: none !important;
  }

  nav a:hover {
    background: var(--bg-light);
    border-color: var(--accent);
  }

  /* Mobile Menu Toggle Button - DIREITA */
  .header-content > .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1002;
    order: 2 !important;
    flex-shrink: 0;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle span::before {
    top: -7px;
  }

  .mobile-menu-toggle span::after {
    bottom: -7px;
  }

  .mobile-menu-toggle.active span {
    background: transparent;
  }

  .mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  /* X no topo direito quando menu aberto */
  .mobile-menu-toggle.active {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
  }

  /* Keep nav-info hidden on mobile */
  .header-content > .nav-info {
    display: none !important;
  }

  /* Hero Section */
  .hero {
    padding: 5rem 0 4.5rem;
    position: relative;
    background: #141210;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/1.jpg");
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 0.45;
    filter: brightness(0.9) contrast(1.1);
    z-index: 0;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(20, 18, 16, 0.35) 0%,
      rgba(20, 18, 16, 0.6) 40%,
      rgba(20, 18, 16, 0.82) 100%
    );
    z-index: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem !important;
    margin-bottom: 1.2rem;
    color: #f8f6f2 !important;
    -webkit-text-fill-color: #f8f6f2 !important;
    background: none !important;
    text-shadow:
      0 3px 25px rgba(0, 0, 0, 0.7),
      0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem;
    color: #d4af37 !important;
    text-shadow:
      0 2px 15px rgba(0, 0, 0, 0.8),
      0 1px 3px rgba(0, 0, 0, 1);
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75 !important;
    color: #f8f6f2 !important;
    text-shadow:
      0 2px 15px rgba(0, 0, 0, 0.85),
      0 1px 3px rgba(0, 0, 0, 1);
    font-weight: 400;
  }

  .hero-button {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
  }

  .hero-button .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    border-width: 2.5px !important;
  }

  .hero-button .btn--ghost {
    background: rgba(248, 246, 242, 0.97) !important;
    border-color: #f8f6f2 !important;
    color: #141210 !important;
  }

  .hero-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7);
  }

  .hero-button .btn + .btn {
    margin-left: 0 !important;
  }

  .hero-image {
    display: none !important;
  }

  .hero-image img {
    display: none !important;
  }

  /* Sections Padding */
  .about,
  .services,
  .gallery,
  .cta,
  .reviews {
    padding: 1.75rem 0 !important;
    overflow-x: hidden !important;
  }

  /* About Section - Fix layout and centering */
  .about {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 2rem 0 !important;
  }

  .about .container {
    overflow: visible !important;
  }

  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    overflow: visible !important;
    padding: 1rem 0 !important;
  }

  .about-card-3d {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    max-width: 240px !important;
    overflow: visible !important;
    padding: 16px !important;
    perspective: 2000px !important;
  }

  .about-card {
    width: 100% !important;
    max-width: 240px !important;
    aspect-ratio: 3 / 4 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    position: relative !important;
    display: block !important;
    border-radius: 0.75rem !important;
    /* Transform vem da classe .is-3d - NÃO definir aqui */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    will-change: transform, box-shadow !important;
  }

  .about-card-wrapper {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 3 / 4 !important;
    position: relative !important;
    display: block !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    z-index: 1 !important;
    transition: all 0.6s ease-out !important;
  }

  /* Quando 3D ativa - inclina para trás */
  .about-card.is-3d .about-card-wrapper {
    transform: perspective(900px) translateY(-5%) rotateX(22deg) translateZ(0) !important;
    box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75) !important;
  }

  .about-cover-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0.75rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: filter 0.6s ease-out !important;
  }

  /* Quando 3D ativa - escurece a foto de trás */
  .about-card.is-3d .about-cover-image {
    filter: brightness(0.4) contrast(1.1) !important;
  }

  .about-card-wrapper::before,
  .about-card-wrapper::after {
    display: none !important;
    opacity: 0 !important;
  }

  .about-character-image {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 110% !important;
    object-fit: contain !important;
    border-radius: 0.75rem !important;
    opacity: 0 !important;
    transition:
      opacity 0.8s ease-in-out,
      transform 0.8s ease-out !important;
    z-index: 2 !important;
  }

  .about-card.is-3d .about-character-image {
    opacity: 1 !important;
    transform: translate3d(0, -9%, 200px) !important;
  }

  .about-text {
    max-width: 100% !important;
    text-align: center !important;
  }

  .about-content p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.75rem !important;
    padding: 0 1rem !important;
  }

  .section-title {
    margin-bottom: 1rem;
  }

  .section-title h2 {
    font-size: 1.5rem !important;
  }

  .section-title::after {
    margin-top: 0.75rem !important;
  }

  /* Services Grid - 2 colunas compactas */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
    padding: 0;
    margin-top: 1.25rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
  }

  /* Service cards new/compact */
  .service-card-new,
  .service-card-compact {
    padding: 0.8rem 0.9rem !important;
    min-height: 110px !important;
    border-radius: 0.875rem !important;
  }

  .service-main-line {
    margin-bottom: 0.6rem !important;
  }

  .service-name {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
  }

  .service-price {
    font-size: 1.05rem !important;
  }

  .service-book-btn {
    font-size: 0.62rem !important;
    padding: 0.3rem 0.55rem !important;
    margin-top: 0.4rem !important;
  }

  .service-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .service-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .service-price {
    font-size: 1.05rem !important;
  }

  .service-duration {
    font-size: 0.8rem !important;
  }

  .service-details {
    font-size: 0.85rem !important;
  }

  /* Gallery - IMAGENS CENTRADAS */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.3rem;
    max-width: 85% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gallery-item {
    border-radius: 0.35rem;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    width: 100% !important;
    max-height: 150px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1a1a;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  .gallery-overlay {
    opacity: 0;
    pointer-events: none;
  }

  .gallery-item:active .gallery-overlay {
    opacity: 1;
  }

  /* Reviews */
  .reviews-carousel {
    padding: 0 1rem;
  }

  #reviewsContainer {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0.75rem 0 !important;
  }

  .review-card {
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0 !important;
  }

  .review-card-stars {
    font-size: 0.9rem !important;
    gap: 0.15rem !important;
    margin-bottom: 0.75rem !important;
  }

  .review-card-text {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }

  .review-card-footer {
    padding-top: 1rem !important;
  }

  .review-card-author {
    font-size: 0.85rem !important;
  }

  .review-card-date {
    font-size: 0.65rem !important;
  }

  .review-header {
    margin-bottom: 0.75rem !important;
  }

  .review-avatar {
    width: 45px;
    height: 45px;
  }

  .review-name {
    font-size: 0.95rem;
  }

  .review-rating {
    gap: 0.2rem;
    font-size: 0.8rem;
  }

  .review-text {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.5;
  }

  /* Google Reviews Button */
  .reviews .btn,
  .instagram-cta,
  .google-reviews-btn {
    font-size: 0.85rem !important;
    padding: 0.65rem 1.25rem !important;
    margin-top: 1rem !important;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  /* Hours Table */
  .hours-table {
    font-size: 0.7rem;
  }

  .hours-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .hours-label {
    font-size: 0.75rem !important;
  }

  .hours-value {
    font-size: 0.75rem !important;
  }

  /* Footer */
  footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.85rem !important;
  }

  .footer-logo {
    font-size: 1.1rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* CTA Section */
  .cta-content {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .cta-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
    font-size: 0.85rem !important;
    padding: 0.7rem 1.25rem !important;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  h3 {
    font-size: 0.95rem !important;
  }

  p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .hero {
    padding: 2rem 0 1.5rem !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-text h1 {
    font-size: 1.55rem !important;
    line-height: 1.15 !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  .hero-description {
    font-size: 0.8rem !important;
    line-height: 1.55 !important;
  }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    width: 100%;
    justify-content: center;
  }

  .service-card {
    padding: 1rem;
    border-radius: 0.65rem;
  }

  .service-card h3 {
    font-size: 1rem !important;
  }

  /* Service cards new/compact em telas pequenas */
  .service-card-new,
  .service-card-compact {
    padding: 0.7rem 0.8rem !important;
    min-height: 100px !important;
    border-radius: 0.75rem !important;
  }

  .service-name {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  .service-price {
    font-size: 0.95rem !important;
  }

  .service-book-btn {
    font-size: 0.74rem !important;
    padding: 0.4rem 0.75rem !important;
    margin-top: 0.5rem !important;
  }

  .service-description {
    font-size: 0.8rem !important;
  }

  .service-price {
    font-size: 0.95rem !important;
  }

  .service-duration {
    font-size: 0.75rem !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem;
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gallery-item {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    width: 100% !important;
    max-height: 130px !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1a1a1a;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  nav {
    padding: 0.75rem 1rem;
  }

  nav a {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }

  .logo span {
    font-size: 0.875rem;
  }

  .section-title {
    margin-bottom: 1rem;
  }

  .section-title h2 {
    font-size: 1.35rem !important;
  }

  .section-title::after {
    width: 45px;
    margin-top: 0.65rem !important;
  }

  .about,
  .services,
  .gallery,
  .reviews,
  .cta {
    padding: 2rem 0 !important;
  }

  .about {
    padding-top: 2.25rem !important;
  }

  .about-layout {
    gap: 1.5rem !important;
  }

  .about {
    overflow: visible !important;
  }

  .about-layout {
    gap: 2.5rem !important;
  }

  .about-card-3d,
  .about-card,
  .about-card-wrapper,
  .about-text,
  .about-content {
    height: auto !important;
    overflow: visible !important;
  }

  .about-content p {
    font-size: 0.8rem !important;
  }

  .about-text,
  .about-content {
    margin-bottom: 0.75rem !important;
  }

  .cta-content {
    padding: 1.25rem 1rem;
  }

  .cta-content h2 {
    font-size: 1.35rem !important;
  }

  .cta-content p {
    font-size: 0.85rem !important;
  }

  #reviewsContainer {
    gap: 1rem !important;
  }

  .review-card {
    padding: 1rem !important;
  }

  .review-card-text {
    font-size: 0.78rem !important;
    margin-bottom: 0.85rem !important;
  }

  .review-card-author {
    font-size: 0.85rem !important;
  }

  .review-card-date {
    font-size: 0.65rem !important;
  }

  .review-card-stars {
    font-size: 0.85rem !important;
    margin-bottom: 0.65rem !important;
  }

  .hours-row {
    padding: 0.4rem;
  }

  .hours-label,
  .hours-value {
    font-size: 0.7rem !important;
  }

  footer p {
    font-size: 0.8rem !important;
  }
}

/* Booking Modal Mobile */
@media (max-width: 768px) {
  .booking-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }

  .booking-modal-content {
    padding: 1.5rem 1rem !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
  }

  .booking-modal-overlay {
    display: none !important;
  }

  .booking-close,
  .booking-modal-close {
    top: 1rem !important;
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 1000 !important;
  }

  .booking-header h2 {
    font-size: 1.35rem !important;
    padding-right: 2rem;
    margin-bottom: 1rem !important;
  }

  .booking-steps {
    gap: 0.4rem;
    margin: 1.25rem 0 0.85rem;
  }

  .booking-step {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem;
    font-size: 0.7rem;
  }

  .booking-step-number {
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .step-content {
    padding: 1.25rem 0.85rem;
  }

  /* Barber Selection */
  .barber-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .barber-card {
    padding: 1rem;
  }

  .barber-info h3 {
    font-size: 1rem !important;
  }

  .barber-info p {
    font-size: 0.8rem !important;
  }

  .barber-avatar {
    width: 55px;
    height: 55px;
  }

  /* Calendar */
  .calendar-header {
    padding: 0.65rem;
  }

  .calendar-month {
    font-size: 1rem;
  }

  .calendar-nav {
    width: 32px;
    height: 32px;
  }

  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
  }

  .calendar-weekday {
    font-size: 0.65rem;
    padding: 0.35rem 0;
  }

  .calendar-day {
    height: 38px;
    font-size: 0.8rem;
  }

  /* Time Slots */
  .time-slots-container {
    padding: 0.85rem;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .time-slot {
    padding: 0.65rem;
    font-size: 0.85rem;
  }

  /* Client Info Form */
  .form-group {
    margin-bottom: 0.85rem;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.65rem;
    font-size: 0.9rem;
  }

  /* Summary */
  .booking-summary {
    padding: 1rem;
  }

  .summary-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }

  .summary-label {
    font-size: 0.8rem;
  }

  .summary-value {
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Booking Actions */
  .booking-actions {
    flex-direction: column-reverse;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .booking-actions .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Tablet Improvements */
@media (min-width: 481px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

  .gallery-item {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* iPhone Safe Areas & Notch Support */
@supports (padding: max(0px)) {
  header .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .booking-modal-content {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1rem 0 !important;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .hero-image {
    max-height: 300px !important;
  }

  .hero-image img {
    height: 300px !important;
  }

  .hero-text h1 {
    font-size: 1.75rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-description {
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
  }

  .services,
  .about,
  .gallery {
    padding: 1.5rem 0 !important;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Desktop - Esconder apenas hamburguer, resto normal */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  nav {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* Large Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container,
  section {
    max-width: 100%;
  }

  /* Esconder hamburguer, nav normal */
  .mobile-menu-toggle {
    display: none !important;
  }

  /* === Header & Navigation === */
  header {
    padding: 0.75rem 0;
  }

  .header-content {
    padding: 0.75rem 0;
    gap: 2rem !important;
  }

  .header-content > .logo {
    font-size: 1.1rem;
    gap: 0.75rem;
  }

  .logo img {
    width: 42px !important;
    height: 42px !important;
  }

  nav {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }

  .header-content > .nav-info {
    display: none !important;
    gap: 1.5rem;
    order: 3;
  }

  .nav-info > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .container {
    padding: 0 2rem;
  }

  /* === Hero Section === */
  .hero {
    padding: 4rem 0 4rem !important;
  }

  .hero-content {
    gap: 2rem;
  }
  .about {
    padding-top: 9rem !important;
  }

  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3.5rem !important;
  }

  .about-card-3d {
    max-width: 480px !important;
    margin: 0 !important;
  }

  .about-card.is-3d .about-cover-image {
    width: 120% !important;
    height: 120% !important;
    object-fit: cover !important;
  }

  .about-card.is-3d .about-character-image {
    left: -5% !important;
    transform: translateY(2%) translateZ(235px) !important;
  }

  .about-card.is-3d .about-card-wrapper {
    transform: perspective(900px) translateY(0%) rotateX(12deg) translateZ(0) !important;
  }

  .about-text {
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  .about-content p {
    padding: 0 1.5rem !important;
  }

  .hero-image {
    max-width: 420px;
    max-height: 520px;
  }

  .hero-text h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem;
  }

  .hero-button {
    gap: 0.75rem;
  }

  .hero-button .btn {
    padding: 0.75rem 1.4rem !important;
    font-size: 0.85rem !important;
  }

  /* === Services Grid === */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .service-book-btn {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.65rem !important;
    margin-top: 0.4rem !important;
  }

  /* === Gallery Grid === */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.8rem;
  }

  .gallery-item {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* === Other Elements === */
  .time-slots-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

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

/* Print Styles */
@media print {
  header,
  footer,
  .booking-modal,
  .loader-overlay,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }
}

/* === TABLET (768px - 1024px) === */

/* === DESKTOP (1024px+) === */
@media (min-width: 1025px) {
  /* Desktop usa scroll (IntersectionObserver) como mobile e tablet */
  .about-card.is-3d .about-character-image {
    opacity: 1 !important;
    transform: translate3d(0, -1%, 280px) !important;
  }

  .about-card.is-3d .about-card-wrapper {
    transform: perspective(900px) translateY(-5%) rotateX(22deg) translateZ(0) !important;
  }
}
