/* ==========================================================================
   USIT Depo — Core Styles
   Business Technology Depot
   ========================================================================== */

:root {
  --ink: #0C1222;
  --ink-soft: #1A2336;
  --steel: #2A3F55;
  --copper: #C45C26;
  --copper-dark: #A34A1C;
  --copper-soft: #E07A45;
  --sand: #E8E4DC;
  --sand-dim: #D4CFC4;
  --mist: #F3F1EC;
  --white: #FFFFFF;
  --muted: #6B7280;
  --line: rgba(12, 18, 34, 0.12);
  --success: #2F6B4F;
  --danger: #B42318;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.14);
  --radius: 4px;
  --header-h: 76px;
  --container: 1180px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--copper-dark);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: var(--sand);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.lead {
  font-size: 1.2rem;
  color: var(--steel);
  max-width: 38rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--steel);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--sand);
  border-color: rgba(232, 228, 220, 0.45);
}

.btn-outline:hover {
  background: rgba(232, 228, 220, 0.1);
  color: var(--white);
  border-color: var(--sand);
}

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

.btn-dark:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(12, 18, 34, 0.04);
  color: var(--ink);
}

.btn-sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(12, 18, 34, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(12, 18, 34, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--sand);
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(232, 228, 220, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 228, 220, 0.25);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sand);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.45) 0%, rgba(12, 18, 34, 0.55) 40%, rgba(12, 18, 34, 0.88) 100%),
    linear-gradient(90deg, rgba(12, 18, 34, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  max-width: 40rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(232, 228, 220, 0.88);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  overflow: hidden;
}

.page-hero .hero-content {
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  animation: rise 0.7s var(--ease) both;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(232, 228, 220, 0.85);
  max-width: 34rem;
}

/* --- Sections --- */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--white);
}

.section--ink {
  background: var(--ink);
  color: var(--sand);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--ink p {
  color: rgba(232, 228, 220, 0.78);
}

/* --- Split / Feature --- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split-copy .lead {
  margin: 1rem 0 1.5rem;
}

.value-list {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.value-list .mark {
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  background: var(--copper);
  border-radius: 1px;
}

.value-list strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.15rem;
}

.value-list span {
  color: var(--steel);
  font-size: 0.98rem;
}

/* --- Services strip (not card-heavy) --- */
.service-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.service-row:hover {
  background: rgba(196, 92, 38, 0.04);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: inherit;
}

.service-row-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
}

.service-row h3 {
  margin-bottom: 0.35rem;
}

.service-row p {
  color: var(--steel);
  max-width: 36rem;
  font-size: 0.98rem;
}

.service-row-arrow {
  color: var(--copper);
  font-size: 1.35rem;
  transition: transform 0.25s var(--ease);
}

.service-row:hover .service-row-arrow {
  transform: translateX(6px);
}

/* Service detail blocks */
.service-blocks {
  display: grid;
  gap: 4rem;
}

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.service-block:nth-child(even) {
  direction: rtl;
}

.service-block:nth-child(even) > * {
  direction: ltr;
}

.service-block-media {
  overflow: hidden;
  min-height: 320px;
}

.service-block-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.service-block-copy h3 {
  margin: 0.5rem 0 0.85rem;
}

.service-block-copy p {
  color: var(--steel);
  margin-bottom: 1rem;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--copper);
}

/* --- Stats --- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(232, 228, 220, 0.15);
  margin-top: 3rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 0.25rem;
}

.stat span {
  color: rgba(232, 228, 220, 0.65);
  font-size: 0.92rem;
}

/* --- CTA band --- */
.cta-band {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, rgba(12, 18, 34, 0.88), rgba(42, 63, 85, 0.75)),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1600&q=80") center/cover;
  color: var(--sand);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  color: rgba(232, 228, 220, 0.85);
}

.cta-band .btn-group {
  justify-content: center;
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-item p,
.contact-item a {
  color: var(--steel);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--copper);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: var(--white);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  display: none;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-message.is-success {
  display: block;
  background: rgba(47, 107, 79, 0.12);
  color: var(--success);
}

.form-message.is-error {
  display: block;
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Legal pages --- */
.legal-wrap {
  max-width: 760px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.legal-wrap h2 {
  font-size: 1.45rem;
  margin: 2.25rem 0 0.85rem;
}

.legal-wrap h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--steel);
  margin-bottom: 0.85rem;
}

.legal-wrap ul,
.legal-wrap ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-wrap ul {
  list-style: disc;
}

.legal-wrap ol {
  list-style: decimal;
}

.legal-wrap a {
  font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.faq-item button span {
  color: var(--copper);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s;
}

.faq-item.is-open button span {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--steel);
}

.faq-item.is-open .faq-panel {
  display: block;
  animation: rise 0.35s var(--ease);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(232, 228, 220, 0.72);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand--footer {
  margin-bottom: 1rem;
}

.footer-tagline {
  margin-bottom: 1.25rem;
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--sand);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--copper-soft);
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(232, 228, 220, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-address {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.cookie-prefs-btn {
  background: transparent;
  border: 1px solid rgba(232, 228, 220, 0.25);
  color: var(--sand);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.cookie-prefs-btn:hover {
  border-color: var(--copper);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(232, 228, 220, 0.1);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 5000;
  max-width: 920px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--sand);
  border: 1px solid rgba(232, 228, 220, 0.15);
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.35rem;
}

.cookie-title {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cookie-copy p {
  font-size: 0.9rem;
  color: rgba(232, 228, 220, 0.75);
}

.cookie-copy a {
  color: var(--copper-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: var(--sand);
  border-color: rgba(232, 228, 220, 0.25);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  background: rgba(12, 18, 34, 0.65);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.cookie-modal-panel {
  width: min(100%, 480px);
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-modal-panel h2 {
  margin-bottom: 0.5rem;
}

.cookie-modal-panel > p {
  color: var(--steel);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--steel);
}

.cookie-option strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.cookie-option input {
  margin-top: 0.2rem;
  accent-color: var(--copper);
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--sand);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity 0.25s, transform 0.25s;
}

.back-to-top:hover {
  background: var(--copper);
  color: var(--white);
}

.back-to-top[hidden] {
  display: none;
}

/* --- Reveal animation helpers --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* --- 404 --- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--copper);
  margin-bottom: 0.5rem;
}
