/* Tentaris Technologies website */
:root {
  --midnight: #0A1628;
  --ink: #102440;
  --ink-2: #16304F;
  --teal: #0E7C86;
  --teal-bright: #2BB5BF;
  --copper: #E0783A;
  --copper-dark: #C4621F;
  --paper: #F2F5F7;
  --white: #FFFFFF;
  --text: #0A1628;
  --muted: #4B5B70;
  --line: #D6DEE6;
  --on-dark: #E8EEF4;
  --on-dark-muted: #9FB0C4;
  --line-dark: rgba(159, 176, 196, .22);

  --font-display: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

html[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--copper); color: var(--midnight); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-copper { background: var(--copper); color: var(--midnight); }
.btn-copper:hover { background: #EC8A4E; }
.btn-ghost { border-color: rgba(232, 238, 244, .4); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 22, 40, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--white); flex-shrink: 0; text-decoration: none; }
.brand-group {
  /* starts under the wordmark, like the email signature */
  margin-left: 30%; font-family: "Sora", system-ui, sans-serif; font-weight: 600;
  font-size: 11px; line-height: 1; letter-spacing: .04em;
  color: var(--on-dark-muted); white-space: nowrap;
}
.brand-group b { font-weight: 600; color: var(--teal-bright); }
.logo { display: block; height: 34px; width: auto; --loop: var(--teal-bright); }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding-block: 8px; transition: color .2s; }
.nav a:hover { color: var(--white); }
.header-tools { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang svg { position: absolute; inset-inline-start: 10px; width: 16px; height: 16px; fill: none; stroke: var(--on-dark-muted); stroke-width: 1.6; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 999px;
  min-height: 40px; padding-block: 6px; padding-inline: 32px 14px;
  font: 500 .9375rem var(--font-body); cursor: pointer;
}
.lang select:hover { border-color: var(--on-dark-muted); }
.lang select option { color: var(--text); background: var(--white); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { position: absolute; left: 50%; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn .bars { top: 50%; transform: translate(-50%, -50%); }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; transform: translateX(-50%); }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translate(-50%, 6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translate(-50%, -6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(14, 124, 134, .28), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(224, 120, 58, .10), transparent 60%),
    var(--midnight);
  color: var(--on-dark);
  padding-block: clamp(64px, 11vw, 132px) clamp(32px, 5vw, 56px);
}
html[dir="rtl"] .hero {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(14, 124, 134, .28), transparent 60%),
    radial-gradient(600px 400px at 90% 110%, rgba(224, 120, 58, .10), transparent 60%),
    var(--midnight);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; display: grid; gap: 24px; justify-items: start; }
.hero-title {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700; color: var(--white);
  font-size: clamp(2.5rem, 7.4vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.035em;
  max-width: 13ch;
}
html[dir="rtl"] .hero-title { text-align: right; justify-self: start; }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--teal-bright); }
.hero-lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-dark); opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.eyebrow {
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
}
html[dir="rtl"] .eyebrow { font-family: var(--font-body); letter-spacing: 0; font-size: .9375rem; }
.eyebrow-dark { color: var(--teal-bright); }

.chips {
  position: relative; list-style: none; margin: clamp(48px, 8vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden;
  background: rgba(10, 22, 40, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chips li + li { border-inline-start: 1px solid var(--line-dark); }
.chips a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; text-decoration: none; color: var(--on-dark); transition: background-color .2s; }
.chips a:hover { background: rgba(43, 181, 191, .10); }
.chips b { font-family: var(--font-mono); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; color: var(--copper); }
.chips span { font-size: .9375rem; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section h2 { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
html[dir="rtl"] .section h2 { letter-spacing: 0; line-height: 1.3; }
.intro { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.service:hover { border-color: #B7C7D4; box-shadow: 0 18px 40px -24px rgba(10, 22, 40, .35); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.code { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; color: var(--white); background: var(--midnight); padding: 5px 10px; border-radius: 6px; }
.glyph { width: 44px; height: 44px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.25; }
.service p { color: var(--muted); }
.service ul { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.service li { position: relative; padding-inline-start: 22px; font-size: 1rem; }
.service li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); }

/* Lifecycle */
.section-ink { background: var(--ink); color: var(--on-dark); }
.section-ink h2 { color: var(--white); }
.section-ink .intro { color: var(--on-dark-muted); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.loop::before {
  content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal) 70%, var(--copper));
  opacity: .7;
}
html[dir="rtl"] .loop::before { background: linear-gradient(270deg, var(--teal-bright), var(--teal) 70%, var(--copper)); }
.loop li { position: relative; display: grid; gap: 10px; align-content: start; }
.node {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: .9375rem;
  background: var(--ink); color: var(--teal-bright); border: 2px solid var(--teal-bright);
  position: relative; z-index: 1; margin-bottom: 6px;
}
.node-copper { color: var(--copper); border-color: var(--copper); }
.loop h3 { font-size: 1.25rem; font-weight: 600; color: var(--white); }
.loop p { color: var(--on-dark-muted); font-size: .9875rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.points { margin: 0; display: grid; gap: 0; }
.points > div { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.points > div:last-child { border-bottom: 1px solid var(--line); }
.points dt { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.points dt::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); }
.points dd { margin: 0; color: var(--muted); padding-inline-start: 22px; }

/* Contact */
.section-contact {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(14, 124, 134, .30), transparent 60%),
    var(--midnight);
  color: var(--on-dark);
}
.section-contact h2 { color: var(--white); margin-block: 14px 16px; }
.section-contact .intro { color: var(--on-dark-muted); margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-card { margin: 0; border: 1px solid var(--line-dark); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 24px; background: rgba(16, 36, 64, .6); }
.contact-card dt { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 6px; }
html[dir="rtl"] .contact-card dt { font-family: var(--font-body); letter-spacing: 0; font-size: .9375rem; }
.contact-card dd { margin: 0; font-size: 1.125rem; color: var(--white); }
.contact-card dd a { text-decoration-color: var(--copper); text-underline-offset: 4px; }
html[dir="rtl"] .contact-card dd { text-align: right; }
.addr { line-height: 1.55; }

/* Footer */
.site-footer { background: #07101E; color: var(--on-dark-muted); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { color: var(--white); display: grid; gap: 14px; justify-items: start; }
.footer-brand .brand-group { font-size: 10px; }
.footer-brand .logo { height: 30px; }
.slogan { color: var(--on-dark-muted); font-family: "Sora", system-ui, sans-serif; font-size: .9375rem; }
.footer-legal { display: grid; gap: 4px; max-width: 460px; }
.footer-legal strong { color: var(--on-dark); font-weight: 600; }

/* 24/7 support */
.section-support { background: var(--white); }
.support-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 48px); }
.support-head .section-head { margin-bottom: 0; }
.badge-247 { display: grid; justify-items: center; gap: 2px; padding: 18px 26px; border-radius: 18px; background: var(--copper); color: var(--midnight); text-align: center; }
.badge-247 strong { font-family: "Sora", system-ui, sans-serif; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.badge-247 span { font-weight: 600; font-size: .9375rem; }

.map-panel {
  margin: 0; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(800px 360px at 60% 0%, rgba(14, 124, 134, .22), transparent 70%),
    var(--midnight);
  color: var(--on-dark);
  padding: clamp(16px, 3vw, 36px);
}
.map-wrap { position: relative; width: 100%; aspect-ratio: 1000 / 383; max-width: 100%; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.map-dots { fill: none; stroke: #2A5674; stroke-width: 4.2; stroke-linecap: round; }
.map-arc { fill: none; stroke: var(--teal-bright); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; opacity: .9; }
.map-arc-dash { stroke-width: 1.4; opacity: .55; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.map-node .core { fill: var(--copper); stroke: var(--white); stroke-width: 2; }
.map-node .halo { fill: var(--copper); opacity: .25; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.map-node:nth-child(odd) .halo { animation-delay: 1.2s; }
@keyframes halo { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
.map-pin {
  position: absolute; transform: translate(14px, -50%);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.75rem, 1.3vw, 1rem); color: var(--white);
  white-space: nowrap; pointer-events: none; text-shadow: 0 1px 8px rgba(10, 22, 40, .9);
}
.map-pin.pin-left { transform: translate(calc(-100% - 14px), -50%); }

.map-panel figcaption { margin-top: clamp(16px, 3vw, 28px); padding-top: 18px; border-top: 1px solid var(--line-dark); display: grid; gap: 14px; }
.map-caption { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
html[dir="rtl"] .map-caption { font-family: var(--font-body); letter-spacing: 0; text-align: right; }
.centres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.centres li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot name time" ". country country"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(16, 36, 64, .7); border: 1px solid var(--line-dark); }
html[dir="rtl"] .centres li { direction: rtl; }
.centres .dot { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--teal-bright); }
.centres li.day .dot { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 4px rgba(224, 120, 58, .2); }
.c-name { grid-area: name; font-weight: 600; color: var(--white); }
.c-country { grid-area: country; font-size: .875rem; color: var(--on-dark-muted); }
.c-time { grid-area: time; font-family: var(--font-mono); font-size: .9375rem; color: var(--teal-bright); font-variant-numeric: tabular-nums; }

.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.support-card { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.support-card h3 { font-size: 1.25rem; font-weight: 600; }
.support-card p { color: var(--muted); }
.support-card .glyph { margin-bottom: 4px; }

/* Gentle reveal: content is visible by default, JS only adds motion */
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .map-arc, .map-node .halo { animation: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .desk-only { display: none; }
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .loop::before { display: none; }
  .centres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .menu-btn { display: inline-block; }
  .header-tools { margin-inline-start: auto; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--midnight); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.125rem; padding-block: 14px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips li:nth-child(3) { border-inline-start: 0; }
  .chips li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .why-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid .section-head { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .logo { height: 28px; }
  .site-header .brand-group { margin-left: 0; font-size: 9.5px; letter-spacing: 0; }
  .lang select { padding-inline: 30px 10px; max-width: 132px; }
  .loop { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .loop li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding-bottom: 28px; }
  .loop li::after { content: ""; position: absolute; top: 50px; bottom: 4px; inset-inline-start: 21px; width: 2px; background: var(--line-dark); }
  .loop li:last-child::after { display: none; }
  .loop .node { grid-row: span 2; margin: 0; }
  .loop h3 { align-self: center; }
  .hero-actions .btn { flex: 1 1 auto; }
  .map-pin { display: none; }
  .centres { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .badge-247 { grid-auto-flow: column; align-items: baseline; gap: 10px; padding: 12px 18px; }
}
