/* ==========================================================================
   BREAD SQUARE STUDIO - RESPONSIVE & MOBILE-FIRST STYLESHEET
   Flawless presentation, animations & conversions across 320px to 4K
   ========================================================================== */

/* Universal Viewport & Horizontal Overflow Restraints */
html, body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (SMOOTH ENTRANCE)
   ========================================================================== */
.animate-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp FAB Pulse Animation */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1200;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  z-index: -1;
  animation: pulse-ring 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   MOBILE STICKY BOTTOM QUICK-ACTION CONVERSION BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background: rgba(9, 10, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1400;
  padding: 8px 16px;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 48px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mobile-bottom-btn .icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-btn .icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.mobile-bottom-btn:active,
.mobile-bottom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-medium);
}

.mobile-bottom-btn.highlight-call {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.mobile-bottom-btn.highlight-call .icon,
.mobile-bottom-btn.highlight-call .text {
  color: #ef4444 !important;
  fill: #ef4444 !important;
}

.mobile-bottom-btn.highlight-call .icon svg {
  fill: #ef4444 !important;
}

.mobile-bottom-btn.highlight-call:hover,
.mobile-bottom-btn.highlight-call:active {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.mobile-bottom-btn.highlight-wa {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.08);
}

.mobile-bottom-btn.highlight-audit {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px var(--brand-orange-glow);
  font-weight: 800;
}

/* ==========================================================================
   BREAKPOINTS: LARGE TABLETS & SMALL LAPTOPS (< 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .mega-menu-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .mega-promo-card {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    margin-top: 10px;
  }
  .growth-ladder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-top-grid .footer-col-contact {
    grid-column: span 4;
    margin-top: 20px;
  }
}

/* ==========================================================================
   BREAKPOINTS: TABLETS & MOBILE LANDSCAPE (< 992px)
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --nav-height: 74px;
  }

  /* Sticky Header Pinned Position & Z-Index Coordination */
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1700;
  }

  /* Switch Navigation to Mobile */
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .header-actions .phone-link {
    display: none;
  }
  .header-actions button[data-open-modal="consult"] {
    display: none; /* Accessible in mobile drawer and bottom bar */
  }

  /* Hero Section */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin-bottom: 16px !important;
  }
  .hero-tagline .badge-pill {
    white-space: nowrap !important;
    font-size: clamp(0.5rem, 2.3vw, 0.68rem) !important;
    letter-spacing: 0.025em !important;
    padding: 4px 8px !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust-strip {
    justify-content: center;
  }
  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
  }

  /* Hero Showreel HUD on Tablet */
  .hero-showreel-hud {
    margin-top: 30px;
    padding: 14px;
  }
  .hud-play-btn {
    width: 52px;
    height: 52px;
  }
  .hud-play-btn svg {
    width: 20px;
    height: 20px;
  }
  .hud-play-label {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  .hud-audio-bar {
    padding: 6px 10px;
  }
  .hud-audio-info {
    font-size: 0.72rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Philosophy */
  .philosophy-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Interactive Calculator Tablet Stacking */
  .calculator-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .calculator-card {
    padding: 32px 24px !important;
  }

  /* Case Studies v2 on Tablet */
  .case-card-v2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 20px !important;
  }
  .case-device-col {
    order: -1;
    width: 100%;
  }
  .device-mockup.phone-frame {
    max-width: 260px;
  }
  .device-mockup.laptop-frame {
    max-width: 100%;
  }
  .case-challenge-box {
    padding: 14px;
  }
  .case-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .case-metric-box {
    padding: 12px;
  }
  .case-actions {
    flex-direction: column;
  }
  .case-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Filter Tabs on Tablet */
  .case-filter-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 8px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .case-filter-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  /* Grid column safety to prevent overflow */
  .hero-grid > *,
  .calculator-grid > *,
  .casestudies-grid-v2 > *,
  .case-card-v2 > * {
    min-width: 0;
    max-width: 100%;
  }

  /* 3D Stacking Cards (Tablet) */
  .services-stack-track,
  .benefits-stack-track,
  .why-stack-track {
    max-width: 680px;
    gap: 32px;
  }
  .service-card.js-stack-card {
    padding: 26px 26px;
    top: calc(90px + var(--card-index, 0) * 16px);
  }
  .service-card-title {
    font-size: 1.35rem;
  }
  .service-card-desc {
    font-size: 0.88rem;
  }
  .benefits-stack-track {
    gap: 28px;
  }
  .ladder-card.js-stack-card {
    padding: 22px 24px;
    top: calc(85px + var(--card-index, 0) * 10px);
  }
  .ladder-card-title {
    font-size: 1.25rem;
  }
  .ladder-card-desc {
    font-size: 0.86rem;
  }
  .why-card.js-stack-card {
    padding: 26px 26px;
    top: calc(90px + var(--card-index, 0) * 14px);
  }
  .why-card-title {
    font-size: 1.25rem;
  }
  .why-card-desc {
    font-size: 0.88rem;
  }

  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Accordion */
  .faq-question-btn {
    padding: 16px;
  }
  .faq-question-text {
    font-size: 0.98rem;
  }
  .faq-answer-content {
    padding: 0 16px 18px 16px;
    font-size: 0.9rem;
  }

  /* CTA Banner */
  .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-banner-card {
    padding: 38px 24px;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .footer-top-grid .footer-col-brand {
    grid-column: span 2;
  }
  .footer-top-grid .footer-col-contact {
    grid-column: span 2;
  }

  /* Showreel Modal (Tablets) */
  .showreel-modal-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    padding: 24px 20px !important;
    width: 95% !important;
    max-width: 600px !important;
    max-height: 88vh !important;
    margin: auto !important;
    overflow: visible !important;
  }
  .showreel-modal-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .showreel-modal-topbar .modal-close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 34px !important;
    height: 34px !important;
  }

  .showreel-modal-header {
    grid-area: auto !important;
    padding-right: 0 !important;
    margin-bottom: 14px !important;
  }
  .showreel-tabs {
    grid-area: auto !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    margin-bottom: 14px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .showreel-tabs::-webkit-scrollbar {
    display: none;
  }
  .showreel-player-wrapper {
    grid-area: auto !important;
    width: 100% !important;
  }
  .showreel-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .showreel-hud-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .showreel-equalizer-bars {
    display: none;
  }
  .showreel-modal-footer {
    grid-area: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }
  .showreel-actions .btn {
    width: 100%;
  }

  /* Disable Tilt Effect on Touch Screens for High Performance */
  .js-tilt-card {
    transform: none !important;
  }
  .tilt-glare {
    display: none !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: MOBILE PHONES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Refined root font scale for mobile calibration */
  html {
    font-size: 15px;
  }

  body {
    padding-bottom: 74px; /* Space for sticky bottom bar */
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .mobile-bottom-bar {
    display: grid;
  }

  .whatsapp-fab {
    display: none; /* Replaced by the WhatsApp bottom-bar button on mobile */
  }

  .top-bar {
    display: none; /* Kept clean on mobile */
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

  /* -------------------------------------------------------------------------
     GLOBAL SMALL & PROFESSIONAL TYPOGRAPHY SCALE (< 768px)
     Disciplined, compact, executive hierarchy for sleek agency aesthetic
     ------------------------------------------------------------------------- */

  /* Main & Page Hero Titles */
  h1,
  .hero-title,
  .page-hero-title,
  [style*="font-size: clamp(2.4rem"] {
    font-size: clamp(1.48rem, 5vw, 1.82rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
  }

  /* Hero Subtitles / Lead Paragraphs */
  .hero-description,
  .page-hero-desc,
  [style*="font-size: 1.15rem"] {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
    color: var(--text-muted) !important;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 26px !important;
  }

  .section-header .section-tag,
  .badge-pill {
    font-size: 0.66rem !important;
    padding: 4px 10px !important;
    letter-spacing: 0.06em !important;
  }

  .section-header .section-title,
  section h2,
  .section-title,
  [style*="font-size: clamp(2rem"],
  [style*="font-size: 2.2rem"] {
    font-size: clamp(1.22rem, 4.2vw, 1.45rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 12px !important;
  }

  .section-header .section-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* Card Titles & H3 */
  h3,
  .service-card-title,
  .case-card-title,
  .modal-container h3,
  .showreel-modal-title,
  .cta-banner-title,
  .contact-form-title,
  [style*="font-size: 1.8rem"],
  [style*="font-size: 1.5rem"],
  [style*="font-size: 1.4rem"] {
    font-size: 1.12rem !important;
    line-height: 1.3 !important;
  }

  /* Body Paragraphs & Card Descriptions */
  p,
  .service-card-desc,
  .why-card p,
  .review-card-text,
  .cta-banner-desc,
  [style*="font-size: 1.05rem"],
  [style*="font-size: 0.95rem"],
  [style*="font-size: 0.94rem"] {
    font-size: 0.82rem !important;
    line-height: 1.52 !important;
  }

  /* Buttons & Action Controls */
  .btn {
    font-size: 0.82rem !important;
    padding: 10px 18px !important;
    letter-spacing: 0.02em !important;
  }

  .btn-lg {
    font-size: 0.85rem !important;
    padding: 12px 20px !important;
  }

  .btn-sm {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
  }

  .hero-section {
    padding: 34px 0 46px 0;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 12px 18px !important;
    font-size: 0.85rem !important;
  }

  /* Mobile Trust Strip */
  .hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 8px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }

  .trust-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 8px 10px !important;
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    font-size: 0.72rem !important;
  }

  .trust-divider {
    display: none;
  }

  /* Hero Live Visual Card */
  .hero-visual-card {
    padding: 18px 14px !important;
  }

  .hero-visual-body {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-metric-box {
    padding: 12px 8px;
    text-align: center;
  }

  .metric-number {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
  }

  .metric-label {
    font-size: 0.64rem !important;
    letter-spacing: 0.03em !important;
  }

  .hero-metric-box.wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  /* Services Directory & Cards */
  .service-card {
    padding: 20px 15px !important;
  }

  .service-sub-list {
    gap: 5px;
  }

  .service-sub-chip {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }

  /* Philosophy Section */
  .philosophy-section {
    padding: 50px 0;
  }

  .philosophy-quote {
    padding-left: 14px !important;
    font-size: 1.02rem !important;
    line-height: 1.45 !important;
    border-left-width: 3px !important;
  }

  .philosophy-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Growth Ladder */
  .growth-ladder-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ladder-card {
    padding: 16px 14px !important;
  }

  .ladder-number {
    font-size: 1.2rem !important;
  }

  .ladder-title {
    font-size: 0.95rem !important;
  }

  .ladder-desc {
    font-size: 0.78rem !important;
  }

  /* Case Studies v2 */
  .case-card-v2 {
    padding: 18px 14px !important;
    gap: 18px !important;
  }

  .case-card-tag {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
  }

  .case-card-title {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }

  .case-card-highlight {
    font-size: 1.02rem !important;
    margin-bottom: 12px !important;
  }

  .case-point .point-badge {
    font-size: 0.7rem !important;
  }

  .case-point .point-text {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  .case-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .case-metric-box {
    padding: 10px 8px !important;
    text-align: center;
  }

  .case-metric-val {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
  }

  .case-metric-lbl {
    font-size: 0.62rem !important;
    text-transform: uppercase !important;
  }

  .case-filter-tabs {
    gap: 6px;
    padding-bottom: 8px;
  }

  .case-filter-btn {
    padding: 6px 12px !important;
    font-size: 0.74rem !important;
  }

  /* Why Choose Us 3D Stacking Cards (Mobile) */
  .why-section {
    padding: 60px 0 90px 0 !important;
  }
  .why-stack-header {
    margin-bottom: 24px !important;
  }
  .stack-track-indicator,
  .why-stack-indicator {
    font-size: 0.64rem !important;
    padding: 4px 10px !important;
    margin-top: 12px !important;
  }
  .services-stack-track,
  .benefits-stack-track,
  .why-stack-track {
    gap: 20px !important;
    width: 100% !important;
  }

  /* Services Stacking Mobile */
  .service-card.js-stack-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    top: calc(75px + var(--card-index, 0) * 10px) !important;
  }
  .service-card-header-bar {
    margin-bottom: 12px !important;
  }
  .service-card-badge-wrap {
    gap: 8px !important;
  }
  .service-card-num-chip {
    font-size: 0.78rem !important;
    padding: 2px 8px !important;
  }
  .service-card-tag-pill {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }
  .service-card-status {
    font-size: 0.6rem !important;
  }
  .service-card-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .service-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }
  .service-sub-list {
    margin: 14px 0 16px !important;
    gap: 5px !important;
  }
  .service-card-bottom {
    padding-top: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .service-benchmark-badge {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }
  .service-card-link {
    font-size: 0.78rem !important;
  }

  /* Benefits Stacking Mobile */
  .ladder-card.js-stack-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    top: calc(70px + var(--card-index, 0) * 8px) !important;
  }
  .ladder-card-header-bar {
    margin-bottom: 8px !important;
  }
  .ladder-stage-chip {
    font-size: 0.74rem !important;
    padding: 2px 8px !important;
  }
  .ladder-tag-pill {
    font-size: 0.64rem !important;
    padding: 2px 8px !important;
  }
  .ladder-progress-chip {
    font-size: 0.62rem !important;
  }
  .ladder-progress-track {
    margin: 6px 0 12px !important;
  }
  .ladder-card-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }
  .ladder-card-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
  .ladder-card-footer-bar {
    padding-top: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .ladder-card-chips {
    gap: 5px !important;
  }
  .ladder-metric-chip {
    font-size: 0.66rem !important;
    padding: 2px 7px !important;
  }
  .ladder-card-stage-label {
    font-size: 0.66rem !important;
  }

  /* Why Choose Us Mobile */
  .why-card.js-stack-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    top: calc(75px + var(--card-index, 0) * 10px) !important;
  }
  .why-card-header-bar {
    margin-bottom: 12px !important;
  }
  .why-card-badge-wrap {
    gap: 8px !important;
  }
  .why-card-num-chip {
    font-size: 0.78rem !important;
    padding: 2px 8px !important;
  }
  .why-card-tag-pill {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }
  .why-card-status {
    font-size: 0.6rem !important;
  }
  .why-card-main-content {
    margin-bottom: 14px !important;
  }
  .why-card-title {
    font-size: 1.1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .why-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }
  .why-card-footer-bar {
    padding-top: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .why-card-chips {
    gap: 6px !important;
    width: 100% !important;
  }
  .why-benefit-chip {
    font-size: 0.66rem !important;
    padding: 3px 8px !important;
  }
  .why-card-link {
    font-size: 0.75rem !important;
  }

  .review-card {
    padding: 18px 14px !important;
  }

  .review-card-text {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .review-author-name {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }

  .review-author-meta {
    font-size: 0.68rem !important;
    color: var(--text-dim) !important;
  }

  /* FAQ Accordion */
  .faq-question-btn {
    padding: 13px 14px !important;
  }

  .faq-question-text {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
  }

  .faq-answer-content {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    padding: 0 14px 13px 14px !important;
  }

  /* CTA Banner */
  .cta-banner-section {
    padding: 50px 0 !important;
  }

  .cta-banner-card {
    padding: 24px 16px !important;
  }

  .cta-banner-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  .cta-banner-desc {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .cta-form {
    padding: 16px 12px !important;
  }

  /* Form Elements - 16px prevents iOS browser auto-zoom on focus */
  .form-input, .form-select, .form-textarea,
  input[type="text"], input[type="tel"], input[type="email"], select, textarea {
    font-size: 16px !important;
    padding: 11px 12px !important;
  }

  /* Site Footer */
  .site-footer {
    padding: 50px 0 20px 0 !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
  }

  .footer-column-title,
  .footer-col-title {
    font-size: 0.8rem !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 10px !important;
  }

  .footer-links-list li a,
  .footer-links li a {
    font-size: 0.76rem !important;
  }

  .footer-contact-item {
    font-size: 0.76rem !important;
  }

  .footer-bottom-bar {
    font-size: 0.72rem !important;
    gap: 14px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-copy {
    font-size: 0.72rem !important;
  }

  .footer-creator-line {
    font-size: 0.8rem !important;
  }

  .creator-link {
    font-size: 0.84rem !important;
  }

  .footer-legal-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .footer-legal-links a {
    font-size: 0.7rem !important;
  }

  /* Mobile Nav Drawer Typography */
  .mobile-nav-link {
    font-size: 0.9rem !important;
    padding: 9px 12px !important;
  }

  .mobile-sub-pillar-title {
    font-size: 0.74rem !important;
  }

  .mobile-sub-links li a {
    font-size: 0.76rem !important;
  }

  .mobile-drawer-btn {
    font-size: 0.82rem !important;
    padding: 11px 16px !important;
  }

  /* Modals (Mobile General) */
  .modal-backdrop {
    padding: 16px 10px !important;
    align-items: center !important;
  }

  .modal-container {
    padding: 24px 16px 20px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    border-radius: 16px !important;
  }

  /* Orange X close button: pristine, transparent, no circle highlight */
  .modal-close-btn {
    top: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--brand-orange-bright) !important;
  }

  .showreel-modal-topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .showreel-modal-topbar .modal-close-btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 32px !important;
    height: 32px !important;
  }

  .modal-close-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: var(--brand-orange-bright) !important;
  }

  .modal-close-btn:hover,
  .modal-close-btn:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .modal-container h3, .showreel-modal-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }

  .modal-container p, .showreel-modal-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .modal-container label {
    font-size: 0.76rem !important;
  }

  /* -------------------------------------------------------------------------
     SHOWREEL MODAL MOBILE REFINEMENT
     Clean, properly aligned, compact video player and orange X button
     ------------------------------------------------------------------------- */
  .showreel-modal-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    padding: 18px 14px 16px 14px !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 92vh !important;
    border-radius: 16px !important;
    margin: auto !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 85, 0, 0.15) !important;
  }

  .showreel-modal-header {
    margin-bottom: 10px !important;
    padding-right: 0 !important;
  }

  .showreel-badge-group {
    gap: 6px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
  }

  .showreel-badge-group .badge-pill,
  .showreel-live-tag {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
  }

  .showreel-modal-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Compact Horizontal Tabs */
  .showreel-tabs {
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding-bottom: 4px !important;
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }

  .showreel-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .showreel-tab {
    padding: 5px 11px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Mobile Video Player */
  .showreel-player-wrapper {
    border-radius: 12px !important;
  }

  .showreel-screen {
    aspect-ratio: 16 / 9 !important;
    max-height: 195px !important;
  }

  .showreel-screen-overlay {
    padding: 10px 12px !important;
  }

  .showreel-active-chapter-hud {
    font-size: 0.65rem !important;
    gap: 6px !important;
  }

  .showreel-active-chapter-hud .hud-indicator {
    font-size: 0.6rem !important;
    padding: 1px 5px !important;
  }

  .showreel-active-chapter-hud .hud-res {
    display: none !important;
  }

  /* Scaled down Play Button so it doesn't crowd out text */
  .showreel-pulse-play {
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.45) !important;
  }

  .showreel-pulse-play svg {
    width: 17px !important;
    height: 17px !important;
    margin-left: 2px !important;
  }

  /* Bottom HUD within video */
  .showreel-hud-bottom {
    gap: 4px !important;
  }

  .showreel-hud-title {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
  }

  .showreel-hud-desc {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px !important;
  }

  .showreel-equalizer-bars {
    display: none !important;
  }

  /* Showreel Footer Actions */
  .showreel-modal-footer {
    margin-top: 12px !important;
    padding-top: 10px !important;
    gap: 10px !important;
  }

  .showreel-metric-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .showreel-metric-pill {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .showreel-actions {
    width: 100% !important;
  }

  .showreel-actions .btn {
    width: 100% !important;
    font-size: 0.78rem !important;
    padding: 10px 14px !important;
    justify-content: center !important;
  }

  /* Counter Stats on Sub-pages */
  .stat-counter-val {
    font-size: 1.45rem !important;
  }

  /* -------------------------------------------------------------------------
     ESTIMATE YOUR BRAND SCALE & ROI CALCULATOR (MOBILE REDESIGN)
     Clean, structured 2-col chips, full-width presets, un-cramped results card
     ------------------------------------------------------------------------- */
  .calculator-section {
    padding: 45px 0 55px 0 !important;
  }

  .calculator-card {
    padding: 20px 14px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 85, 0, 0.08) !important;
  }

  .calculator-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .calculator-inputs {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .calc-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .calc-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .calc-label-hint {
    font-size: 0.7rem !important;
    color: var(--text-dim) !important;
    font-weight: 500 !important;
  }

  /* Industry Sector Chips: Clean 2-column grid, 5th spans both columns */
  .calc-industry-chips {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .calc-chip {
    padding: 8px 6px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 38px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .calc-chip:last-child {
    grid-column: span 2 !important;
  }

  /* Slider Header: Stacked cleanly so label and budget number don't collide */
  .calc-slider-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin-bottom: 2px !important;
  }

  .calc-budget-display {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--brand-orange-bright) !important;
  }

  .calc-slider {
    margin: 8px 0 !important;
    height: 6px !important;
  }

  .calc-slider-bounds {
    font-size: 0.68rem !important;
    color: var(--text-dim) !important;
    padding: 0 2px !important;
  }

  /* Quick Presets: Symmetrical 3 items on row 1, 2 full-width items on row 2 */
  .calc-preset-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .calc-preset-btn {
    flex: 1 1 calc(33.333% - 5px) !important;
    padding: 7px 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
  }

  .calc-preset-btn:nth-child(4),
  .calc-preset-btn:nth-child(5) {
    flex: 1 1 calc(50% - 5px) !important;
  }

  .calc-note {
    padding: 9px 12px !important;
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
    gap: 8px !important;
    border-radius: var(--radius-sm) !important;
    margin-top: 4px !important;
  }

  /* Results Card: Comfortable padding, no inner squeeze */
  .calculator-results {
    padding: 16px 12px !important;
    border-radius: var(--radius-md) !important;
    background: rgba(11, 12, 16, 0.96) !important;
    margin-top: 4px !important;
  }

  .calc-results-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .calc-results-badge {
    font-size: 0.64rem !important;
    letter-spacing: 0.06em !important;
  }

  .calc-results-model {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--brand-orange-bright) !important;
  }

  /* Metrics Grid: 2x2 with proportional bold values */
  .calc-metrics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .calc-metric-box {
    padding: 9px 6px !important;
    text-align: center !important;
    border-radius: 8px !important;
  }

  .calc-metric-val {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    word-break: normal !important;
  }

  .calc-metric-lbl {
    font-size: 0.62rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    margin-top: 3px !important;
    line-height: 1.25 !important;
    color: var(--text-muted) !important;
  }

  /* Pipeline Highlight Box */
  .calc-pipeline-box {
    padding: 11px 10px !important;
    margin-top: 8px !important;
    text-align: center !important;
    border-radius: 8px !important;
  }

  .calc-pipeline-label {
    font-size: 0.66rem !important;
    letter-spacing: 0.04em !important;
  }

  .calc-pipeline-val {
    font-size: 1.28rem !important;
    font-weight: 800 !important;
    margin: 2px 0 !important;
  }

  .calc-pipeline-sub {
    font-size: 0.64rem !important;
    line-height: 1.3 !important;
    color: var(--text-dim) !important;
  }

  #calcApplyBtn {
    width: 100% !important;
    font-size: 0.82rem !important;
    padding: 11px 16px !important;
    margin-top: 10px !important;
    border-radius: var(--radius-full) !important;
  }
}

/* ==========================================================================
   BREAKPOINTS: EXTRA SMALL PHONES (< 480px)
   ========================================================================== */
@media (max-width: 480px) {
  html {
    font-size: 14.5px;
  }

  /* Brand Logo & Controls */
  .logo-title {
    font-size: 1rem !important;
  }
  .logo-tagline {
    font-size: 0.5rem !important;
  }
  .logo-symbol {
    width: 36px !important;
    height: 36px !important;
  }
  .hamburger-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 9px 7px !important;
  }
  .hamburger-btn span {
    width: 18px !important;
  }
  .hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Single-line Hero Tagline on small phones */
  .hero-tagline .badge-pill {
    white-space: nowrap !important;
    font-size: clamp(0.44rem, 2.2vw, 0.54rem) !important;
    letter-spacing: 0.012em !important;
    padding: 3.5px 6.5px !important;
    gap: 4px !important;
  }
  .hero-tagline .badge-pill.dot::before {
    width: 5px !important;
    height: 5px !important;
  }

  /* Tightened Mobile Headings */
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.36rem, 4.8vw, 1.58rem) !important;
  }
  .section-header .section-title, section h2, .section-title {
    font-size: clamp(1.15rem, 3.8vw, 1.3rem) !important;
  }
  h3, .service-card-title, .case-card-title, .cta-banner-title {
    font-size: 1.05rem !important;
  }

  /* Padding & Layout Safety */
  .hero-visual-card {
    padding: 14px 10px !important;
  }
  .service-card {
    padding: 18px 12px !important;
  }
  .case-card {
    padding: 18px 12px !important;
  }
  .case-card-v2 {
    padding: 16px 10px !important;
  }
  .cta-banner-card {
    padding: 22px 14px !important;
  }

  /* Calculator Mobile Tweaks */
  .calculator-card {
    padding: 15px 10px !important;
  }
  .calc-chip {
    font-size: 0.7rem !important;
    padding: 7px 4px !important;
  }
  .calc-budget-display {
    font-size: 1.25rem !important;
  }
  .calc-slider-bounds span:nth-child(2),
  .calc-slider-bounds span:nth-child(3) {
    display: none;
  }
  .calc-metric-val {
    font-size: 1.05rem !important;
  }
  .calc-pipeline-val {
    font-size: 1.2rem !important;
  }
  .calc-pipeline-box {
    padding: 10px 8px !important;
  }

  /* Mockups */
  .device-mockup.phone-frame {
    border-width: 6px;
    border-radius: 26px;
    max-width: 210px;
  }
  .device-mockup.laptop-frame {
    border-width: 6px;
    border-radius: 10px;
    max-width: 100%;
  }

  /* Floating Stats */
  .hud-floating-stats {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .hud-stat-pill {
    padding: 6px 5px;
    min-width: 0;
  }
  .hud-stat-val {
    font-size: 0.95rem;
  }
  .hud-stat-lbl {
    font-size: 0.58rem;
  }
}

/* ==========================================================================
   BREAKPOINTS: ULTRA SMALL PHONES (< 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .calc-chip {
    font-size: 0.67rem !important;
    padding: 6px 2px !important;
  }
  .calc-preset-btn {
    font-size: 0.65rem !important;
    padding: 6px 2px !important;
  }
  .calc-metric-val {
    font-size: 0.98rem !important;
  }
  .calc-pipeline-val {
    font-size: 1.15rem !important;
  }
  .calc-pipeline-label {
    font-size: 0.62rem !important;
  }
}

