/* CoreBond GR — static company site
   Colours: navy #0A1A3A; accents #0181E5, #01288F, #0185FB
*/

:root {
  --navy: #0a1a3a;
  --navy-deep: #061021;
  --blue: #0181e5;
  --blue-deep: #01288f;
  --blue-bright: #0185fb;
  --blue-text: #0168c4;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --text: #152033;
  --text-muted: #4a5568;
  --text-soft: #c5d0e0;
  --line: #e3e8ef;
  --max: 70rem;
  --header-h: 4.25rem;
  --radius: 0.5rem;
  --shadow: 0 8px 24px rgba(10, 26, 58, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-deep);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 0 0 0.25rem 0.25rem;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--blue-bright);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 26, 58, 0.97);
  backdrop-filter: blur(10px);
  color: var(--white);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 50%, var(--blue-bright));
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

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

.brand img {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang li + li::before {
  content: "|";
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.lang a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.25rem 0.15rem;
}

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

.lang a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--blue-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav ul.menu {
  display: flex;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.site-nav .menu a:hover,
.site-nav .menu a:focus-visible {
  border-bottom-color: var(--blue-bright);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
  min-height: min(36rem, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 26, 58, 0.72) 0%,
      rgba(10, 26, 58, 0.78) 50%,
      rgba(6, 16, 31, 0.94) 100%
    );
}

.hero-inner {
  padding: 4.5rem 0 5rem;
  max-width: 42rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
  font-weight: 400;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.3rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue-text);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--white);
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--navy);
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

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

.section-navy h2 {
  color: var(--white);
}

.section-navy .kicker {
  color: var(--blue-bright);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

.prose {
  font-size: 1.0625rem;
  color: var(--text);
}

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

/* ---------- Product cards ---------- */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.card {
  flex: 1 1 calc((100% - 2 * 1.25rem) / 3);
  max-width: calc((100% - 2 * 1.25rem) / 3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}

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

/* ---------- Business lines ---------- */

.lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.line {
  padding: 1.25rem 0.25rem 0.5rem;
  border-top: 1px solid rgba(1, 133, 251, 0.45);
}

.line .num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 0.65rem;
}

.line h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--white);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem 3rem;
  align-items: stretch;
}

.contact-block {
  margin: 0 0 1.75rem;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-text);
}

address {
  font-style: normal;
  margin: 0;
  color: var(--text);
}

.contact-block a.plain {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.125rem;
}

.contact-block a.plain:hover {
  color: var(--blue);
  text-decoration: underline;
}

.map-panel {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
}

.map-panel p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Dark-section button variant used on contact? keep default */

.btn-on-light {
  background: var(--navy);
  color: var(--white);
  align-self: flex-start;
}

.btn-on-light:hover {
  background: var(--blue);
  color: var(--white);
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--text-soft);
  padding: 2rem 0 2.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--blue-deep), var(--blue) 50%, var(--blue-bright)) 1;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer .legal-name {
  color: var(--white);
  font-weight: 500;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

.site-footer .copy {
  color: rgba(197, 208, 224, 0.75);
}

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

@media (max-width: 900px) {
  .card {
    flex-basis: calc((100% - 1.25rem) / 2);
    max-width: calc((100% - 1.25rem) / 2);
  }

  .lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: var(--header-h);
    padding-top: 0.35rem;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .menu {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0.15rem 0 0.45rem;
  }

  .site-nav .menu a {
    font-size: 0.875rem;
    padding: 0.55rem 0.15rem;
  }

  .hero-inner {
    padding: 3.25rem 0 3.75rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 6.5rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  .card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .lines {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .line {
    padding: 1.1rem 0;
  }

  .brand-name {
    font-size: 1.05rem;
  }
}

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

  .btn {
    transition: none;
  }
}
