/* ========================================================================== 
   AURA — Shared Mobile & Tablet Overrides
   Loaded after style.css on every page.
   ========================================================================== */

/* Tablet and compact desktop */
@media (max-width: 992px) {
  .container {
    width: min(92%, 760px);
  }

  .section-padding {
    padding-block: 4.5rem;
  }

  .header-container {
    height: 70px;
  }

  .header.scrolled .header-container {
    height: 62px;
  }

  .header-actions {
    gap: 0.55rem;
  }

  .theme-toggle-btn,
  .mobile-menu-btn,
  .mobile-nav-close,
  .social-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav-drawer {
    width: min(360px, 90vw);
    max-width: none;
    padding: 1.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .mobile-nav-links a {
    min-height: 48px;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-block: 8rem 4rem;
  }

  .hero > .container {
    width: min(92%, 760px);
  }

  .hero-content {
    max-width: 720px;
    padding-block: 2rem;
  }

  .hero-stats-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    width: min(92%, 760px);
    margin-inline: auto;
  }

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

  .before-after-container {
    height: min(54vw, 460px);
  }

  .calc-wrapper {
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    max-height: calc(100dvh - 2rem);
  }

  /* Correct desktop-only inline grids used on inner pages. */
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.3fr 0.7fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}

/* Phones */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section-padding {
    padding-block: 3.75rem;
  }

  .calc-section,
  .faq-section {
    padding-block: 1.75rem;
  }

  .faq-section .section-header {
    margin-bottom: 1.5rem;
  }

  .faq-list {
    gap: 0.65rem;
  }

  .faq-question {
    min-height: 52px;
    padding: 0.75rem 0.9rem;
    gap: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .faq-arrow {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .faq-answer {
    padding: 0 0.9rem 0.9rem;
  }

  .faq-answer p {
    font-size: 0.82rem;
    line-height: 1.75;
  }

  .header-container {
    height: 64px;
    gap: 0.5rem;
  }

  .header.scrolled .header-container {
    height: 58px;
  }

  .logo-wrapper {
    gap: 0.55rem;
  }

  .logo-symbol {
    width: 38px;
    height: 38px;
  }

  .logo-name {
    font-size: 1.25rem;
    letter-spacing: 0.22em;
  }

  .header-actions .header-cta-quote-btn {
    min-height: 44px;
    padding-inline: 0.8rem !important;
  }

  .header-actions .header-cta-quote-btn .cta-icon-wrap {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding-block: 7rem 3rem;
    align-items: flex-start;
  }

  .hero-bg-img {
    object-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(14, 13, 12, 0.78), rgba(14, 13, 12, 0.9));
  }

  .hero-content {
    max-width: 100%;
    margin-inline: auto;
    padding-block: 2.5rem 1rem;
    text-align: center;
  }

  .hero-badge {
    max-width: 100%;
    margin-inline: auto;
    padding: 0.42rem 0.9rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-title,
  section[style*="padding: 9rem"] h1 {
    font-size: clamp(2.35rem, 10vw, 3.15rem) !important;
    line-height: 1.24 !important;
  }

  .hero-title-line:first-child,
  .hero-title-line:nth-child(2) {
    margin-inline: auto;
  }

  .hero-title-highlight .gold-accent {
    white-space: nowrap;
  }

  .hero-desc,
  section[style*="padding: 9rem"] p {
    font-size: 1.06rem !important;
    line-height: 1.75 !important;
  }

  .hero-desc {
    max-width: 34rem;
    margin-inline: auto;
    padding-right: 0;
    border-right: 0;
    text-align: center;
  }

  section[style*="padding: 9rem"] {
    padding: 8rem 0 3.75rem !important;
  }

  .hero-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .hero-btn-group .btn-primary,
  .hero-btn-group .btn-secondary {
    width: 190px;
    max-width: 68vw;
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
  }

  .cta-banner-content .btn-primary,
  .cta-banner-content .btn-secondary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .hero-stats-card {
    display: none;
  }

  .hero-stat-num {
    font-size: 1.35rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
    line-height: 1.4;
  }

  .trust-bar {
    margin-top: 0;
    padding-block: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .trust-item {
    min-height: 132px;
    padding: 1.1rem 0.75rem;
    justify-content: flex-start;
  }

  .trust-item:nth-child(odd) {
    border-inline-end: 1px solid var(--border-color);
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-color);
  }

  .trust-num {
    margin-bottom: 0.35rem;
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .trust-title {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .trust-sub {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.6;
  }

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

  .section-title,
  .cta-banner-title,
  .section-padding h2[style] {
    font-size: clamp(1.7rem, 7vw, 2.15rem) !important;
    line-height: 1.4 !important;
  }

  .section-desc,
  .cta-banner-desc {
    font-size: 0.98rem;
  }

  .about-page .section-padding {
    padding-block: 2.35rem;
  }

  .about-page .section-header {
    margin-bottom: 1.5rem;
  }

  .about-page .section-tag[style*="padding-right: 0"] {
    max-width: 100%;
    padding-inline: 1.2rem !important;
    white-space: nowrap;
    overflow: visible;
  }

  .about-page [style*="grid-template-columns: 1fr 1.2fr"] {
    gap: 1.5rem !important;
  }

  .about-page .about-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    text-align: center;
  }

  .about-page .about-stats-grid > div > div:first-child {
    font-size: 1.55rem !important;
    line-height: 1.25;
  }

  .about-page .about-stats-grid > div > div:last-child {
    margin-top: 0.25rem;
    font-size: 0.72rem !important;
    line-height: 1.5;
  }

  .about-page .about-values-grid {
    gap: 0.9rem !important;
  }

  .about-page .about-value-card {
    padding: 1.1rem !important;
  }

  .about-page .about-value-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }

  .about-page .about-value-heading .value-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin-bottom: 0;
  }

  .about-page .about-value-heading .value-icon svg {
    width: 22px;
    height: 22px;
  }

  .about-page .about-value-heading h3 {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    line-height: 1.4;
  }

  .about-page .about-value-card > p {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
  }

  .before-after-container {
    height: 320px;
    border-radius: var(--radius-md);
  }

  .ba-slider-handle {
    width: 48px;
    height: 48px;
  }

  .ba-caption-card {
    width: 100%;
    margin-top: 1.25rem;
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .ba-caption-info {
    width: 100%;
    min-width: 0;
  }

  .ba-caption-info h3 {
    max-width: 100%;
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .ba-caption-info p {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .ba-caption-card .btn-primary {
    width: min(100%, 240px);
    min-height: 44px;
    margin-inline: auto;
    padding: 0.65rem 1rem;
    align-self: center;
    justify-content: center;
    font-size: 0.86rem;
  }

  .services-grid,
  .portfolio-grid,
  .process-grid,
  .testimonials-grid,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-page .section-padding {
    padding-block: 2.25rem;
  }

  .home-page .section-header {
    margin-bottom: 1.5rem;
  }

  .home-page .portfolio-section [style*="margin-top: 3.5rem"] {
    margin-top: 1.5rem !important;
  }

  .home-page .services-grid,
  .home-page .portfolio-grid,
  .home-page .process-grid,
  .home-page .testimonials-grid {
    gap: 1rem;
  }

  .home-page .services-section:not(.mobile-cards-expanded) .service-card:nth-child(n + 3),
  .home-page .portfolio-section:not(.mobile-cards-expanded) .portfolio-card:nth-child(n + 3) {
    display: none;
  }

  .mobile-show-more {
    width: min(100%, 260px);
    min-height: 44px;
    margin: 1.25rem auto 0;
    padding: 0.65rem 1rem;
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--gold-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
  }

  .mobile-show-more svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform var(--transition-fast);
  }

  .mobile-show-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .service-card-body,
  .process-card,
  .testimonial-card {
    padding: 1.15rem;
  }

  .service-card-img-banner {
    height: 175px;
  }

  .home-page .service-card-floating-badge {
    top: 10px;
    right: 10px;
    padding: 0.28rem 0.65rem;
    font-size: 0.7rem;
  }

  .home-page .service-card-header {
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .home-page .service-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  .home-page .service-title,
  .home-page .process-title {
    font-size: 1.05rem;
  }

  .home-page .service-desc,
  .home-page .process-desc,
  .home-page .testimonial-quote {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .home-page .service-tags-wrapper {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .home-page .service-tag-chip {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }

  .home-page .service-card-footer {
    padding-top: 0.75rem;
  }

  .home-page .service-link {
    font-size: 0.84rem;
  }

  .portfolio-thumb {
    height: auto;
  }

  .portfolio-thumb img {
    height: 180px;
  }

  .home-page .portfolio-info {
    padding: 1rem 1.1rem 1.1rem;
  }

  .home-page .portfolio-tag {
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
  }

  .home-page .portfolio-title {
    font-size: 1.05rem;
  }

  .home-page .portfolio-meta {
    gap: 0.7rem;
    font-size: 0.76rem;
  }

  .home-page .process-card {
    min-height: 0;
  }

  .home-page .process-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    padding-left: 3rem;
  }

  .home-page .process-num {
    top: 1rem;
    left: 1rem;
    font-size: 2.25rem;
  }

  .home-page .process-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-bottom: 0;
    font-size: 1.2rem;
  }

  .home-page .process-heading .process-title {
    margin-bottom: 0;
  }

  .home-page .testimonial-stars {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
  }

  .home-page .testimonial-quote {
    margin-bottom: 1.1rem;
  }

  .home-page .testimonial-author {
    gap: 0.75rem;
    padding-top: 0.9rem;
  }

  .home-page .author-avatar {
    width: 42px;
    height: 42px;
  }

  .portfolio-filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.2rem 0 0.75rem;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .portfolio-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .services-page .service-detail-block {
    gap: 1.5rem !important;
    margin-bottom: 3.5rem !important;
  }

  .services-page .service-detail-media {
    order: 1 !important;
    width: 100%;
    height: min(72vw, 320px) !important;
  }

  .services-page .service-detail-content {
    order: 2 !important;
  }

  .services-page .service-detail-content .btn-primary {
    width: min(100%, 250px);
    min-height: 44px;
    margin-inline: auto;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
  }

  .contact-page .section-padding {
    padding-block: 1.5rem 2.5rem;
  }

  .contact-page {
    overflow-x: clip;
  }

  .contact-page .contact-hero {
    padding: 6.75rem 0 2.75rem !important;
  }

  .contact-page .contact-hero .container {
    width: calc(100% - 32px);
    max-width: 560px;
  }

  .contact-page .contact-hero .hero-badge {
    margin-bottom: 1rem;
    padding: 0.38rem 0.8rem;
    font-size: 0.75rem;
  }

  .contact-page .contact-hero h1 {
    margin-bottom: 0.85rem !important;
    font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
    line-height: 1.28 !important;
    text-wrap: balance;
  }

  .contact-page .contact-hero p {
    max-width: 34rem;
    font-size: 0.9rem !important;
    line-height: 1.75 !important;
  }

  .contact-page .contact-layout {
    gap: 1.25rem !important;
    min-width: 0;
  }

  .contact-page .contact-form-card {
    width: 100%;
    min-width: 0;
    padding: 1.1rem !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 28px rgba(23, 21, 19, 0.07) !important;
  }

  .contact-page .contact-form-card > h2 {
    font-size: 1.4rem !important;
  }

  .contact-page .contact-form-card > p {
    margin-bottom: 1.25rem !important;
    font-size: 0.82rem !important;
    line-height: 1.6;
  }

  .contact-page .contact-form-grid {
    gap: 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }

  .contact-page .contact-form-grid > div {
    min-width: 0;
  }

  .contact-page #consultationForm label {
    margin-bottom: 0.35rem !important;
    font-size: 0.82rem !important;
  }

  .contact-page #consultationForm input:not([type="hidden"]),
  .contact-page #consultationForm select,
  .contact-page .phone-input-group .country-code-select,
  .contact-page .phone-input-group #clientPhone {
    height: 44px !important;
    padding-block: 0 !important;
    padding-inline: 0.8rem !important;
    font-size: 16px !important;
  }

  .contact-page .phone-input-group .country-code-select {
    width: 100px;
    flex-basis: 100px;
  }

  .contact-page .phone-field-hint,
  .contact-page .phone-field-error {
    margin-top: 0.25rem;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .contact-page .contact-notes-group {
    margin-bottom: 1rem !important;
  }

  .contact-page #clientNotes {
    min-height: 96px;
    padding: 0.7rem 0.8rem !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .contact-page #consultationForm > .btn-primary {
    width: min(100%, 280px) !important;
    min-height: 44px;
    margin-inline: auto;
    padding: 0.65rem 1rem !important;
    display: flex;
    justify-content: center;
    font-size: 0.9rem !important;
  }

  .contact-page .contact-sidebar {
    gap: 0.85rem !important;
  }

  .contact-page .contact-info-card {
    min-width: 0;
    padding: 1.1rem !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 22px rgba(23, 21, 19, 0.05) !important;
  }

  .contact-page .contact-info-card > h3 {
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.65rem !important;
    font-size: 1.05rem !important;
  }

  .contact-page .contact-info-card > div[style*="flex-direction: column"] {
    gap: 0.85rem !important;
  }

  .contact-page .contact-info-card > div[style*="flex-direction: column"] > div {
    gap: 0.75rem !important;
  }

  .contact-page .contact-info-card .ui-vector-icon,
  .contact-page .contact-info-card .whatsapp-contact-icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  .contact-page .contact-info-card a,
  .contact-page .contact-info-card span,
  .contact-page .contact-info-card p {
    overflow-wrap: anywhere;
  }

  .contact-page .contact-showroom-card > div:last-child {
    height: 138px !important;
  }

  .calc-wrapper {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    gap: 1.5rem;
  }

  .calc-inputs {
    gap: 1.5rem;
  }

  .calc-chips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-chips-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 0.85rem) / 2);
    justify-self: center;
  }

  .calc-chip-label {
    min-height: 104px;
    padding: 0.9rem 0.55rem;
  }

  .calc-slider-box,
  .calc-result-card {
    padding: 1.25rem;
  }

  .calc-breakdown-item {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .calc-item-label {
    max-width: 62%;
  }

  .cta-banner-section {
    padding-block: 3.75rem;
  }

  .footer-main-content {
    padding-top: 3rem;
  }

  .footer-top {
    margin-bottom: 2.5rem;
  }

  .footer-col,
  .footer-col-brand {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-bottom {
    gap: 1.25rem;
  }

  .footer-legal-links {
    gap: 0.65rem;
    line-height: 1.7;
  }

  .footer-dot {
    display: none;
  }

  .whatsapp-float {
    display: none;
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .search-modal-overlay {
    padding-top: 8vh;
  }

  .search-modal-box {
    width: calc(100% - 24px);
  }

  /* Override inline desktop layouts shared by inner pages. */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.3fr 0.7fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  [style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }

  [style*="gap: 4rem"] {
    gap: 2rem !important;
  }

  [style*="margin-bottom: 6rem"] {
    margin-bottom: 4rem !important;
  }

  [style*="height: 460px"],
  [style*="height: 420px"] {
    height: 300px !important;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .logo-name {
    font-size: 1.08rem;
    letter-spacing: 0.17em;
  }

  .logo-symbol {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .header-cta-quote-btn {
    display: none !important;
  }

  .mobile-nav-drawer {
    width: 100vw;
  }

  .hero-title,
  section[style*="padding: 9rem"] h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem) !important;
  }

  .hero-stats-card {
    grid-template-columns: 1fr;
    text-align: right;
    width: calc(100% - 24px);
  }

  .hero-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.5rem;
  }

  .hero-stat-label {
    margin-top: 0;
    font-size: 0.76rem;
  }

  .before-after-container {
    height: 270px;
  }

  .calc-chips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .calc-chips-grid > :last-child:nth-child(odd) {
    width: calc((100% - 0.65rem) / 2);
  }

  .calc-chip-label {
    min-height: 96px;
    padding: 0.7rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .calc-chip-label small {
    font-size: 0.68rem !important;
    line-height: 1.4;
  }

  .calc-chip-icon.ui-vector-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.35rem;
  }

  .calc-chip-icon.ui-vector-icon svg {
    width: 21px;
    height: 21px;
  }

  .calc-breakdown-item {
    flex-direction: column;
    gap: 0.2rem;
  }

  .calc-item-label {
    max-width: none;
  }

  .btn-primary,
  .btn-secondary {
    max-width: 100%;
    white-space: normal;
  }

  .demo-toast {
    bottom: 82px;
  }
}

/* Short landscape phones */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 6rem 2.5rem;
  }

  .hero-content {
    padding-block: 1rem;
  }

  .hero-stats-card {
    position: static;
    margin-top: 1.5rem;
  }

  .mobile-nav-drawer {
    padding-block: 1rem;
  }

  .mobile-nav-links {
    gap: 0.35rem;
  }

  .mobile-nav-links a {
    min-height: 42px;
    padding-block: 0.5rem;
  }
}

/* Compact mobile CTA and footer */
@media (max-width: 768px) {
  .cta-banner-section {
    width: calc(100% - 24px);
    margin: 1.25rem auto;
    padding-block: 2.5rem;
    border-radius: 18px;
  }

  .about-cta-section {
    padding-block: 1.8rem;
  }

  .about-cta-section .container {
    width: calc(100% - 40px);
    max-width: 380px;
  }

  .about-cta-section .cta-banner-title {
    margin-bottom: 0.65rem;
    font-size: clamp(1.42rem, 6.4vw, 1.7rem) !important;
    line-height: 1.35 !important;
  }

  .about-cta-section .cta-banner-desc {
    margin-bottom: 1.2rem;
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .about-cta-section .btn-primary {
    min-height: 44px;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.8rem;
  }

  .portfolio-page .cta-banner-section {
    padding-block: 1.75rem;
  }

  .portfolio-page .cta-banner-content {
    max-width: 360px;
    padding-inline: 0.5rem;
  }

  .portfolio-page .cta-banner-title {
    margin-bottom: 0.7rem;
    font-size: clamp(1.45rem, 6.4vw, 1.75rem) !important;
    line-height: 1.35 !important;
  }

  .portfolio-page .cta-banner-desc {
    margin-bottom: 1.25rem;
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .portfolio-page .cta-banner-content > div:last-child {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem !important;
  }

  .portfolio-page .cta-banner-content .btn-primary,
  .portfolio-page .cta-banner-content .btn-secondary {
    width: min(100%, 210px) !important;
    min-height: 44px;
    margin-inline: auto;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.76rem !important;
  }

  .cta-banner-content > div:last-child {
    gap: 0.65rem !important;
  }

  .cta-banner-content .btn-primary,
  .cta-banner-content .btn-secondary {
    width: min(100%, 236px);
    min-height: 44px;
    padding: 0.55rem 0.9rem !important;
    gap: 0.45rem;
    font-size: 0.8rem !important;
    line-height: 1.35;
  }

  .cta-banner-content .whatsapp-inline-icon {
    width: 17px;
    height: 17px;
  }

  .footer-main-content {
    padding-top: 1.75rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1rem;
    margin-bottom: 0;
    padding-bottom: 1.4rem;
  }

  .footer-top > .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }

  .footer-top > .footer-col:nth-child(3) .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 1rem;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    padding: 0 0 1rem;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-col-brand {
    padding-bottom: 0.9rem;
  }

  .footer .brand-logo-image {
    width: 126px;
    height: 46px;
  }

  .footer-col-brand .logo-wrapper {
    margin-bottom: 0.65rem;
  }

  .footer-col-desc {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .footer-col h2 {
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
  }

  .footer-links a,
  .footer-contact-item {
    padding-block: 0.18rem;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .footer-contact-item {
    gap: 0.55rem;
  }

  .footer-contact-icon.ui-vector-icon,
  .footer-contact-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .footer-contact-item strong {
    font-size: 0.74rem;
  }

  .footer-trust-badges {
    gap: 0.28rem;
  }

  .trust-badge-pill {
    padding-block: 0.08rem;
    font-size: 0.72rem;
  }

  .footer-social-links {
    gap: 0.45rem;
    margin-top: 0.65rem;
  }

  .footer-bottom {
    min-height: 0;
    padding-block: 0.85rem;
    gap: 0.55rem;
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .footer-legal-links {
    gap: 0.3rem 0.7rem;
    line-height: 1.45;
  }
}

/* Unified compact CTA across all pages */
@media (max-width: 768px) {
  .cta-banner-section {
    width: calc(100% - 32px);
    margin: 1rem auto;
    padding-block: 1.75rem;
    border-radius: 16px;
  }

  .cta-banner-section .container {
    width: calc(100% - 28px);
  }

  .cta-banner-section .cta-banner-content,
  .cta-banner-section > .container {
    max-width: 420px;
  }

  .cta-banner-section .hero-badge {
    margin-bottom: 0.5rem !important;
  }

  .cta-banner-section .cta-banner-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.3rem, 6vw, 1.6rem) !important;
    line-height: 1.35 !important;
  }

  .cta-banner-section .cta-banner-desc {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .cta-banner-section .cta-banner-content > div:last-child {
    gap: 0.55rem !important;
  }

  .cta-banner-section .btn-primary,
  .cta-banner-section .btn-secondary {
    width: min(100%, 210px) !important;
    min-height: 44px;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.76rem !important;
  }
}

/* Compact separated trust cards on mobile */
@media (max-width: 768px) {
  .trust-bar {
    padding-block: 1rem;
  }

  .trust-bar .container {
    width: calc(100% - 24px);
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .trust-item,
  .trust-item:nth-child(odd),
  .trust-item:nth-child(-n + 2) {
    min-height: 116px;
    padding: 0.75rem 0.5rem;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 8px 20px rgba(23, 21, 19, 0.05);
  }

  .trust-num {
    margin-bottom: 0.2rem;
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .trust-title {
    margin-bottom: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .trust-sub {
    margin-top: 0.15rem;
    font-size: 0.67rem;
    line-height: 1.5;
  }
}

/* Mobile footer: links right, contact left, social icons centered below */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
  }

  .footer-col-brand {
    display: contents;
  }

  .footer-col-brand .logo-wrapper {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .footer-col-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.24);
    text-align: center;
  }

  .footer-top > .footer-col:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
    text-align: right;
  }

  .footer-top > .footer-col:nth-child(3) .footer-links {
    display: block;
  }

  .footer-top > .footer-col:last-child {
    grid-column: 2;
    grid-row: 3;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
    text-align: right;
  }

  .footer-top > .footer-col:nth-child(3) a,
  .footer-top > .footer-col:last-child a {
    overflow-wrap: anywhere;
  }

  .footer-social-links {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    justify-content: center;
    margin-top: 0.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Mobile hero stats — open layout without a card */
@media (max-width: 768px) {
  /* Hide the secondary trust metrics on mobile and let sections close up naturally. */
  .home-page .trust-bar {
    display: none;
  }

  .home-page .hero {
    position: relative;
    padding-bottom: 7.25rem;
  }

  .home-page .hero-stats-card {
    position: absolute;
    right: 16px;
    bottom: 5.75rem;
    left: 16px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    margin: 0;
    padding: 0.35rem 0;
    gap: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
  }

  .home-page .hero-stat-item {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0 0.35rem;
    text-align: center;
  }

  .home-page .hero-stat-item:not(:last-child) {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.28);
  }

  .home-page .hero-stat-num {
    margin: 0 0 0.2rem;
    color: var(--gold-light);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .home-page .hero-stat-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1.45;
  }

  /* Keep the mobile contact action visible as an icon-only touch target. */
  .whatsapp-float {
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    display: inline-flex;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .whatsapp-float .whatsapp-float-icon svg {
    width: 27px;
    height: 27px;
  }

  .whatsapp-float-copy {
    display: none !important;
  }

  .home-page .whatsapp-float {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}
