/* ITS Customized — static site styles
   Palette and type derived from the brand mark: charcoal + orange.
   Orange is reserved for actions and a single hero accent rule. */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #26292b;
  --ink-deep: #1b1d1e;
  --slate: #5f6360;
  --slate-soft: #7b807d;
  --accent: #f47a1f;
  --accent-deep: #d9660c;
  --paper: #ffffff;
  --mist: #f3f5f7;
  --mist-deep: #e9edf0;
  --line: #e2e6ea;

  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 33, 34, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--ink);
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}

/* Accessible focus state */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: transform 0.15s var(--ease);
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.section--mist {
  background: var(--mist);
}
.measure {
  max-width: 60ch;
}

/* Section lead-in (not an all-caps eyebrow) */
.section-head {
  max-width: 52ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 0.85rem;
  color: var(--slate);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.btn:hover {
  background: var(--accent-deep);
  color: #fff;
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--accent);
}
.btn--on-dark.btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--on-dark.btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 32px;
  width: auto;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding-block: 0.35rem;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Desktop vs mobile nav */
.nav-toggle {
  display: none;
}
@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex;
  }
  /* With JS, collapse the menu; without JS it stays visible and stacks. */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31, 33, 34, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s var(--ease);
  }
  .js .site-nav.is-open {
    max-height: 420px;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.25rem;
  }
  .site-nav li {
    border-top: 1px solid var(--line);
  }
  .site-nav li:first-child {
    border-top: none;
  }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
  }
  .site-nav a:not(.btn)::after {
    display: none;
  }
  .site-nav .btn {
    margin-top: 0.9rem;
    justify-content: center;
  }
  .site-header .wrap {
    position: relative;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background-color: var(--ink-deep);
  background-image: linear-gradient(
      100deg,
      rgba(20, 22, 24, 0.92) 0%,
      rgba(20, 22, 24, 0.72) 42%,
      rgba(20, 22, 24, 0.25) 100%
    ),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center right;
}
.hero .wrap {
  padding-block: clamp(4rem, 12vw, 8.5rem);
}
.hero-content {
  max-width: 40rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.accent-rule {
  width: 72px;
  height: 4px;
  background: var(--accent);
  border: 0;
  margin: 1.4rem 0;
  border-radius: 2px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* Page banner (interior pages) */
.page-banner {
  background: var(--ink);
  color: #fff;
}
.page-banner .wrap {
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-banner h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 700;
  max-width: 20ch;
}
.page-banner p {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 54ch;
}

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2.25rem;
}
@media (min-width: 620px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 940px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}
.service:hover {
  border-top-color: var(--accent);
}
.service-icon {
  color: var(--accent);
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
.service p {
  margin-top: 0.6rem;
  color: var(--slate);
  font-size: 1rem;
}

/* ---------- Reasons (Why Choose Us) ---------- */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 760px) {
  .reasons {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.75rem 3rem;
  }
}
.reason {
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
.reason h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.reason p {
  margin-top: 0.55rem;
  color: var(--slate);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
}
.cta-band p {
  margin: 1rem auto 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}
.cta-band .btn {
  margin-top: 1.9rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}
.contact-intro h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  font-weight: 700;
}
.contact-intro p {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 1.1rem;
}
.contact-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.1rem);
}
.contact-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-list .ci {
  color: var(--accent);
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.contact-list .label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-soft);
  margin-bottom: 1px;
}
.contact-list a {
  color: var(--ink);
  font-weight: 600;
}
.contact-list a:hover {
  color: var(--accent-deep);
}
.contact-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.96rem;
}
.site-footer .wrap {
  padding-block: clamp(2.75rem, 6vw, 3.75rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}
.footer-brand .wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-brand .wordmark span {
  color: var(--accent);
}
.footer-brand p {
  margin-top: 0.75rem;
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.9rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-col a,
.footer-col address {
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
  line-height: 1.5;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Motion: one deliberate hero reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s var(--ease) forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.16s; }
  .reveal-3 { animation-delay: 0.27s; }
  .reveal-4 { animation-delay: 0.38s; }
  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}
