/* NOTIMA – site styles. Colors come from the logo (navy wordmark, blue puzzle mark). */
:root {
  --navy: #14336f;
  --navy-deep: #0d2350;
  --blue: #2a5fd0;
  --blue-soft: #e8eefb;
  --ink: #1b2334;
  --muted: #5a6478;
  --paper: #f6f4f1;
  --white: #fff;
  --line: #dfe3ec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 172px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; }
.site-nav a:hover { background: var(--blue-soft); }
.site-nav .nav-cta { background: var(--navy); color: var(--white); }
.site-nav .nav-cta:hover { background: var(--blue); }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover { background: var(--blue); border-color: var(--blue); }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.button-ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }

/* hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13, 35, 80, .95) 0%, rgba(20, 51, 111, .86) 42%, rgba(20, 51, 111, .35) 100%);
}
.hero-inner { padding-top: clamp(72px, 13vw, 150px); padding-bottom: clamp(72px, 13vw, 150px); }
.hero .eyebrow { color: #b9cdf7; }
.hero h1 { color: var(--white); font-size: clamp(40px, 7vw, 76px); max-width: 12em; letter-spacing: -.01em; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(18px, 2.2vw, 21px); color: #e3eaf8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* services */
.services { padding: clamp(64px, 9vw, 112px) 0; background: var(--paper); }
.services h2, .contact h2 { font-size: clamp(30px, 4.4vw, 46px); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px);
  align-items: center; margin-top: clamp(40px, 6vw, 72px);
}
.service:nth-of-type(even) .service-figure { order: 2; }
.service-figure {
  background: var(--white); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px);
  box-shadow: 0 1px 2px rgba(20, 51, 111, .06), 0 14px 40px rgba(20, 51, 111, .08);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.service-figure img { max-height: 100%; width: auto; object-fit: contain; }
.service-number { display: block; font-family: var(--serif); font-size: 20px; color: var(--blue); margin-bottom: 10px; letter-spacing: .06em; }
.service h3 { font-size: clamp(24px, 3.2vw, 34px); }
.service p { margin-top: 14px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 30em; }

/* contact */
.contact { position: relative; isolation: isolate; padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .8) 100%); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro > p:not(.eyebrow) { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 26em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-card {
  font-style: normal; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 14px 40px rgba(20, 51, 111, .08);
}
.contact-card strong { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--navy); }
.contact-card dl { margin: 18px 0 0; }
.contact-card dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.contact-card dt { color: var(--muted); font-size: 15px; }
.contact-card dd { margin: 0; font-weight: 500; }
.contact-card a { color: var(--navy); text-decoration-color: rgba(42, 95, 208, .45); text-underline-offset: 3px; }
.contact-card a:hover { color: var(--blue); }
.registry { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* footer */
.site-footer { background: var(--navy-deep); color: #c5d2ee; font-size: 14px; padding: 22px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* 404 */
.page-404 { background: var(--paper); min-height: 100vh; display: grid; place-items: center; }
.notfound { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.notfound .brand img { width: 220px; margin: 0 auto 40px; }
.notfound h1 { font-size: clamp(32px, 6vw, 52px); }
.notfound p:not(.eyebrow) { margin: 16px 0 28px; color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; }
  .brand img { width: 132px; }
  .site-nav a { padding: 8px 12px; }
  .hero::after { background: linear-gradient(180deg, rgba(13, 35, 80, .9) 0%, rgba(20, 51, 111, .78) 100%); }
  .service, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .service:nth-of-type(even) .service-figure { order: 0; }
  .contact-actions .button, .hero-actions .button { flex: 1 1 100%; }
  .contact-card dl > div { grid-template-columns: 80px 1fr; }
}

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