/* CP Home Solutions - Responsive Adjustments */

@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .owner-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }

  .owner-img {
    height: 320px;
  }

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

  .trust-bar-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    background-color: var(--color-primary-dark);
  }

  .header-container {
    height: 100%;
    position: static !important;
  }

  .logo-brand {
    gap: 0.45rem;
  }

  .logo-brand img {
    height: 36px;
  }

  .logo-brand .logo-text-two-lines {
    font-size: 0.78rem;
    line-height: 0.95;
  }

  .logo-brand .logo-text-two-lines strong {
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .lang-current-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
  }

  .nav {
    position: static !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 70px) !important;
    max-height: calc(100vh - 70px) !important;
    margin: 0 !important;
    padding: 2rem 1.5rem 4rem 1.5rem;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem !important;
    align-items: flex-start !important;
    background-color: var(--color-primary-dark);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.open {
    display: flex !important;
  }

  .nav-menu > li {
    width: 100%;
  }

  .mobile-toggle {
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  .header-cta {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p.lead {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .before-after-box {
    height: 300px;
  }

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

  .form-group.full {
    grid-column: span 1;
  }

  .estimate-box {
    padding: 1.75rem;
  }

  .areas-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .mobile-sticky-bar {
    display: flex;
  }

  /* Add padding at top of body for fixed header */
  body {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .trust-bar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0 1rem;
  }
}
