/* ==========================================================================
   Haseeb Textile
   ========================================================================== */

:root {
    --primary:   #1A2D4B;
    --secondary: #956929;
    --text:      #333333;
    --accent:    #14233A;
    --dark:      #1A1919;
    --white:     #ffffff;
    --gold:      #956929;

    --container-max-width: 1140px;
    --content-width: min(100%, var(--container-max-width));
}

@media (max-width: 1024px) { :root { --container-max-width: 1024px; } }
@media (max-width: 600px)  { :root { --container-max-width: 767px;  } }

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Forum', serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: 'Forum', serif; margin: 0; color: var(--text); font-weight: 400; }

p { margin: 0 0 1.5em; }

button, input, select, textarea { font-family: 'Forum', serif; font-size: 16px; }

.screen-reader-text,
.skip-link {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.ht-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.e-con-inner {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.hidden-mobile { display: block; }
.visible-mobile-only { display: none; }

@media (max-width: 991px) {
    .hidden-mobile { display: none; }
    .visible-mobile-only { display: block; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--white);
    position: relative;
    z-index: 99;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 0 35px;
    gap: 20px;
}

.site-branding { flex: 0 0 auto; padding: 1em 1em 1em 0; }
.site-branding img { display: block; width: 220px; height: auto; transition: all .2s linear; }

.main-navigation { flex: 1 1 auto; display: flex; justify-content: center; }

.main-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-header-menu .menu-item { display: flex; flex-direction: column; justify-content: center; }

.main-header-menu .menu-link {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 80px;
    padding: 0 1em;
    white-space: nowrap;
    font-family: inherit;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    transition: color .2s linear;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link { color: var(--gold); }

.header-actions { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }

.ast-custom-button {
    display: inline-block;
    color: var(--white);
    background-color: var(--primary);
    border: 0;
    border-radius: 40px;
    padding: 15px 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 18px;
    line-height: 1em;
    transition: background-color .2s linear, border-color .2s linear;
}

.ast-custom-button-link:hover .ast-custom-button { background-color: var(--secondary); }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
}

.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .ast-close-svg { display: none; }
.menu-toggle[aria-expanded="true"] .ast-menu-svg { display: none; }
.menu-toggle[aria-expanded="true"] .ast-close-svg { display: block; }

.ast-mobile-header-content { display: none; }

/* Language switcher (flag + label dropdown in the header actions) */
.lang-switcher { position: relative; flex: 0 0 auto; display: block; }
.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid #e3e3e3;
    border-radius: 40px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s linear, color .2s linear;
}
.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle { border-color: var(--gold); color: var(--gold); }
.lang-switcher__caret { transition: transform .2s ease; }
.lang-switcher.is-open .lang-switcher__caret { transform: rotate(180deg); }
.lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: inline-block; vertical-align: middle; }
.lang-switcher__menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 100;
}
.lang-switcher.is-open .lang-switcher__menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: background-color .2s linear, color .2s linear;
}
.lang-switch-link:hover { background: #f6f7fa; color: var(--gold); }
.lang-switch-link.is-active { color: var(--gold); background: rgba(149, 105, 41, .08); }
@media (min-width: 992px) {
    .lang-switcher:hover .lang-switcher__menu { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 1200px) {
    .main-header-menu .menu-link { padding: 0 .5em; }
}

@media (max-width: 991px) {
    .header-inner { padding: 0 20px; }
    .site-branding img { width: 200px; }
    .main-navigation { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }

    .ast-mobile-header-content { display: block; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .ast-mobile-header-content.is-open { max-height: 480px; }
    .ast-mobile-header-content .main-header-menu {
        display: block;
        border-top: 1px solid #eaeaea;
    }
    .ast-mobile-header-content .menu-item { display: block; }
    .ast-mobile-header-content .menu-link {
        line-height: 1.6;
        padding: 14px 20px;
        border-bottom: 1px solid #eaeaea;
    }
}

@media (max-width: 544px) {
    .site-branding img { width: 150px; }
    .ast-custom-button { font-size: 14px; padding: 10px 20px; }
    .lang-switcher__label { display: none; }
    .lang-switcher__toggle { padding: 7px 8px; gap: 4px; }
}

/* Narrow phones: the Spanish / Portuguese CTA labels are longer than
   "Let's Talk", so tighten the header until everything fits in ~360px. */
@media (max-width: 480px) {
    .header-inner { padding: 0 15px; gap: 12px; }
    .site-branding { padding-right: 0; }
    .site-branding img { width: 130px; }
    .header-actions { gap: 8px; }
    .ast-custom-button { font-size: 13px; padding: 9px 14px; white-space: nowrap; }
    .lang-switcher__toggle { padding: 6px 7px; }
    .lang-switcher__caret { display: none; }
}
@media (max-width: 400px) {
    .site-branding img { width: 118px; }
    .ast-custom-button { font-size: 12px; padding: 8px 12px; }
}

/* ==========================================================================
   Hero - desktop (Slider Revolution replica, 1920 x 860 design grid)
   ========================================================================== */

.ht-hero-wrap { background: var(--white); padding: 10px 0; }

.ht-hero {
    --mp: 1;
    --grid-h: 860px;
    position: relative;
    width: 100%;
    height: calc(var(--grid-h) * var(--mp));
    overflow: hidden;
    background: var(--white);
}

.ht-hero__stage { position: absolute; inset: 0; }

.ht-hero__slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    background: var(--white);
}

.ht-hero__slide.is-active,
.ht-hero__slide.is-leaving { visibility: visible; }
.ht-hero__slide.is-active { z-index: 2; }
.ht-hero__slide.is-leaving { z-index: 1; }

/* --- image layer ------------------------------------------------------- */
.ht-hero__mask {
    position: absolute;
    top: 50%;
    right: calc(-2px * var(--mp));
    width: calc(1280px * var(--mp));
    height: calc(746px * var(--mp));
    transform: translateY(-50%);
    overflow: hidden;
}

.ht-hero__img {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* --- text layers ------------------------------------------------------- */
.ht-hero__zone {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
}

.ht-hero__row { margin-left: calc(40px * var(--mp)); padding-right: calc(40px * var(--mp)); }

.ht-hero__col { display: block; }

.ht-hero__eyebrow {
    font-family: 'Forum', serif;
    font-size: calc(16px * var(--mp));
    line-height: calc(28px * var(--mp));
    letter-spacing: calc(2px * var(--mp));
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(12, 12, 12, .9);
}

.ht-hero__title {
    font-family: 'Forum', serif;
    font-size: calc(73px * var(--mp));
    line-height: calc(80px * var(--mp));
    letter-spacing: calc(-3px * var(--mp));
    font-weight: 400;
    color: #0c0c0c;
    text-shadow: calc(4px * var(--mp)) calc(4px * var(--mp)) calc(4px * var(--mp)) rgba(0, 0, 0, .25);
}

.ht-hero__text {
    font-family: 'DM Sans', sans-serif;
    font-size: calc(18px * var(--mp));
    line-height: calc(28px * var(--mp));
    font-weight: 400;
    color: rgba(51, 51, 51, .6);
    width: calc(439px * var(--mp));
    max-width: 100%;
}

.ht-hero__gap--1 { height: calc(18px * var(--mp)); }
.ht-hero__gap--2 { height: calc(24px * var(--mp)); }
.ht-hero__gap--3 { height: calc(34px * var(--mp)); }

/* --- entrance animations ----------------------------------------------- */
.ht-hero__slide .ht-hero__mask {
    clip-path: inset(0 0 0 100%);
}
.ht-hero__slide .ht-hero__img {
    transform: translateX(105%) skewX(-3deg);
}
.ht-hero__slide .ht-hero__eyebrow,
.ht-hero__slide .ht-hero__title,
.ht-hero__slide .ht-hero__text { opacity: 0; }

.ht-hero__slide.is-active .ht-hero__mask {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1200ms cubic-bezier(.215, .61, .355, 1) 540ms;
}
.ht-hero__slide.is-active .ht-hero__img {
    transform: translateX(0) skewX(0deg);
    transition: transform 1200ms cubic-bezier(.215, .61, .355, 1) 540ms;
}
.ht-hero__slide.is-active .ht-hero__eyebrow {
    opacity: 1;
    animation: ht-hero-in-30 1000ms cubic-bezier(.645, .045, .355, 1) 1790ms both;
}
.ht-hero__slide.is-active .ht-hero__title {
    opacity: 1;
    animation: ht-hero-in-40 1000ms cubic-bezier(.645, .045, .355, 1) 1010ms both;
}
.ht-hero__slide.is-active .ht-hero__text {
    opacity: 1;
    animation: ht-hero-in-30 1000ms cubic-bezier(.645, .045, .355, 1) 1200ms both;
}

.ht-hero__slide.is-leaving { opacity: 0; transition: opacity 600ms ease; }

@keyframes ht-hero-in-30 {
    from { opacity: 0; transform: translateX(calc(30px * var(--mp))); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes ht-hero-in-40 {
    from { opacity: 0; transform: translateX(calc(40px * var(--mp))); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- bullets ----------------------------------------------------------- */
.ht-hero__bullets {
    position: absolute;
    left: 40px;
    bottom: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
    transform: translate(70px, -60px);
}

.ht-hero__bullet {
    width: 10px; height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #999999;
    cursor: pointer;
    box-sizing: content-box;
    transition: .3s ease;
}

.ht-hero__bullet:hover,
.ht-hero__bullet.selected {
    background: #1a2d4b;
    box-shadow: 0 0 0 5px rgba(26, 45, 75, .2);
}

@media (max-width: 1200px) { .ht-hero__bullets { transform: translate(70px, -30px); } }
@media (max-width: 1024px) { .ht-hero__bullets { transform: translate(40px, -20px); } }
@media (max-width: 800px)  { .ht-hero__bullets { display: none; } }

/* responsive design grids, mirroring the original slider breakpoints */
@media (max-width: 1023px) {
    .ht-hero { --grid-h: 600px; }
    .ht-hero__mask { width: calc(1280px * var(--mp)); height: calc(746px * var(--mp)); }
    .ht-hero__row { margin-left: calc(30px * var(--mp)); }
    .ht-hero__eyebrow { font-size: calc(12px * var(--mp)); line-height: calc(24px * var(--mp)); }
    .ht-hero__title  { font-size: calc(46px * var(--mp)); line-height: calc(48px * var(--mp)); letter-spacing: calc(-2px * var(--mp)); }
    .ht-hero__text   { font-size: calc(13px * var(--mp)); line-height: calc(20px * var(--mp)); width: calc(297px * var(--mp)); }
    .ht-hero__gap--1 { height: calc(20px * var(--mp)); }
    .ht-hero__gap--2 { height: calc(18px * var(--mp)); }
    .ht-hero__gap--3 { height: calc(24px * var(--mp)); }
}

@media (max-width: 777px) {
    .ht-hero { --grid-h: 360px; }
    .ht-hero__mask { right: calc(-80px * var(--mp)); width: calc(600px * var(--mp)); height: calc(361px * var(--mp)); }
    .ht-hero__row { margin-left: calc(20px * var(--mp)); }
    .ht-hero__eyebrow { font-size: calc(10px * var(--mp)); line-height: calc(18px * var(--mp)); }
    .ht-hero__title  { font-size: calc(38px * var(--mp)); line-height: calc(36px * var(--mp)); letter-spacing: calc(-1px * var(--mp)); }
    .ht-hero__text   { font-size: calc(14px * var(--mp)); line-height: calc(18px * var(--mp)); width: calc(281px * var(--mp)); }
    .ht-hero__gap--1 { height: calc(16px * var(--mp)); }
    .ht-hero__gap--2 { height: calc(20px * var(--mp)); }
    .ht-hero__gap--3 { height: calc(20px * var(--mp)); }
}

/* ==========================================================================
   Hero - mobile
   ========================================================================== */

.ht-hero-mobile-wrap { min-height: 0; }

#ht-hero-mobile { width: 100%; }

#ht-hero-mobile .swiper-slide {
    height: 620px;
    display: flex;
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
}

#ht-hero-mobile .swiper-slide-bg {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* portrait crop on phones, the wide shot from 601px up */
#ht-hero-mobile .swiper-slide-bg--wide { display: none; }

@media (min-width: 601px) {
    #ht-hero-mobile .swiper-slide-bg--narrow { display: none; }
    #ht-hero-mobile .swiper-slide-bg--wide { display: block; }
    #ht-hero-mobile .swiper-slide { height: 520px; }
    #ht-hero-mobile .swiper-slide-contents { max-width: 680px; }
    /* the wide shots are brighter than the portrait crops - keep the copy legible */
    #ht-hero-mobile .elementor-background-overlay { background-color: #00000066; }
}

#ht-hero-mobile .elementor-background-overlay {
    position: absolute;
    inset: 0;
    background-color: #00000040;
}

#ht-hero-mobile .swiper-slide-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 0;
}

#ht-hero-mobile .swiper-slide-contents { max-width: 85%; }

#ht-hero-mobile .elementor-slide-heading {
    font-family: 'Forum', serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    text-transform: capitalize;
    color: #fff;
    margin-bottom: 20px;
}

#ht-hero-mobile .elementor-slide-description {
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: #EBEAEA;
}

/* Elementor swiper arrows / dots */
.elementor-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    cursor: pointer;
    font-size: 25px;
    color: hsla(0, 0%, 93.3%, .9);
    display: flex;
}

.elementor-swiper-button svg { width: 1em; height: 1em; fill: currentColor; }
.elementor-swiper-button-prev { left: 10px; }
.elementor-swiper-button-next { right: 10px; }
.elementor-swiper-button.swiper-button-disabled { opacity: .3; }

#ht-hero-mobile .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}

#ht-hero-mobile .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
    margin: 0 4px;
}

#ht-hero-mobile .swiper-pagination-bullet-active { opacity: 1; }

/* ==========================================================================
   Shared section headings
   ========================================================================== */

.eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.25em;
    color: var(--dark);
    margin: 0;
}

.eyebrow--poppins { text-transform: uppercase; }
.eyebrow--dark { color: #1A1919; }
.center { text-align: center; }

.section-title--flush { padding-bottom: 0; }

.section-title {
    font-family: 'Forum', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 3px;
    color: var(--dark);
    margin: 0;
    padding: 0 0 25px;
}

/* ==========================================================================
   About
   ========================================================================== */

.section-about {
    position: relative;
    background-color: var(--white);
    padding: 100px 0 120px;
}

.section-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/bg-overlay.png');
    pointer-events: none;
}

.about-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}

.about-media { width: 100%; flex-shrink: 1; min-width: 0; padding: 10px; }
.about-media img { display: block; width: 100%; border-radius: 14px; }

.about-copy {
    width: 100%;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10%;
    padding: 10px;
    gap: 20px;
}

.about-title {
    font-family: 'Forum', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 3px;
    color: #1A1919;
    margin: 0;
}

.about-text {
    padding-left: 30px;
    border-left: 2px solid var(--secondary);
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: var(--text);
}

.about-text p { margin: 0 0 1.75em; }

@media (max-width: 1024px) { .about-copy { margin-left: 20px; } }

@media (max-width: 767px) {
    .about-inner { flex-direction: column; }
    .about-media { display: none; }
    .about-copy { margin-left: 0; margin-top: 30px; }
}

@media (max-width: 600px) {
    .about-copy { margin-left: 0; margin-top: 30px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.section-services { padding: 100px 0; }

.section-services .e-con-inner { display: flex; flex-direction: column; gap: 20px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ser-box {
    width: 100%;
    background-color: var(--white);
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 1px 1px 8px 0 rgba(0, 0, 0, .3);
    transition: background .3s;
}

.ser-box:hover { background-color: var(--primary); }

.icon-box-wrapper { text-align: center; display: flex; flex-direction: column; gap: 25px; }

.icon-box-content { display: flex; flex-direction: column; gap: 14px; }

.elementor-icon {
    display: inline-block;
    font-size: 60px;
    line-height: 1;
    color: var(--primary);
    fill: var(--primary);
    transition: all .3s;
    transition-duration: .3s;
}

.elementor-icon svg { width: 1em; height: 1em; display: inline-block; fill: currentColor; }

.ser-box:hover .elementor-icon { color: var(--white); fill: var(--white); }

.icon-box-title {
    font-family: 'Forum', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 2px;
    color: var(--primary);
    margin: 0;
    transition-duration: .3s;
}

.ser-box:hover .icon-box-title { color: var(--white); }

.icon-box-description {
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: var(--text);
    margin: 0;
}

.ser-box:hover .icon-box-description { color: var(--white); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: repeat(1, 1fr); } }

/* ==========================================================================
   Products
   ========================================================================== */

.section-products { padding: 100px 0; }

.section-products .e-con-inner { display: flex; flex-direction: column; gap: 20px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card { display: flex; padding: 10px; }

.flip-box {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    outline: none;
}

.flip-box__layer {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity .6s ease, transform .6s ease;
}

.flip-box__front { background-color: var(--primary); z-index: 2; }
.flip-box__back  { background-color: #0000002E; opacity: 0; z-index: 3; }

.flip-box:hover .flip-box__back,
.flip-box:focus .flip-box__back { opacity: 1; }

.flip-box__front .flip-box__overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding: 25px;
    background-color: #0000001A;
    border-radius: 20px;
    text-align: center;
}

.flip-box__back .flip-box__overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-radius: 20px;
    text-align: center;
}

.flip-box__title {
    font-family: 'Forum', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(1, 1fr); }
    .flip-box { height: 295px; }
}

/* ==========================================================================
   Certifications
   ========================================================================== */

.section-certifications { padding: 100px 0; }

.section-certifications .e-con-inner { display: flex; flex-direction: column; gap: 20px; }

.cert-intro {
    text-align: center;
    padding: 0 0 26px;
    color: #8B8989;
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
}

.cert-intro p { margin: 0; }

.cert-carousel { position: relative; }

.cert-carousel .elementor-image-carousel-wrapper {
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.cert-carousel .swiper-slide { text-align: center; }

.cert-carousel .swiper-slide-inner { margin: 0; line-height: inherit; }

.cert-carousel .swiper-slide-image { display: block; width: 100%; height: auto; }

.cert-carousel .elementor-swiper-button {
    color: #7a7a7a;
    font-size: 25px;
}

.elementor-arrows-position-outside .elementor-swiper-button-prev { left: 0; }
.elementor-arrows-position-outside .elementor-swiper-button-next { right: 0; }

.cert-button { text-align: center; }

.elementor-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    padding: 14px 30px;
    border-radius: 40px;
    transition: background-color .3s;
}

.elementor-button:hover,
.elementor-button:focus { background-color: var(--secondary); }

/* ==========================================================================
   Contact
   ========================================================================== */

.section-contact { padding: 0 0 100px; }

.section-contact .e-con-inner { display: flex; flex-direction: column; gap: 20px; }

.contact-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

.contact-info {
    width: 35%;
    background-color: var(--primary);
    border-radius: 8px;
    box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, .2);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.contact-info__title {
    font-family: 'Forum', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0 0 30px;
}

.icon-list-items { list-style: none; margin: 0; padding: 0; }

.contact-info .icon-list-item:not(:last-child) { padding-bottom: 10px; }
.contact-info .icon-list-item:not(:first-child) { margin-top: 10px; }

.icon-list-item { display: flex; }
.icon-list-item > a { display: flex; width: 100%; }

.icon-list-icon {
    display: flex;
    align-items: center;
    padding-right: 8px;
    flex-shrink: 0;
}

.contact-info .icon-list-icon svg { width: 20px; height: 20px; fill: var(--white); transition: fill .3s; }

.contact-info .icon-list-text {
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1.5px;
    color: var(--white);
    transition: color .3s;
}

.contact-form-wrap {
    width: 65%;
    border-radius: 8px;
    box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, .2);
    background: var(--white);
}

@media (max-width: 767px) {
    .contact-row { flex-direction: column; }
    .contact-info,
    .contact-form-wrap { width: 100%; }
}

/* --- form -------------------------------------------------------------- */

.ht-form { padding: 30px; display: flex; flex-direction: column; gap: 8px; }

.form-title {
    font-family: 'Forum', serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 2px;
    color: var(--dark);
    margin: 0;
}

.form-subtitle {
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: #676F7E;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.mf-input-wrapper { position: relative; }

.mf-input-label {
    display: block;
    color: #0D1427;
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    margin: 0 0 7px;
}

.mf-input-required-indicator { color: #f00; }

.mf-input {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 8px 8px 8px 14px;
    border: 1px solid #EAECF1;
    border-radius: 40px;
    background-color: #F6F7FA;
    color: #0D1427;
    font-family: 'Forum', serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    line-height: 21px;
    box-shadow: none;
    transition: all .2s linear;
    -webkit-appearance: none;
    appearance: none;
}

.mf-input::placeholder {
    color: #878991;
    font-family: 'Forum', serif;
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 1;
}

/* contact form + newsletter: placeholder and typed text share the same size and weight */
#ht-contact-form .mf-input::placeholder,
#ht-contact-form .mf-input,
.newsletter-form .mf-input::placeholder,
.newsletter-form .mf-input {
    font-size: 15px;
    font-weight: 600;
}

.mf-input:hover { color: #000; }

.mf-input:focus {
    outline: 0;
    color: #000;
    background-color: var(--white);
    border-color: var(--primary);
}

.mf-textarea { border-radius: 20px; min-height: 150px; resize: vertical; }

.mf-input.mf-invalid { border-color: #f00; }

.mf-error-message {
    display: block;
    color: #f00;
    font-family: 'Forum', serif;
    font-size: 15px;
    letter-spacing: 1px;
    min-height: 0;
}

.mf-btn-wraper { text-align: center; }

.metform-btn {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 40px;
    padding: 10px;
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .4s;
    max-width: 100%;
}

#ht-contact-form .metform-btn { width: 100%; }

.metform-btn:hover { background-color: var(--primary); }
.metform-btn:disabled { opacity: .6; cursor: default; }

.ht-form__message {
    display: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Forum', serif;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.5;
}

.ht-form__message.is-visible { display: block; }
.ht-form__message.is-success { background: #e8f5ec; color: #1c7a3e; }
.ht-form__message.is-error   { background: #fdeaea; color: #c0392b; }

/* reCAPTCHA v3: badge hidden, so the disclosure text below each form is required. */
.grecaptcha-badge { visibility: hidden; }
.ht-recaptcha-note { margin: 12px 0 0; font-size: 11px; line-height: 1.5; color: #878991; }
.ht-recaptcha-note a { color: inherit; text-decoration: underline; }
.newsletter-form .ht-recaptcha-note { width: 100%; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background-color: #161515; }

.footer-top-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.footer-col { width: 50%; }

.footer-col--address {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 80px 0;
}

.footer-col-inner { width: 50%; display: flex; flex-direction: column; gap: 20px; }

.footer-col--newsletter {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 80px 0;
}

.footer-title {
    font-family: 'Forum', serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1em;
    letter-spacing: 2px;
    color: var(--white);
    margin: 0;
}

.footer-text {
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: #D3D5D5;
    margin: 0;
}

.footer-text p { margin: 0; }
.footer-text--light { color: var(--white); }
.footer-text--light a { color: var(--white); transition: color .3s; }
.footer-text--light a:hover { color: var(--secondary); }

.footer-social .icon-list-item > a { align-items: center; }
.footer-social .icon-list-icon svg { width: 14px; height: 14px; fill: #fff; transition: fill .3s; }

.footer-social .icon-list-text {
    font-family: 'Forum', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: #fff;
    transition: color .3s;
}

.footer-social .icon-list-item:hover .icon-list-icon svg { fill: var(--secondary); }
.footer-social .icon-list-item:hover .icon-list-text { color: var(--secondary); }

/* newsletter */
.newsletter-form { padding: 0; gap: 10px; }

.newsletter-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.newsletter-form .mf-input-wrapper { width: 90%; min-width: 0; }

.newsletter-form .mf-input {
    padding: 14px;
    border-radius: 60px;
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.newsletter-form .mf-input::placeholder { color: var(--white); }
.newsletter-form .mf-input:focus { background-color: transparent; color: var(--white); border-color: var(--white); }

.newsletter-form .metform-btn {
    flex: 0 0 auto;
    width: 51px;
    height: 51px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.newsletter-form .metform-btn svg { width: 15px; height: auto; fill: var(--white); }
.newsletter-form .ht-form__message { width: 100%; }

@media (max-width: 767px) { .newsletter-form .mf-input-wrapper { width: 80%; } }

.footer-bottom { background-color: #161515; padding: 0 0 30px; }

.footer-divider { text-align: center; padding: 15px 0; }
.footer-divider span { display: block; border-top: 1px solid #474B55; width: 100%; }

.footer-copy {
    text-align: center;
    font-family: 'Forum', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5em;
    letter-spacing: 1px;
    color: #A8AAAB;
}

.footer-copy p { margin: 0; }

@media (max-width: 1024px) {
    .footer-top-inner { flex-direction: column; }
    .footer-col { width: 100%; }
    .footer-col--address { padding: 50px 0 30px; }
    .footer-col--newsletter { padding: 0 0 50px; }
}

@media (max-width: 767px) {
    .footer-col--address { flex-direction: column; }
    .footer-col-inner { width: 100%; }
}

@media (max-width: 600px) {
    .footer-col--address { padding: 30px 0 20px; }
    .footer-col--newsletter { padding: 0 0 30px; }
    .footer-col-inner + .footer-col-inner { margin-top: 20px; }
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */

#ast-scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #fff;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity .3s;
}

#ast-scroll-top.is-visible { display: flex; }
#ast-scroll-top svg { width: 14px; height: 14px; fill: currentColor; transform: rotate(180deg); }

@media (max-width: 600px) { #ast-scroll-top { right: 15px; bottom: 15px; } }

/* ==========================================================================
   Certification page
   ========================================================================== */

.section-certification-page { margin: 80px 0; padding: 10px; }

.section-certification-page .e-con-inner { display: flex; flex-direction: column; gap: 20px; }

.cert-page-title {
    font-family: 'Forum', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3em;
    letter-spacing: 3px;
    color: var(--primary);
    text-align: center;
    margin: 0;
}

.cert-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cert-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    cursor: pointer;
}

.cert-gallery__image {
    position: absolute;
    inset: 0;
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 800ms;
}

.cert-gallery__overlay {
    position: absolute;
    inset: 0;
    display: block;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 800ms;
}

.cert-gallery__item:hover .cert-gallery__overlay,
.cert-gallery__item:focus .cert-gallery__overlay { background-color: rgba(0, 0, 0, .5); }

@media (max-width: 1024px) { .cert-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cert-gallery { grid-template-columns: repeat(1, 1fr); } }

@media (max-width: 991px) {
    .section-certification-page { margin: 50px 0; padding: 10px; }
}

/* --- lightbox ---------------------------------------------------------- */
.ht-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .87);
    padding: 60px;
}

.ht-lightbox.is-open { display: flex; }

.ht-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    background: #fff;
}

.ht-lightbox__close,
.ht-lightbox__nav {
    position: absolute;
    background: transparent;
    border: 0;
    color: hsla(0, 0%, 93%, .9);
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.ht-lightbox__close { top: 10px; right: 20px; font-size: 40px; }

.ht-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 40px; display: flex; }
.ht-lightbox__nav svg { width: 1em; height: 1em; fill: currentColor; }
.ht-lightbox__nav--prev { left: 10px; }
.ht-lightbox__nav--next { right: 10px; }

@media (max-width: 600px) {
    .ht-lightbox { padding: 60px 15px; }
    .ht-lightbox__nav { font-size: 28px; }
}

/* ==========================================================================
   Responsive refinements
   Desktop (>= 1200px) is untouched - it matches the original pixel for pixel.
   Below that the content gains side gutters and the display type scales down.
   ========================================================================== */

/* --- side gutters, so nothing ever touches the screen edge --------------- */
@media (max-width: 1199px) {
    .e-con-inner { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
    .e-con-inner { padding-left: 16px; padding-right: 16px; }
}

/* --- tablet / large phone ----------------------------------------------- */
@media (max-width: 767px) {
    .section-title,
    .about-title,
    .cert-page-title { font-size: 38px; letter-spacing: 2px; }

    .icon-box-title,
    .flip-box__title,
    .contact-info__title,
    .form-title { font-size: 26px; letter-spacing: 1.5px; }

    .footer-title { font-size: 24px; }

    .about-text,
    .icon-box-description,
    .cert-intro,
    .form-subtitle,
    .footer-text,
    .contact-info .icon-list-text,
    .footer-social .icon-list-text,
    .mf-input-label { font-size: 16px; }

    .about-text { padding-left: 20px; }

    .ser-box { padding: 45px 20px; }
}

/* --- phone --------------------------------------------------------------- */
@media (max-width: 480px) {
    .section-title,
    .about-title,
    .cert-page-title { font-size: 30px; letter-spacing: 1px; }

    .section-title { padding-bottom: 18px; }

    .icon-box-title,
    .flip-box__title,
    .contact-info__title,
    .form-title { font-size: 22px; letter-spacing: 1px; }

    .footer-title { font-size: 22px; }

    .eyebrow { font-size: 13px; letter-spacing: 1.5px; }

    #ht-hero-mobile .elementor-slide-heading { font-size: 30px; }
    #ht-hero-mobile .elementor-slide-description { font-size: 17px; }

    .ser-box { padding: 36px 18px; }
    .ht-form { padding: 22px 18px; }
    .contact-info { padding: 24px 18px; }
    .elementor-button { padding: 12px 24px; }
}

/* --- very small phones (320px and up) ------------------------------------ */
@media (max-width: 360px) {
    .section-title,
    .about-title,
    .cert-page-title { font-size: 26px; }

    .icon-box-title,
    .flip-box__title,
    .contact-info__title,
    .form-title { font-size: 20px; }

    #ht-hero-mobile .elementor-slide-heading { font-size: 26px; }
    #ht-hero-mobile .swiper-slide { height: 540px; }

    .site-branding img { width: 132px; }
    .ast-custom-button { padding: 9px 16px; font-size: 13px; }
}

/* --- landscape phones: keep the mobile hero from filling the screen ------ */
@media (max-width: 600px) and (max-height: 520px) {
    #ht-hero-mobile .swiper-slide { height: 420px; }
}

/* --- keyboard focus + reduced motion ------------------------------------ */
a:focus-visible,
button:focus-visible,
.mf-input:focus-visible,
.flip-box:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ht-hero__slide.is-active .ht-hero__mask,
    .ht-hero__slide.is-active .ht-hero__img,
    .ht-hero__slide.is-active .ht-hero__eyebrow,
    .ht-hero__slide.is-active .ht-hero__title,
    .ht-hero__slide.is-active .ht-hero__text {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}
