/* Responsive Styles */

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__cta-group .btn {
    width: 100%;
  }

  .identification__grid {
    grid-template-columns: 1fr;
  }

  .how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
  }

  /* Vertical connecting line */
  .how-it-works__steps::before {
    content: '';
    display: block;
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 29px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    z-index: 0;
  }

  .step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--spacing-sm);
  }

  .step__number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.5rem;
    margin: 0;
    z-index: 1;
  }

  .step__content {
    flex: 1;
  }

  .step__title {
    text-align: left;
  }

  .step__description {
    text-align: left;
    max-width: none;
    margin: 0;
  }

  .how-it-works__info {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float__button {
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__button svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  /* Header mobile menu */
  .header__menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 100;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .header__cta {
    width: 100%;
    margin-top: var(--spacing-md);
  }

  .header__nav-overlay {
    display: block;
  }

  .header__nav-overlay.active {
    display: block;
  }

  /* Hero - Mobile overlay layout */
  .hero {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero__container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 0;
  }

  .hero__content {
    display: contents;
  }

  /* Row 1: Image wrapper with title overlay */
  .hero__image-wrapper {
    grid-row: 1;
    position: relative;
    background-color: var(--color-primary);
    /*min-height: 55vh;*/
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: unset;
    padding: 0;
  }

  .hero__image {
    max-width: 70%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
  }

  /* Title overlays the image area */
  .hero__title {
    position: absolute;
    left: var(--spacing-sm);
    top: 40%;
    transform: translateY(-50%);
    max-width: 60%;
    color: var(--color-white);
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.3;
    z-index: 1;
    text-shadow: none;
  }

  /* Row 2: Subtitle */
  .hero__subtitle {
    grid-row: 2;
    padding: 0 var(--spacing-sm);
    text-align: center;
    margin-top: unset;
    margin-bottom: unset;
  }

  /* Row 3: CTA */
  .hero__cta-group {
    grid-row: 3;
    padding: 0 var(--spacing-sm);
    justify-content: center;
    margin-bottom: 0;
  }

  /* Row 4: Trust badge */
  .hero__trust {
    grid-row: 4;
    padding: 0 var(--spacing-sm);
    text-align: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
  }

  .hero__title-highlight {
    color: var(--color-accent);
  }

  /* About */
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image-wrapper {
    margin-bottom: unset;
  }

  .about__image,
  .about__image-placeholder {
    margin: 0 auto;
  }

  .about__image-badge {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .about__content {
    max-width: 100%;
  }

  .about__highlight {
    text-align: left;
  }

  .about__credentials {
    justify-content: center;
  }

  /* How it works */
  .how-it-works__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .how-it-works__steps::before {
    display: none;
  }

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

  /* Footer */
  .footer__main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__contact-item {
    justify-content: center;
  }

  /* Identification - hide checkmarks */
  .identification__icon {
    display: none;
  }

  /* Service cards - medium padding, hide icon on mobile */
  .service-card {
    padding: var(--spacing-md);
  }

  .service-card__icon {
    display: none;
  }
}

/* Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .hero__container {
    gap: var(--spacing-md);
  }

  .about__container {
    gap: var(--spacing-md);
  }

  .header__nav-list {
    gap: var(--spacing-sm);
  }
}

/* Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* High resolution screens */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }
}

/* Print styles */
@media print {
  .header,
  .whatsapp-float,
  .cta,
  .header__menu-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__button::before {
    animation: none;
  }

  .header__nav {
    transition: none;
  }
}

/* Dark mode support (optional - for future) */
@media (prefers-color-scheme: dark) {
  /*
   * Dark mode styles can be added here if needed
   * Currently the site uses a light theme only
   */
}
