/* ════════════════════════════════════════════════════
   Orkney IT — styles.css
   Stack: vanilla CSS, no build step
   Fonts: Space Grotesk (sans) + Fraunces (display serif)
   ════════════════════════════════════════════════════ */

/* ── Custom properties ────────────────────────────── */
:root {
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-alt:   #f4f6f8;
  --deep:          #062B49;
  --deep-2:        #062B49;
  --text:          #062B49;
  --text-muted:    #5E6B75;
  --accent-amber:  #E99A2C;
  --accent-light:  #fde8c0;
  --border:        #dce1e5;

  --font-sans:     'Inter', system-ui, sans-serif;
  --font-display:  'Inter', system-ui, sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-card:   0 1px 3px rgba(6,43,73,0.06);
  --shadow-raised: 0 2px 8px rgba(6,43,73,0.08);

  --transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);

  --max-w:         1120px;
  --gutter:        clamp(1.25rem, 5vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ── Utility ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 10vw, 7rem); }

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--deep);
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: normal;
  color: var(--accent-amber);
}

.section-intro {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-intro { margin-inline: auto; }

.br-lg { display: none; }
@media (min-width: 768px) { .br-lg { display: inline; } }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-amber);
  color: var(--deep);
  font-weight: 600;
}
.btn--primary:hover {
  background: #d4891f;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.65);
}

.btn--light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}
.btn--light:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn--nav {
  padding: 0.5rem 1.25rem;
  background: var(--deep);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.btn--nav:hover { background: #0a3d66; }

.btn--full { width: 100%; justify-content: center; }

/* ── Scroll reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Navigation ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(6,43,73,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep);
  flex-shrink: 0;
}

.nav-logo img {
  width: auto;
  height: 102px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--deep);
  color: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

@media (max-width: 720px) {
  html { scroll-padding-top: 88px; }
  .nav { height: 88px; }
  .nav-logo img { height: 78px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--surface);
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 32px rgba(13,27,42,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.0625rem; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(540px, 80vh, 780px);
  display: flex;
  align-items: center;
  background: var(--deep);
  overflow: hidden;
  padding-block: 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid { display: none; }

.hero__bg::after { display: none; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  color: var(--accent-light);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__headline em {
  font-style: normal;
  color: var(--accent-amber);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1.5px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(212,137,74,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── Trust bar ────────────────────────────────────── */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 2rem;
  flex: 1;
  min-width: 160px;
}

.trust__item strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.2rem;
}

.trust__item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.trust__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .trust__divider { display: none; }
  .trust__item { min-width: 140px; padding: 0.625rem 1rem; }
}

/* ── Services ─────────────────────────────────────── */
.services {
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.875rem;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Certifications ───────────────────────────────── */
.certs {
  background: var(--surface-alt);
}

.certs__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
  gap: 0.75rem;
}

.cert-badge img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.cert-badge p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-badge strong {
  color: var(--text);
}

/* ── About ────────────────────────────────────────── */
.about {
  background: var(--surface-alt);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.about__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.about__stat-block {
  display: flex;
  gap: 1.5rem;
}

.about__stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about__stat-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--deep);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.stat-callout__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.stat-callout__label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.about__body {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about__content .btn { margin-top: 1.25rem; }

@media (max-width: 860px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__visual { order: 2; }
  .about__content { order: 1; }
}

/* ── Why Us ───────────────────────────────────────── */
.why-us {
  background: var(--bg);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

.why-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
}

/* ── CTA band ─────────────────────────────────────── */
.cta-band {
  background: var(--deep);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before { display: none; }

.cta-band__inner { position: relative; z-index: 1; }

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-band__title em {
  font-style: normal;
  color: var(--accent-amber);
}

.cta-band__sub {
  color: rgba(255,255,255,0.55);
  font-size: 1.0625rem;
  margin-bottom: 2.25rem;
  max-width: 48ch;
  margin-inline: auto;
}

/* ── Contact ──────────────────────────────────────── */
.contact {
  background: var(--surface-alt);
}

.contact__inner {
  max-width: 640px;
  text-align: center;
}

.contact__body {
  color: var(--text-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.contact__email {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact__email a {
  color: var(--deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-amber);
  text-underline-offset: 0.2em;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer__brand .logo-mark {
  background: rgba(255,255,255,0.1);
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer__logo {
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  display: block;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__nav h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__nav a:hover { color: #fff; }

.footer__bottom {
  padding-block: 1.375rem;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Focus styles (accessibility) ────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
