/* =========================================================================
   Corporate template - multi-page company site (Persian / RTL)
   Teal / turquoise palette, crisp cards, full-width hero slider.
   Shares class names with site.js so both templates use the same script.
   ========================================================================= */

/* ---- Fonts (self-hosted) ------------------------------------------------ */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
    --bg: #f3f8f8;
    --surface: #ffffff;
    --surface-2: #e9f2f1;
    --ink: #0f2b2e;
    --ink-2: #33474a;
    --muted: #61757a;
    --line: #d9e7e5;

    --brand: #0f766e;
    --brand-dark: #0b5d57;
    --brand-600: #0d9488;
    --brand-400: #2dd4bf;
    --brand-soft: #e3f4f2;
    --accent: #f59e0b;
    --accent-soft: #fdf1da;
    --danger: #b91c1c;
    --green-soft: #dcefe6;

    --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 43, 46, .05), 0 8px 24px -18px rgba(15, 43, 46, .25);
    --shadow: 0 18px 40px -24px rgba(15, 43, 46, .35);
    --shadow-lg: 0 30px 60px -30px rgba(15, 43, 46, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --container: 1220px;
    --header-h: 76px;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
    margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.9;
    color: var(--ink-2); background: var(--bg); overflow-x: hidden;
    text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.5; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; right: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .5rem 1.4rem .5rem .55rem;
    border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; flex: none; transition: transform .3s var(--ease); }
.btn-icon .icon { width: 1rem; height: 1rem; }
.btn:hover .btn-icon { transform: translateX(-3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary .btn-icon { background: rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .btn-icon { background: rgba(255, 255, 255, .16); color: var(--brand-400); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light .btn-icon { background: var(--brand-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline .btn-icon { background: var(--surface-2); color: var(--brand); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: transparent; box-shadow: var(--shadow-sm); }
.btn-ghost .btn-icon { background: var(--brand-soft); color: var(--brand); }
.btn-sm { min-height: 42px; font-size: .88rem; padding-inline-end: 1.1rem; gap: .5rem; }
.btn-sm .btn-icon { width: 1.7rem; height: 1.7rem; }
.btn-lg { min-height: 54px; font-size: 1rem; padding-inline-end: 1.75rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row-center { justify-content: center; }
.icon-button {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.icon-button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-5px); }

/* ---- Sections ----------------------------------------------------------- */
.section { position: relative; padding-block: clamp(2.25rem, 1.4rem + 2.5vw, 4rem); }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section-title { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.5rem); line-height: 1.5; margin-bottom: .4em; }
.section-head .section-title::after {
    content: ""; display: block; width: 62px; height: 4px; margin: .7rem auto 0; border-radius: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-400));
}
.section-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }
.section-foot { display: flex; justify-content: center; margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 2.05; }
.lead p:last-child { margin-bottom: 0; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: var(--surface-2); color: var(--muted); }
.media-placeholder .icon { width: 42px; height: 42px; opacity: .6; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---- Header ------------------------------------------------------------- */
.corp-header { position: sticky; top: 0; z-index: 50; }
.corp-topbar { background: var(--ink); color: #cfe0e0; font-size: .85rem; }
.corp-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; flex-wrap: wrap; }
.corp-topbar-info { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 0; padding: 0; }
.corp-topbar-info li { display: inline-flex; align-items: center; gap: .4rem; }
.corp-topbar-info .icon { width: 16px; height: 16px; color: var(--brand-400); }
.corp-topbar-info a { color: inherit; text-decoration: none; }
.corp-topbar-info a:hover { color: #fff; }
/* higher specificity than the generic .social-list a rule further down */
.social-list.social-list-top { gap: .25rem; }
.social-list.social-list-top a { width: 34px; height: 34px; border-radius: 10px; border-color: rgba(255, 255, 255, .18); color: #cfe0e0; }
.social-list.social-list-top a:hover { background: var(--brand-400); border-color: var(--brand-400); color: var(--ink); }
.social-list.social-list-top a .icon { width: 15px; height: 15px; }
.corp-navbar { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.is-scrolled .corp-navbar, .corp-header.is-scrolled .corp-navbar { box-shadow: 0 10px 30px -20px rgba(15, 43, 46, .5); }
.corp-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.2rem; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.brand-tagline { font-size: .72rem; color: var(--muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { max-height: 48px; width: auto; }
.main-nav { display: none; }
.nav-list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem;
    color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 10px; transition: color .2s, background-color .2s;
}
.nav-link::after { content: ""; position: absolute; inset-inline: .9rem; bottom: 10px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-link:hover { color: var(--brand-dark); }
.nav-link.is-active { color: var(--brand-dark); }
.nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-cta { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 43, 46, .55); opacity: 0; transition: opacity .35s; }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; right: 0; width: min(360px, 88vw);
    display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem;
    background: var(--bg); overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.drawer-list .nav-link { display: flex; min-height: 52px; padding: .75rem 1rem; border-radius: 12px; font-size: 1.05rem; }
.drawer-list .nav-link::after { display: none; }
.drawer-list .nav-link.is-active { background: var(--brand-soft); }
.drawer-foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer-phone { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; text-decoration: none; min-height: 44px; }

/* ---- Hero: one full-width image per slide -------------------------------- */
.corp-hero { position: relative; overflow: hidden; min-height: clamp(460px, 78vh, 760px); display: flex; align-items: center; }
.corp-hero-media { position: absolute; inset: 0; background: var(--ink); }
.corp-hero-media .hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.1s ease;
}
.corp-hero-media .hero-img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
.corp-hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(270deg, rgba(8, 37, 40, .92) 0%, rgba(8, 37, 40, .78) 38%, rgba(8, 37, 40, .35) 70%, rgba(8, 37, 40, .18) 100%);
}
.corp-hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 2rem + 6vw, 6rem); color: #fff; }
.hero-texts { display: grid; max-width: 44rem; }
.hero-text {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.hero-text.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.hero-title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.45; color: #fff; margin: 0 0 1rem; }
.hero-sub { font-size: 1.05rem; line-height: 2; color: rgba(255, 255, 255, .86); margin: 0 0 1.5rem; max-width: 36rem; }
.hero-controls { display: flex; align-items: center; gap: .6rem; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.slider-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.slider-btn:active { transform: scale(.94); }
.hero-counter { display: inline-flex; align-items: center; gap: .7rem; padding-inline: .5rem; font-weight: 800; font-size: 1rem; color: #fff; }
.hero-total { color: rgba(255, 255, 255, .6); }
.hero-progress { position: relative; width: 78px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-progress > span { position: absolute; inset: 0; background: var(--brand-400); transform: scaleX(0); transform-origin: right center; }
.hero-progress > span.is-running { animation: progress linear forwards; }
.hero.is-paused .hero-progress > span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.slider-toggle .when-paused { display: none; }
.hero.is-paused .slider-toggle .when-playing { display: none; }
.hero.is-paused .slider-toggle .when-paused { display: inline-flex; }
.slider-toggle span { display: inline-flex; }

/* Feature strip under the hero */
.corp-strip { position: relative; z-index: 3; margin-top: -2.5rem; }
.corp-strip-inner {
    display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); grid-template-columns: 1fr;
}
.corp-strip-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.5rem; background: var(--surface); }
.corp-strip-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.corp-strip-icon .icon { width: 24px; height: 24px; }
.corp-strip-item h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.corp-strip-item p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.85; }

/* ---- Intro / about ------------------------------------------------------- */
.corp-intro .section-title { max-width: 18em; margin-inline: auto; }
.corp-about-grid { display: grid; gap: 2.5rem; align-items: center; }
.corp-about-grid > * { min-width: 0; }
.corp-about-media { position: relative; }
.corp-about-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.corp-about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.corp-about-figure-sm { position: absolute; inset-inline-start: -1.5rem; bottom: -2rem; width: 42%; margin: 0; border: 6px solid var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: none; }
.corp-about-figure-sm img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.corp-badge {
    position: absolute; inset-inline-end: -1rem; top: 1.5rem; display: grid; gap: .1rem; justify-items: center;
    padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--brand); color: #fff; box-shadow: var(--shadow);
}
.corp-badge strong { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.corp-badge span { font-size: .78rem; opacity: .9; text-align: center; }
.about-highlight { font-weight: 700; color: var(--ink); font-size: 1.08rem; line-height: 1.95; border-inline-start: 3px solid var(--brand-400); padding-inline-start: 1rem; margin-bottom: 1.25rem; }
.stats {
    list-style: none; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.stat { text-align: center; padding: .4rem 1rem; }
.stat-value { display: block; font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.35; color: var(--brand-dark); }
.stat-label { color: var(--muted); font-size: .92rem; }

/* ---- Services ------------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.5rem; }
.service-card {
    position: relative; overflow: hidden; padding: 1.75rem 1.5rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-soft); transform: translate(40%, -45%); transition: transform .5s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-400); }
.service-card:hover::before { transform: translate(30%, -38%) scale(1.15); }
.service-icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: 1.1rem; }
.service-icon .icon { width: 26px; height: 26px; }
.service-title { position: relative; font-size: 1.2rem; margin: 0 0 .4rem; }
.service-lead { position: relative; color: var(--brand-dark); font-weight: 600; margin: 0 0 .75rem; }
.service-desc { position: relative; font-size: .95rem; }
.service-desc ul { padding-inline-start: 1.2rem; margin: .5rem 0 0; }
.service-desc li { margin: .3em 0; }
.service-desc li::marker { color: var(--brand-400); }
.service-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.meter { position: relative; margin-top: 1.25rem; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.meter-head strong { font-weight: 800; font-size: 1rem; color: var(--brand-dark); }
.meter-track { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.meter-track span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(270deg, var(--brand), var(--brand-400)); animation: meter-grow 1.2s var(--ease); }
@keyframes meter-grow { from { width: 0; } }

/* Values grid (about page) */
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.value-card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value-card h3 { font-size: 1.05rem; margin: .85rem 0 .35rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.value-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.value-icon .icon { width: 22px; height: 22px; }

/* Process steps */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.process-step { position: relative; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.process-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: .85rem; }
.process-step h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---- Prose ---------------------------------------------------------------- */
.prose { color: var(--ink-2); line-height: 2; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-dark); text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.prose blockquote {
    margin: 2rem 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--brand-400);
    background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.15rem; font-weight: 600; line-height: 1.9; color: var(--ink);
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.prose-lg { font-size: 1.08rem; line-height: 2.1; }

/* ---- Projects -------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2rem; }
.filter {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem 1.2rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
    font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { font-size: .78rem; opacity: .75; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.project-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card.is-entering { animation: fade-up .5s var(--ease) both; }
.project-media { position: relative; aspect-ratio: 10 / 7; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.chip { position: absolute; top: 1rem; inset-inline-end: 1rem; padding: .25rem .8rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; }
.project-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; }
.project-title { font-size: 1.15rem; margin: 0; }
.project-summary { flex: 1; margin: 0 0 .6rem; color: var(--muted); font-size: .93rem; line-height: 1.9; }

.modal { width: min(960px, 100% - 2rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.modal::backdrop { background: rgba(8, 37, 40, .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] .modal-card { animation: fade-up .4s var(--ease); }
.modal-card { position: relative; max-height: calc(100dvh - 2rem); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; inset-inline-start: 1rem; z-index: 3; }
.modal-content { display: grid; }
.modal-media { background: var(--surface-2); }
.modal-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.modal-body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.modal-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.project-facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1rem 0 1.5rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.project-facts dt { font-size: .8rem; color: var(--muted); }
.project-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.modal-body .btn { margin-top: 1.5rem; }

/* ---- Blog cards ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { display: block; aspect-ratio: 25 / 16; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.35rem 1.5rem 1.5rem; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.date-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 700; }
.date-badge .icon { width: 14px; height: 14px; }
.post-cat { font-size: .82rem; font-weight: 700; color: var(--accent); }
.post-title { font-size: 1.12rem; line-height: 1.7; margin: 0; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--brand-dark); }
.post-excerpt { flex: 1; margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Contact ---------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.contact-card { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; }
.contact-card h2 { font-size: 1.05rem; margin: .9rem 0 .4rem; }
.contact-card p { margin: 0 0 .25rem; color: var(--muted); }
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--brand-dark); }
.contact-card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.contact-card-icon .icon { width: 24px; height: 24px; }
.contact-grid { display: grid; gap: 1.5rem; }
.contact-grid > * { min-width: 0; }
.contact-info { position: relative; overflow: hidden; padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--ink); color: #cfe0e0; }
.contact-info-title { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.contact-info-text { color: rgba(255, 255, 255, .72); margin-bottom: 0; }
.contact-list { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 1.3rem; position: relative; z-index: 1; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(45, 212, 191, .16); color: var(--brand-400); }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.contact-value { color: #fff; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.contact-value a { display: inline-block; padding-block: .3rem; color: inherit; text-decoration: none; }
.contact-value a:hover { color: var(--brand-400); }
.contact-value .sep { margin-inline: .5rem; color: rgba(255, 255, 255, .35); }
.contact-info-deco { position: absolute; inset-inline-start: -90px; bottom: -90px; width: 250px; height: 250px; border-radius: 50%; border: 40px solid rgba(45, 212, 191, .12); pointer-events: none; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.social-list a .icon { width: 18px; height: 18px; }
.social-list a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social-list-light a { border-color: rgba(255, 255, 255, .18); color: #fff; }
.social-list-light a:hover { background: var(--brand-400); border-color: var(--brand-400); color: var(--ink); }

.contact-form { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: #c2410c; }
.input {
    width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fbfdfd; color: var(--ink); line-height: 1.7; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:hover { border-color: #c3dbd8; }
.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(15, 118, 110, .16); }
textarea.input { min-height: 150px; resize: vertical; }
.field.is-invalid .input { border-color: #dc2626; background: #fffafa; }
.field-error { margin: .35rem 0 0; color: var(--danger); font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.form-hint { margin: 1rem 0 1.25rem; font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-weight: 700; font-size: .95rem; }
.form-status.is-success { color: var(--brand-dark); }
.form-status.is-error { color: var(--danger); }
.form-alert { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.form-alert-success { background: var(--green-soft); color: #0f5132; }
.form-alert-error { background: #fee2e2; color: #991b1b; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
.hp-field { position: absolute !important; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.map-frame { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; min-height: 280px; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Quick contact strip */
.corp-quick-contact { background: linear-gradient(120deg, var(--brand-dark), var(--brand-600)); color: #fff; }
.corp-quick-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
.corp-quick-contact h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 .35rem; }
.corp-quick-contact p { margin: 0; color: rgba(255, 255, 255, .82); }
.corp-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.corp-quick-phone { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.corp-quick-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.corp-quick-phone .icon { width: 20px; height: 20px; }
.corp-quick-actions .btn-primary { background: #fff; color: var(--brand-dark); }
.corp-quick-actions .btn-primary .btn-icon { background: var(--brand-soft); }

/* ---- Inner page hero -------------------------------------------------------- */
.corp-page-hero {
    position: relative; overflow: hidden; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    background: linear-gradient(120deg, var(--ink), var(--brand-dark) 65%, var(--brand-600));
    color: #fff;
}
.corp-page-hero::after { content: ""; position: absolute; inset-inline-start: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(45, 212, 191, .16); }
.corp-page-hero .container { position: relative; z-index: 1; }
.page-title { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.5; margin: .2rem 0 .5rem; }
.page-sub { color: rgba(255, 255, 255, .8); margin: 0; max-width: 52rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; padding: 0; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-center ol { justify-content: center; }

/* Blog / post pages (shared markup with the one-page template) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1rem, .75rem + 1vw, 1.5rem); background: linear-gradient(120deg, var(--ink), var(--brand-dark) 65%, var(--brand-600)); color: #fff; }
.page-hero .page-title, .page-hero .section-sub { color: #fff; }
.page-hero .section-sub { color: rgba(255, 255, 255, .8); }
.page-hero-deco { position: absolute; inset: 0; }
.page-hero-deco::before { content: ""; position: absolute; inset-inline-start: -90px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(45, 212, 191, .16); }
.post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0 0; padding: 0; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.post-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta .icon { width: 17px; height: 17px; color: var(--brand-400); }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: #fff; }
.post-layout { padding-block: 2rem; }
.post-cover { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-share-label { font-weight: 700; color: var(--ink); margin-inline-end: .5rem; }
.share-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.copy-status { font-size: .85rem; font-weight: 600; color: var(--brand-dark); }
.back-link .icon { transform: none; }
.back-link:hover .icon { transform: translateX(5px); }
.related { padding-top: 1rem; }
.blog-archive { padding-top: 2rem; }
.search-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin: 0 0 1.75rem; color: var(--muted); }
.search-note strong { color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager-btn { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.pager-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn .icon { width: 18px; height: 18px; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; margin-bottom: 1rem; opacity: .6; }
.not-found { min-height: 60vh; display: grid; align-items: center; }
.not-found-code { margin: 0; font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--brand); }

/* ---- Footer ------------------------------------------------------------------ */
.corp-footer { position: relative; margin-top: clamp(1rem, .5rem + 1.5vw, 2rem); background: var(--ink); color: #a9c0c1; }
.corp-footer-cta { background: linear-gradient(120deg, var(--brand-dark), var(--brand-600)); }
.corp-footer-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }
.corp-footer-cta h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.25rem, 1.1rem + .9vw, 1.75rem); }
.corp-footer-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.footer-grid { display: grid; gap: 2.25rem; padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.footer-grid > * { min-width: 0; }
.brand-light .brand-name, .brand-light .brand-mark { color: #fff; }
.brand-light .brand-tagline { color: #93acad; }
.footer-about { margin: 1.15rem 0 1.35rem; line-height: 2; font-size: .93rem; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--brand-400); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-links .nav-link { padding: .3rem 0; min-height: 40px; color: #b9cdce; font-weight: 500; font-size: .93rem; }
.footer-links .nav-link::after { display: none; }
.footer-links .nav-link:hover { color: var(--brand-400); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; font-size: .93rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.9; }
.footer-contact .icon { color: var(--brand-400); width: 18px; height: 18px; margin-top: .35rem; }
.footer-contact a { display: inline-block; padding-block: .3rem; color: #b9cdce; text-decoration: none; }
.footer-contact a:hover { color: var(--brand-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-block: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .87rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-block; padding-block: .4rem; color: #b9cdce; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-400); }
.to-top {
    position: fixed; inset-inline-start: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); }

/* ---- Responsive ---------------------------------------------------------------- */
@media (min-width: 640px) {
    .header-cta { display: inline-flex; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field-full { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .corp-strip-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .corp-about-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
    .corp-about-figure-sm { display: block; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat + .stat { border-inline-start: 1px solid var(--line); }
    .contact-grid { grid-template-columns: .9fr 1.1fr; }
    .modal-content { grid-template-columns: 1fr 1.1fr; }
    .modal-media img { min-height: 100%; }
}
@media (min-width: 1100px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
    .footer-grid { grid-template-columns: 1.45fr .85fr .95fr 1.15fr; gap: 3rem; }
}
@media (max-width: 899px) {
    .stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
    .corp-badge { inset-inline-end: 1rem; top: 1rem; padding: .7rem 1rem; }
    .corp-badge strong { font-size: 1.35rem; }
}
@media (max-width: 767px) {
    .hide-md { display: none; }
    .corp-topbar-inner { justify-content: center; }
    .corp-topbar-info { justify-content: center; }
}
@media (max-width: 480px) {
    :root { --header-h: 68px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: 1.05rem; }
    .brand-tagline { display: none; }
    .btn-row .btn { flex: 1 1 100%; }
    .corp-hero { min-height: 520px; }
    .hero-counter { gap: .5rem; padding-inline: .15rem; }
    .hero-progress { width: 46px; }
    .social-list-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .corp-hero-media .hero-img.is-active { animation: none; }
}
