/* Richard Matkowski: shared styles for every page. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #182d49;
  --red: #b5333d;
  --red-dark: #96262f;
  --blue: #7099b8;
  --grey: #d3d3d3;
  --page: #f3f5fb;
  --card: #ffffff;
  --text: #0d1420;
  --muted: #6b7280;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(24, 45, 73, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.site-header .brand img { height: 18px; width: auto; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 10px 20px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(181, 51, 61, .8); }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: var(--red); }
.btn-line { border: 1.5px solid var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: #fff; }
.btn-sm { padding: 7px 15px; font-size: 14px; }

/* Shared type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.red { color: var(--red); }
.lead { color: var(--muted); font-size: 18px; font-weight: 500; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0 56px; }
.hero h1 { margin-bottom: 28px; }
.hero p { margin: 0 0 18px; max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 10; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Photo strip: two copies of the list slide left forever; hovering pauses it. */
.reel { overflow: hidden; padding: 8px 0 24px; }
.reel-track { display: flex; gap: 20px; width: max-content; animation: reel 60s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { margin: 0; width: 300px; aspect-ratio: 0.68; border-radius: var(--radius); overflow: hidden; flex: none; background: var(--grey); }
.reel img { width: 100%; height: 100%; object-fit: cover; }
@keyframes reel { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; }
  .reel-track { animation: none; }
}

/* Sections */
main section.wrap { margin-top: 104px; }
main section.wrap.after-reel { margin-top: 64px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0 auto; max-width: 560px; }
.section-head .logo { height: 46px; width: auto; margin: 0 auto 18px; }
.section-head .logo.sm { height: 34px; }

/* How I can help: cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 36px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.card .logo { height: 46px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 6px; }
.card .logo.text { height: 24px; }
.card .logo.chevron { height: 56px; }
.card .site { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.card .site:hover { color: var(--red); }
.card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.card .btn { margin-top: 8px; }

/* Speaking */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; max-height: 640px; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split p { font-size: 17px; margin: 0 0 28px; max-width: 440px; }

/* Feature sections: text over a wide picture */
.feature .picture { border-radius: var(--radius); overflow: hidden; max-width: 900px; margin: 0 auto; }
.feature .picture img { width: 100%; height: auto; }
.feature .picture.navy { background: var(--navy); }
.feature .cta { display: flex; justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { margin-top: 110px; padding: 56px 0 32px; border-top: 1px solid var(--grey); }
.site-footer .brand img { height: 18px; width: auto; }
.site-footer .tagline { margin: 14px 0 36px; max-width: 280px; font-size: 18px; font-weight: 500; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-cols a { text-decoration: none; color: var(--muted); }
.footer-cols a:hover { color: var(--red); }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 12px; color: var(--text); }
.contact-list .ico {
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); flex: none;
  display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(181, 51, 61, .7);
}
.contact-list .ico svg { width: 14px; height: 14px; fill: #fff; }
.copyright {
  margin-top: 44px; background: var(--card); border-radius: var(--radius); padding: 18px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: 14px;
}
.copyright a { color: var(--muted); }

/* Phones and small tablets */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero, .split { gap: 36px; }
}
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; row-gap: 14px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--grey); padding-top: 12px; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .split .photo { order: 2; }
  .cards, .footer-cols { grid-template-columns: 1fr; }
  main section.wrap { margin-top: 72px; }
  main section.wrap.after-reel { margin-top: 48px; }
  .reel figure { width: 220px; }
  .lead, .split p { font-size: 16px; }
}
