/* ==========================================================================
   AROWVA — DYNAMIC RESPONSIVE BREAKPOINTS (responsive.css)
   ========================================================================== */

/* ===========================================
   1. LAPTOPS & TABLETS (max-width: 1024px)
   =========================================== */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 3.25rem;
    --fs-4xl: 2.75rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  /* Section header tighter on tablets */
  .section-header {
    margin-bottom: 3.5rem;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Hero mini stats row wraps */
  .hero-mini-stats {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-mini-stat {
    padding: 0 1rem;
  }

  /* Services Grid Side-Scrolling Carousel */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    margin: 0 -1.5rem;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 45%;
    scroll-snap-align: start;
    min-height: 380px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-content .section-title {
    text-align: left;
  }

  /* Consultation stacks vertically */
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

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

  /* Careers Drawer */
  .careers-drawer {
    width: 440px;
  }

  /* Service Details */
  .details-grid {
    gap: 3rem;
  }

  /* Team: 2-col on tablet */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* Testimonials 2-col */
  /* Services & Tech Grids */
  .why-grid,
  .tech-category-grid,
  .careers-culture,
  .project-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Navigation tight spacing */
  .nav-links {
    gap: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Hero UI floating cards overlap */
  .floating-card {
    display: none;
  }

  .hero-visual {
    max-width: 100%;
  }

  /* Timeline */
  .timeline-item {
    margin-bottom: 3rem;
  }

  /* Testimonials 2-col */
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================================
   2. PORTRAIT TABLETS & PHONES (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 1.875rem;
  }

  .section-padding {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 2.75rem;
  }

  .section-title {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .subsection-title {
    font-size: 1.875rem;
    margin: 4rem 0 2rem;
  }

  /* Hide Elastic Cursor on mobile touch screens */
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  /* ── NAVBAR ───────────────────────────── */

  /* Body scroll lock when mobile nav is open */
  body.nav-open {
    overflow: hidden;
  }

  .navbar {
    padding: 0.875rem 0;
  }

  .nav-container {
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* On mobile, hide the nav-links pill from the top bar — JS moves it to drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.5rem 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    gap: 0.25rem;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    /* Remove the pill background/border that shows in desktop */
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  /* Overlay behind open nav */
  .nav-links.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
    animation: fadeInOverlay 0.3s ease forwards;
  }

  @keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Nav link styling in drawer */
  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(79, 70, 229, 0.06);
    color: #4f46e5;
  }

  .nav-link.active {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    font-weight: 600;
  }

  .nav-link::after {
    display: none;
  }

  /* ── Drawer header row (brand label + close ×) ── */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-drawer-brand {
    font-family: var(--font-title, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
  }

  .nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #334155;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
  }

  .nav-drawer-close:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
  }

  /* Hide drawer header on desktop */

  /* ── Hide nav-cta from the top bar on mobile ── */
  /* JS moves it inside the drawer; we must hide it from the top bar row */
  .nav-container > .nav-cta {
    display: none !important;
  }

  /* When nav-cta is inside the drawer (appended by JS), style it */
  .nav-links .nav-cta {
    display: inline-flex !important;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  /* ── Hamburger button ── */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(79, 70, 229, 0.06);
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* ── HERO ───────────────────────────────── */
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: 160px;
    max-width: 260px;
    justify-content: center;
  }

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

  /* Hero mini stats — full width, horizontally scrollable */
  .hero-mini-stats {
    width: 100%;
    padding: 0.875rem 1rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .hero-mini-stat {
    padding: 0 0.75rem;
    flex-shrink: 0;
  }

  .hero-mini-val {
    font-size: 1.125rem;
  }

  .hero-mini-label {
    font-size: 0.6875rem;
  }

  .hero-mini-stats::-webkit-scrollbar {
    display: none;
  }

  /* Hide hero visual on mobile to avoid overflow */
  .hero-visual {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .floating-card {
    display: none !important;
  }

  /* ── SERVICES ──────────────────────────── */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    margin: 0 -1.25rem;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
    min-height: 340px;
    height: auto;
    padding: 2rem 1.625rem;
  }

  /* Hide Bento Visualizations for clean Mobile Speed */
  .bento-visualization {
    display: none !important;
  }

  /* Services filter */
  .services-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .services-filter .filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    flex: 0 1 auto;
  }

  /* ── ABOUT ──────────────────────────────── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* About stat card: reposition so it doesn't overflow */
  .about-stat-card {
    position: static !important;
    display: inline-flex;
    margin-top: 1.25rem;
    bottom: auto;
    right: auto;
  }

  /* ── TIMELINE PROCESS ────────────────────── */
  .timeline {
    padding-left: 0;
  }

  .timeline-line,
  .timeline-glow-line {
    left: 20px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-of-type(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 3.5rem;
    padding-right: 0;
    justify-content: flex-start;
    margin-bottom: 4rem;
  }

  .timeline-node,
  .timeline-item:nth-of-type(even) .timeline-node {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 0.9375rem;
    left: 20px;
    right: auto;
    transform: translateX(-50%);
    top: 15px;
  }

  .timeline-item.active .timeline-node,
  .timeline-item:nth-of-type(even).active .timeline-node {
    transform: translateX(-50%) scale(1.05);
  }

  .timeline-content {
    padding: 1.75rem 1.5rem;
  }

  .timeline-card-body {
    flex-direction: column;
    gap: 1.25rem;
  }

  .timeline-svg-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0.35rem;
  }

  /* ── CONSULTATION ─────────────────────────── */
  .consultation-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .track-description {
    padding-left: 0;
  }

  .consultation-image-card {
    aspect-ratio: 1.2;
  }

  /* ── WHY US ──────────────────────────────── */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── CAREERS ─────────────────────────────── */
  .careers-culture {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .jobs-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .jobs-filter .filter-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  .jobs-grid,
  .intern-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── TEAM ────────────────────────────────── */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  /* ── TESTIMONIALS ────────────────────────── */
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── CONTACT & ESTIMATOR ─────────────────── */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }

  .contact-socials {
    justify-content: center;
  }

  .contact-form {
    padding: 1.75rem 1.5rem;
  }

  .project-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .project-option-card {
    padding: 0.875rem;
    font-size: 0.875rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── NEWSLETTER ──────────────────────────── */
  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── FOOTER ──────────────────────────────── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

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

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

  /* Buttons */
  .btn-lg {
    padding: 1rem 1.875rem;
    font-size: 0.9375rem;
  }

  /* ── CAREERS DRAWER ──────────────────────── */
  .careers-drawer {
    width: 100%;
    right: 0;
    transform: translateX(100%);
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem 1.5rem;
  }

  /* ── SERVICE DETAILS ─────────────────────── */
  .details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .details-title {
    font-size: 2.25rem;
  }

  .details-hero {
    padding: 3.5rem 0 2rem;
  }

  .spec-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   3. SMALL MOBILE SCREENS (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
  :root {
    --fs-5xl: 2.125rem;
    --fs-4xl: 1.875rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  .subsection-title {
    font-size: 1.625rem;
    margin: 3rem 0 1.5rem;
  }

  /* ── HERO ────────────────────────────── */
  .hero {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2.125rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Hero CTA stacks vertically */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

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

  /* Hero mini stats hidden — too cramped */
  .hero-mini-stats {
    display: none;
  }

  /* ── SERVICES ────────────────────────── */
  .service-card {
    flex: 0 0 90%;
    min-height: 300px;
    padding: 1.75rem 1.375rem;
  }

  /* ── ABOUT ───────────────────────────── */
  .about-highlights {
    grid-template-columns: 1fr;
  }

  /* ── CONTACT ─────────────────────────── */
  .project-options-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  /* ── CAREERS ─────────────────────────── */
  .careers-culture {
    grid-template-columns: 1fr;
  }

  /* ── BUTTONS ─────────────────────────── */
  .btn-lg {
    padding: 0.9375rem 1.5rem;
    font-size: 0.9rem;
  }

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

  .stat-card {
    padding: 1.5rem 1rem;
  }

  /* Consultation card aspect ratio */
  .consultation-image-card {
    aspect-ratio: 1.2;
  }
}

/* ===========================================
   4. EXTRA SMALL (max-width: 375px)
   =========================================== */
@media (max-width: 375px) {
  .container {
    padding: 0 0.875rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* ── NAVBAR ─────────────────────────────── */
  .navbar {
    padding: 0.875rem 0;
  }

  .nav-links {
    width: min(300px, 100vw);
  }

  /* ── HERO ───────────────────────────────── */
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .dashboard-mockup .mockup-body {
    min-height: 200px;
  }

  .mockup-main {
    padding: 1rem;
  }

  .mockup-chart {
    height: 90px;
  }

  /* ── SECTION TEXT ───────────────────────── */
  .section-title {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    font-size: 0.8125rem;
  }

  .subsection-title {
    font-size: 1.375rem;
    margin: 2.5rem 0 1.25rem;
  }

  /* ── SERVICES CAROUSEL ─────────────────── */
  .services-grid {
    gap: 1rem;
    padding: 0.75rem 0.875rem;
    margin: 0 -0.875rem;
  }

  .service-card {
    flex: 0 0 calc(100vw - 3rem);
    min-height: 260px;
    padding: 1.5rem 1.25rem;
  }

  .service-card h3 {
    font-size: 1.125rem;
  }

  .service-card p {
    font-size: 0.875rem;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.375rem;
  }

  /* ── SERVICES FILTER ───────────────────── */
  .services-filter .filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* ── TECH STACK ────────────────────────── */
  .tech-pill {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  /* ── ABOUT ─────────────────────────────── */
  .about-content p {
    font-size: 0.9375rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .highlight {
    font-size: 0.875rem;
  }

  /* ── STATS ─────────────────────────────── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.03em;
  }

  /* ── TIMELINE ──────────────────────────── */
  .timeline-content {
    padding: 1.25rem 1rem;
  }

  .timeline-content h4 {
    font-size: 1.125rem;
  }

  .timeline-content p {
    font-size: 0.8125rem;
  }

  .timeline-item,
  .timeline-item:nth-of-type(even) {
    padding-left: 3rem;
    margin-bottom: 3rem;
  }

  .timeline-node,
  .timeline-item:nth-of-type(even) .timeline-node {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.8125rem;
  }

  /* ── CONSULTATION ──────────────────────── */
  .consultation-content p {
    font-size: 0.9375rem;
  }

  .track-header h4 {
    font-size: 1rem;
  }

  .track-description {
    font-size: 0.875rem;
    padding-left: 0;
  }

  .consultation-card-badge {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  /* ── WHY US ────────────────────────────── */
  .why-card {
    padding: 1.75rem 1.25rem;
  }

  .why-card i {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .why-card h4 {
    font-size: 1.0625rem;
  }

  .why-card p {
    font-size: 0.875rem;
  }

  /* ── CAREERS ───────────────────────────── */
  .careers-culture {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .culture-card {
    padding: 1.5rem 1.25rem;
  }

  .jobs-filter .filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .job-card {
    padding: 1.5rem 1.25rem;
  }

  .job-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .job-header h4 {
    font-size: 1.0625rem;
  }

  .job-card p {
    font-size: 0.875rem;
  }

  .intern-card {
    padding: 1.5rem 1.25rem;
  }

  /* ── TESTIMONIALS ──────────────────────── */
  .testimonial-card {
    width: calc(100vw - 3rem);
    padding: 1.5rem 1.25rem;
  }

  .testimonial-card p {
    font-size: 0.875rem;
  }

  .testimonial-author strong {
    font-size: 0.875rem;
  }

  .testimonial-author span {
    font-size: 0.6875rem;
  }

  /* ── FAQ ────────────────────────────────── */
  .faq-question {
    padding: 1.125rem 0.875rem;
    font-size: 0.875rem;
  }

  .faq-answer-inner {
    padding: 0 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  /* ── CONTACT & ESTIMATOR ───────────────── */
  .contact-form {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .form-section-title {
    font-size: 0.75rem;
  }

  .project-option-card {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }

  .estimator-output {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .estimator-price {
    font-size: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  /* ── NEWSLETTER ────────────────────────── */
  .newsletter-inner h2 {
    font-size: 1.625rem;
  }

  .newsletter-inner p {
    font-size: 0.9375rem;
  }

  /* ── BUTTONS ───────────────────────────── */
  .btn-lg {
    padding: 0.8125rem 1.125rem;
    font-size: 0.8125rem;
  }

  .btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.75rem;
  }

  /* ── FOOTER ────────────────────────────── */
  .footer-legal {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
  }

  .footer-bottom p,
  .footer-legal a {
    font-size: 0.75rem;
  }

  .footer-col a {
    font-size: 0.875rem;
  }

  /* ── CAREERS DRAWER ────────────────────── */
  .careers-drawer {
    padding: 2rem 1.25rem;
  }

  .drawer-header h3 {
    font-size: 1.25rem;
  }
}

/* ===========================================
   5. ULTRA SMALL (max-width: 320px)
   =========================================== */
@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8125rem;
  }

  .hero-badge {
    font-size: 0.5625rem;
    padding: 0.3rem 0.625rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .services-grid {
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
  }

  .service-card {
    flex: 0 0 calc(100vw - 2.5rem);
    min-height: 240px;
    padding: 1.25rem 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.625rem;
  }

  .stat-card {
    padding: 1rem 0.625rem;
  }

  .testimonial-card {
    width: calc(100vw - 2.5rem);
    padding: 1.25rem 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
  }

  .consultation-card-badge {
    font-size: 0.6875rem;
    padding: 0.625rem 0.75rem;
  }

  .nav-links {
    width: 100vw;
  }

  .timeline-item,
  .timeline-item:nth-of-type(even) {
    padding-left: 2.5rem;
  }

  .timeline-node,
  .timeline-item:nth-of-type(even) .timeline-node {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.75rem;
  }
}