/* =========================================================
   TERRA CLEAN — Homepage styles
   All classes are prefixed terra- to avoid conflicts.
   ========================================================= */
:root{
  --terra-blue:#262a84;
  --terra-blue-deep:#141650;
  --terra-blue-soft:#eceefb;
  --terra-orange:#f4a02a;
  --terra-orange-dark:#b86a06;
  --terra-ink:#161833;
  --terra-text:#4a4d6a;
  --terra-line:#e3e5f0;
  --terra-tint:#f6f7fc;
  --terra-white:#fff;
  --terra-radius:14px;
  --terra-shadow:0 1px 2px rgba(20,22,80,.05),0 8px 24px rgba(20,22,80,.07);
  --terra-shadow-lg:0 2px 4px rgba(20,22,80,.06),0 18px 40px rgba(20,22,80,.14);
  --terra-header-h:76px;
  --terra-font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
html[lang="ar"]{--terra-font:"Cairo","Segoe UI",Tahoma,Arial,sans-serif}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
.terra-body{margin:0;font-family:var(--terra-font);color:var(--terra-text);background:#fff;line-height:1.65;font-size:16px;overflow-x:hidden}
.terra-body :where(img){max-width:100%;height:auto;display:block}
.terra-body :where(ul){list-style:none;margin:0;padding:0}
.terra-body :where(a){color:inherit;text-decoration:none}
.terra-body :where(h1,h2,h3,p){margin:0}
button{font-family:inherit}
:focus-visible{outline:3px solid var(--terra-orange);outline-offset:3px;border-radius:6px}

.terra-container{width:100%;max-width:1240px;margin-inline:auto;padding-inline:20px}
.terra-skip{position:absolute;inset-inline-start:12px;top:-60px;background:var(--terra-blue);color:#fff!important;padding:10px 16px;border-radius:8px;z-index:200;transition:top .2s}
.terra-skip:focus{top:12px}
.terra-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.terra-icon-fill{fill:currentColor;stroke:none}
[dir="rtl"] .terra-link .terra-icon,[dir="rtl"] .terra-hero-nav .terra-icon{transform:scaleX(-1)}

/* ---------- Buttons ---------- */
.terra-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 28px;border-radius:999px;font-weight:700;font-size:15px;line-height:1.2;border:2px solid transparent;cursor:pointer;transition:transform .2s,box-shadow .2s,background-color .2s,color .2s,border-color .2s;text-align:center}
.terra-btn:hover{transform:translateY(-2px)}
.terra-btn-primary{background:var(--terra-blue);color:#fff!important;box-shadow:0 6px 16px rgba(38,42,132,.25)}
.terra-btn-primary:hover{background:var(--terra-blue-deep);box-shadow:0 10px 22px rgba(38,42,132,.32)}
.terra-btn-accent{background:var(--terra-orange);color:var(--terra-blue-deep)!important;box-shadow:0 6px 16px rgba(244,160,42,.3)}
.terra-btn-accent:hover{background:#ffb143;box-shadow:0 10px 22px rgba(244,160,42,.4)}
.terra-btn-outline{border-color:rgba(255,255,255,.7);color:#fff!important}
.terra-btn-outline:hover{background:#fff;color:var(--terra-blue)!important}
.terra-btn-sm{padding:10px 22px;font-size:14px}
.terra-btn-lg{padding:16px 40px;font-size:16px}
.terra-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--terra-blue)!important;font-size:15px}
.terra-link .terra-icon{width:18px;height:18px;transition:transform .2s}
.terra-link:hover .terra-icon{transform:translateX(4px)}
[dir="rtl"] .terra-link:hover .terra-icon{transform:scaleX(-1) translateX(4px)}

/* ---------- Type ---------- */
.terra-label{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.14em;color:var(--terra-orange-dark);margin-bottom:14px;padding-inline-start:36px;position:relative}
.terra-label::before{content:"";position:absolute;inset-inline-start:0;top:50%;width:26px;height:2px;background:var(--terra-orange)}
html[lang="ar"] .terra-label{letter-spacing:0}
.terra-h2{font-size:clamp(28px,3.6vw,42px);line-height:1.18;color:var(--terra-ink);font-weight:800;letter-spacing:-.02em;margin-bottom:18px}
html[lang="ar"] .terra-h2{letter-spacing:0;line-height:1.35}
.terra-h3{font-size:19px;line-height:1.3;color:var(--terra-ink);font-weight:700;margin-bottom:8px}
.terra-text{margin-bottom:16px;max-width:62ch}
.terra-section{padding:clamp(64px,8vw,110px) 0}
.terra-section-tint{background:var(--terra-tint)}
.terra-head{max-width:680px;margin:0 auto clamp(36px,5vw,56px);text-align:center}
.terra-head .terra-text{margin-inline:auto}
.terra-center{text-align:center;margin-top:clamp(36px,5vw,52px)}
.terra-mt{margin-top:22px}

/* ---------- Header ---------- */
.terra-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid transparent;transition:box-shadow .25s,border-color .25s}
.terra-header.is-stuck{box-shadow:0 6px 24px rgba(20,22,80,.08);border-color:var(--terra-line)}
.terra-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--terra-header-h)}
.terra-logo img{width:auto;height:52px}
.terra-panel{display:flex;align-items:center;gap:28px;margin-inline-start:auto}
.terra-nav-list{display:flex;align-items:center;gap:26px}
.terra-nav-link{position:relative;font-size:13.5px;font-weight:700;letter-spacing:.06em;color:var(--terra-ink);padding:8px 0;transition:color .2s}
html[lang="ar"] .terra-nav-link{letter-spacing:0;font-size:15px}
.terra-nav-link::after{content:"";position:absolute;inset-inline:0;bottom:2px;height:2px;background:var(--terra-orange);transform:scaleX(0);transform-origin:center;transition:transform .25s}
.terra-nav-link:hover,.terra-nav-link.is-active{color:var(--terra-blue)}
.terra-nav-link:hover::after,.terra-nav-link.is-active::after{transform:scaleX(1)}
.terra-header-tools{display:flex;align-items:center;gap:18px}
.terra-lang{display:flex;align-items:center;gap:6px;font-size:13px}
.terra-lang-btn{background:none;border:0;padding:6px 4px;font-weight:600;color:var(--terra-text);cursor:pointer;transition:color .2s;white-space:nowrap}
.terra-lang-btn:hover{color:var(--terra-blue)}
.terra-lang-btn[aria-pressed="true"]{color:var(--terra-blue);font-weight:800;box-shadow:inset 0 -2px 0 var(--terra-orange)}
.terra-lang-sep{color:var(--terra-line)}
.terra-toggle{display:none;width:46px;height:46px;border:1px solid var(--terra-line);border-radius:12px;background:#fff;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0}
.terra-toggle-bar{width:20px;height:2px;background:var(--terra-blue);border-radius:2px;transition:transform .25s,opacity .2s}
.terra-toggle[aria-expanded="true"] .terra-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.terra-toggle[aria-expanded="true"] .terra-toggle-bar:nth-child(2){opacity:0}
.terra-toggle[aria-expanded="true"] .terra-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Slightly tighter spacing just above the hamburger breakpoint */
@media (min-width:1101px) and (max-width:1250px){
  .terra-nav-list{gap:18px}
  .terra-panel{gap:18px}
  .terra-header-tools{gap:12px}
}

/* Mobile + tablet header (hamburger). Breakpoint raised to 1100px so the
   menu never gets squeezed between 992px and 1100px. */
@media (max-width:1100px){
  :root{--terra-header-h:68px}
  .terra-header-inner{gap:12px}
  .terra-logo img{height:44px}
  .terra-toggle{display:flex;margin-inline-start:auto;flex:none}
  .terra-panel{position:absolute;inset-inline:0;top:100%;flex-direction:column;align-items:stretch;gap:0;margin:0;background:#fff;border-top:1px solid var(--terra-line);box-shadow:0 18px 30px rgba(20,22,80,.12);padding:8px 20px 22px;max-height:calc(100dvh - var(--terra-header-h));overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .25s,transform .25s,visibility .25s}
  .terra-panel.is-open{opacity:1;visibility:visible;transform:none}
  .terra-nav-list{flex-direction:column;gap:0}
  .terra-nav-link{display:block;padding:15px 4px;border-bottom:1px solid var(--terra-line);font-size:15px}
  .terra-nav-link::after{display:none}
  .terra-nav-link.is-active{color:var(--terra-blue);box-shadow:inset 3px 0 0 var(--terra-orange);padding-inline-start:14px}
  [dir="rtl"] .terra-nav-link.is-active{box-shadow:inset -3px 0 0 var(--terra-orange)}
  .terra-header-tools{flex-direction:column;align-items:stretch;gap:16px;margin-top:18px}
  .terra-lang{justify-content:center;font-size:15px}
  .terra-header-tools .terra-btn{width:100%}

  /* Language switcher moved to the top bar (by terra-lang-header.js),
     sitting immediately left of the 3-line icon */
  .terra-header-inner > .terra-lang{
    margin-inline-start:auto;
    justify-content:flex-end;
    gap:2px;
    font-size:13px;
    flex:none;
    white-space:nowrap;
  }
  .terra-header-inner > .terra-lang ~ .terra-toggle{margin-inline-start:0}
  .terra-header-inner > .terra-lang .terra-lang-btn{padding:8px 5px}
}
@media (max-width:400px){
  :root{--terra-header-h:62px}
  .terra-header-inner{gap:8px}
  .terra-logo img{height:38px}
  .terra-toggle{width:42px;height:42px}
  .terra-header-inner > .terra-lang{font-size:12px;gap:0}
  .terra-header-inner > .terra-lang .terra-lang-btn{padding:8px 3px}
}

/* ---------- Hero ---------- */
/* ALL screen sizes: FULL image (never cropped), text on the LEFT,
   vertically centred over the image. Text scales down on smaller screens. */

.terra-hero{position:relative;background:var(--terra-blue-deep)}

/* small orange line at the top of the slider */
.terra-hero-h1-wrap{position:absolute;inset-inline:0;top:clamp(6px,1.8vw,44px);z-index:5;pointer-events:none}
.terra-hero-h1{font-size:clamp(9px,1.1vw,13px);font-weight:700;letter-spacing:.08em;color:var(--terra-orange);max-width:560px;line-height:1.4;margin:0;padding:0}
html[lang="ar"] .terra-hero-h1{letter-spacing:0;font-size:clamp(10px,1.2vw,15px)}

/* slider height follows the image (full image, no crop) */
.terra-hero-swiper{position:relative;width:100%;height:auto;overflow:hidden}
.terra-hero-swiper .swiper-wrapper{display:flex;height:auto;align-items:stretch}
.terra-slide{position:relative;flex:0 0 100%;width:100%;height:auto;display:block;overflow:hidden;background:var(--terra-blue-deep)}
.terra-slide-img{position:static;display:block;width:100%;height:auto;max-width:100%;object-fit:contain;object-position:center}
[dir="rtl"] .terra-slide-img{transform:scaleX(-1)}

/* dark gradient on the text side */
.terra-slide::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(13,15,61,.92) 0%,rgba(13,15,61,.7) 42%,rgba(13,15,61,.05) 78%)}
[dir="rtl"] .terra-slide::before{background:linear-gradient(270deg,rgba(13,15,61,.92) 0%,rgba(13,15,61,.7) 42%,rgba(13,15,61,.05) 78%)}

/* text layer: over the image, left side, vertically centred */
.terra-slide-inner{position:absolute;inset:0;z-index:2;display:flex;align-items:center;padding-top:clamp(26px,5.5vw,73px);padding-bottom:clamp(22px,4vw,48px)}
.terra-slide-copy{width:100%;max-width:min(560px,62%);color:#fff;text-align:start}
.terra-slide-title{font-size:clamp(30px,4.6vw,56px);font-weight:800;line-height:1.1;letter-spacing:-.025em;color:#fff;margin-bottom:18px}
html[lang="ar"] .terra-slide-title{line-height:1.3;letter-spacing:0}
.terra-slide-sub{font-size:clamp(16px,1.6vw,19px);color:rgba(255,255,255,.86);margin-bottom:30px;max-width:46ch}
.swiper-slide-active .terra-slide-copy{animation:terra-rise .8s .1s both}
@keyframes terra-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* dots + arrows */
.terra-hero-ui{position:absolute;inset-inline:0;bottom:26px;z-index:5;display:flex;justify-content:center;pointer-events:none}
.terra-hero-dots{position:static;width:auto!important;display:flex;gap:8px;pointer-events:auto}
.terra-hero-dots .swiper-pagination-bullet{width:10px;height:10px;border-radius:999px;background:#fff;opacity:.45;margin:0!important;transition:width .3s,opacity .3s,background-color .3s}
.terra-hero-dots .swiper-pagination-bullet-active{width:32px;opacity:1;background:var(--terra-orange)}
.terra-hero-nav{position:absolute;top:50%;z-index:5;width:48px;height:48px;margin-top:-24px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(13,15,61,.35);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,border-color .2s}
.terra-hero-nav:hover{background:var(--terra-orange);border-color:var(--terra-orange);color:var(--terra-blue-deep)}
.terra-hero-prev{inset-inline-start:12px}
.terra-hero-prev .terra-icon{transform:scaleX(-1)}
[dir="rtl"] .terra-hero-prev .terra-icon{transform:none}
.terra-hero-next{inset-inline-end:12px}
@media (max-width:1279px){.terra-hero-nav{display:none}}

/* chatbot button avatar (unchanged) */
.terra-fab-chat {
    width: 56px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
}
.terra-chat-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* tablet / small laptop: same layout, smaller text */
@media (min-width:768px) and (max-width:1100px){
  .terra-slide-inner{padding-inline:clamp(16px,3vw,28px)}
  .terra-slide-copy{max-width:min(520px,60%)}
  .terra-slide-title{font-size:clamp(24px,4.4vw,44px);margin-bottom:12px}
  .terra-slide-sub{font-size:clamp(13px,1.8vw,17px);line-height:1.5;margin-bottom:18px}
  .terra-slide .terra-btn{padding:10px 22px;font-size:14px}
  .terra-hero-ui{bottom:clamp(8px,2vw,20px)}
}

/* MOBILE: full image + text stays ON the image, left side, vertically centred
   (same layout as laptop, only smaller) */
@media (max-width:767px){
  .terra-slide::before{background:linear-gradient(90deg,rgba(13,15,61,.9) 0%,rgba(13,15,61,.78) 55%,rgba(13,15,61,.1) 95%)}
  [dir="rtl"] .terra-slide::before{background:linear-gradient(270deg,rgba(13,15,61,.9) 0%,rgba(13,15,61,.78) 55%,rgba(13,15,61,.1) 95%)}
  .terra-slide-inner{padding-inline:14px}
  .terra-slide-copy{max-width:64%}
  .terra-slide-title{font-size:clamp(18px,4.8vw,30px);line-height:1.2;margin-bottom:10px}
  .terra-slide-sub{font-size:clamp(12px,2.4vw,15px);line-height:1.5;margin-bottom:14px}
  .terra-slide .terra-btn{padding:9px 20px;font-size:13px}
  .terra-hero-dots .swiper-pagination-bullet{width:8px;height:8px}
  .terra-hero-dots .swiper-pagination-bullet-active{width:24px}
}

/* small phones */
@media (max-width:575px){
  .terra-hero-h1{font-size:8.5px;letter-spacing:.03em;white-space:nowrap;max-width:none}
  html[lang="ar"] .terra-hero-h1{font-size:9.5px}
  .terra-slide-inner{padding-top:24px;padding-bottom:22px;padding-inline:12px}
  .terra-slide-copy{max-width:66%}
  .terra-slide-title{font-size:clamp(14px,4.8vw,22px);margin-bottom:6px}
  .terra-slide-sub{font-size:clamp(10.5px,3vw,13px);line-height:1.4;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .terra-slide .terra-btn{padding:7px 14px;font-size:11.5px;gap:6px}
  .terra-hero-dots{gap:5px}
  .terra-hero-dots .swiper-pagination-bullet{width:6px;height:6px}
  .terra-hero-dots .swiper-pagination-bullet-active{width:18px}
  .terra-hero-ui{bottom:6px}
}

/* ---------- About ---------- */
.terra-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(36px,6vw,88px);align-items:center}
.terra-about-media{position:relative}
.terra-about-media::before{content:"";position:absolute;inset-block-end:-18px;inset-inline-start:-18px;width:62%;height:62%;border-radius:var(--terra-radius);background:var(--terra-orange);opacity:.9;z-index:0}
.terra-about-media img{position:relative;z-index:1;width:100%;aspect-ratio:5/4;object-fit:cover;border-radius:var(--terra-radius);box-shadow:var(--terra-shadow-lg)}
.terra-ticks{display:grid;gap:12px;margin:22px 0 32px}
.terra-ticks li{display:flex;gap:12px;align-items:flex-start;color:var(--terra-ink);font-weight:600}
.terra-ticks .terra-icon{width:22px;height:22px;padding:4px;border-radius:50%;background:var(--terra-blue-soft);color:var(--terra-blue);stroke-width:2.6;margin-top:2px}
@media (max-width:900px){
  .terra-about-grid{grid-template-columns:1fr}
  .terra-about-media{margin-inline-end:18px}
}

/* ---------- Products ---------- */
.terra-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.terra-product-card{background:#fff;border:1px solid var(--terra-line);border-radius:var(--terra-radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .3s,box-shadow .3s,border-color .3s}
.terra-product-card:hover{transform:translateY(-6px);box-shadow:var(--terra-shadow-lg);border-color:transparent}
.terra-product-media{display:block;overflow:hidden;aspect-ratio:4/3;background:var(--terra-blue-soft)}
.terra-product-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.terra-product-card:hover .terra-product-media img{transform:scale(1.06)}
.terra-product-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1;gap:0}
.terra-product-body p{font-size:15px;margin-bottom:18px;flex:1}
@media (max-width:1100px){.terra-product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.terra-product-grid{grid-template-columns:1fr;gap:20px}}

/* ---------- Brands ---------- */
.terra-marquee{overflow:hidden;padding:8px 0 4px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.terra-marquee-track{display:flex;gap:18px;width:max-content;animation:terra-scroll 38s linear infinite}
.terra-marquee:hover .terra-marquee-track{animation-play-state:paused}
.terra-marquee-track li{flex:none;display:flex;align-items:center;justify-content:center;min-width:170px;padding:22px 30px;border:1px solid var(--terra-line);border-radius:12px;background:#fff;font-weight:800;font-size:20px;letter-spacing:-.01em;color:var(--terra-blue);white-space:nowrap;transition:border-color .2s,box-shadow .2s,color .2s}
.terra-marquee-track li:hover{border-color:var(--terra-orange);box-shadow:var(--terra-shadow);color:var(--terra-ink)}
@keyframes terra-scroll{to{transform:translateX(-50%)}}
.terra-note{text-align:center;font-size:13.5px;color:#767993;max-width:640px;margin:26px auto 0}
@media (max-width:560px){
  .terra-marquee-track li{min-width:130px;padding:16px 22px;font-size:17px}
}

/* ---------- Why ---------- */
.terra-why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.terra-why-card{background:#fff;border:1px solid var(--terra-line);border-radius:var(--terra-radius);padding:32px 26px;transition:transform .3s,box-shadow .3s}
.terra-why-card:hover{transform:translateY(-4px);box-shadow:var(--terra-shadow-lg)}
.terra-why-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:14px;background:var(--terra-blue);color:#fff;margin-bottom:22px;transition:background-color .3s,color .3s}
.terra-why-icon .terra-icon{width:28px;height:28px}
.terra-why-card:hover .terra-why-icon{background:var(--terra-orange);color:var(--terra-blue-deep)}
.terra-why-card .terra-h3{font-size:16px;letter-spacing:.05em}
html[lang="ar"] .terra-why-card .terra-h3{letter-spacing:0;font-size:18px}
.terra-why-card p{font-size:15px}
@media (max-width:1100px){.terra-why-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.terra-why-grid{grid-template-columns:1fr}}

/* ---------- Highlight ---------- */
.terra-highlight{background:var(--terra-blue);color:#fff;overflow:hidden;position:relative}
.terra-highlight-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(32px,6vw,80px);align-items:center;padding-block:clamp(56px,7vw,96px)}
.terra-highlight-media img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--terra-radius);box-shadow:0 24px 50px rgba(0,0,0,.35)}
.terra-highlight .terra-h2{color:#fff}
.terra-highlight-copy p{color:rgba(255,255,255,.85);margin-bottom:30px;max-width:48ch;font-size:17px}
@media (max-width:900px){.terra-highlight-grid{grid-template-columns:1fr}}

/* ---------- CTA ---------- */
.terra-cta{background:var(--terra-blue-deep);position:relative;overflow:hidden}
.terra-cta::before{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:min(38%,420px);background:var(--terra-orange);clip-path:polygon(38% 0,100% 0,100% 100%,0 100%)}
[dir="rtl"] .terra-cta::before{clip-path:polygon(0 0,62% 0,100% 100%,0 100%)}
.terra-cta-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;padding-block:clamp(48px,6vw,76px)}
.terra-cta-copy{max-width:600px}
.terra-cta .terra-h2{color:#fff;margin-bottom:12px}
.terra-cta-copy p{color:rgba(255,255,255,.85);font-size:17px}
.terra-cta-actions{display:flex;gap:14px;flex-wrap:wrap}
.terra-cta .terra-btn-accent{background:#fff;box-shadow:none}
.terra-cta .terra-btn-outline{border-color:var(--terra-blue-deep);color:var(--terra-blue-deep)!important;background:transparent}
.terra-cta .terra-btn-outline:hover{background:var(--terra-blue-deep);color:#fff!important}
@media (max-width:900px){
  .terra-cta::before{display:none}
  .terra-cta{border-bottom:6px solid var(--terra-orange)}
  .terra-cta .terra-btn-accent{background:var(--terra-orange)}
  .terra-cta .terra-btn-outline{border-color:rgba(255,255,255,.7);color:#fff!important}
}
@media (max-width:480px){
  .terra-cta-actions{width:100%}
  .terra-cta-actions .terra-btn{flex:1 1 100%}
}

/* ---------- Footer ---------- */
.terra-footer{background:#0d0f3d;color:rgba(255,255,255,.72);font-size:15px}
.terra-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;padding-block:clamp(48px,6vw,72px)}
.terra-footer-logo{width:150px;height:auto;background:#fff;padding:10px 14px;border-radius:10px;margin-bottom:20px}
.terra-footer-about p{max-width:36ch}
.terra-footer-h{color:#fff;font-size:16px;font-weight:700;margin-bottom:18px;padding-bottom:12px;position:relative}
.terra-footer-h::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:32px;height:2px;background:var(--terra-orange)}
.terra-footer li{margin-bottom:10px}
.terra-footer a{transition:color .2s}
.terra-footer a:hover{color:var(--terra-orange)}
.terra-footer-contact li{display:flex;gap:12px;align-items:flex-start}
.terra-footer-contact .terra-icon{color:var(--terra-orange);margin-top:3px}
.terra-fc-label{display:block;font-size:12.5px;color:rgba(255,255,255,.5)}
.terra-footer-bottom{border-top:1px solid rgba(255,255,255,.1)}
.terra-footer-bottom-inner{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;padding-block:20px;font-size:14px}
.terra-credit a{color:var(--terra-orange);font-weight:600}
.terra-credit a:hover{text-decoration:underline}
@media (max-width:991px){.terra-footer-grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){
  .terra-footer-grid{grid-template-columns:1fr;gap:32px}
  .terra-footer-bottom-inner{flex-direction:column;text-align:center}
  /* keeps the last footer lines clear of the floating buttons */
  .terra-footer-bottom-inner{padding-bottom:84px}
}

/* ---------- Floating buttons ---------- */
.terra-float{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:90;display:flex;flex-direction:column;gap:12px}
.terra-float-right{right:16px}
.terra-float-left{left:16px}
.terra-fab{position:relative;width:54px;height:54px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;box-shadow:0 8px 22px rgba(13,15,61,.3);transition:transform .2s,box-shadow .2s}
.terra-fab:hover{transform:scale(1.08);box-shadow:0 12px 28px rgba(13,15,61,.38)}
.terra-fab .terra-icon{width:26px;height:26px}
.terra-fab-wa{background:#25d366}
.terra-fab-call{background:var(--terra-blue)}
.terra-fab-chat{background:var(--terra-orange);color:var(--terra-blue-deep)}
.terra-tip{position:absolute;top:50%;transform:translateY(-50%);white-space:nowrap;background:var(--terra-ink);color:#fff;font-size:13px;font-weight:600;padding:6px 12px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s}
.terra-float-right .terra-tip{right:66px}
.terra-float-left .terra-tip{left:66px}
.terra-fab:hover .terra-tip,.terra-fab:focus-visible .terra-tip{opacity:1}
@media (hover:none){.terra-tip{display:none}}
@media (max-width:480px){
  .terra-float-right{right:12px}
  .terra-float-left{left:12px}
  .terra-fab{width:50px;height:50px}
  .terra-fab-chat{width:50px;height:50px}
}

/* ---------- Chatbot (window is built on first click) ---------- */
.terra-chat{position:fixed;left:16px;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:95;width:340px;max-width:calc(100vw - 32px);max-height:min(520px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--terra-line);border-radius:16px;box-shadow:0 24px 60px rgba(13,15,61,.28);overflow:hidden;opacity:0;transform:translateY(12px) scale(.98);visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s}
.terra-chat.is-open{opacity:1;transform:none;visibility:visible}
.terra-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--terra-blue);color:#fff;padding:14px 16px}
.terra-chat-title{font-weight:700;font-size:15px;line-height:1.3}
.terra-chat-title small{display:block;font-weight:400;font-size:12px;opacity:.75}
.terra-chat-close{background:rgba(255,255,255,.14);border:0;color:#fff;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.terra-chat-close:hover{background:rgba(255,255,255,.28)}
.terra-chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--terra-tint)}
.terra-msg{max-width:88%;padding:10px 14px;border-radius:14px;font-size:14.5px;line-height:1.5;animation:terra-rise .3s both}
.terra-msg-bot{background:#fff;color:var(--terra-ink);border:1px solid var(--terra-line);border-end-start-radius:4px;align-self:flex-start}
.terra-msg-user{background:var(--terra-blue);color:#fff;border-end-end-radius:4px;align-self:flex-end}
.terra-msg a{color:var(--terra-blue);font-weight:700;text-decoration:underline}
.terra-chat-opts{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px;background:var(--terra-tint)}
.terra-chat-opt{border:1.5px solid var(--terra-blue);background:#fff;color:var(--terra-blue);font-weight:600;font-size:13.5px;padding:8px 14px;border-radius:999px;cursor:pointer;transition:background-color .2s,color .2s}
.terra-chat-opt:hover{background:var(--terra-blue);color:#fff}
.terra-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--terra-line);background:#fff}
.terra-chat-input{flex:1;min-width:0;border:1px solid var(--terra-line);border-radius:999px;padding:10px 16px;font:inherit;font-size:14.5px;color:var(--terra-ink)}
.terra-chat-input:focus{outline:2px solid var(--terra-orange);outline-offset:0;border-color:transparent}
.terra-chat-send{width:42px;height:42px;flex:none;border-radius:50%;border:0;background:var(--terra-orange);color:var(--terra-blue-deep);display:flex;align-items:center;justify-content:center;cursor:pointer}
[dir="rtl"] .terra-chat-send .terra-icon{transform:scaleX(-1)}


/* ---------- Gallery ---------- */
.terra-gal-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:210px;gap:18px}
.terra-gal-item{position:relative;margin:0;overflow:hidden;border-radius:var(--terra-radius);background:var(--terra-blue-deep);box-shadow:var(--terra-shadow)}
.terra-gal-item:nth-child(1){grid-column:span 2;grid-row:span 2}
.terra-gal-item img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.terra-gal-item:hover img{transform:scale(1.06)}
.terra-gal-item figcaption{position:absolute;inset-inline:0;bottom:0;padding:38px 18px 14px;color:#fff;font-weight:700;font-size:15px;background:linear-gradient(180deg,transparent,rgba(13,15,61,.85))}
@media (max-width:900px){
  .terra-gal-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:180px;gap:14px}
  .terra-gal-item:nth-child(n){grid-column:span 1;grid-row:span 1}
  .terra-gal-item:nth-child(1){grid-column:span 2;grid-row:span 2}
}
@media (max-width:480px){
  .terra-gal-grid{grid-auto-rows:150px;gap:10px}
  .terra-gal-item figcaption{font-size:13px;padding:28px 12px 10px}
}

/* ---------- FAQ ---------- */
.terra-faq-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(32px,6vw,80px);align-items:start}
.terra-faq-intro{position:sticky;top:calc(var(--terra-header-h) + 24px)}
.terra-faq-list{display:grid;gap:14px}
.terra-faq-item{background:#fff;border:1px solid var(--terra-line);border-radius:var(--terra-radius);transition:box-shadow .25s,border-color .25s}
.terra-faq-item[open]{box-shadow:var(--terra-shadow);border-color:var(--terra-orange)}
.terra-faq-item summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;font-weight:700;color:var(--terra-ink);font-size:16.5px;line-height:1.4}
.terra-faq-item summary::-webkit-details-marker{display:none}
.terra-faq-icon{position:relative;flex:none;width:28px;height:28px;border-radius:50%;background:var(--terra-blue-soft);transition:background-color .25s}
.terra-faq-icon::before,.terra-faq-icon::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--terra-blue);transition:transform .25s}
.terra-faq-icon::after{transform:rotate(90deg)}
.terra-faq-item[open] .terra-faq-icon{background:var(--terra-orange)}
.terra-faq-item[open] .terra-faq-icon::after{transform:rotate(0)}
.terra-faq-a{padding:0 24px 22px;animation:terra-rise .3s both}
.terra-faq-a p{max-width:60ch}
@media (max-width:900px){
  .terra-faq-grid{grid-template-columns:1fr}
  .terra-faq-intro{position:static}
}
@media (max-width:480px){
  .terra-faq-item summary{padding:16px 18px;font-size:15.5px}
  .terra-faq-a{padding:0 18px 18px}
}


/* ---------- Products submenu ---------- */
.terra-has-sub{position:relative;display:flex;align-items:center;gap:2px}
.terra-sub-toggle{background:none;border:0;padding:6px 4px;color:var(--terra-ink);cursor:pointer;display:flex;align-items:center;border-radius:6px}
.terra-sub-toggle .terra-icon{width:16px;height:16px;stroke-width:2.4;transition:transform .25s}
.terra-has-sub:hover .terra-sub-toggle .terra-icon,.terra-has-sub.is-open .terra-sub-toggle .terra-icon{transform:rotate(180deg)}
.terra-sub{position:absolute;top:100%;inset-inline-start:-16px;min-width:230px;padding:10px;margin-top:14px;background:#fff;border:1px solid var(--terra-line);border-radius:12px;box-shadow:var(--terra-shadow-lg);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;z-index:120}
.terra-sub::before{content:"";position:absolute;inset-inline:0;top:-16px;height:16px}
.terra-has-sub:hover .terra-sub,.terra-has-sub:focus-within .terra-sub,.terra-has-sub.is-open .terra-sub{opacity:1;visibility:visible;transform:none}
.terra-sub-link{display:block;padding:10px 14px;border-radius:8px;font-weight:600;font-size:14.5px;color:var(--terra-ink);transition:background-color .2s,color .2s}
.terra-sub-link:hover{background:var(--terra-blue-soft);color:var(--terra-blue)}
@media (max-width:1100px){
  .terra-has-sub{flex-wrap:wrap;border-bottom:1px solid var(--terra-line)}
  .terra-has-sub .terra-nav-link{flex:1;border-bottom:0}
  .terra-sub-toggle{width:48px;height:48px;justify-content:center;padding:0}
  .terra-has-sub:hover .terra-sub-toggle .terra-icon{transform:none}
  .terra-has-sub.is-open .terra-sub-toggle .terra-icon{transform:rotate(180deg)}
  .terra-sub{position:static;flex:0 0 100%;min-width:0;margin:0 0 10px;padding:0 0 0 12px;border:0;border-inline-start:2px solid var(--terra-orange);border-radius:0;box-shadow:none;display:none;opacity:1;visibility:visible;transform:none;padding-inline:14px 0}
  .terra-sub::before{display:none}
  .terra-has-sub:hover .terra-sub,.terra-has-sub:focus-within .terra-sub{display:none}
  .terra-has-sub.is-open .terra-sub{display:block}
  .terra-sub-link{padding:11px 8px}
}

/* ---------- Gallery zoom / lightbox ---------- */
.terra-gal-btn{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in;position:relative}
.terra-gal-zoom{position:absolute;top:12px;inset-inline-end:12px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--terra-blue);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.85);transition:opacity .25s,transform .25s}
.terra-gal-item:hover .terra-gal-zoom,.terra-gal-btn:focus-visible .terra-gal-zoom{opacity:1;transform:none}
@media (hover:none){.terra-gal-zoom{opacity:1;transform:none}}
.terra-gal-item figcaption{pointer-events:none}
.terra-lb{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(9,10,40,.92);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.terra-lb.is-open{opacity:1;visibility:visible}
.terra-lb-fig{margin:0;max-width:min(1100px,100%);max-height:100%;display:flex;flex-direction:column;align-items:center;gap:14px;transform:scale(.94);transition:transform .3s}
.terra-lb.is-open .terra-lb-fig{transform:scale(1)}
.terra-lb-img{max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.5);background:var(--terra-blue-deep)}
.terra-lb-cap{color:#fff;font-weight:600;font-size:16px;text-align:center}
.terra-lb-btn{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,color .2s}
.terra-lb-btn:hover{background:var(--terra-orange);color:var(--terra-blue-deep);border-color:var(--terra-orange)}
.terra-lb-close{top:16px;inset-inline-end:16px}
.terra-lb-prev{inset-inline-start:16px;top:50%;margin-top:-24px}
.terra-lb-next{inset-inline-end:16px;top:50%;margin-top:-24px}
.terra-lb-prev .terra-icon{transform:scaleX(-1)}
[dir="rtl"] .terra-lb-prev .terra-icon{transform:none}
[dir="rtl"] .terra-lb-next .terra-icon{transform:scaleX(-1)}
@media (max-width:640px){
  .terra-lb-prev,.terra-lb-next{top:auto;bottom:16px;margin:0}
  .terra-lb-img{max-height:calc(100dvh - 190px)}
}
body.terra-lb-lock{overflow:hidden}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .terra-marquee{overflow-x:auto}
}