/* ==========================================
   ECOSTRUCTIVE — Responsive Styles
   Written from scratch — Senior FE approach
   
   Strategy: Desktop-first with 6 breakpoints
   ─────────────────────────────────────────
   1440px  → Large desktops / constrained
   1200px  → Small desktops / large tablets landscape
   1024px  → Tablet landscape / nav collapse
   768px   → Tablet portrait
   576px   → Large phones
   400px   → Small phones (iPhone SE, Galaxy Fold)
   
   + Landscape phones, reduced motion, print
   ========================================== */

/* ───────────────────────────────────────────
   1440px — Large Desktop Refinement
   ─────────────────────────────────────────── */
@media (max-width: 1440px) {
  .container {
    max-width: 1140px;
    padding: 0 28px;
  }

  .hero-stats {
    gap: 32px;
    padding: 26px 32px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
  }
}

/* ───────────────────────────────────────────
   1200px — Small Desktop / Large Tablet
   ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .container {
    max-width: 1040px;
    padding: 0 24px;
  }

  .section {
    padding: 88px 0;
  }

  /* Hero */
  .hero h1 {
    font-size: clamp(32px, 5vw, 58px);
  }

  .hero-desc {
    max-width: 520px;
  }

  .hero-stats {
    gap: 28px;
    padding: 24px 28px;
  }

  .hero-stat-num {
    font-size: 32px;
  }

  /* About */
  .about-grid {
    gap: 48px;
  }

  .about-img-main img {
    height: 440px;
  }

  .about-img-secondary {
    width: 220px;
    right: -20px;
    bottom: -24px;
  }

  /* Services */
  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 30px 26px;
  }

  /* Stats */
  .stat-number {
    font-size: 42px;
  }

  /* Team */
  .team-grid {
    gap: 20px;
  }

  .team-img {
    height: 280px;
  }

  /* FAQ */
  .faq-layout {
    gap: 48px;
  }

  /* Contact */
  .contact-grid {
    gap: 32px;
  }

  .contact-form-wrapper {
    padding: 36px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* ───────────────────────────────────────────
   1024px — Tablet Landscape / Nav Collapse
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section {
    padding: 76px 0;
  }

  /* ── Navbar: switch to hamburger ── */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* ── Hero ── */
  .hero-content {
    padding: 130px 0 100px;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-br {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 28px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    justify-content: center;
    text-align: center;
    padding: 0 12px;
  }

  .hero-stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-stat-num {
    font-size: 30px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  /* ── About ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    max-width: 520px;
    margin: 0 auto;
  }

  .about-img-main img {
    height: 400px;
  }

  .about-content {
    max-width: 640px;
  }

  /* ── Services ── */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-banner {
    padding: 56px 0;
  }

  /* ── Projects ── */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* ── Team ── */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-img {
    height: 260px;
  }

  /* ── FAQ ── */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-left {
    text-align: center;
  }

  .faq-left .section-label {
    justify-content: center;
  }

  .faq-left .section-title {
    text-align: center;
  }

  .faq-left p {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-left .btn {
    display: none;
  }

  /* ── Contact ── */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact-map {
    grid-column: 1 / -1;
  }

  .contact-form-wrapper {
    padding: 32px 28px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ───────────────────────────────────────────
   768px — Tablet Portrait
   ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Typography scale down */
  .section-title {
    font-size: clamp(22px, 5vw, 34px);
    letter-spacing: 0.3px;
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .section-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    gap: 10px;
  }

  .label-line {
    width: 24px;
  }

  /* ── Hero ── */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 460px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 16px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
  }

  .hero-actions {
    margin-bottom: 36px;
    gap: 12px;
  }

  .hero-stats {
    padding: 20px 24px;
    max-width: 440px;
  }

  .hero-stat {
    padding: 0 10px;
  }

  .hero-stat-num {
    font-size: 26px;
  }

  .hero-stat-plus {
    font-size: 18px;
  }

  .hero-stat-label {
    font-size: 10px;
  }

  .hero-scroll {
    display: none;
  }

  /* ── Buttons ── */
  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 30px;
    font-size: 15px;
  }

  /* ── About ── */
  .about-images {
    max-width: 100%;
  }

  .about-img-main img {
    height: 320px;
  }

  .about-img-secondary {
    width: 180px;
    right: -8px;
    bottom: -18px;
  }

  .about-img-secondary img {
    height: 130px;
  }

  .about-experience-badge {
    padding: 16px 20px;
    top: -14px;
    right: 16px;
  }

  .exp-number {
    font-size: 28px;
  }

  .exp-text {
    font-size: 11px;
  }

  .about-desc {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 28px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  /* ── Services ── */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-card {
    padding: 28px 24px;
  }

  .service-card-number {
    font-size: 42px;
    top: 20px;
    right: 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card > p {
    font-size: 13px;
  }

  /* ── Stats ── */
  .stats-banner {
    padding: 48px 0;
  }

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

  .stat-plus {
    font-size: 26px;
  }

  .stat-icon {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* ── Projects ── */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .project-filters {
    gap: 8px;
    margin-bottom: 32px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .project-img {
    height: 190px;
  }

  .project-info {
    padding: 16px 18px;
  }

  .project-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .project-info p {
    font-size: 12px;
  }

  .project-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Make overlays visible on touch (no hover) */
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 56px 0;
  }

  .cta-content h2 {
    font-size: clamp(22px, 5vw, 32px);
  }

  .cta-content p {
    font-size: 14px;
    margin-bottom: 28px;
  }

  /* ── Team ── */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin: 0 auto;
    gap: 16px;
  }

  .team-img {
    height: 220px;
  }

  .team-info {
    padding: 16px;
  }

  .team-info h3 {
    font-size: 16px;
  }

  .team-info p {
    font-size: 13px;
  }

  /* Show social on touch */
  .team-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .team-social a {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* ── FAQ ── */
  .faq-question {
    padding: 16px 20px;
    font-size: 14px;
    gap: 14px;
  }

  .faq-question i {
    font-size: 13px;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 13px;
  }

  /* ── Contact ── */
  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .contact-form-wrapper {
    padding: 28px 22px;
  }

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

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-about {
    grid-column: auto;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-logo .logo-icon {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-contact li {
    justify-content: center;
    text-align: left;
    display: inline-flex;
  }

  .footer-top {
    padding: 48px 0 36px;
  }

  /* ── Mobile Menu ── */
  .mobile-menu {
    max-width: 100%;
    padding: 90px 28px 28px;
  }

  .mobile-link {
    font-size: 20px;
    padding: 10px 0;
  }

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

/* ───────────────────────────────────────────
   576px — Large Phones (iPhone 14, Pixel)
   ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  /* ── Hero ── */
  .hero-content {
    padding: 110px 0 72px;
  }

  .hero h1 {
    font-size: clamp(24px, 8vw, 34px);
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 9px;
    padding: 5px 14px;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
  }

  .badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    padding: 18px 16px;
    max-width: 380px;
    border-radius: var(--radius-md);
  }

  .hero-stat {
    padding: 0 8px;
  }

  .hero-stat-num {
    font-size: 22px;
  }

  .hero-stat-plus {
    font-size: 15px;
  }

  .hero-stat-label {
    font-size: 9px;
    letter-spacing: 0.3px;
  }

  /* ── About ── */
  .about-images {
    max-width: 100%;
  }

  .about-img-main img {
    height: 260px;
  }

  .about-img-secondary {
    width: 140px;
    bottom: -14px;
    right: -4px;
  }

  .about-img-secondary img {
    height: 100px;
  }

  .about-experience-badge {
    padding: 12px 16px;
    top: -10px;
    right: 10px;
  }

  .exp-number {
    font-size: 22px;
  }

  .exp-text {
    font-size: 10px;
  }

  .about-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .about-feature h4 {
    font-size: 14px;
  }

  .about-feature p {
    font-size: 12px;
  }

  /* ── Services ── */
  .services-grid {
    max-width: 100%;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 16px;
  }

  .service-card-number {
    font-size: 36px;
    top: 16px;
    right: 16px;
  }

  .service-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .service-card > p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .service-points li {
    font-size: 12px;
  }

  .service-link {
    font-size: 13px;
  }

  /* ── Stats ── */
  .stats-banner {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item {
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 30px;
  }

  .stat-plus {
    font-size: 22px;
  }

  .stat-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 11px;
    margin-top: 4px;
  }

  /* ── Projects ── */
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 11px;
  }

  .project-img {
    height: 200px;
  }

  .project-info {
    padding: 14px 16px;
  }

  .project-info h3 {
    font-size: 15px;
  }

  .project-tags {
    gap: 4px;
    margin-top: 8px;
  }

  .project-tags .tag {
    font-size: 9px;
    padding: 2px 7px;
    gap: 3px;
  }

  .project-category,
  .project-service-tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 44px 0;
  }

  .cta-content h2 {
    font-size: clamp(20px, 6vw, 28px);
  }

  .cta-content p {
    font-size: 13px;
    margin-bottom: 24px;
  }

  /* ── Team ── */
  .team-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 12px;
  }

  .team-img {
    height: 180px;
  }

  .team-info {
    padding: 12px 10px;
  }

  .team-info h3 {
    font-size: 14px;
  }

  .team-info p {
    font-size: 12px;
  }

  .team-social a {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* ── FAQ ── */
  .faq-question {
    padding: 14px 16px;
    font-size: 13px;
    gap: 12px;
  }

  .faq-question i {
    font-size: 12px;
  }

  .faq-answer p {
    padding: 0 16px 14px;
    font-size: 12px;
    line-height: 1.65;
  }

  .faq-item {
    margin-bottom: 10px;
  }

  /* ── Contact ── */
  .contact-card {
    padding: 14px;
    gap: 12px;
  }

  .contact-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 15px;
  }

  .contact-card h4 {
    font-size: 14px;
  }

  .contact-card p {
    font-size: 12px;
  }

  .contact-form-wrapper {
    padding: 22px 16px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 11px 13px;
    font-size: 14px;
  }

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

  /* ── Footer ── */
  .footer-top {
    padding: 40px 0 28px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-col ul li a {
    font-size: 13px;
  }

  .footer-contact span {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 16px 0;
  }

  .footer-bottom p {
    font-size: 11px;
  }

  /* ── Mobile Menu ── */
  .mobile-menu {
    padding: 84px 24px 24px;
  }

  .mobile-link {
    font-size: 18px;
    padding: 10px 0;
  }

  .mobile-cta {
    margin-top: 20px;
  }

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

/* ───────────────────────────────────────────
   400px — Small Phones (SE, Galaxy Fold, etc.)
   ─────────────────────────────────────────── */
@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 40px 0;
  }

  /* ── Logo ── */
  .logo-name {
    font-size: 15px;
  }

  .logo-sub {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  /* ── Hero ── */
  .hero-content {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-badge {
    font-size: 8px;
    padding: 4px 12px;
    letter-spacing: 1px;
    gap: 6px;
    margin-bottom: 14px;
  }

  .badge-dot {
    width: 5px;
    height: 5px;
  }

  .hero-actions {
    max-width: 280px;
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    font-size: 13px;
    padding: 12px 20px;
  }

  .hero-stats {
    padding: 14px 10px;
    max-width: 320px;
  }

  .hero-stat {
    padding: 0 6px;
  }

  .hero-stat-num {
    font-size: 19px;
  }

  .hero-stat-plus {
    font-size: 13px;
  }

  .hero-stat-label {
    font-size: 8px;
  }

  /* ── Section headers ── */
  .section-title {
    font-size: 20px;
    letter-spacing: 0.2px;
  }

  .section-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .section-label {
    font-size: 11px;
    gap: 8px;
  }

  .label-line {
    width: 20px;
  }

  /* ── About ── */
  .about-img-main img {
    height: 220px;
  }

  .about-img-secondary {
    width: 120px;
    bottom: -10px;
    right: 0;
  }

  .about-img-secondary img {
    height: 80px;
  }

  .about-experience-badge {
    padding: 10px 12px;
    top: -8px;
    right: 8px;
  }

  .exp-number {
    font-size: 20px;
  }

  .exp-text {
    font-size: 9px;
  }

  .about-desc {
    font-size: 13px;
  }

  .about-feature h4 {
    font-size: 13px;
  }

  .about-feature p {
    font-size: 11px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
  }

  /* ── Services ── */
  .service-card {
    padding: 20px 16px;
  }

  .service-card-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    margin-bottom: 14px;
  }

  .service-card-number {
    font-size: 30px;
    top: 14px;
    right: 14px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card > p {
    font-size: 12px;
  }

  .service-points li {
    font-size: 11px;
    gap: 6px;
    padding: 3px 0;
  }

  .service-points li::before {
    width: 5px;
    height: 5px;
  }

  .service-link {
    font-size: 12px;
  }

  /* ── Stats ── */
  .stats-banner {
    padding: 32px 0;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-plus {
    font-size: 18px;
  }

  .stat-icon {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-item {
    padding: 12px 8px;
  }

  /* ── Projects ── */
  .projects-grid {
    max-width: 100%;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 10px;
  }

  .project-img {
    height: 180px;
  }

  .project-info {
    padding: 12px 14px;
  }

  .project-info h3 {
    font-size: 14px;
  }

  .project-info p {
    font-size: 11px;
  }

  .project-tags .tag {
    font-size: 8px;
    padding: 2px 6px;
  }

  /* ── CTA ── */
  .cta-banner {
    padding: 36px 0;
  }

  .cta-content h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  .cta-content p {
    font-size: 12px;
    margin-bottom: 20px;
  }

  /* ── Team ── */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .team-img {
    height: 220px;
  }

  /* ── FAQ ── */
  .faq-question {
    padding: 12px 14px;
    font-size: 12px;
  }

  .faq-answer p {
    padding: 0 14px 12px;
    font-size: 11px;
  }

  /* ── Contact ── */
  .contact-card {
    padding: 12px;
    gap: 10px;
  }

  .contact-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 14px;
  }

  .contact-card h4 {
    font-size: 13px;
  }

  .contact-card p {
    font-size: 11px;
  }

  .contact-form-wrapper {
    padding: 18px 14px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .form-group label {
    font-size: 11px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* ── Footer ── */
  .footer-top {
    padding: 32px 0 24px;
  }

  .footer-about p {
    font-size: 12px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-col ul li a {
    font-size: 12px;
  }

  .footer-contact span {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 10px;
  }

  /* ── Mobile Menu ── */
  .mobile-menu {
    padding: 80px 20px 20px;
  }

  .mobile-link {
    font-size: 16px;
    padding: 9px 0;
  }

  .mobile-cta {
    font-size: 14px;
  }
}

/* ───────────────────────────────────────────
   Landscape Phones  
   Prevents hero from being too tall
   ─────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 76px 0 40px;
    text-align: left;
  }

  .hero-badge {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .hero h1 {
    font-size: clamp(20px, 4vw, 32px);
    margin-bottom: 10px;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: row;
    margin-bottom: 18px;
    max-width: none;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-stats {
    padding: 14px 18px;
    max-width: 420px;
    margin: 0;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 48px 0;
  }
}

/* ───────────────────────────────────────────
   Tall Phones (aspect > 2:1 like modern flagships)
   Extra breathing room
   ─────────────────────────────────────────── */
@media (max-width: 430px) and (min-height: 800px) {
  .hero-content {
    padding: 130px 0 80px;
  }

  .hero h1 {
    margin-bottom: 18px;
  }

  .hero-desc {
    margin-bottom: 28px;
  }

  .hero-actions {
    margin-bottom: 32px;
  }
}

/* ───────────────────────────────────────────
   Touch Device Enhancements
   Show overlays permanently on devices without hover
   ─────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55) 0%,
      transparent 50%
    );
  }

  .team-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .service-card:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }
}

/* ───────────────────────────────────────────
   Accessibility: Prefer Reduced Motion
   ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .service-card:hover,
  .project-card:hover,
  .team-card:hover {
    transform: none !important;
  }
}

/* ───────────────────────────────────────────
   Mobile: Prevent horizontal overflow
   ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section,
  .stats-banner,
  .cta-banner,
  .footer {
    overflow-x: clip;
  }
}

/* ───────────────────────────────────────────
   High Contrast Mode
   ─────────────────────────────────────────── */
@media (forced-colors: active) {
  .btn-primary,
  .btn-outline,
  .btn-white,
  .filter-btn.active {
    border: 2px solid currentColor;
  }

  .hero-stats,
  .service-card,
  .project-card,
  .team-card,
  .faq-item,
  .contact-card,
  .contact-form-wrapper {
    border: 1px solid currentColor;
  }
}

/* ───────────────────────────────────────────
   Print Stylesheet
   ─────────────────────────────────────────── */
@media print {
  /* Hide interactive / non-printable elements */
  .navbar,
  .hamburger,
  .mobile-menu,
  .mobile-overlay,
  .back-to-top,
  .hero-scroll,
  #preloader,
  .hero-bg,
  .contact-map,
  .footer-social,
  .team-social,
  .project-filters,
  .project-overlay {
    display: none !important;
  }

  /* Reset layout for paper */
  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
    line-height: 1.5;
  }

  .section {
    padding: 24px 0;
    break-inside: avoid;
  }

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

  /* Single column everything */
  .about-grid,
  .services-grid,
  .stats-grid,
  .projects-grid,
  .team-grid,
  .faq-layout,
  .contact-grid,
  .footer-grid {
    display: block;
  }

  .service-card,
  .project-card,
  .team-card,
  .faq-item,
  .contact-card,
  .stat-item {
    break-inside: avoid;
    margin-bottom: 12px;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  /* Remove decorative backgrounds */
  .hero,
  .stats-banner,
  .cta-banner {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .hero h1,
  .cta-content h2,
  .stat-number,
  .hero-stat-num {
    color: #000 !important;
  }

  .hero-desc,
  .cta-content p,
  .stat-label,
  .hero-stat-label {
    color: #333 !important;
  }

  .stat-plus,
  .hero-stat-plus {
    color: #555 !important;
  }

  /* Images */
  img {
    max-width: 100%;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid #000;
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
