/*==================================================
  VYLIX — Standardised Layout & Padding System
==================================================*/

/*--------------------------------------------------
  § 1. DESIGN TOKENS — single source of truth
  main.css now uses 30px as the mobile page gutter.
  These tokens drive all component overrides below.
--------------------------------------------------*/
:root {
  --gutter-xl: 80px;   /* ≥1400px        */
  --gutter-lg: 60px;   /* 1200–1399px    */
  --gutter-md: 40px;   /* 992–1199px     */
  --gutter-sm: 30px;   /* 768–991px      */
  --gutter-xs: 50px;   /* ≤767px - increased for better mobile spacing and breathing room */
}

/*--------------------------------------------------
  § 2. GLOBAL MOBILE PADDING OVERRIDE
  Override main.css inner-padding (30px) to use our
  increased gutter-xs (50px) for better mobile spacing
--------------------------------------------------*/
@media (max-width: 767px) {
  .inner-padding {
    padding-left: var(--gutter-xs) !important;
    padding-right: var(--gutter-xs) !important;
  }
}

/*--------------------------------------------------
  § 3. FOOTER — outside <main>, no parent padding
  .full-width-section negative margins (-30px) have
  nothing to cancel here → content touches the edge.
  Zero the margins and rely on inner-padding alone.
--------------------------------------------------*/
@media (max-width: 767px) {
  footer .full-width-section {
    margin-left:  0;
    margin-right: 0;
  }
}

/* Footer top padding scale-down */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .tp-footer-2-area.pt-80 { padding-top: 60px; }
}
@media (max-width: 767px) {
  .tp-footer-2-area.pt-80 { padding-top: 50px; }
}

/* Footer responsive column improvements */

/* Extra large desktops (≥1400px): All 4 columns in one row */
@media only screen and (min-width: 1400px) {
  .tp-footer-2-widget {
    margin-bottom: 50px;
  }
}

/* Medium-Large desktops (1200px-1399px): Logo full width, then 3 columns below */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  /* Logo takes full width on top */
  .tp-footer-2-widget.footer-col-2-1 {
    margin-bottom: 40px;
  }

  /* Company, Office, Newsletter evenly spaced below */
  .tp-footer-2-widget.footer-col-2-2,
  .tp-footer-2-widget.footer-col-2-3,
  .tp-footer-2-widget.footer-col-2-4 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Large tablets/small desktops (992px-1199px): Logo full width, then 3 columns */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tp-footer-2-widget.footer-col-2-1 {
    margin-bottom: 40px;
  }

  /* Balance spacing between Company, Office, Newsletter */
  .tp-footer-2-widget.footer-col-2-2,
  .tp-footer-2-widget.footer-col-2-3,
  .tp-footer-2-widget.footer-col-2-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Medium tablets (768px-991px): Logo on row 1, Company+Office on row 2, Newsletter on row 3 */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .tp-footer-2-widget.footer-col-2-1 {
    margin-bottom: 40px;
  }

  .tp-footer-2-widget.footer-col-2-2,
  .tp-footer-2-widget.footer-col-2-3 {
    margin-bottom: 40px;
  }

  /* Add padding to prevent Company/Office from being too close */
  .tp-footer-2-widget.footer-col-2-2 {
    padding-right: 30px;
  }

  /* Newsletter full width with some top spacing */
  .tp-footer-2-widget.footer-col-2-4 {
    padding-top: 10px;
  }
}

/* Small tablets/large phones (576px-767px): Company and Office side by side */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  .tp-footer-2-widget.footer-col-2-1 {
    margin-bottom: 40px;
  }

  .tp-footer-2-widget.footer-col-2-2,
  .tp-footer-2-widget.footer-col-2-3 {
    margin-bottom: 40px;
  }

  .tp-footer-2-widget.footer-col-2-2 {
    padding-right: 20px;
  }
}

/*--------------------------------------------------
  § 4. PORTFOLIO PAGE — add more side breathing room
  on larger screens only; mobile spacing stays unchanged.
--------------------------------------------------*/
@media only screen and (min-width: 992px) {
  .portfolio-page .portfolio-hero .container,
  .portfolio-page .tp-project-5-2-area .container-1530 {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media only screen and (min-width: 1200px) {
  .portfolio-page .portfolio-hero .container,
  .portfolio-page .tp-project-5-2-area .container-1530 {
    padding-left: 72px;
    padding-right: 72px;
  }
}

@media only screen and (min-width: 1400px) {
  .portfolio-page .portfolio-hero .container,
  .portfolio-page .tp-project-5-2-area .container-1530 {
    padding-left: 96px;
    padding-right: 96px;
  }
}

/*--------------------------------------------------
  § NEW FOOTER — vylix-footer
--------------------------------------------------*/
.vylix-footer {
  padding-top: 80px;
  padding-bottom: 0;
}

/* ── CTA row ── */
.vf-cta-row {
  padding-bottom: 60px;
}
.vf-cta-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--tp-common-white);
}
.vf-cta-link:hover .vf-cta-title { opacity: 0.75; }
.vf-cta-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.vf-cta-title {
  font-family: var(--tp-ff-unbounded);
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--tp-common-white);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: opacity 0.25s ease;
}
.vf-cta-arrow {
  flex-shrink: 0;
  width: clamp(28px, 4vw, 50px);
  height: clamp(28px, 4vw, 50px);
  opacity: 0.6;
}

/* ── Divider ── */
.vf-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 60px;
}

/* ── Info row ── */
.vf-info-row {
  padding-bottom: 20px;
}
.vf-col {}

.vf-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.vf-logo img {
  height: 28px;
  width: auto;
}
.vf-tagline {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 10px;
}
.vf-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-bottom: 0;
}

.vf-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.vf-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vf-links li {
  margin-bottom: 10px;
}
.vf-links li a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.vf-links li a:hover {
  color: var(--tp-common-white);
}

.vf-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vf-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 0;
}
.vf-contact-list li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.vf-contact-list li a:hover { color: var(--tp-common-white); }
.vf-contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
}

/* ── Bottom bar ── */
.vf-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 28px;
  gap: 16px;
}
.vf-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0;
}
.vf-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}
.vf-social-link {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}
.vf-social-link:hover { color: var(--tp-common-white); }

/* ── Mobile ── */
@media (max-width: 767px) {
  .vylix-footer { padding-top: 50px; }
  .vf-cta-row   { padding-bottom: 40px; }
  .vf-cta-title { letter-spacing: -1px; gap: 12px; }
  .vf-divider   { margin-bottom: 40px; }
  .vf-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 32px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .vylix-footer { padding-top: 60px; }
}

/*--------------------------------------------------
  § 2b. FOOTER SOCIAL MEDIA ICONS
--------------------------------------------------*/
.tp-copyright-2-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  margin: 0 6px;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.tp-copyright-2-social a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--tp-common-white);
  transform: translateY(-2px);
}

.tp-copyright-2-social a i {
  font-size: 16px;
  line-height: 1;
  display: block;
}

/* Medium desktop - add padding to prevent edge touching */
@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .tp-footer-2-area .container-1480 {
    padding-left: var(--gutter-lg) !important;
    padding-right: var(--gutter-lg) !important;
  }
}

/* Small desktop - increase padding further */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .tp-footer-2-area .container-1480 {
    padding-left: var(--gutter-md) !important;
    padding-right: var(--gutter-md) !important;
  }
}

/* Tablet layout - stack all footer columns */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Ensure padding on tablet */
  .tp-footer-2-area .container-1480 {
    padding-left: var(--gutter-sm) !important;
    padding-right: var(--gutter-sm) !important;
  }

  /* Stack all footer columns vertically */
  .tp-footer-2-area .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Adjust spacing between stacked columns */
  .tp-footer-2-widget {
    margin-bottom: 40px;
  }

  /* Copyright area - center everything on tablet */
  .tp-copyright-2-area .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .tp-copyright-2-left {
    text-align: center !important;
    margin-bottom: 20px;
  }

  .tp-copyright-2-social {
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  .tp-copyright-2-social {
    margin-top: 20px;
  }

  .tp-copyright-2-social a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    aspect-ratio: 1 / 1;
    margin: 0 4px;
    padding: 0;
  }

  .tp-copyright-2-social a i {
    font-size: 14px;
    line-height: 1;
    display: block;
  }
}

/* Footer copyright social links — old rules no longer needed */

/*--------------------------------------------------
  § 4. inner-padding + container double-gutter fix
  When a .container sits inside .inner-padding the
  Bootstrap container adds its own ~12px on each side
  on top of inner-padding's 30px.  Zero container's
  own side padding in that specific nesting context.
--------------------------------------------------*/
@media (max-width: 767px) {
  .inner-padding > .container,
  .inner-padding > .container-fluid,
  .inner-padding > .container-1330,
  .inner-padding > .container-1480,
  .inner-padding > .container-1530,
  .inner-padding > .container-1775,
  .inner-padding > .container-1840 {
    padding-left:  0;
    padding-right: 0;
  }
}

/*--------------------------------------------------
  § 4. LARGE CONTAINER TABLET GUTTERS
  Wide containers span past their max-width on tablet
  — give them a minimum side gutter so content never
  touches the viewport edge.
--------------------------------------------------*/
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .container-1480,
  .container-1530,
  .container-1775,
  .container-1840 {
    padding-left:  var(--gutter-md);
    padding-right: var(--gutter-md);
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .container-1480,
  .container-1530,
  .container-1775,
  .container-1840 {
    padding-left:  var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }
}

/*--------------------------------------------------
  § 5. SERVICES — sv-service-content-wrap
  Was: 110px flat. Standardised to token scale.
--------------------------------------------------*/
.sv-service-content-wrap                                  { padding: var(--gutter-xl); }
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .sv-service-content-wrap                               { padding: var(--gutter-lg); }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .sv-service-content-wrap                               { padding: var(--gutter-md); }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .sv-service-content-wrap                               { padding: var(--gutter-sm); }
}
@media (max-width: 767px) {
  .sv-service-content-wrap {
    padding-top:    60px;
    padding-bottom: 60px;
    padding-left:   var(--gutter-xs);
    padding-right:  var(--gutter-xs);
  }
}

/*--------------------------------------------------
  § 6. CONTACT — form inner wrap
  Was: 140px flat. Standardised to token scale.
--------------------------------------------------*/

/* Full-width contact form - remove container-fluid padding */
.cn-contactform-2-bg .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Full-width contact form - remove column padding */
.cn-contactform-2-bg .row.g-0 > .col-xl-6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure map container is full height and width */
.cn-contactform-2-bg .cn-contactform-2-map {
  height: 100%;
  min-height: 600px;
  padding: 0;
  margin: 0;
}

.cn-contactform-2-bg .cn-contactform-2-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cn-contactform-2-bg .cn-contactform-wrap                 { padding: var(--gutter-xl); }
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .cn-contactform-2-bg .cn-contactform-wrap               { padding: var(--gutter-lg); }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .cn-contactform-2-bg .cn-contactform-wrap               { padding: var(--gutter-md); }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .cn-contactform-2-bg .cn-contactform-wrap               { padding: var(--gutter-sm); }
}
@media (max-width: 767px) {
  .cn-contactform-2-bg .cn-contactform-wrap {
    padding-top:    40px;
    padding-bottom: 40px;
    padding-left:   var(--gutter-xs);
    padding-right:  var(--gutter-xs);
  }
}

/* Contact cover image mobile */
@media (max-width: 767px) {
  .cn-contactform-2-map {
    overflow: hidden;
    min-height: 400px;
  }
  .cn-contactform-2-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
  }
}

/* Contact form button disabled state */
.cn-contactform-btn button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast notification customization */
.toastify {
  font-family: var(--tp-ff-body), sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 420px;
  border-radius: 12px;
}
.toastify.vylix-toast {
  background: #17171b !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.toastify.vylix-toast.vylix-toast--success {
  background: #11221a !important;
  border-color: rgba(74, 222, 128, 0.35);
}
.toastify.vylix-toast.vylix-toast--error {
  background: #2a171a !important;
  border-color: rgba(248, 113, 113, 0.4);
}
.toastify.vylix-toast.vylix-toast--info {
  background: #221633 !important;
  border-color: rgba(198, 98, 255, 0.45);
}
.toastify.on {
  opacity: 1;
}
.toast-close {
  opacity: 0.85;
  padding-left: 12px;
  font-size: 18px;
}
.toast-close:hover {
  opacity: 1;
}
@media (max-width: 767px) {
  .toastify {
    margin: 20px;
    right: 0;
    left: 0;
    max-width: calc(100% - 40px);
  }
}

/* Contact support banner text + height */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .cn-contactform-support-text span { font-size: 32px; line-height: 1.3; }
}
@media (max-width: 767px) {
  .cn-contactform-support-text span { font-size: 24px; line-height: 1.3; letter-spacing: -0.3px; }
  .cn-contactform-support-bg {
    height: auto;
    padding: 50px var(--gutter-xs);
  }
  .cn-contactform-support-area.mb-120 { margin-bottom: 60px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .cn-contactform-support-area.mb-120 { margin-bottom: 80px; }
}

/*--------------------------------------------------
  § 7. TYPOGRAPHY — consistent mobile heading scale
  Target on a 390px phone:
    Hero titles:      ~11–13vw  → 42–52px
    Section heads:    ~9–11vw   → 35–42px
    Page sub-heads:   ~7–8vw    → 27–32px
    Card/item heads:  ~5–6vw    → 20–24px
    Body copy:        15px
    Labels/meta:      13px
--------------------------------------------------*/

/* ── Body text: 18px base is too large on mobile */
@media (max-width: 767px) {
  p { font-size: 15px; line-height: 24px; }
}

/*--------------------------------------------------
  § HOME HERO — Mobile Layout Improvements
--------------------------------------------------*/

.tp-hero-3-area.tp-hero-3-ptb {
  background: radial-gradient(120% 120% at 8% 8%, rgba(198, 98, 255, 0.2) 0%, rgba(198, 98, 255, 0) 52%), linear-gradient(180deg, rgba(8, 8, 12, 0.97) 0%, rgba(8, 8, 12, 1) 100%) !important;
}

/* Keep hero copy above the animated gradient blob */
.tp-hero-3-content-box {
  position: relative;
  isolation: isolate;
}

.tp-hero-3-content-box .tp-hero-3-title,
.tp-hero-3-content-box .tp-hero-3-category,
.tp-hero-3-content-box .tp-btn-black-2 {
  position: relative;
  z-index: 3;
}

.tp-hero-3-content-box .tp-hero-3-circle-shape {
  z-index: 1;
  pointer-events: none;
}

.tp-hero-3-content-box .tp-hero-3-circle-shape span {
  background: linear-gradient(135deg, rgba(198, 98, 255, 0.5) 0%, rgba(198, 98, 255, 0.5) 100%);
  border-radius: 62% 47% 82% 35% / 45% 45% 80% 66%;
}

.tp-hero-3-content-box .rotate-wrapper {
  width: min(100vw, 1150px);
  height: min(82vw, 980px);
}

/* Hero container spacing */
@media (max-width: 767px) {
  .tp-hero-3-area.tp-hero-3-ptb {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
  }

  .tp-hero-3-area {
    padding-left: 30px;
    padding-right: 30px;
    min-height: 100dvh; /* Dynamic viewport height for better mobile support */
  }

  /* Also reduce container padding inside hero */
  .tp-hero-3-area .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Hero content box */
@media (max-width: 767px) {
  .tp-hero-3-content-box {
    padding-left: 16px;
    padding-right: 0;
    text-align: left !important;
  }

  .tp-hero-3-content-box .tp-hero-3-title {
    text-align: left !important;
  }

  .tp-hero-3-content-box .tp-hero-3-category {
    text-align: left !important;
  }
}

/* Gradient circle/shape — scale down on mobile */
@media (max-width: 767px) {
  .tp-hero-3-content-box .rotate-wrapper {
    width: 165vw;
    height: 165vw;
    max-width: none;
    max-height: none;
  }

  .tp-hero-3-circle-shape {
    top: 50%;
    left: 50%;
  }

  .tp-hero-3-circle-shape span {
    filter: blur(80px);
  }
}

/* ── HOME — main hero title
   clamp(2.5rem, 6vw, 5rem) → floor is 40px (2.5rem).
   40px on 390px = ~10.3vw — borderline. Push to 48px. */
@media (max-width: 767px) {
  .tp-hero-3-title {
    font-size: 48px;
    margin-bottom: 20px !important;
    line-height: 1.1;
  }
}

/* ── HOME — hero sub-label: 12px floor is invisible */
.tp-hero-3-category {
  font-size: clamp(13px, 3.8vw, 20px);
}

@media (max-width: 767px) {
  .tp-hero-3-category {
    margin-bottom: 40px !important;
    line-height: 1.4;
  }
}

/* Button size reductions on mobile */
@media (max-width: 767px) {
  /* Main hero button */
  .tp-hero-3-content-box .tp-btn-black-2 {
    font-size: 15px;
    height: 48px;
    line-height: 44px;
    padding: 0 20px 0 24px;
  }

  /* All tp-btn-black-2 buttons (homepage "Learn more" etc) */
  .tp-btn-black-2 {
    font-size: 15px !important;
    height: 48px !important;
    line-height: 44px !important;
    padding: 0 18px 0 22px !important;
  }

  /* Contact form submit button */
  .tp-btn-black-md,
  .cn-contactform-btn button {
    font-size: 15px !important;
    height: 48px !important;
    line-height: 44px !important;
    padding: 0 24px !important;
  }

  /* Other common button styles */
  .tp-btn-border-lg {
    font-size: 15px !important;
    height: 46px !important;
    line-height: 42px !important;
    padding: 0 24px !important;
  }

  .tp-btn-black-sm {
    font-size: 14px !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 20px !important;
  }

  /* Submit buttons */
  .tp-btn-submit {
    font-size: 15px !important;
    height: 46px !important;
    line-height: 42px !important;
    padding: 0 28px !important;
  }
}

/* ── HOME / ABOUT — "Our Work" / "Web for the future"
   clamp(50px, 7vw, 90px) → floor 50px = 12.8vw → ok,
   but 50px is still a bit small. Raise to 56px. */
@media (max-width: 767px) {
  .tp-section-title-90 { font-size: 56px; }
}

/* ── HOME — counter numbers
   clamp(70px, 7vw, 90px) → floor 70px = 17.9vw → good, leave it.
   Label under the number needs to be readable. */
@media (max-width: 767px) {
  .slide-funfact-item span { font-size: 15px; }
}

/* ── HOME — service section title */
@media (max-width: 767px) {
  .tp-service-5-title    { font-size: 32px; }
  .tp-service-4-title-sm {
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
  }
}

/* ── HOME — about section paragraph (large display quote)
   main.css already sets 30px @ mobile — correct, leave it. */

/* ── HOME / SERVICES / INDEX — "SAY HELLO" CTA
   clamp(80px, 12vw, 200px) → floor 80px = 20.5vw → too big,
   text clips or overflows on phone. */
@media (max-width: 767px) {
  .tp-cta-title { font-size: 56px; letter-spacing: -1px; }
}

/* ── ABOUT — hero title
   main.css sets 75px @mobile — too large, clips text. */
@media (max-width: 767px) {
  .ab-inner-hero-title { font-size: 48px; }
}

/* ── ABOUT — clients/brand banner */
@media (max-width: 767px) {
  .ab-brand-title     { font-size: 38px; }
  .ab-brand-content p { font-size: 17px; }
}

/* ── ABOUT — stats (ab-about-content P is 54px display quote,
   main.css already drops to 30px @ mobile — that's fine).
   Fix the counter numbers and label. */
@media (max-width: 767px) {
  .ab-funfact-item span   { font-size: 42px; }
  .ab-funfact-item span i { font-size: 64px; }
  .ab-inner-funfact-title { font-size: 36px; }
}

/* ── SERVICES — page hero */
.services-page .services-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 8% 8%, rgba(198, 98, 255, 0.2) 0%, rgba(198, 98, 255, 0) 52%),
    radial-gradient(90% 90% at 92% 88%, rgba(198, 98, 255, 0.14) 0%, rgba(198, 98, 255, 0) 56%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.97) 0%, rgba(8, 8, 12, 1) 100%);
}

.services-page .services-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.services-page .services-hero__glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(198, 98, 255, 0.22);
  filter: blur(130px);
  opacity: 0.32;
}

.services-page .services-hero__glow--one {
  top: -24%;
  left: -14%;
  width: 520px;
  height: 520px;
  animation: servicesGlowOne 28s ease-in-out infinite alternate;
}

.services-page .services-hero__glow--two {
  right: -18%;
  bottom: -35%;
  width: 620px;
  height: 620px;
  animation: servicesGlowTwo 34s ease-in-out infinite alternate;
}

.services-page .services-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 82%);
  opacity: 0.2;
}

.services-page .services-hero__ring-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.services-page .services-hero__ring {
  grid-area: 1 / 1;
  width: min(70vw, 700px);
  aspect-ratio: 1;
  border: 2px solid rgba(198, 98, 255, 0.58);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 24px rgba(198, 98, 255, 0.2);
  transform-origin: center;
  animation: servicesRingPulse 7.5s linear infinite;
}

.services-page .services-hero__ring--1 { animation-delay: 0s; }
.services-page .services-hero__ring--2 { animation-delay: -2.5s; }
.services-page .services-hero__ring--3 { animation-delay: -5s; }

.services-page .services-hero .container {
  position: relative;
  z-index: 1;
}


.services-page .services-hero__eyebrow {
  display: inline-flex;
  padding: 4px 18px;
  border-radius: 999px;
  border: 1px solid rgba(198, 98, 255, 0.55);
  background: rgba(198, 98, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

@keyframes servicesGlowOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(10px, 8px, 0) scale(1.04); }
}

@keyframes servicesGlowTwo {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10px, -8px, 0) scale(1.04); }
}

@keyframes servicesRingPulse {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  22% {
    opacity: 0.62;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-page .services-hero__glow--one,
  .services-page .services-hero__glow--two,
  .services-page .services-hero__ring {
    animation: none;
  }
}

@media (max-width: 767px) {
  .sv-hero-title       { font-size: 52px; }
  .sv-hero-title-box p { font-size: 14px; }

  .services-page .services-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .services-page .services-hero .container {
    padding-left: var(--gutter-xs);
    padding-right: var(--gutter-xs);
  }

  .services-page .services-hero__glow {
    filter: blur(98px);
    opacity: 0.25;
  }

  .services-page .services-hero__glow--one {
    left: -38%;
    top: -20%;
    width: 360px;
    height: 360px;
  }

  .services-page .services-hero__glow--two {
    right: -45%;
    bottom: -38%;
    width: 390px;
    height: 390px;
  }

  .services-page .services-hero__mesh {
    background-size: 34px 34px;
    opacity: 0.13;
  }

  .services-page .services-hero__ring {
    width: 84vw;
    border-width: 2px;
    border-color: rgba(198, 98, 255, 0.56);
    box-shadow: 0 0 22px rgba(198, 98, 255, 0.2);
  }

  .services-page .services-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .services-page .sv-hero-title {
    font-size: clamp(48px, 12vw, 60px);
  }

  .services-page .sv-hero-title-box p {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* ── CONTACT / PORTFOLIO — page hero */
@media (max-width: 767px) {
  .tm-hero-title    { font-size: 56px; }
  .tm-hero-subtitle { font-size: 13px; }
  .tm-hero-text p   { font-size: 14px; }
}

/* ── PORTFOLIO DETAIL — full-bleed cover title
   60px from main.css: still clips long names. */
@media (max-width: 767px) {
  .port-showcase-slider-title { font-size: 40px; }
}

/* ── PORTFOLIO DETAIL — overview section */
@media (max-width: 767px) {
  .showcase-details-subtitle                 { font-size: 26px; line-height: 1.3; }
  .showcase-details-overview-right p         { font-size: 15px; line-height: 24px; }
  .showcase-details-overview-info-left span,
  .showcase-details-overview-info-right span { font-size: 14px; }
}

/*--------------------------------------------------
  § 8. ABOUT PAGE — miscellaneous spacing
--------------------------------------------------*/
@media (max-width: 767px) {
  .ab-about-thumb-wrap.mb-180 { margin-bottom: 60px; }
  /* ab-about-content P is a 54px display quote, main.css
     already corrects it to 30px on mobile — no override needed */
  .ab-funfact-item.mb-90  { margin-bottom: 40px; }

  /* Brand area (clients) - add padding to section and remove container padding */
  .ab-brand-area.pt-120 {
    padding-top: 70px;
    padding-left: var(--gutter-xs) !important;
    padding-right: var(--gutter-xs) !important;
  }
  .ab-brand-area.pb-120 {
    padding-bottom: 70px;
  }
  .ab-brand-area .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Funfact area (stats) - already uses inner-padding, just ensure consistent spacing */
  .ab-funfact-area.pt-130 { padding-top: 70px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .ab-about-thumb-wrap.mb-180 { margin-bottom: 80px; }
  .ab-funfact-area.pt-130     { padding-top: 90px; }
}

/*--------------------------------------------------
  § 8. HOME PAGE
--------------------------------------------------*/
@media (max-width: 767px) {
  .tp-about-3-area.pt-120 { padding-top: 70px; }
  .tp-about-3-area.pb-110 { padding-bottom: 60px; }
}

/*--------------------------------------------------
  § 9. PORTFOLIO PAGE
--------------------------------------------------*/
.portfolio-page .portfolio-hero {
  position: relative;
  overflow: hidden;
}

.portfolio-page .portfolio-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.portfolio-page .portfolio-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  will-change: transform;
}

.portfolio-page .portfolio-hero__glow--one {
  top: -6%;
  left: -14%;
  width: 500px;
  height: 500px;
  background: rgba(198, 98, 255, 0.26);
  animation: portfolioGlowDriftOne 16s ease-in-out infinite alternate;
}

.portfolio-page .portfolio-hero__glow--two {
  right: -16%;
  bottom: -16%;
  width: 620px;
  height: 620px;
  background: rgba(198, 98, 255, 0.2);
  animation: portfolioGlowDriftTwo 19s ease-in-out infinite alternate;
}

@keyframes portfolioGlowDriftOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, 12px, 0) scale(1.08);
  }
}

@keyframes portfolioGlowDriftTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-16px, -14px, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-page .portfolio-hero__glow--one,
  .portfolio-page .portfolio-hero__glow--two {
    animation: none;
  }
}

.portfolio-page .portfolio-hero .container {
  position: relative;
  z-index: 1;
}

.portfolio-page .portfolio-hero__content {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-page .portfolio-hero__subtitle {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border: 1px solid rgba(198, 98, 255, 0.5);
  border-radius: 999px;
  background: rgba(198, 98, 255, 0.14);
  letter-spacing: 0.1em;
}

.portfolio-page .portfolio-hero .tm-hero-title {
  font-size: clamp(56px, 7vw, 108px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.portfolio-page .portfolio-hero__text {
  max-width: 620px;
}

.portfolio-page .portfolio-hero__text p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.portfolio-page .portfolio-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portfolio-page .portfolio-hero__chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-page .portfolio-filter-wrap {
  position: relative;
  margin-bottom: 26px;
}

.portfolio-page .tp-project-5-2-area .row.justify-content-center > .col-xl-8 {
  flex: 0 0 100%;
  max-width: 100%;
}

.portfolio-page .portfolio-filter {
  justify-content: flex-start !important;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 12px 6px;
  margin-bottom: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

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

.portfolio-page .portfolio-filter button {
  margin: 0;
  margin-bottom: 0;
  padding: 13px 20px;
  border: 1px solid rgba(198, 98, 255, 0.55);
  border-radius: 999px;
  background: rgba(198, 98, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.portfolio-page .portfolio-filter button::after {
  display: none;
}

.portfolio-page .portfolio-filter button:hover,
.portfolio-page .portfolio-filter button.active {
  color: #fff;
  border-color: #c662ff;
  background: #c662ff;
}

.portfolio-page .tp-project-5-2-category span {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
}

@media only screen and (min-width: 992px) {
  .portfolio-page .portfolio-filter {
    gap: 14px;
  }

  .portfolio-page .portfolio-filter button {
    padding: 14px 22px;
    font-size: 15px;
  }

  .portfolio-page .tp-project-5-2-category span {
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .tp-project-5-2-area.pt-80 { padding-top: 40px; }

  .portfolio-page .tm-hero-area.tm-hero-ptb {
    padding-top: 120px;
    padding-bottom: 28px;
  }

  .portfolio-page .portfolio-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .portfolio-page .portfolio-hero .container {
    padding-left: var(--gutter-xs);
    padding-right: var(--gutter-xs);
  }

  .portfolio-page .portfolio-hero__bg {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }

  .portfolio-page .portfolio-hero__glow {
    filter: blur(96px);
    opacity: 0.3;
  }

  .portfolio-page .portfolio-hero__glow--one {
    top: -10%;
    left: -38%;
    width: 330px;
    height: 330px;
  }

  .portfolio-page .portfolio-hero__glow--two {
    right: -40%;
    bottom: -22%;
    width: 360px;
    height: 360px;
  }

  .portfolio-page .portfolio-hero__content {
    gap: 10px;
  }

  .portfolio-page .portfolio-hero .tm-hero-title {
    font-size: clamp(46px, 13vw, 62px);
  }

  .portfolio-page .portfolio-hero__text p {
    font-size: 15px;
    line-height: 1.6;
  }

  .portfolio-page .portfolio-hero__chips {
    margin-top: 12px;
    gap: 8px;
  }

  .portfolio-page .portfolio-hero__chips span {
    padding: 7px 11px;
    font-size: 11px;
  }

  .portfolio-page .portfolio-filter {
    gap: 10px;
    padding: 0 8px 6px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }

  .portfolio-page .portfolio-filter button {
    padding: 11px 15px;
    font-size: 12px;
  }

  .portfolio-page .tp-project-5-2-thumb {
    border-radius: 18px;
    overflow: hidden;
  }

  .portfolio-page .tp-project-5-2-thumb .image-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.03) 28%, rgba(10, 10, 14, 0.82) 100%);
  }

  .portfolio-page .tp-project-5-2-category {
    top: 14px;
    left: 14px;
    z-index: 2;
  }

  .portfolio-page .tp-project-5-2-category span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(4px);
  }

  .portfolio-page .tp-project-5-2-content {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .portfolio-page .tp-project-5-2-meta {
    margin-bottom: 8px;
  }

  .portfolio-page .tp-project-5-2-title-sm {
    font-size: 28px;
    line-height: 1.05;
  }

  .portfolio-page .portfolio-title-break {
    display: none;
  }
}

/*--------------------------------------------------
  § 10. TERMS / PRIVACY PAGES
--------------------------------------------------*/
.legal-page .legal-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(110% 120% at 10% 5%, rgba(198, 98, 255, 0.16) 0%, rgba(198, 98, 255, 0) 52%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.98) 0%, rgba(7, 7, 11, 1) 100%);
}

.legal-page .legal-hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
  align-self: center;
}

.legal-page .legal-hero .blog-details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.legal-page .blog-details-title {
  margin: 0;
}

.legal-page .blog-details-top-text p,
.legal-page .blog-details-left-content p {
  font-size: 15px;
  line-height: 1.75;
}

.legal-page .blog-details-left-title {
  text-transform: uppercase;
  font-size: 28px;
}

.legal-page .blog-details-left-title[id] {
  scroll-margin-top: 140px;
}

.legal-page .legal-toc {
  margin: 0 0 34px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.legal-page .legal-toc h5 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.legal-page .legal-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-page .legal-toc a {
  color: rgba(255, 255, 255, 0.82);
}

.legal-page .legal-toc a:hover {
  color: #c662ff;
}

@media (max-width: 767px) {
  .blog-details-without-sidebar.pt-170 { padding-top: 120px; }
  .postbox__area.pt-120 { padding-top: 60px; }
  .postbox__area.pb-120 { padding-bottom: 60px; }

  .legal-page .blog-details-left-title {
    font-size: 22px;
  }

  .legal-page .legal-hero .blog-details-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .legal-page .legal-toc {
    padding: 18px;
  }
}

.legal-cookie-section h5 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}


/*--------------------------------------------------
  § 11. NEWSLETTER SUBSCRIPTION MESSAGES
--------------------------------------------------*/
#newsletter-message {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 15px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#newsletter-message.success {
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

#newsletter-message.error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Adjust footer newsletter form spacing */
.tp-footer-2-widget-newslatter form {
  margin-top: 10px;
}

.tp-footer-2-widget-newslatter .cf-turnstile {
  margin-top: 15px;
}

/*--------------------------------------------------
  § 12. NAVBAR STICKY - REDUCED PADDING
--------------------------------------------------*/
/* Desktop with visible nav items (1200px and above) - not hamburger menu */
@media only screen and (min-width: 1200px) {
  #header-sticky.tp-header-area.tp-header-mob-space.header-sticky,
  header .tp-header-area.tp-header-mob-space.header-sticky,
  .tp-header-area.tp-header-mob-space.header-sticky {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/*--------------------------------------------------
  § 13. CONTACT PAGE - CALL BOX RESPONSIVE STYLES
--------------------------------------------------*/
/* Mobile responsive styles for call box */
@media only screen and (max-width: 767px) {
  .cn-phone-box {
    min-width: 280px !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    gap: 12px !important;
  }

  .phone-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .cn-phone-icon {
    font-size: 18px !important;
  }

  .cn-phone-label {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .cn-phone-number {
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
  }

  .cn-contactform-support-bg {
    padding: 40px 20px !important;
    min-height: auto !important;
  }
}

/* Tablet responsive styles */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .cn-phone-box {
    min-width: 400px !important;
  }

  .cn-phone-number {
    font-size: 22px !important;
  }
}

/*--------------------------------------------------
  § 14. ABOUT PAGE - CLIENT CAROUSEL FADE EDGES
--------------------------------------------------*/
/* Add very subtle natural fade effect on left and right edges of screen */
.ab-brand-wrapper {
  position: relative;
}

.ab-brand-wrapper::before,
.ab-brand-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.ab-brand-wrapper::before {
  left: calc(-50vw + 50%);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
  backdrop-filter: blur(0.5px);
}

.ab-brand-wrapper::after {
  right: calc(-50vw + 50%);
  background: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
  backdrop-filter: blur(0.5px);
}

/* Adjust fade width on mobile/tablet */
@media only screen and (max-width: 991px) {
  .ab-brand-wrapper::before,
  .ab-brand-wrapper::after {
    width: 70px;
  }
}

@media only screen and (max-width: 767px) {
  .ab-brand-wrapper::before,
  .ab-brand-wrapper::after {
    width: 50px;
  }
}

@media only screen and (max-width: 576px) {
  .ab-brand-wrapper::before,
  .ab-brand-wrapper::after {
    width: 40px;
  }
}

/*--------------------------------------------------
  § 14. ABOUT PAGE - CLIENT IMAGES SMALLER ON MOBILE/TABLET ONLY
--------------------------------------------------*/
/* Make client brand images smaller on mobile phones */
@media only screen and (max-width: 576px) {
  .ab-brand-item img {
    max-width: 140px !important;
    height: auto !important;
  }
}

/* Make client brand images smaller on tablets */
@media only screen and (min-width: 577px) and (max-width: 991px) {
  .ab-brand-item img {
    max-width: 180px !important;
    height: auto !important;
  }
}

/* Desktop and laptop (≥992px) - NO restrictions, images display at full natural size */

/*--------------------------------------------------
  § 15. GLOBAL HORIZONTAL OVERFLOW GUARD
--------------------------------------------------*/
html,
body,
#smooth-wrapper,
#smooth-content {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body,
  #smooth-wrapper,
  #smooth-content {
    overflow-x: clip;
  }
}

/*--------------------------------------------------
  § 16. MOBILE NAV + HOME HERO HOTFIXES
--------------------------------------------------*/
/* Keep dynamic offcanvas states working even if purged from main.css */
.tp-offcanvas-area.opened {
  transform: translateX(0);
}

.body-overlay.opened {
  visibility: visible;
  opacity: 1;
}

/* Ensure the hamburger icon always renders on mobile */
@media (max-width: 991px) {
  .tp-header-bar .tp-offcanvas-open-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (max-width: 767px) {
  .home-hero.tp-hero-3-area.tp-hero-3-ptb {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    overflow-x: clip;
  }

  .home-hero .container {
    max-width: 100%;
    padding-left: var(--gutter-xs) !important;
    padding-right: var(--gutter-xs) !important;
  }

  .home-hero .tp-hero-3-content-box {
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero .tp-hero-3-title {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .home-hero .tp-hero-3-title .tp-reveal-line {
    display: block;
  }
}

