/* BRAVEX website - one stylesheet for every page.
   Colours and fonts are set once here; change them here and every page follows. */
:root {
  --blue: #4078bb;        /* the BRAVEX logo blue */
  --black: #000;
  --dark: #161616;
  --grey-text: #5e5e5e;
  --light: #f7f7f7;
  --line: #d9d9d9;
  --white: #fff;
  --heading-font: "Cabin", Arial, sans-serif;
  --body-font: "Lato", Arial, sans-serif;
  --page-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); font-size: 16px; line-height: 1.6; color: var(--grey-text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .5px; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.5vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 24px; }

/* Top banner */
.topbar { background: var(--light); color: var(--dark); text-align: center; font-size: 14px; padding: 6px 16px; }
.topbar a { color: var(--dark); text-decoration: none; }

/* Header and menu */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--white); }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 860px) {
  .menu-button { display: block; color: var(--white); font-size: 28px; cursor: pointer; line-height: 1; padding: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .nav a { display: block; padding: 12px 0; }
  .menu-toggle:checked ~ .nav { display: flex; }
}

/* Big picture banner at the top of a page */
.hero { position: relative; background: var(--black) center / cover no-repeat; color: var(--white); text-align: center; min-height: 72vh; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); }
.hero p { font-size: 20px; color: var(--white); }
.hero.short { min-height: 42vh; }

.button { display: inline-block; background: var(--white); color: var(--black); text-decoration: none; font-weight: 700; padding: 14px 32px; border-radius: 4px; margin-top: 12px; border: 0; cursor: pointer; font-size: 16px; font-family: var(--body-font); }
.button:hover { background: var(--blue); color: var(--white); }
.button.blue { background: var(--blue); color: var(--white); }
.button.blue:hover { background: var(--dark); }

/* Sections */
section { padding: 72px 0; }
.dark { background: var(--black); color: #d0d0d0; }
.dark h2, .dark h3 { color: var(--white); }
.light { background: var(--light); }
.section-title { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 40px; }
.dark .section-title { border-bottom-color: #444; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product { text-align: center; }
.product h3 { min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.product img { margin: 0 auto 18px; aspect-ratio: 1406 / 853; object-fit: contain; width: 100%; }

/* Thumbnail strip on the home page */
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.thumbs a { background: var(--white); border-radius: 4px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.thumbs span { display: block; padding: 8px 6px 10px; text-align: center; font-family: var(--heading-font); font-size: 13px; line-height: 1.3; color: var(--dark); text-transform: uppercase; }
.thumbs a:hover span { color: var(--blue); }
.thumbs img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; }
@media (max-width: 700px) { .thumbs { grid-template-columns: repeat(3, 1fr); } }

/* News cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); padding: 28px; border-radius: 4px; border-top: 4px solid var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form label { display: block; font-weight: 700; color: var(--dark); margin: 0 0 6px; }
form input, form textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #bbb; border-radius: 4px; margin-bottom: 18px; background: var(--white); }
form textarea { min-height: 150px; resize: vertical; }
.not-for-people { position: absolute; left: -9999px; }
.hours { border-collapse: collapse; width: 100%; max-width: 320px; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; }
.notice { padding: 16px 20px; border-radius: 4px; background: #e8f1fb; color: var(--dark); border-left: 4px solid var(--blue); margin-bottom: 24px; }

/* Text pages */
.text-page { max-width: 860px; }
.text-page h2 { margin-top: 1.6em; font-size: 22px; }
.text-page ul { padding-left: 1.2em; }
.text-page li { margin-bottom: .5em; }

/* Footer */
.site-footer { background: var(--black); color: #a4a4a4; text-align: center; padding: 36px 0; font-size: 14px; }
.site-footer a { color: #a4a4a4; }
.site-footer nav { margin-top: 8px; }
.site-footer .legal { margin-top: 6px; font-size: 13px; }
.product { scroll-margin-top: 90px; }
