/* ============================================
   Convex Solar Solutions - Responsive Styles
   ============================================ */

/* ---- 1400px ---- */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

/* ---- 1200px ---- */
@media (max-width: 1200px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image-card img {
    height: 380px;
  }

  .header-actions .btn-sm-custom span.btn-text {
    display: none;
  }
}

/* ---- 992px ---- */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero-section {
    min-height: auto;
    padding: 108px 0 56px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-image-wrap {
    margin-top: 36px;
    justify-content: center;
  }

  .hero-image-card {
    margin: 0 auto;
  }

  .hero-float-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
  }

  .about-experience-badge {
    right: 10px;
    bottom: 20px;
    padding: 18px;
  }

  .about-experience-badge h3 {
    font-size: 2rem;
  }

  .process-timeline::before {
    left: 28px;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: row;
    padding-left: 70px;
  }

  .process-content,
  .process-step:nth-child(even) .process-content {
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .process-number {
    left: 28px;
    transform: translateX(-50%);
  }

  .page-banner {
    padding: 140px 0 60px;
  }

  .page-banner h1 {
    font-size: 2.25rem;
  }

  .policy-content {
    padding: 32px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: 12px;
  }

  body.page-home .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle),
  body.page-home .site-header:not(.scrolled) .navbar-collapse .nav-link.dropdown-toggle,
  body.page-inner .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle),
  body.page-inner .site-header:not(.scrolled) .navbar-collapse .nav-link.dropdown-toggle {
    color: var(--text-dark);
  }

  body.page-home .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle):hover,
  body.page-home .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle).active,
  body.page-inner .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle):hover,
  body.page-inner .site-header:not(.scrolled) .navbar-collapse .nav-link:not(.dropdown-toggle).active {
    color: var(--primary-blue);
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
  }

  .header-actions .btn-sm-custom {
    width: 100%;
    justify-content: center;
  }

  .header-actions .btn-sm-custom span.btn-text {
    display: inline;
  }

  .site-header .brand-logo-horizontal {
    height: 62px;
    max-width: 320px;
  }

  .site-header .navbar-brand {
    min-height: auto;
    max-width: calc(100% - 56px);
  }

  .footer-about {
    text-align: center;
  }

  .footer-brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .site-footer .col-sm-6 .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .site-footer .col-sm-6 {
    text-align: center;
  }

  .footer-links a,
  .footer-contact li {
    justify-content: center;
  }
}

/* ---- 768px ---- */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 1.25rem;
  }

  .hero-stat-item {
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-stat-item h3 {
    font-size: 1.4rem;
  }

  .hero-stat-item p {
    font-size: 0.72rem;
  }

  .hero-image-card img {
    height: 280px;
  }

  .hero-float-card {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    margin: 16px auto 0;
    min-width: auto;
    width: fit-content;
  }

  .about-image-wrap img {
    height: 350px;
  }

  .about-experience-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -40px;
    margin-left: auto;
    margin-right: 20px;
    width: fit-content;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .page-banner h1 {
    font-size: 1.9rem;
  }

  .stat-card .stat-number {
    font-size: 2.2rem;
  }

  .service-detail-body {
    padding: 24px;
  }

  .service-detail-img {
    height: 220px;
  }

  .cta-section {
    padding: 50px 0;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .site-header .brand-logo-horizontal {
    height: 52px;
    max-width: 240px;
  }

  .site-header {
    padding: 10px 0;
  }

  .site-header.scrolled {
    padding: 8px 0;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-stat-item {
    padding: 0 4px;
  }

  .hero-stat-item p {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .service-detail-body {
    padding: 20px;
  }

  .service-detail-body h3 {
    font-size: 1.25rem;
  }

  .service-detail-body .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-card h3,
  .info-box h5 {
    font-size: 1.2rem;
  }

  .map-placeholder {
    height: 280px;
  }

  .thank-you-section .contact-form-card {
    padding: 28px 20px;
  }

  .thank-you-section .d-flex.flex-wrap {
    flex-direction: column;
  }

  .thank-you-section .d-flex.flex-wrap .btn {
    width: 100%;
    justify-content: center;
  }

  .policy-content h2 {
    font-size: 1.25rem;
  }

  .cta-content .d-flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-content .d-flex.flex-wrap .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- 576px ---- */
@media (max-width: 576px) {
  html {
    scroll-padding-top: 70px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .benefit-card {
    flex-direction: column;
    padding: 24px;
  }

  .process-number {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }

  .brand-item {
    width: 120px;
    height: 60px;
  }

  .page-banner {
    padding: 120px 0 50px;
  }

  .page-banner h1 {
    font-size: 1.65rem;
  }

  .mission-card {
    padding: 28px 20px;
  }

  .policy-content {
    padding: 24px 20px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .map-placeholder {
    height: 250px;
  }

  .site-footer {
    padding-top: 50px;
  }

  .modal-body {
    padding: 20px;
  }

  .site-header .brand-logo-horizontal {
    height: 48px;
    max-width: 220px;
  }

  .footer-brand-logo {
    max-width: 100%;
    padding: 14px 16px;
  }

  .site-footer .col-sm-6 {
    margin-bottom: 8px;
  }

  .footer-bottom p {
    padding: 0 8px;
  }

  .footer-credit span {
    display: inline-block;
  }

  .contact-info-card {
    padding: 24px 16px;
  }

  .strength-item {
    flex-direction: column;
    text-align: center;
  }

  .benefit-card {
    text-align: center;
  }

  .benefit-icon {
    margin: 0 auto 12px;
  }
}

/* ---- 425px ---- */
@media (max-width: 425px) {
  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .btn-primary-custom,
  .btn-outline-custom,
  .btn-orange,
  .btn-green {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  .service-card-body {
    padding: 32px 18px 18px;
  }

  .gallery-item {
    aspect-ratio: 1/1;
  }

  .testimonial-card::before {
    font-size: 3.5rem;
    top: 10px;
    right: 16px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.88rem;
  }

  .faq-answer-inner {
    padding: 0 18px 16px;
    font-size: 0.85rem;
  }
}

/* ---- 375px ---- */
@media (max-width: 375px) {
  .section-title {
    font-size: 1.35rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-stat-item h3 {
    font-size: 1.3rem;
  }

  .site-header .brand-logo-horizontal {
    height: 58px;
    max-width: 300px;
  }

  .footer-brand-logo {
    max-width: 240px;
    padding: 14px 18px;
  }

  .about-experience-badge h3 {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 28px 16px;
  }

  .stat-card .stat-number {
    font-size: 1.9rem;
  }
}

/* ---- 320px ---- */
@media (max-width: 320px) {
  .section-padding {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .feature-card h5 {
    font-size: 0.95rem;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .page-banner h1 {
    font-size: 1.4rem;
  }

  .breadcrumb-custom {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 280px;
  }

  .hero-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 0;
  }

  .hero-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .site-footer .row.g-4 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .site-footer .col-sm-6 .footer-title::after {
    left: 0;
    transform: none;
  }

  .site-footer .col-sm-6 {
    text-align: left;
  }

  .footer-about {
    text-align: center;
  }

  .footer-links a,
  .footer-contact li {
    justify-content: flex-start;
  }
}
