/* ==========================================================================
   JMCR LIMITED — main.css
   Hand-rolled, no framework. Mobile-first. Breakpoint: 768px.
   Distilled from the EMPIRIKON SYSTEMS stylesheet, with a monochrome
   palette to match the black/white JMCR logos. EMPIRIKON gold is used only
   for the call-to-action buttons (.btn--accent).

   Contents
   0. Fonts
   1. Variables
   2. Reset / Base
   3. Layout & typography
   4. Buttons
   5. Header & navigation
   6. Hero & page header
   7. Cards, callouts, company details, FAQ
   8. Prose
   9. Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, latin subset. Manrope headings, Poppins body.
   -------------------------------------------------------------------------- */

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

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

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

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  --color-ink: #111111;
  --color-ink-soft: #2a2a2a;
  --color-grey-600: #555555;
  --color-grey-300: #d4d4d4;
  --color-grey-100: #f3f3f3;
  --color-white: #ffffff;
  /* EMPIRIKON SYSTEMS gold - call-to-action buttons only (.btn--accent). */
  --color-accent: #ffc800;
  --color-accent-strong: #e0b000;

  --color-text: var(--color-ink);
  --color-text-muted: var(--color-grey-600);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-grey-100);
  --color-border: var(--color-grey-300);
  --color-focus: var(--color-ink);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: 2.75rem;

  --lh-tight: 1.15;
  --lh-normal: 1.65;

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;

  --transition: 160ms ease;

  --container-max: 1080px;
  --container-pad: var(--space-sm);
  --header-height: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-white);
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-sm);
}

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

/* --------------------------------------------------------------------------
   3. Layout & typography
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

.section__title {
  font-size: var(--fs-xl);
}

.section__lede {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.btn {
  display: inline-block;
  max-width: 100%;
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color var(--transition), color var(--transition);
}

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

.btn--primary:hover {
  background: var(--color-ink-soft);
}

/* Gold call to action: "Get in touch" and the contact email. */
.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.btn--accent:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-ink);
}

/* Header and footer are dark bands: white focus ring so it stays visible. */
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-white);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-md);
  min-height: var(--header-height);
  padding-block: var(--space-xs);
}

.site-logo {
  display: inline-block;
}

.site-header .site-logo__img {
  width: 200px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-grey-300);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   6. Hero & page header
   -------------------------------------------------------------------------- */

/* Photo hero: image fills the section. The overlay is darker in the centre,
   where the text sits, so the building's glass lines don't run through the
   headline; a faint text shadow separates letters from what remains. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-2xl);
  text-align: center;
  color: var(--color-white);
  background: var(--color-ink);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero .btn {
  text-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(17, 17, 17, 0.3), transparent 75%),
    rgba(17, 17, 17, 0.72);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero :focus-visible {
  outline-color: var(--color-white);
}

.hero .btn--secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero .btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-ink);
}

.hero__title {
  font-weight: 800;
  font-size: var(--fs-2xl);
  max-width: 20ch;
  margin-inline: auto;
}

.hero__lede {
  font-size: var(--fs-md);
  max-width: 60ch;
  margin-inline: auto;
}

.hero .btn-row {
  justify-content: center;
}

.hero__focus {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
}

.page-header {
  padding-block: var(--space-xl) 0;
}

.page-header__title {
  font-size: var(--fs-2xl);
}

/* --------------------------------------------------------------------------
   7. Cards, callouts, company details, FAQ
   -------------------------------------------------------------------------- */

.card,
.callout {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.card > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.card__title {
  font-size: var(--fs-lg);
}

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

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition);
}

.card--link:hover {
  border-color: var(--color-ink);
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
}

address {
  font-style: normal;
}

.details {
  margin: 0;
}

.details dt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.details dd {
  margin: 0 0 var(--space-xs);
}

.affiliation {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.affiliation p {
  margin: 0;
}

.affiliation__logo {
  width: 100px;
  flex-shrink: 0;
}

.faq {
  max-width: 800px;
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__q {
  padding-block: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  cursor: pointer;
}

.faq__a {
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Prose
   -------------------------------------------------------------------------- */

.prose {
  max-width: 75ch;
}

.prose h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-lg);
}

/* Scrolls sideways inside itself on phones instead of widening the page. */
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.prose th,
.prose td {
  padding: var(--space-2xs) var(--space-xs);
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-bg-alt);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-ink);
  color: var(--color-grey-300);
  padding-block: var(--space-xl) var(--space-lg);
  font-size: var(--fs-sm);
}

.site-footer a {
  color: var(--color-white);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-ink-soft);
}

.site-footer .site-logo__img {
  width: 200px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__company {
  padding-top: var(--space-md);
}

.site-footer__company p {
  margin-bottom: var(--space-2xs);
}

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

@media (min-width: 768px) {
  :root {
    --container-pad: var(--space-lg);
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .hero {
    padding-block: calc(var(--space-2xl) * 2);
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

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

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