/**
 * VELAPONT.RO - Responsive Stylesheet
 * Mobile-First Approach
 * Breakpoints: Mobile (320-767px), Tablet (768-1023px), Desktop (1024px+)
 */

/* ==================================================
   TABLET (768px - 1023px)
   ================================================== */
@media (max-width: 1023px) {
  :root {
    --header-height: 70px;
    --font-size-5xl: 2.5rem;   /* 40px */
    --font-size-4xl: 2rem;     /* 32px */
    --font-size-3xl: 1.75rem;  /* 28px */
    --spacing-4xl: 4rem;       /* 64px */
  }

  /* Grid adjustments */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: calc(100vh - var(--header-height));
    padding: var(--spacing-3xl) 0;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }
}

/* ==================================================
   MOBILE (max-width: 767px)
   ================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 60px;
    --container-padding: var(--spacing-md);
    --font-size-5xl: 2rem;     /* 32px */
    --font-size-4xl: 1.75rem;  /* 28px */
    --font-size-3xl: 1.5rem;   /* 24px */
    --font-size-2xl: 1.25rem;  /* 20px */
    --spacing-4xl: 3rem;       /* 48px */
    --spacing-3xl: 2.5rem;     /* 40px */
    --spacing-2xl: 2rem;       /* 32px */
  }

  /* Typography mobile adjustments */
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  h4 { font-size: var(--font-size-xl); }
  h5 { font-size: var(--font-size-lg); }
  h6 { font-size: var(--font-size-base); }

  /* Container */
  .container {
    padding: 0 var(--spacing-md);
  }

  /* Section spacing */
  section {
    padding: var(--spacing-3xl) 0;
  }

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

  /* Grid - toate devin 1 coloană */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
  }

  /* ==================================================
     HEADER & NAVIGATION (Mobile Menu)
     ================================================== */
  .header__logo {
    height: 40px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-lg);
    gap: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link {
    padding: var(--spacing-md);
    width: 100%;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link.active {
    background-color: var(--color-light);
  }

  /* Dropdown mobile */
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--color-light);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .nav__item--dropdown.active .nav__dropdown {
    max-height: 500px;
  }

  .nav__dropdown-link {
    padding-left: var(--spacing-2xl);
  }

  /* Language Switcher mobile */
  .lang-switcher {
    margin-top: var(--spacing-lg);
    width: 100%;
    justify-content: center;
  }

  /* ==================================================
     HERO SECTION (Mobile)
     ================================================== */
  .hero {
    min-height: auto;
    padding: var(--spacing-4xl) 0;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: var(--spacing-md);
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
  }

  .hero__cta {
    flex-direction: column;
  }

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

  /* ==================================================
     BUTTONS (Mobile)
     ================================================== */
  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
  }

  .btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
  }

  /* WhatsApp Float - smaller on mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /* ==================================================
     CARDS (Mobile)
     ================================================== */
  .card__image {
    height: 180px;
  }

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

  .service-card {
    padding: var(--spacing-xl);
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-3xl);
  }

  .stat-card__number {
    font-size: var(--font-size-4xl);
  }

  .stat-card__label {
    font-size: var(--font-size-base);
  }

  /* ==================================================
     FOOTER (Mobile)
     ================================================== */
  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .footer__section {
    text-align: center;
  }

  .footer__list {
    text-align: center;
  }

  .footer__contact p {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  /* ==================================================
     FORMS (Mobile)
     ================================================== */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px; /* Previne zoom pe iOS */
  }

  .form-group {
    margin-bottom: var(--spacing-md);
  }

  /* ==================================================
     UTILITIES (Mobile)
     ================================================== */
  .text-center-mobile {
    text-align: center;
  }

  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  /* Spacing adjustments mobile */
  .mt-mobile-0 { margin-top: 0 !important; }
  .mb-mobile-0 { margin-bottom: 0 !important; }
  .pt-mobile-0 { padding-top: 0 !important; }
  .pb-mobile-0 { padding-bottom: 0 !important; }
}

/* ==================================================
   VERY SMALL MOBILE (max-width: 374px)
   ================================================== */
@media (max-width: 374px) {
  :root {
    --container-padding: var(--spacing-sm);
    --font-size-5xl: 1.75rem;  /* 28px */
    --font-size-4xl: 1.5rem;   /* 24px */
  }

  .header__logo {
    height: 35px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .stat-card {
    padding: var(--spacing-lg);
  }

  .stat-card__number {
    font-size: var(--font-size-3xl);
  }
}

/* ==================================================
   DESKTOP LARGE (min-width: 1400px)
   ================================================== */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1320px;
  }
}

/* ==================================================
   PRINT STYLES
   ================================================== */
@media print {
  .header,
  .footer,
  .nav__toggle,
  .whatsapp-float,
  .btn {
    display: none;
  }

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

  a {
    text-decoration: underline;
  }

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

/* ==================================================
   ACCESSIBILITY - REDUCED MOTION
   ================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .whatsapp-float {
    animation: none;
  }
}

/* ==================================================
   HIGH CONTRAST MODE
   ================================================== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #CC0000;
    --color-secondary: #003D7A;
    --color-text: #000000;
  }

  .btn {
    border-width: 3px;
  }
}
