/* Arendlabs site, v1. Palette and type per visual guide v1.0. */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --navy: #0F1B3D;
  --cobalt: #1E3A8A;
  --gold: #C9A227;
  --light-gold: #E6C76A;
  --white: #FFFFFF;
  --muted: #FFFFFF;            /* palette only: secondary text stays white */
  --line: rgba(255, 255, 255, 0.12);
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::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;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--light-gold); text-underline-offset: 3px; }
a:hover { color: var(--white); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--light-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 4px; font-weight: 500;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: 44px; padding: 5px; background: var(--white); border-radius: 50%; }
.wordmark { font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--light-gold); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--cobalt) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 16ch; }
.hero h1 .accent { display: block; color: var(--white); font-weight: 600; }
.hero h1::before {
  content: ""; display: block; width: 56px; height: 4px; background: var(--gold); margin-bottom: 28px; border-radius: 2px;
}
.lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 0; max-width: 46ch; }
.hero .lead { margin-bottom: 36px; }
.button {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 6px; text-decoration: none;
}
.button:hover { background: var(--light-gold); color: var(--navy); }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(320px, 70vw); height: auto; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; padding-top: 104px; padding-bottom: 112px; }
  .hero-mark { justify-content: flex-end; }
}

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section h2::after {
  content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px;
}

.cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--cobalt); border-radius: 10px; padding: 28px; border: 1px solid var(--line); }
.card h3 { font-size: 1.2rem; color: var(--light-gold); font-weight: 600; }
.card p { margin: 12px 0 0; color: var(--white); }

.name-text { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; margin: 28px 0 0; }
.name-text em { font-style: normal; color: var(--light-gold); font-family: var(--head); font-weight: 600; }

.contact .lead { margin-top: 28px; color: var(--white); }
.email {
  display: inline-block; margin-top: 8px;
  font-family: var(--head); font-weight: 600; font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  color: var(--light-gold); word-break: break-word;
}
.based { color: var(--light-gold); font-family: var(--head); font-weight: 600; margin: 28px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--light-gold); }

/* Plain pages (privacy, 404) */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
.page h1::after { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.page h2 { font-size: 1.2rem; margin-top: 40px; color: var(--light-gold); font-weight: 600; }
.page p { margin: 12px 0 0; }
.updated { color: var(--muted); margin-top: 20px !important; font-size: 0.95rem; }

@media (max-width: 480px) {
  nav { gap: 16px; }
  nav a { font-size: 0.9rem; }
  .wordmark { font-size: 1.1rem; }
  .section { padding: 64px 0; }
}
