/* 
 * CLINE - Kancelaria Prawa Własności Intelektualnej
 * Responsive Stylesheet
 */

/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }
  
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .features, .services-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .header-container {
    padding: 0 var(--spacing-sm);
    justify-content: flex-end;
  }
  
  .logo {
    margin-right: auto;
  }
  
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    box-shadow: var(--box-shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    margin: var(--spacing-xs) 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-xs) 0;
  }
  
  .hero {
    min-height: 500px;
    padding: var(--spacing-lg) 0;
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    display: block;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  .section-title {
    margin-bottom: var(--spacing-md);
  }
  
  .features, .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .feature, .service, .testimonial {
    margin-bottom: var(--spacing-sm);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: 2;
    margin-top: var(--spacing-md);
  }
  
  .contact-form {
    order: 1;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo, .footer-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  /* Fix for buttons with long text */
  .btn-block,
  .hero-cta .btn,
  .blog-cta .btn,
  section[id="free-consultation"] .btn {
    font-size: 0.7rem;
    padding: 0.5rem;
    hyphens: auto;
  }
  
  .container {
    width: 100%;
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature, .service, .testimonial {
    padding: var(--spacing-sm);
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .feature-title, .service-title {
    font-size: 1.125rem;
  }
  
  .form-group {
    margin-bottom: var(--spacing-xs);
  }
  
  .form-control {
    padding: 0.5rem;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
}

/* Fix for very small devices */
@media (max-width: 359.98px) {
  html {
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Print styles */
@media print {
  .header, .footer, .hero-cta, .contact-form, .nav-toggle {
    display: none !important;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    background-image: none;
    background-color: white;
    color: black;
    margin-top: 0;
    padding: 2rem 0;
  }
  
  .hero-title, .hero-subtitle {
    color: var(--primary-color);
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .container {
    max-width: 100%;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  a {
    text-decoration: underline;
  }
  
  .feature, .service, .testimonial {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
