/* ==========================================================================
   DCP Electric - Responsive Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Max 1200px - Large Tablets / Small Desktops
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero__title {
    font-size: 44px;
  }

  .hero__form-wrapper {
    flex: 0 0 380px;
  }

  .trust-bar .container {
    gap: var(--spacing-2xl);
  }

  .stat-item__number {
    font-size: 40px;
  }
}

/* --------------------------------------------------------------------------
   Max 1024px - Tablets
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hide utility bar */
  .utility-bar {
    display: none;
  }

  .header {
    top: 0;
    height: 70px;
  }

  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 var(--spacing-xl);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    gap: 0;
  }

  .nav--active {
    right: 0;
  }

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

  .nav__link {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__link::after {
    display: none;
  }

  /* Mobile Dropdown */
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background-color: var(--color-background-alt);
    display: none;
    padding: 0;
  }

  .nav__item--dropdown.open .nav__dropdown {
    display: block;
  }

  .nav__dropdown-link {
    padding: 12px 40px;
    border-bottom: 1px solid var(--color-border);
  }

  /* Hide desktop CTA on mobile */
  .header__cta {
    display: none;
  }

  /* Mobile CTA inside nav drawer */
  .nav__mobile-cta {
    display: block;
    padding: 16px 24px;
  }

  .nav__mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile menu info */
  .nav__mobile-info {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .nav__mobile-info a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 0;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
  }

  .nav__mobile-info a i {
    color: var(--color-primary);
    width: 20px;
  }

  .nav__mobile-social {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
  }

  .nav__mobile-social a {
    width: 36px;
    height: 36px;
    background-color: var(--color-background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    padding: 0;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
  }

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

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__form-wrapper {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Service Cards */
  .service-card {
    flex: 0 0 calc(50% - 12px);
  }

  .feature-card {
    flex: 0 0 calc(50% - 12px);
  }

  .testimonials-grid .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  /* Process Steps */
  .process-step {
    flex: 1 1 calc(50% - 12px);
  }

  /* Page Hero */
  .page-hero {
    min-height: 40vh;
    padding: 120px 24px 60px;
  }

  .page-hero__title {
    font-size: 36px;
  }

  /* Neighborhoods */
  .neighborhoods {
    flex-direction: column;
  }

  .neighborhoods__map {
    flex: none;
    width: 100%;
    height: 250px;
  }

  /* Estimate Form */
  .estimate-form-section .container {
    flex-direction: column;
  }

  .estimate-form-section__form {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .estimate-form-section__content .trust-badges {
    flex-wrap: wrap;
  }

  /* Service Areas */
  .service-areas {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .service-areas__county {
    max-width: 100%;
    width: 100%;
  }

  /* Footer */
  .footer__grid {
    flex-wrap: wrap;
  }

  .footer__col {
    flex: 0 0 calc(50% - 24px);
  }

  .footer__col--wide {
    flex: 0 0 100%;
  }
}

/* --------------------------------------------------------------------------
   Max 768px - Small Tablets / Large Phones
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .section {
    padding: 60px 0;
  }

  .section__header {
    margin-bottom: var(--spacing-2xl);
  }

  /* Hero */
  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__badges {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  /* Trust Bar */
  .trust-bar .container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .trust-item {
    width: 100%;
    max-width: 300px;
  }

  /* Service Cards - 1 column */
  .service-card {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  /* Feature Cards */
  .feature-card {
    flex: 0 0 100%;
  }

  .features-grid {
    flex-direction: column;
  }

  .testimonials-grid .testimonial-card {
    flex: 0 0 100%;
  }

  /* Stats */
  .stats .container {
    gap: var(--spacing-xl);
  }

  .stat-item__number {
    font-size: 36px;
  }

  /* Process Steps */
  .process-step {
    flex: 0 0 100%;
  }

  .process-grid {
    flex-direction: column;
  }

  /* Contact */
  .contact-grid {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    width: 100%;
  }

  .form__row {
    flex-direction: column;
    gap: 0;
  }

  /* Team */
  .team-card {
    flex: 0 0 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

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

  /* CTA */
  .cta h2 {
    font-size: 28px;
  }

  .cta .btn-group {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer__col {
    flex: 0 0 100%;
  }

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

  /* Page Hero */
  .page-hero__title {
    font-size: 30px;
  }
}

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

  .section {
    padding: 48px 0;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .hero {
    padding: 100px 0 48px;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__form-wrapper {
    padding: var(--spacing-lg);
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: 16px;
  }

  .btn-group {
    width: 100%;
  }

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

  /* Gallery 1 column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Stats 2-column */
  .stats .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .stat-item__number {
    font-size: 32px;
  }

  /* Page Hero */
  .page-hero {
    min-height: auto;
    padding: 100px 16px 48px;
  }

  .page-hero__title {
    font-size: 26px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
