/* BlueHauk — design system (self-hosted fonts, CSP-safe) */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/syne-700.woff2") format("woff2");
}

@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/syne-800.woff2") format("woff2");
}

:root {
  --primary: #2066b4;
  --primary-dark: #183c64;
  --primary-deeper: #0f2744;
  --accent: #1cb5e0;
  --accent-soft: rgba(28, 181, 224, 0.14);
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --text: #152033;
  --text-muted: #4a5a70;
  --border: rgba(24, 60, 100, 0.12);
  --shadow-soft: 0 12px 40px rgba(15, 39, 68, 0.08);
  --radius: 4px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --content-max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

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

a {
  color: inherit;
}

.container {
  width: min(92%, var(--content-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  letter-spacing: 0.04em;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--primary-dark);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  box-shadow: none;
  transform: rotate(45deg);
  position: relative;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(-90deg);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 4% 1rem;
  box-shadow: var(--shadow-soft);
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: var(--accent-soft);
  outline: none;
}

/* ——— Buttons ——— */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(32, 102, 180, 0.28);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.cta-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.cta-btn--ghost:hover,
.cta-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.cta-btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary-dark);
  border-bottom-color: currentColor;
  outline: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(28, 181, 224, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(32, 102, 180, 0.45), transparent 50%),
    linear-gradient(145deg, var(--primary-deeper) 0%, var(--primary-dark) 42%, #1a5a9e 100%);
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 11vw, 7rem);
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  width: min(92%, var(--content-max));
  margin-inline: auto;
  max-width: 40rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: hero-rise 0.7s ease forwards;
}

.hero-brand img {
  width: clamp(56px, 12vw, 72px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.hero-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 5.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 18ch;
  opacity: 0;
  animation: hero-rise 0.7s ease 0.12s forwards;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 36ch;
  opacity: 0;
  animation: hero-rise 0.7s ease 0.22s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: hero-rise 0.7s ease 0.32s forwards;
}

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

/* ——— Section shared ——— */
.section {
  padding: var(--space-section) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-intro {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Why ——— */
.why {
  background: var(--bg-elevated);
}

.why-layout {
  display: grid;
  gap: 2.5rem;
}

.why-list {
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.why-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ——— Services ——— */
.services {
  background:
    linear-gradient(180deg, var(--bg) 0%, #e8f0f8 100%);
}

.service-list {
  display: grid;
  gap: 1.75rem;
}

.service {
  background: var(--bg-elevated);
  border-top: 3px solid var(--primary);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.service-for {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.service p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.service-deliverables {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.service-deliverables li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.98rem;
}

.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}

/* ——— Expertise ——— */
.expertise {
  background: var(--primary-deeper);
  color: #fff;
}

.expertise .section-label {
  color: var(--accent);
}

.expertise .section-title {
  color: #fff;
  max-width: 22ch;
}

.expertise-layout {
  display: grid;
  gap: 2rem;
}

.expertise-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  max-width: 36rem;
}

.expertise-copy p + p {
  margin-top: 1rem;
}

.expertise-points {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.expertise-points li {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  font-size: 1.05rem;
}

.expertise-points li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.expertise-points span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ——— Approach ——— */
.approach {
  background: var(--bg-elevated);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-left: 2px solid var(--border);
  margin-left: 0.85rem;
  counter-increment: step;
}

.step:last-child {
  border-left-color: transparent;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: -1.1rem;
  top: 1.35rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
}

/* ——— Contact ——— */
.contact {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(28, 181, 224, 0.2), transparent 55%),
    linear-gradient(160deg, var(--primary-dark), var(--primary-deeper));
  color: #fff;
}

.contact .section-label {
  color: var(--accent);
}

.contact .section-title {
  color: #fff;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-aside p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 28rem;
  margin-bottom: 1rem;
}

.contact-aside .response-note {
  font-weight: 600;
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  width: 100%;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form .field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem; /* avoid iOS zoom */
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  max-height: 280px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 181, 224, 0.35);
}

.contact-form button[type="submit"] {
  min-height: 48px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.2s, transform 0.2s;
}

.contact-form button[type="submit"]:hover:not(:disabled),
.contact-form button[type="submit"]:focus-visible:not(:disabled) {
  background: var(--primary);
  outline: none;
  transform: translateY(-1px);
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-message {
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

.contact-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

/* ——— Breakpoints ——— */
@media (min-width: 640px) {
  .brand img {
    height: 44px;
  }

  .hero-actions .cta-btn {
    min-width: 11rem;
  }

  .service {
    padding: 2rem 1.75rem 1.75rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 1.25rem;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0.25rem 0;
  }

  .why-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
  }

  .why .section-intro {
    margin-bottom: 0;
  }

  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: none;
  }

  .expertise-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: min(88vh, 760px);
  }

  .hero-inner {
    max-width: 48rem;
  }

  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .service:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border: none;
  }

  .step {
    border-left: none;
    margin-left: 0;
    padding: 0 0.5rem 0 0;
  }

  .step::before {
    position: static;
    margin-bottom: 1rem;
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: 2.4rem;
    right: -1rem;
    height: 2px;
    background: var(--border);
  }
}

@media (min-width: 1200px) {
  .container,
  .hero-inner {
    width: min(90%, var(--content-max));
  }

  .why-layout {
    gap: 4.5rem;
  }

  .section-title {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta-btn:hover,
  .cta-btn:focus-visible,
  .contact-form button[type="submit"]:hover:not(:disabled) {
    transform: none;
  }
}
