/*
Theme Name: Hatamian 2026
Theme URI: https://hatamian.com/
Author: Hatamian
Author URI: https://hatamian.com/
Description: Leichtes, neunsprachiges WordPress-Theme für IT, Kassensysteme, Microsoft 365, Automatisierung und Webdesign in Wien.
Version: 2.6.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hatamian-2026
*/

@font-face {
  font-family: "Hatamian Noto Sans";
  src: url("assets/fonts/NotoSans-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Multiscript";
  src: url("assets/fonts/NotoSansMultiscript-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Multiscript";
  src: url("assets/fonts/NotoSansMultiscript-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Hebrew";
  src: url("assets/fonts/NotoSansHebrew-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Hebrew";
  src: url("assets/fonts/NotoSansHebrew-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans";
  src: url("assets/fonts/NotoSans-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Arabic";
  src: url("assets/fonts/NotoSansArabic-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Sans Arabic";
  src: url("assets/fonts/NotoSansArabic-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Kufi Arabic";
  src: url("assets/fonts/NotoKufiArabic-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Kalameh";
  src: url("assets/fonts/KalamehWebFaNum-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Kalameh";
  src: url("assets/fonts/KalamehWebFaNum-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hatamian Noto Kufi Arabic";
  src: url("assets/fonts/NotoKufiArabic-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --hat-navy: #042553;
  --hat-navy-2: #07366f;
  --hat-blue: #0158de;
  --hat-orange: #ff8004;
  --hat-cyan: #ff8004;
  --hat-mint: #fff0df;
  --hat-lilac: #edf3ff;
  --hat-sky: #edf5ff;
  --hat-ink: #13203a;
  --hat-muted: #5c6880;
  --hat-line: rgba(16, 42, 86, .12);
  --hat-white: #ffffff;
  --hat-bg: #f7faff;
  --hat-success: #087f6b;
  --hat-error: #b42318;
  --hat-shadow: 0 18px 50px rgba(26, 54, 93, .12);
  --hat-shadow-sm: 0 10px 28px rgba(26, 54, 93, .09);
  --hat-radius: 24px;
  --hat-radius-sm: 15px;
  --hat-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hat-ink);
  background: var(--hat-white);
  font-family: "Hatamian Noto Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hat-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--hat-navy); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4 {
  margin: 0 0 .7em;
  color: var(--hat-navy);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 5vw, 4.85rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.02em; }
p { margin: 0 0 1.2em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 1.25em; padding-inline-start: 1.25em; }

.screen-reader-text,
.skip-link:not(:focus) {
  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:focus {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  padding: 10px 16px; color: var(--hat-white); background: var(--hat-navy); border-radius: 10px;
}
:focus-visible { outline: 3px solid rgba(23, 105, 255, .35); outline-offset: 3px; }

.hat-container { width: min(calc(100% - 40px), var(--hat-container)); margin-inline: auto; }
.hat-section { position: relative; padding: clamp(72px, 9vw, 122px) 0; overflow: clip; }
.hat-section--soft { background: linear-gradient(145deg, #f8fbff 0%, #eef7ff 52%, #f1fffb 100%); }
.hat-section--lilac { background: linear-gradient(145deg, #faf9ff, #eef5ff); }
.hat-section--dark { color: rgba(255,255,255,.8); background: linear-gradient(135deg, #0e2550, #123b75); }
.hat-section--dark h2, .hat-section--dark h3 { color: var(--hat-white); }
.hat-section--tight { padding: clamp(48px, 6vw, 78px) 0; }

.hat-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px; padding: 7px 12px;
  color: var(--hat-navy-2); background: rgba(255,255,255,.62);
  border: 1px solid rgba(23,105,255,.14); border-radius: 11px;
  font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(31,73,125,.06); backdrop-filter: blur(14px);
}
.hat-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--hat-cyan); box-shadow: 0 0 0 5px rgba(25,201,192,.12); }
.hat-lead { max-width: 760px; color: var(--hat-muted); font-size: clamp(1.08rem, 1.6vw, 1.27rem); }
.hat-section-heading { max-width: 810px; margin-bottom: 42px; }
.hat-section-heading--center { margin-inline: auto; text-align: center; }
.hat-section-heading--center .hat-lead { margin-inline: auto; }

.hat-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 13px 21px;
  color: var(--hat-white); background: linear-gradient(135deg, var(--hat-blue), #1253c7);
  border: 1px solid transparent; border-radius: 14px;
  font-weight: 700; line-height: 1.2; text-decoration: none;
  box-shadow: 0 13px 28px rgba(23,105,255,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hat-button:hover { color: var(--hat-white); transform: translateY(-2px); box-shadow: 0 17px 35px rgba(23,105,255,.28); }
.hat-button--ghost {
  color: var(--hat-navy); background: rgba(255,255,255,.62);
  border-color: rgba(16,42,86,.13); box-shadow: 0 10px 28px rgba(26,54,93,.08); backdrop-filter: blur(14px);
}
.hat-button--ghost:hover { color: var(--hat-navy); background: var(--hat-white); box-shadow: var(--hat-shadow-sm); }
.hat-button--white { color: var(--hat-navy); background: var(--hat-white); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.hat-button--white:hover { color: var(--hat-navy); }
.hat-button svg { width: 18px; height: 18px; }
.hat-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

/* Header */
.hat-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.84); border-bottom: 1px solid rgba(16,42,86,.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.admin-bar .hat-header { top: 32px; }
.hat-header__inner { display: flex; align-items: center; min-height: 82px; gap: 16px; }
.hat-brand { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--hat-navy); text-decoration: none; }
.hat-brand:hover { color: var(--hat-navy); }
.hat-brand__art { display: inline-flex; align-items: center; justify-content: flex-start; }
.hat-brand__logo { display: block; object-fit: contain; }
.hat-brand__logo--desktop { width: clamp(168px, 15vw, 218px); height: auto; }
.hat-brand__logo--mobile { display: none; width: 44px; height: 44px; }
.hat-nav { display: flex; align-items: center; gap: 19px; margin-left: auto; }
.hat-nav a { position: relative; color: #263650; font-size: .94rem; font-weight: 700; text-decoration: none; }
.hat-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 2px; background: var(--hat-blue); transition: right .2s ease; }
.hat-nav a:hover::after, .hat-nav a[aria-current="page"]::after { right: 0; }
.hat-header__cta { margin-left: 6px; }
.hat-header__phone { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--hat-navy); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hat-header__phone:hover { color: var(--hat-blue); }
.hat-header__phone svg { width: 18px; height: 18px; color: var(--hat-blue); }
.hat-language { position: relative; flex: 0 0 auto; }
.hat-language summary { display: grid; place-items: center; width: 40px; height: 40px; color: var(--hat-navy); background: var(--hat-white); border: 1px solid var(--hat-line); border-radius: 12px; cursor: pointer; list-style: none; font-size: .76rem; font-weight: 700; line-height: 1; user-select: none; }
.hat-language summary::-webkit-details-marker { display: none; }
.hat-language[open] summary { border-color: rgba(23,105,255,.35); box-shadow: 0 0 0 4px rgba(23,105,255,.08); }
.hat-language summary:focus-visible { outline-color: var(--hat-blue); outline-offset: 4px; }
.hat-language__menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 1100;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  width: 310px; max-width: calc(100vw - 28px); max-height: min(440px, calc(100vh - 118px)); overflow-y: auto;
  padding: 9px; direction: ltr;
  background: rgba(255,255,255,.98); border: 1px solid var(--hat-line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(16,42,86,.16); overscroll-behavior: contain;
}
.hat-language__menu a {
  position: relative; display: flex; align-items: center; min-width: 0; min-height: 42px;
  padding: 9px 30px 9px 11px; color: var(--hat-ink); border: 1px solid transparent; border-radius: 10px;
  font-size: .84rem; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: none;
  overflow-wrap: anywhere;
}
.hat-language__menu a[dir="rtl"] { direction: rtl; padding-right: 11px; padding-left: 30px; text-align: right; }
.hat-language__menu a[lang^="fa"] { font-family: "Hatamian Kalameh", "Hatamian Noto Sans Arabic", Tahoma, sans-serif; }
.hat-language__menu a[lang^="ar"] { font-family: "Hatamian Noto Kufi Arabic", "Hatamian Noto Sans Arabic", Tahoma, sans-serif; }
.hat-language__menu a[lang^="he"] { font-family: "Hatamian Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif; }
.hat-language__menu a[lang^="uk"],
.hat-language__menu a[lang^="ru"],
.hat-language__menu a[lang^="sk"] { font-family: "Hatamian Noto Sans Multiscript", "Segoe UI", Arial, sans-serif; }
.hat-language__menu a:hover,
.hat-language__menu a:focus-visible,
.hat-language__menu a[aria-current="true"] { color: var(--hat-navy); background: var(--hat-sky); border-color: rgba(23,105,255,.08); }
.hat-language__menu a:focus-visible { outline: 3px solid rgba(23,105,255,.28); outline-offset: -2px; }
.hat-language__menu a[aria-current="true"]::after {
  content: "\2713"; position: absolute; right: 10px; color: var(--hat-success); font-size: .78rem; line-height: 1;
}
.hat-language__menu a[dir="rtl"][aria-current="true"]::after { right: auto; left: 10px; }
.hat-menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--hat-line); border-radius: 13px; color: var(--hat-navy); background: var(--hat-white); cursor: pointer; }
.hat-menu-toggle > span:not(.screen-reader-text), .hat-menu-toggle::before, .hat-menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-open .hat-menu-toggle > span:not(.screen-reader-text) { opacity: 0; }
.menu-open .hat-menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .hat-menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hat-hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 clamp(82px, 10vw, 138px);
  background:
    radial-gradient(circle at 14% 16%, rgba(238,233,255,.95), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(186,242,231,.9), transparent 30%),
    linear-gradient(145deg, #f8fbff 0%, #edf5ff 55%, #f8ffff 100%);
}
.hat-hero::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -88px; height: 155px; border-radius: 50% 50% 0 0; background: var(--hat-white); }
.hat-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: clamp(38px, 6vw, 80px); }
.hat-hero__grid > *, .hat-page-hero__grid > *, .hat-split > *, .hat-service-detail-grid > * { min-width: 0; }
.hat-hero h1 { max-width: 760px; margin-bottom: 24px; overflow-wrap: break-word; }
.hat-hero h1 span, .hat-hero__accent { color: var(--hat-blue); }
.hat-hero__copy > p { max-width: 680px; color: var(--hat-muted); font-size: clamp(1.08rem, 1.55vw, 1.25rem); }
.hat-hero__checks { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0 0; padding: 0; list-style: none; }
.hat-hero__checks li { display: flex; align-items: center; gap: 8px; color: #31415d; font-size: .95rem; font-weight: 700; }
.hat-hero__checks svg { width: 20px; height: 20px; color: var(--hat-success); }
.hat-hero__visual { position: relative; }
.hat-hero__visual::before { content: ""; position: absolute; inset: 9% 8% -7%; border-radius: 40px; background: linear-gradient(145deg, rgba(23,105,255,.13), rgba(25,201,192,.16)); filter: blur(24px); }
.hat-hero__visual img { position: relative; width: 100%; border-radius: 30px; box-shadow: var(--hat-shadow); }
.hat-floating-card { position: absolute; left: -24px; bottom: -25px; display: flex; align-items: center; gap: 12px; width: min(280px, 72%); padding: 16px 18px; background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.92); border-radius: 18px; box-shadow: var(--hat-shadow-sm); backdrop-filter: blur(16px); }
.hat-floating-card__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--hat-navy); background: var(--hat-mint); border-radius: 12px; }
.hat-floating-card__icon svg { width: 22px; height: 22px; }
.hat-floating-card strong { display: block; color: var(--hat-navy); font-size: .93rem; line-height: 1.2; }
.hat-floating-card span { display: block; color: var(--hat-muted); font-size: .78rem; }

/* Trust strip */
.hat-trust { position: relative; z-index: 4; margin-top: -28px; }
.hat-trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid var(--hat-line); border-radius: 20px; box-shadow: var(--hat-shadow-sm); }
.hat-trust__item { display: flex; align-items: center; gap: 11px; min-height: 88px; padding: 18px 24px; border-right: 1px solid var(--hat-line); }
.hat-trust__item:last-child { border-right: 0; }
.hat-trust__item svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--hat-blue); }
.hat-trust__item strong { display: block; color: var(--hat-navy); font-size: .94rem; line-height: 1.3; }
.hat-trust__item span { display: block; color: var(--hat-muted); font-size: .8rem; line-height: 1.35; }

/* Cards and grids */
.hat-service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.hat-service-card { grid-column: span 4; position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; color: inherit; background: rgba(255,255,255,.88); border: 1px solid var(--hat-line); border-radius: var(--hat-radius); text-decoration: none; box-shadow: var(--hat-shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hat-service-card:nth-child(n+4) { grid-column: span 6; }
.hat-service-card:hover { color: inherit; transform: translateY(-6px); border-color: rgba(23,105,255,.24); box-shadow: var(--hat-shadow); }
.hat-service-card__image { position: relative; aspect-ratio: 16 / 8.9; overflow: hidden; background: var(--hat-sky); }
.hat-service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hat-service-card:hover .hat-service-card__image img { transform: scale(1.035); }
.hat-service-card__body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.hat-service-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -50px; margin-bottom: 18px; position: relative; z-index: 2; color: var(--hat-navy); background: rgba(255,255,255,.95); border: 1px solid rgba(16,42,86,.08); border-radius: 14px; box-shadow: 0 10px 24px rgba(26,54,93,.13); }
.hat-service-card__icon svg { width: 24px; height: 24px; }
.hat-service-card h3 { margin-bottom: 10px; }
.hat-service-card p { color: var(--hat-muted); font-size: .96rem; }
.hat-service-card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--hat-blue); font-weight: 700; font-size: .9rem; }
.hat-service-card__link svg { width: 17px; height: 17px; }

.hat-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hat-feature { padding: 28px; background: rgba(255,255,255,.85); border: 1px solid var(--hat-line); border-radius: 20px; box-shadow: 0 10px 32px rgba(26,54,93,.07); }
.hat-feature__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; color: var(--hat-navy); background: linear-gradient(135deg, var(--hat-sky), var(--hat-mint)); border-radius: 14px; }
.hat-feature__icon svg { width: 25px; height: 25px; }
.hat-feature h3 { margin-bottom: 9px; }
.hat-feature p { margin: 0; color: var(--hat-muted); font-size: .95rem; }

.hat-split .hat-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hat-split .hat-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }

.hat-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr); align-items: center; gap: clamp(42px, 7vw, 92px); }
.hat-split--reverse .hat-split__visual { order: -1; }
.hat-split__visual { position: relative; }
.hat-split__visual img { width: 100%; border-radius: 28px; box-shadow: var(--hat-shadow); }
.hat-list { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.hat-list li { display: flex; align-items: flex-start; gap: 11px; }
.hat-list svg { flex: 0 0 21px; width: 21px; height: 21px; margin-top: 3px; color: var(--hat-success); }

/* Process */
.hat-process { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hat-step { counter-increment: steps; position: relative; padding: 28px 24px; background: rgba(255,255,255,.75); border: 1px solid var(--hat-line); border-radius: 20px; }
.hat-step::before { content: "0" counter(steps); display: inline-grid; place-items: center; width: 46px; height: 38px; margin-bottom: 22px; color: var(--hat-blue); background: var(--hat-sky); border-radius: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.hat-step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -19px; z-index: 2; width: 20px; height: 2px; background: rgba(23,105,255,.25); }
.hat-step p { margin: 0; color: var(--hat-muted); font-size: .91rem; }

/* Industries */
.hat-pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--hat-navy); background: rgba(255,255,255,.82); border: 1px solid var(--hat-line); border-radius: 13px; font-size: .92rem; font-weight: 700; box-shadow: 0 8px 24px rgba(26,54,93,.06); }
.hat-pill svg { width: 18px; height: 18px; color: var(--hat-blue); }

/* Page hero and service pages */
.hat-page-hero { position: relative; overflow: hidden; padding: clamp(70px, 8vw, 112px) 0; background: linear-gradient(145deg, #f7f9ff, #eaf5ff 60%, #eefffa); }
.hat-page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -210px; border-radius: 50%; background: rgba(186,242,231,.65); filter: blur(10px); }
.hat-page-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.hat-page-hero__grid--text-only { grid-template-columns: minmax(0, 860px); }
.hat-page-hero__grid--text-only h1 { max-inline-size: 24ch; }
.hat-page-hero__visual img { border-radius: 28px; box-shadow: var(--hat-shadow); }
.hat-page-hero h1 { max-inline-size: 19ch; font-size: clamp(2.35rem, 4.4vw, 4.35rem); overflow-wrap: break-word; }
.hat-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--hat-muted); font-size: .82rem; }
.hat-breadcrumbs a { color: var(--hat-muted); text-decoration: none; }
.hat-breadcrumbs a:hover { color: var(--hat-blue); }

.hat-service-detail-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: start; gap: clamp(38px, 6vw, 78px); }
.hat-service-detail-grid article .hat-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hat-service-detail-grid article .hat-step:nth-child(2)::after { display: none; }
.hat-service-aside { position: sticky; top: 110px; padding: 28px; background: linear-gradient(145deg, #f8fbff, #eff8ff); border: 1px solid var(--hat-line); border-radius: 22px; box-shadow: var(--hat-shadow-sm); }
.hat-service-aside h3 { font-size: 1.3rem; }
.hat-service-aside .hat-button { width: 100%; margin-top: 12px; }
.hat-check-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 28px 0 36px; }
.hat-check-card { padding: 20px; background: var(--hat-white); border: 1px solid var(--hat-line); border-radius: 16px; box-shadow: 0 8px 22px rgba(26,54,93,.06); }
.hat-check-card svg { width: 22px; height: 22px; margin-bottom: 11px; color: var(--hat-success); }
.hat-check-card strong { display: block; color: var(--hat-navy); font-size: .94rem; }
.hat-check-card span { display: block; color: var(--hat-muted); font-size: .86rem; }
.hat-check-card--story { position: relative; overflow: hidden; padding-top: 24px; }
.hat-check-card--story::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--hat-blue); }
.hat-check-card--story:nth-child(2)::before { background: var(--hat-error); }
.hat-check-card--story:nth-child(3)::before { background: var(--hat-cyan); }
.hat-check-card--story:nth-child(4)::before { background: var(--hat-success); }
.hat-check-card--story:nth-child(1) svg { color: var(--hat-blue); }
.hat-check-card--story:nth-child(2) svg { color: var(--hat-error); }
.hat-check-card--story:nth-child(3) svg { color: #087a83; }
.hat-check-card--story:nth-child(4) svg { color: var(--hat-success); }

/* FAQ */
.hat-faq { display: grid; gap: 12px; max-width: 900px; }
.hat-faq--center { margin-inline: auto; }
.hat-faq details { background: rgba(255,255,255,.88); border: 1px solid var(--hat-line); border-radius: 17px; box-shadow: 0 8px 24px rgba(26,54,93,.05); }
.hat-faq summary { position: relative; padding: 20px 56px 20px 22px; color: var(--hat-navy); font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.hat-faq summary::-webkit-details-marker { display: none; }
.hat-faq summary::before, .hat-faq summary::after { content: ""; position: absolute; top: 50%; right: 23px; width: 15px; height: 2px; background: var(--hat-blue); transform: translateY(-50%); transition: transform .2s ease; }
.hat-faq summary::after { transform: translateY(-50%) rotate(90deg); }
.hat-faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.hat-faq__answer { padding: 0 22px 21px; color: var(--hat-muted); font-size: .96rem; }
.hat-faq__answer p:last-child { margin-bottom: 0; }

/* CTA */
.hat-cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 66px); color: rgba(255,255,255,.82); background: linear-gradient(135deg, #102a56 0%, #1854a4 68%, #137d91 100%); border-radius: 30px; box-shadow: 0 24px 60px rgba(16,42,86,.22); }
.hat-cta::after { content: ""; position: absolute; width: 320px; height: 320px; right: -130px; top: -160px; border-radius: 50%; background: rgba(186,242,231,.18); }
.hat-cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.hat-cta h2 { max-width: 760px; margin-bottom: 10px; color: var(--hat-white); }
.hat-cta p { max-width: 700px; margin: 0; }
.hat-cta .hat-actions { flex: 0 0 auto; margin-top: 0; }

/* Contact */
.hat-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.hat-contact-card, .hat-form-card { padding: clamp(26px, 4vw, 42px); background: var(--hat-white); border: 1px solid var(--hat-line); border-radius: 24px; box-shadow: var(--hat-shadow-sm); }
.hat-form-card { scroll-margin-top: 112px; }
.hat-contact-list { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.hat-contact-list li { display: flex; align-items: flex-start; gap: 13px; }
.hat-contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; color: var(--hat-blue); }
.hat-contact-list a { color: var(--hat-ink); word-break: break-word; }
.hat-contact-reveal { appearance: none; margin: 0; padding: 0; color: currentColor; background: transparent; border: 0; border-radius: 0; cursor: pointer; font: inherit; text-align: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hat-contact-reveal:hover { color: var(--hat-blue); }
.hat-contact-reveal:focus-visible { outline: 3px solid rgba(23,105,255,.28); outline-offset: 4px; border-radius: 4px; }
.hat-header__phone.hat-contact-reveal { text-decoration: none; }
.hat-address { display: inline-block; max-width: 100%; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; font-family: "Hatamian Noto Sans", Arial, sans-serif; text-align: left; }
.hat-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hat-field--full { grid-column: 1 / -1; }
.hat-field label { display: block; margin-bottom: 7px; color: var(--hat-navy); font-size: .88rem; font-weight: 700; }
.hat-field input, .hat-field textarea, .hat-field select { width: 100%; padding: 13px 14px; color: var(--hat-ink); background: #fbfdff; border: 1px solid rgba(16,42,86,.18); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.hat-field input:focus, .hat-field textarea:focus, .hat-field select:focus { border-color: var(--hat-blue); outline: 0; box-shadow: 0 0 0 4px rgba(23,105,255,.11); }
.hat-field textarea { min-height: 150px; resize: vertical; }
.hat-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--hat-muted); font-size: .82rem; }
.hat-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; }
.hat-turnstile-wrap { min-height: 76px; }
.hat-turnstile-wrap .cf-turnstile { max-width: 100%; }
.hat-turnstile-note { margin: 8px 0 0; color: var(--hat-muted); font-size: .75rem; }
.hat-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hat-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; font-weight: 700; }
.hat-notice--success { color: #056352; background: #e8fbf6; border: 1px solid #b2eadf; }
.hat-notice--error { color: #8f1d16; background: #fff0ee; border: 1px solid #f5c3bd; }

/* Knowledge and content */
.hat-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hat-article-card { display: flex; flex-direction: column; padding: 28px; color: inherit; background: var(--hat-white); border: 1px solid var(--hat-line); border-radius: 20px; text-decoration: none; box-shadow: var(--hat-shadow-sm); }
.hat-article-card:hover { color: inherit; transform: translateY(-3px); }
.hat-article-card__tag { align-self: flex-start; margin-bottom: 18px; padding: 6px 10px; color: var(--hat-navy); background: var(--hat-sky); border-radius: 9px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hat-article-card h2 { font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.35; }
.hat-article-card p { color: var(--hat-muted); font-size: .93rem; }
.hat-prose { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 72px 0 100px; }
.hat-prose > * { max-width: 100%; }
.hat-prose h2, .hat-prose h3 { margin-top: 1.65em; }
.hat-legal__authority { max-width: 100% !important; padding: 16px 18px; color: var(--hat-ink); background: var(--hat-sky); border-inline-start: 4px solid var(--hat-blue); border-radius: 12px; }
.hat-prose img { border-radius: 18px; }
.hat-prose table { width: 100%; border-collapse: collapse; }
.hat-prose th, .hat-prose td { padding: 12px; border: 1px solid var(--hat-line); text-align: left; }

/* Footer */
.hat-footer { color: rgba(255,255,255,.72); background: #0d2247; }
.hat-footer__top { display: grid; grid-template-columns: 1.45fr .9fr .9fr 1.35fr; gap: 34px; padding: 72px 0 52px; }
.hat-footer .hat-brand { margin-bottom: 18px; padding: 10px 14px; background: var(--hat-white); border-radius: 14px; }
.hat-footer .hat-brand__logo--desktop { width: min(230px, 100%); }
.hat-footer__about { max-width: 410px; font-size: .91rem; }
.hat-footer h2 { margin-bottom: 18px; color: var(--hat-white); font-size: .92rem; letter-spacing: .02em; }
.hat-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hat-footer a { color: rgba(255,255,255,.72); font-size: .88rem; text-decoration: none; }
.hat-footer__contact li { font-size: .88rem; line-height: 1.6; }
.hat-footer a:hover { color: var(--hat-white); }
.hat-footer__bottom { display: flex; justify-content: space-between; gap: 22px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.11); font-size: .8rem; }
.hat-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* Error */
.hat-error-page { display: grid; place-items: center; min-height: 62vh; padding: 80px 20px; text-align: center; background: var(--hat-bg); }
.hat-error-page__code { color: var(--hat-blue); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; }

/* Persian and Arabic use local fonts and genuine RTL flow. */
body.rtl {
  direction: rtl;
  font-family: "Hatamian Noto Sans Arabic", "Hatamian Noto Sans", Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.9;
  text-align: right;
}
.rtl h1, .rtl h2, .rtl h3, .rtl h4,
.rtl .hat-brand, .rtl .hat-nav, .rtl .hat-button,
.rtl .hat-eyebrow, .rtl .hat-language__menu {
  font-family: "Hatamian Noto Kufi Arabic", "Hatamian Noto Sans Arabic", "Hatamian Noto Sans", Tahoma, sans-serif;
  letter-spacing: 0;
}
.rtl h1, .rtl h2, .rtl h3, .rtl h4 { line-height: 1.44; }
.rtl h1 { font-size: clamp(2.18rem, 4.25vw, 3.85rem); }
.rtl h2 { font-size: clamp(1.72rem, 3vw, 2.72rem); }
.rtl h3 { font-size: clamp(1.13rem, 1.7vw, 1.45rem); }
.rtl .hat-page-hero h1 { font-size: clamp(2rem, 3.8vw, 3.42rem); }
.rtl .hat-hero__copy > p, .rtl .hat-lead { line-height: 1.9; }
.rtl .hat-service-card p, .rtl .hat-feature p, .rtl .hat-step p,
.rtl .hat-check-card span, .rtl .hat-faq__answer { line-height: 1.85; }
body.hat-lang-fa {
  font-family: "Hatamian Kalameh", "Hatamian Noto Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  font-size: 17.5px;
}
.hat-lang-he,
.hat-lang-he h1, .hat-lang-he h2, .hat-lang-he h3, .hat-lang-he h4,
.hat-lang-he .hat-brand, .hat-lang-he .hat-nav, .hat-lang-he .hat-button,
.hat-lang-he .hat-eyebrow, .hat-lang-he .hat-language__menu {
  font-family: "Hatamian Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
}
.hat-lang-he h1, .hat-lang-he h2, .hat-lang-he h3, .hat-lang-he h4 { line-height: 1.28; }
.hat-lang-he .hat-hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.7rem); }
.hat-lang-uk, .hat-lang-ru, .hat-lang-sk,
.hat-lang-uk h1, .hat-lang-uk h2, .hat-lang-uk h3, .hat-lang-uk h4,
.hat-lang-ru h1, .hat-lang-ru h2, .hat-lang-ru h3, .hat-lang-ru h4,
.hat-lang-sk h1, .hat-lang-sk h2, .hat-lang-sk h3, .hat-lang-sk h4,
.hat-lang-uk .hat-brand, .hat-lang-uk .hat-nav, .hat-lang-uk .hat-button,
.hat-lang-ru .hat-brand, .hat-lang-ru .hat-nav, .hat-lang-ru .hat-button,
.hat-lang-sk .hat-brand, .hat-lang-sk .hat-nav, .hat-lang-sk .hat-button {
  font-family: "Hatamian Noto Sans Multiscript", "Segoe UI", Arial, sans-serif;
}
.hat-lang-uk .hat-hero h1, .hat-lang-ru .hat-hero h1 { font-size: clamp(2.14rem, 4vw, 3.78rem); }
.hat-lang-fa h1, .hat-lang-fa h2, .hat-lang-fa h3, .hat-lang-fa h4,
.hat-lang-fa .hat-brand, .hat-lang-fa .hat-nav, .hat-lang-fa .hat-button,
.hat-lang-fa .hat-eyebrow, .hat-lang-fa .hat-language__menu {
  font-family: "Hatamian Kalameh", "Hatamian Noto Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  font-feature-settings: "kern" 1;
}
.hat-lang-fa h1, .hat-lang-fa h2 { text-wrap: balance; }
.hat-lang-fa .hat-hero h1 {
  max-width: 680px;
  font-size: clamp(2rem, 3.45vw, 3.25rem);
  line-height: 1.38;
}
.hat-lang-fa .hat-page-hero h1 {
  max-inline-size: 21ch;
  font-size: clamp(1.9rem, 3.15vw, 2.95rem);
  line-height: 1.42;
}
.hat-lang-fa h2 { font-size: clamp(1.62rem, 2.55vw, 2.42rem); line-height: 1.46; }
.hat-lang-fa .hat-hero__copy > p, .hat-lang-fa .hat-lead { line-height: 1.88; }
.hat-lang-fa .hat-nav { gap: 16px; }
.hat-lang-fa .hat-nav a { font-size: .9rem; }
.hat-lang-fa .hat-section-heading { max-width: 780px; }
.hat-lang-ar .hat-hero h1 { max-width: 720px; font-size: clamp(2.05rem, 3.7vw, 3.5rem); }
.hat-lang-en .hat-hero h1, .hat-lang-tr .hat-hero h1 { font-size: clamp(2.3rem, 4.5vw, 4.35rem); }
.rtl .hat-nav { margin-left: 0; margin-right: auto; }
.rtl .hat-header__cta { margin-left: 0; margin-right: 6px; }
.rtl .hat-language__menu { right: auto; left: 0; }
.rtl .hat-button svg, .rtl .hat-service-card__link svg { transform: rotate(180deg); }
.rtl .hat-step:not(:last-child)::after { right: auto; left: -19px; }
.rtl .hat-trust__item { border-right: 0; border-left: 1px solid var(--hat-line); }
.rtl .hat-trust__item:last-child { border-left: 0; }
.rtl .hat-faq summary { padding: 20px 22px 20px 56px; }
.rtl .hat-faq summary::before, .rtl .hat-faq summary::after { right: auto; left: 23px; }
.rtl .hat-prose th, .rtl .hat-prose td { text-align: right; }
.rtl .hat-eyebrow, .rtl .hat-article-card__tag, .rtl .hat-step::before { letter-spacing: 0; text-transform: none; }
.rtl .hat-hero__copy > p, .rtl .hat-section-heading .hat-lead,
.rtl .hat-service-detail-grid article > p, .rtl .hat-prose p { max-inline-size: 58ch; unicode-bidi: plaintext; }
.hat-hero__copy > p, .hat-section-heading .hat-lead,
.hat-service-detail-grid article > p, .hat-prose p { max-inline-size: 65ch; }
.rtl input[type="email"], .rtl input[type="tel"] { direction: ltr; text-align: left; }

@media (max-width: 1240px) {
	.hat-brand__logo--desktop { width: 174px; }
  .hat-header__cta { display: none; }
  .hat-header__phone span { display: none; }
}

@media (max-width: 1080px) {
  .hat-nav { gap: 16px; }
  .hat-hero__grid { grid-template-columns: 1fr 1fr; }
  .hat-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hat-process { grid-template-columns: repeat(2, 1fr); }
  .hat-step:nth-child(2)::after { display: none; }
  .hat-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .hat-footer__column:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.hat-header .hat-brand__logo--desktop { display: none; }
	.hat-header .hat-brand__logo--mobile { display: block; }
  .admin-bar .hat-header { top: 46px; }
  .hat-header__inner { min-height: 72px; }
  .hat-menu-toggle { display: block; }
	.rtl .hat-menu-toggle { margin-left: 0; margin-right: auto; }
  .hat-nav {
    position: fixed; inset: 72px 0 auto; z-index: 999;
    display: grid; gap: 0; max-height: 0; overflow: hidden;
    margin: 0; padding: 0 20px; background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--hat-line); opacity: 0; visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s ease, padding .28s ease;
  }
  .admin-bar .hat-nav { inset: 118px 0 auto; }
  .menu-open .hat-nav { max-height: 520px; padding-top: 12px; padding-bottom: 18px; opacity: 1; visibility: visible; box-shadow: var(--hat-shadow-sm); }
  .hat-nav a { padding: 13px 6px; border-bottom: 1px solid rgba(16,42,86,.07); }
  .hat-nav a::after { display: none; }
	.rtl .hat-nav { margin: 0; }
  .hat-hero__grid, .hat-page-hero__grid, .hat-split, .hat-service-detail-grid, .hat-contact-grid { grid-template-columns: 1fr; }
  .hat-hero__copy { max-width: 720px; }
  .hat-hero__visual { max-width: 690px; }
  .hat-floating-card { left: 15px; }
  .hat-trust__inner { grid-template-columns: repeat(2, 1fr); }
  .hat-trust__item:nth-child(2) { border-right: 0; }
  .hat-trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--hat-line); }
  .hat-service-card, .hat-service-card:nth-child(n+4) { grid-column: span 6; }
  .hat-service-card:last-child:nth-child(odd) { grid-column: 4 / span 6; }
  .hat-split--reverse .hat-split__visual { order: initial; }
  .hat-service-aside { position: static; }
  .hat-article-grid { grid-template-columns: repeat(2, 1fr); }
  .hat-cta__inner { align-items: flex-start; flex-direction: column; }
  .hat-footer__top { grid-template-columns: repeat(2, 1fr); }
  .hat-footer__column:last-child { grid-column: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  body.hat-lang-fa { font-size: 16.5px; }
  .hat-container { width: min(calc(100% - 28px), var(--hat-container)); }
  .hat-section { padding: 66px 0; }
	.hat-language summary { width: 38px; height: 38px; }
	.hat-language__menu {
		grid-template-columns: minmax(0, 1fr); gap: 3px;
		width: min(280px, calc(100vw - 28px)); max-height: min(58vh, 430px);
		padding: 8px;
	}
	.hat-language__menu a { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: .83rem; }
	.hat-header__phone { width: 38px; height: 38px; justify-content: center; border: 1px solid var(--hat-line); border-radius: 12px; }
  .hat-hero { padding-top: 58px; }
  .hat-hero h1 { font-size: clamp(2.28rem, 12vw, 3.2rem); }
  .hat-actions { display: grid; }
  .hat-actions .hat-button { width: 100%; }
  .hat-hero__checks { display: grid; }
  .hat-hero__visual img, .hat-page-hero__visual img, .hat-split__visual img { border-radius: 20px; }
  .hat-floating-card { position: relative; left: auto; bottom: auto; width: calc(100% - 24px); margin: -26px auto 0; }
  .hat-trust { margin-top: -14px; }
  .hat-trust__inner { grid-template-columns: 1fr; }
  .hat-trust__item { min-height: 76px; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--hat-line); }
  .hat-trust__item:last-child { border-bottom: 0; }
  .hat-service-grid { grid-template-columns: 1fr; }
  .hat-service-card, .hat-service-card:nth-child(n+4), .hat-service-card:last-child:nth-child(odd) { grid-column: 1; }
  .hat-feature-grid, .hat-process, .hat-check-cards, .hat-article-grid, .hat-form-grid { grid-template-columns: 1fr; }
	.hat-split .hat-feature-grid, .hat-service-detail-grid article .hat-process { grid-template-columns: 1fr; }
	.hat-split .hat-feature:last-child:nth-child(odd) { grid-column: auto; }
  .hat-feature, .hat-service-card__body, .hat-contact-card, .hat-form-card { padding: 23px; }
  .hat-step:not(:last-child)::after { display: none; }
  .hat-field--full { grid-column: auto; }
  .hat-cta { padding: 32px 24px; border-radius: 22px; }
  .hat-footer__top { grid-template-columns: 1fr; padding-top: 56px; }
  .hat-footer__bottom { flex-direction: column; }
	.rtl .hat-hero h1 { font-size: clamp(2rem, 9.6vw, 2.65rem); line-height: 1.42; }
	.rtl .hat-page-hero h1 { font-size: clamp(1.85rem, 8.8vw, 2.45rem); line-height: 1.45; }
	.hat-lang-fa .hat-hero h1 { font-size: clamp(1.78rem, 8vw, 2.24rem); line-height: 1.42; }
	.hat-lang-fa .hat-page-hero h1 { font-size: clamp(1.68rem, 7.4vw, 2.12rem); line-height: 1.46; }
	.hat-lang-fa h2 { font-size: clamp(1.48rem, 6.7vw, 1.94rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
