/* ==========================================================================
   Sahak Tech Solutions - site styles
   Brand tokens are locked; see the identity sheet before changing colours.
   ========================================================================== */

:root {
  /* brand */
  --ink:      #0E1A21;
  --teal-700: #0A4A58;
  --teal-500: #0E7684;
  --teal-300: #45C2CC;
  --paper:    #F7F9FA;
  --night:    #08151A;
  --slate:    #5A6B73;

  /* derived surfaces */
  --bg:        #FFFFFF;
  --bg-sunk:   #F2F6F7;
  --rule:      #DCE5E8;
  --rule-firm: #B6C6CB;

  --display: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   1.5rem;
  --t-xl:   2rem;
  --t-2xl:  2.625rem;
  --t-3xl:  3.25rem;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --shell: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, var(--t-3xl)); font-weight: 700; }
h2 { font-size: clamp(1.625rem, 3.6vw, var(--t-2xl)); font-weight: 600; }
h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--teal-500); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-700); }

img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- layout ------------------------------------------------------ */
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--sunk { background: var(--bg-sunk); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 0.85rem;
}
.lede { font-size: var(--t-md); color: #3A4A52; max-width: 60ch; }
.section > .shell > h2 + .lede { margin-top: 1rem; }

/* ---------- header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .shell {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; flex: none; }
.brand svg { display: block; }
.brand-txt { display: flex; flex-direction: column; gap: 0.18rem; }
.brand-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.brand-sub {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em; line-height: 1; color: var(--teal-500);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a { font-size: var(--t-sm); font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal-500); }
@media (max-width: 46rem) { .nav .nav-hide { display: none; } }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.375rem;
  font-family: inherit; font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.01em;
  border-radius: 4px; border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--teal-500); color: #fff; }
.btn--primary:hover { background: var(--teal-700); color: #fff; }
.btn--ghost { border-color: var(--rule-firm); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-500); }
.btn--onDark { background: var(--teal-300); color: var(--night); }
.btn--onDark:hover { background: #7FD8DF; color: var(--night); }
.btn--ghostDark { border-color: rgba(247, 249, 250, 0.35); color: var(--paper); }
.btn--ghostDark:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn--sm { min-height: 44px; font-size: var(--t-xs); padding: 0 1rem; }

/* ---------- hero -------------------------------------------------------- */
.hero {
  background: var(--night);
  color: var(--paper);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  /* faint grid: infrastructure, not gradient mush */
  background-image:
    linear-gradient(to right, rgba(69, 194, 204, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(69, 194, 204, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero h1 { max-width: 34ch; }
.hero .hero-sub { margin-top: 1.5rem; font-size: var(--t-md); color: #B9CBD1; max-width: 56ch; }
.hero .eyebrow { color: var(--teal-300); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 249, 250, 0.14);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.06em;
  color: #93AAB2; list-style: none; padding-inline-start: 0;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal-300); flex: none;
}

/* ---------- service cards ---------------------------------------------- */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2.75rem; }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--bg); padding: 2rem 1.75rem 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.card-ico { color: var(--teal-500); }
.card ul { margin: 0; padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card li { font-size: var(--t-sm); color: #3A4A52; }
.card li::marker { color: var(--teal-300); }

/* ---------- split ------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 54rem) { .split { grid-template-columns: 1.1fr 1fr; } }

/* ---------- plain lists ------------------------------------------------- */
.tick { margin: 1.75rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.tick li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--t-base); }
.tick svg { flex: none; margin-top: 0.35rem; color: var(--teal-500); }

.areas { margin: 1.75rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.areas li {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem; border: 1px solid var(--rule-firm); border-radius: 3px; color: #3A4A52;
}

/* ---------- engagements (definition rows) ------------------------------ */
.rows { margin: 2.5rem 0 0; border-top: 1px solid var(--rule); }
.row {
  display: grid; gap: 0.3rem 2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .row { grid-template-columns: 15rem 1fr; align-items: baseline; } }
.row dt { font-weight: 600; font-size: var(--t-sm); }
.row dd { margin: 0; font-size: var(--t-sm); color: #3A4A52; }

/* ---------- contact ----------------------------------------------------- */
.contact { background: var(--night); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact .lede { color: #B9CBD1; }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.5rem; }
@media (min-width: 54rem) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.dl-contact { margin: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.dl-contact dt {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: #93AAB2; margin-bottom: 0.3rem;
}
.dl-contact dd { margin: 0; font-size: var(--t-md); }
.dl-contact a { color: var(--teal-300); }
.dl-contact a:hover { color: #7FD8DF; }

form { display: flex; flex-direction: column; gap: 1.1rem; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--t-sm); font-weight: 500; }
input, textarea, select {
  font-family: inherit; font-size: var(--t-base); color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 4px;
  padding: 0.75rem 0.875rem; min-height: 48px; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--teal-300); outline-offset: 1px; }
.form-note { font-size: var(--t-xs); color: #93AAB2; font-family: var(--mono); letter-spacing: 0.03em; }

/* ---------- footer ------------------------------------------------------ */
.site-footer { background: var(--ink); color: #A9BCC2; padding-block: 2.5rem; font-size: var(--t-sm); }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer a { color: #A9BCC2; text-decoration: none; }
.site-footer a:hover { color: var(--teal-300); }
.site-footer .spacer { margin-left: auto; }

/* ---------- partners page ---------------------------------------------- */
.pagehead { background: var(--bg-sunk); border-bottom: 1px solid var(--rule); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.pagehead h1 { font-size: clamp(1.875rem, 4.2vw, var(--t-2xl)); }

.spec { margin: 0; border-top: 1px solid var(--rule); }
.spec-row {
  display: grid; gap: 0.3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .spec-row { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.spec-row dt {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
}
.spec-row dd { margin: 0; font-size: var(--t-sm); }

.callout {
  border-left: 3px solid var(--teal-500); padding: 0.35rem 0 0.35rem 1.25rem;
  margin-top: 2rem; max-width: 62ch;
}

/* keeps any wide block from pushing the page sideways */
.scroll-x { overflow-x: auto; }
