/* Fine Tech Solutions — shared styles */

:root {
  --purple: #500474;
  --accent: #7c4dff;
  --ink: #0e0e0e;
  --paper: #ffffff;
  --gray: #b9b9b9;
  --font-display: 'Questrial', sans-serif;
  --font-ui: 'Montserrat', sans-serif;
  --font-body: 'Mulish', sans-serif;
  --header-h: 110px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-weight: 400; }

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid #ececec;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(1320px, 94vw);
  margin-inline: auto;
}

.logo img { width: 200px; height: auto; }

.site-nav ul {
  display: flex;
  gap: 52px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 16px;
  color: #0f0f0f;
  transition: color .2s;
}

.site-nav a:hover, .site-nav a.active { color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #111;
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 14px 46px;
  border: 1px solid currentColor;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.btn:hover { background: #fff; color: var(--ink); }

.btn-dark { color: var(--ink); }

.btn-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Hero slideshow (home) ---------- */

.slideshow {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% 22%, #241247 0%, #150b2e 46%, #0a0620 78%, #060312 100%);
}

.slideshow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Subtle darkening for text legibility over the bright particle wave */
.slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 2, 18, .72) 0%, rgba(6, 2, 18, .38) 45%, rgba(6, 2, 18, .15) 100%);
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 2;
  pointer-events: none;
}

.slide.current { opacity: 1; pointer-events: auto; }

.slide .inner { width: min(1180px, 92vw); margin-inline: auto; }

.slide h1, .slide h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.08;
  color: #fff;
  max-width: 12em;
}

.slide p {
  margin-top: 28px;
  font-size: clamp(19px, 2vw, 26px);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
}

.slide .btn { margin-top: 44px; }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 0;
  color: #fff;
  font-size: 46px;
  font-family: var(--font-display);
  cursor: pointer;
  padding: 10px 18px;
  opacity: .85;
}

.slide-arrow:hover { opacity: 1; }

.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }

.slide-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slide-dots button.current { background: #fff; }

/* ---------- Section heading ---------- */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

/* ---------- Services grid (home) ---------- */

.services { padding: 110px 0; background: #fff; }

.services .section-title { text-align: center; margin-bottom: 70px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 34px;
}

.service-card {
  text-align: center;
  padding: 34px 18px 30px;
  border: 1px solid transparent;
  transition: border-color .25s, transform .25s;
}

.service-card:hover { border-color: #e5deee; transform: translateY(-4px); }

.service-card img {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  margin-bottom: 10px;
}

.service-card .more {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--purple);
}

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split > .pane { min-height: 520px; }

.pane-img {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.pane-pad {
  padding: 90px min(7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.on-dark { background: var(--ink); color: #fff; }

.on-dark p { color: #d6d6d6; }

/* ---------- About (home) ---------- */

.about p + p { margin-top: 18px; }

.about .lede {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  margin: 26px 0 30px;
  color: #fff;
}

.about .btn { margin-top: 38px; align-self: flex-start; }

/* ---------- Resources preview / blog cards ---------- */

.resources-band { padding: 110px 0; background: #f7f6fa; }

.resources-band .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.resources-band .head p { max-width: 420px; color: #444; }

.post-card {
  background: #fff;
  border: 1px solid #e8e6ef;
  max-width: 420px;
  transition: box-shadow .25s;
}

.post-card:hover { box-shadow: 0 14px 40px rgba(20, 8, 40, .12); }

.post-card img { height: 260px; width: 100%; object-fit: cover; }

.post-card .body { padding: 26px 28px 30px; }

.post-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
}

.post-card .sub { color: #555; font-size: 15.5px; }

.post-card .meta {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #777;
}

/* ---------- Quote band (home) ---------- */

.quote-band {
  position: relative;
  padding: 150px 0;
  background: url('/assets/quote-bg.jpg') center/cover fixed no-repeat;
  color: #fff;
}

.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 16, .66);
}

.quote-band .wrap { position: relative; }

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
  max-width: 900px;
}

.quote-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfc3e2;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 48px;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  color: var(--purple);
  line-height: 1;
}

.stat .label { margin-top: 12px; color: #444; font-size: 15.5px; }

/* ---------- Values (who we are) ---------- */

.values { background: var(--ink); color: #fff; padding: 110px 0; }

.values .section-title { text-align: center; }

.values .sub {
  text-align: center;
  color: #bdbdbd;
  margin-top: 14px;
}

.values-row {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  text-align: center;
}

.value .index {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 12px;
}

/* ---------- Partners ---------- */

.partners { padding: 100px 0; }

.partners .section-title { text-align: center; margin-bottom: 64px; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 48px 40px;
  align-items: center;
}

.partners-grid img {
  margin: 0 auto;
  max-height: 64px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: .9;
}

/* ---------- Service detail pages ---------- */

.service-hero {
  background: radial-gradient(circle at 18% 28%, #f6f4fb 0%, #d4cde8 40%, #9188c5 78%, #7f76b9 100%);
  padding: 110px 0 120px;
}

.service-hero .cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: min(8vw, 110px);
}

.service-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 74px);
  line-height: 1.05;
}

.service-hero .tagline {
  margin-top: 30px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: #2c2544;
}

.service-hero .intro h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.4;
  margin-bottom: 22px;
}

.service-hero .intro h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 21px;
  margin: 40px 0 18px;
}

.service-hero .intro p + p { margin-top: 16px; }

.service-hero .includes { margin-top: 30px; }

.service-hero .includes .head {
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 17px;
  margin-bottom: 12px;
}

.service-hero .includes ul { list-style: none; }

.service-hero .includes li { padding: 4px 0; }

/* ---------- Work together band ---------- */

.work-band { padding: 110px 0; }

.work-band .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(7vw, 90px);
  align-items: center;
}

.work-band h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 50px);
  margin-bottom: 24px;
}

.work-band .btn-dark { margin-top: 34px; }

/* ---------- Page hero (resources/career) ---------- */

.page-hero {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
}

.page-hero p { margin-top: 20px; color: #c9c9c9; font-size: 19px; }

/* ---------- Tabs (resources) ---------- */

.tabs {
  display: flex;
  gap: 34px;
  padding: 34px 0 0;
  font-family: var(--font-ui);
  font-size: 15px;
}

.tabs button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: #555;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.tabs button.current { color: var(--accent); border-color: var(--accent); }

/* ---------- Careers ---------- */

.careers-page { background: var(--ink); min-height: 60vh; padding-bottom: 130px; }

.job-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 1px solid #3a3a3a;
  color: #fff;
  max-width: 950px;
  margin: 0 auto;
}

.job-card img { width: 100%; height: 100%; object-fit: cover; min-height: 250px; }

.job-card .body {
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
}

.job-card h2 { font-family: var(--font-ui); font-weight: 500; font-size: 26px; }

.job-card .exp { margin-top: 14px; color: #cfcfcf; }

.job-card .more {
  margin-top: auto;
  padding-top: 30px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 15px;
}

.job-card .more:hover { text-decoration: underline; }

/* ---------- Article / job detail ---------- */

.article {
  width: min(760px, 92vw);
  margin-inline: auto;
  padding: 70px 0 110px;
}

.article .back {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #666;
}

.article .back:hover { color: var(--purple); }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  margin: 26px 0 18px;
}

.article .byline {
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: #777;
  margin-bottom: 36px;
}

.article img.feature { margin: 0 0 38px; }

.article p + p { margin-top: 18px; }

.article h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 42px 0 16px;
}

.article .chip {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 7px 18px;
}

.article .btn { margin-top: 40px; }

/* ---------- Contact ---------- */

.contact-split .pane-pad { padding-top: 80px; padding-bottom: 90px; }

.contact-split h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 62px);
}

.contact-split .sub { margin: 16px 0 46px; color: #cfcfcf; font-size: 19px; }

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact-form .field { margin-bottom: 26px; }

.contact-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  margin-bottom: 9px;
  color: #eee;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
}

.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form ::placeholder { color: #9a9a9a; }

.support-band { text-align: center; padding: 100px 0; }

.support-band h3 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
}

.support-band p { margin: 16px 0 36px; color: #555; }

/* ---------- Footer ---------- */

.site-footer {
  background: #000;
  color: #fff;
  padding: 96px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr .7fr;
  gap: 56px;
}

.footer-brand img { width: 120px; margin-bottom: 30px; }

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 54px);
  margin-bottom: 34px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 22px;
}

.site-footer p, .site-footer a { color: #dedede; font-size: 15.5px; }

.site-footer li { list-style: none; padding: 4px 0; }

.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 80px;
  padding-top: 26px;
  border-top: 1px solid #262626;
  font-size: 13.5px;
  color: #9a9a9a;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-row { grid-template-columns: repeat(3, 1fr); gap: 44px 24px; }
}

@media (max-width: 860px) {
  :root { --header-h: 84px; }

  .logo img { width: 160px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 99;
  }

  .site-nav.open { transform: translateY(0); }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 6vw 22px;
  }

  .site-nav li { border-top: 1px solid #f0f0f0; }

  .site-nav a { display: block; padding: 15px 0; font-size: 17px; }

  .split, .service-hero .cols, .work-band .cols { grid-template-columns: 1fr; }

  .split > .pane { min-height: 0; }

  .pane-img { min-height: 300px; order: -1; }

  .pane-pad { padding: 64px 6vw; }

  .stats { grid-template-columns: 1fr; gap: 40px; }

  .job-card { grid-template-columns: 1fr; }

  .job-card img { max-height: 260px; }

  .contact-form .row { grid-template-columns: 1fr; gap: 0; }

  .quote-band { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .slide-arrow { display: none; }
}
