/* Medal Mounting Australia — static rebuild of the Bravada theme look */

:root {
  --accent-1: #e9b44c;   /* gold */
  --accent-2: #0f8b8d;   /* teal */
  --menu-bg: #066664;
  --text: #707070;
  --headings: #162521;
  --body-bg: #f3f7f6;
  --section-bg: #eeebe9;
  --footer-bg: #1e3231;
  --footer-text: #dbdbdb;
  --input-bg: #f5f5f5;
  --header-h: 75px;
  --max-w: 1240px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Mulish", "Muli", Arial, sans-serif;
}

/* ---- Base ---------------------------------------------------------- */

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

html {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--body-bg);
}

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

a { color: var(--accent-1); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--headings);
  line-height: 1.3;
  margin: 1.2em 0 .6em;
}
h1 { font-size: 2.33em; }
h2 { font-size: 2.06em; }
h3 { font-size: 1.79em; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
  z-index: 10000;
  padding: .5em 1em;
  background: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- Header -------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

.site-header.is-fixed {
  position: fixed;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.header-inside {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2em;
}

.site-title {
  --title-h: 1.7em;   /* height of the gold box; the flag matches it */
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3em;
  font-weight: 700;
  white-space: nowrap;
}

/* gold highlight behind the whole site title */
.site-title a {
  height: var(--title-h);
  padding: 0 .4em;
  line-height: var(--title-h);
  letter-spacing: .05em;
  color: var(--headings);
  text-decoration: none;
  background: var(--accent-1);
}
.site-title a:hover { color: #fff; background: var(--accent-2); }

.site-title .flag {
  width: calc(var(--title-h) * 2);
  height: var(--title-h);
  margin-left: .5em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* Top menu */
.main-nav { margin-left: auto; padding-left: 1em; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul { display: flex; }

.main-nav li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 0 1.4em;
  line-height: var(--header-h);
  color: var(--accent-1);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav > ul > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: .5em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-3px) rotate(45deg);
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 125%;
  visibility: hidden;
  opacity: 0;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, .05);
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
}

.main-nav .sub-menu a {
  display: block;
  padding: .3em 1.5em;
  line-height: 3;
  white-space: nowrap;
  color: #fff;
  background: var(--menu-bg);
  text-decoration: none;
}
.main-nav .sub-menu a:hover { color: var(--accent-1); }

/* Burger */
.hamburger {
  position: relative;
  z-index: 300;
  width: 36px;
  height: 20px;
  margin-left: 1.5em;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  height: 2px;
  border-radius: 3px;
  background: #fff;
}
.hamburger span:nth-child(1) { top: 0; width: 100%; }
.hamburger span:nth-child(2) { top: 9px; width: 75%; }
.hamburger span:nth-child(3) { top: 18px; width: 45%; }
.hamburger:hover span { width: 100%; }

.is-fixed .hamburger span { background: #444; }

.menu-open .hamburger span { background: #fff; width: 100%; }
.menu-open .hamburger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
.menu-open .site-header.is-fixed { background: transparent; border-color: transparent; }
.menu-open .main-nav { visibility: hidden; }

/* Full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow-y: auto;
  padding: calc(var(--header-h) + 10px) 2em 2em;
  color: #fff;
  background: var(--menu-bg);
}
.menu-open .mobile-menu { display: block; }
.menu-open { overflow: hidden; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 2.5em);
  line-height: 1.6;
  color: #fff;
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--accent-1); }

.mobile-menu .sub-menu { padding-left: 1.5em; }
.mobile-menu .sub-menu a { font-size: clamp(1.1rem, 4vw, 2em); }

/* breakpoints sized so the menu never runs into the title + flag */
@media (max-width: 1180px) {
  .main-nav > ul > li > a { padding: 0 .7em; }
}

@media (max-width: 1060px) {
  .main-nav { display: none; }
  .hamburger { margin-left: auto; }
  .header-inside { padding: 0 1em; }
}

/* ---- Hero / header image ------------------------------------------ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  max-height: 1080px;
  overflow: hidden;
  background: #f9f7f5;
  text-align: center;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #08415c 0%, #1c110a 100%);
  opacity: .6;
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 85%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 10px) 2em 0;
  color: #fff;
}

.hero-title {
  margin: 0 0 .1em;
  font-family: var(--serif);
  font-size: clamp(2.5em, 5vw, 5em);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.hero-text {
  max-width: 80%;
  margin: 3em auto;
  font-size: 1.2em;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
}

.hero-button {
  display: block;
  padding: 15px 2.3em;
  border: 3px solid #fff;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.hero-button.solid {
  border-color: transparent;
  background: var(--accent-1);
}
.hero-button:hover {
  color: #fff;
  border-color: transparent;
  background: var(--accent-2);
}

.meta-arrow {
  position: absolute;
  z-index: 15;
  bottom: 2em;
  left: 0;
  right: 0;
  width: 100px;
  height: 40px;
  margin: 0 auto;
}
.meta-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  border: solid #fff;
  border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
  opacity: .8;
}

/* Inner page header title */
.page-title-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 85%;
  margin: 0 auto;
  padding: calc(var(--header-h) + 10px) 2em 0;
  color: #fff;
}
.page-title-overlay .page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5em, 5vw, 5em);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.page-title-overlay .entry-meta,
.page-title-overlay .entry-meta a { color: #fff; }

@media (max-width: 640px) {
  .hero-caption, .page-title-overlay { max-width: 100%; padding-left: 1em; padding-right: 1em; }
  .hero-text { margin: 1.5em auto; max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 1em; width: 100%; max-width: 22em; }
  .hero-button { padding-left: 1em; padding-right: 1em; }
  .site-title { font-size: 1.05em; }
}

@media (max-width: 420px) {
  .site-title { font-size: .9em; }
  .hamburger { flex-shrink: 0; margin-left: 1em; }
}

@media (max-width: 350px) {
  .site-title { font-size: .78em; }
}

/* ---- Landing page text sections ----------------------------------- */

.lp-text { background: var(--section-bg); }

.lp-text-inside {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5em 2em;
}

.lp-text-background {
  padding: 4em;
  background: #fff;
}

.lp-text-card {
  width: 90%;
  margin: 0 auto;
}

/* highlighted section title */
.lp-text-title {
  display: inline;
  margin: 0;
  font-size: 2.62em;
  line-height: 1.3;
  color: var(--headings);
  background: linear-gradient(rgba(233, 180, 76, .4), rgba(233, 180, 76, .4)) no-repeat 0 85% / 100% 30%;
}

.lp-text-content { margin-top: 1.5em; }

@media (max-width: 800px) {
  .lp-text-inside { padding: 2em 1em; }
  .lp-text-background { padding: 2em 1.25em; }
  .lp-text-card { width: 100%; }
  .lp-text-title { font-size: 2em; }
}

/* ---- Content blocks (shared by landing page and articles) --------- */

.content a:not([class]) { text-decoration: underline; }

.content h2 { font-size: 2.06em; }
.content h3 { font-size: 1.79em; }

.content hr {
  width: 25%;
  margin: 2.5em auto;
  border: 0;
  border-top: 2px solid currentColor;
  color: #808080;
  opacity: .4;
}

@media (max-width: 640px) {
  .content h2 { font-size: 1.6em; }
  .content h3 { font-size: 1.35em; }
}

.content hr + h2,
.content hr + h3,
.content > h2:first-child { margin-top: 0; }

.columns {
  display: flex;
  gap: 2em;
  margin-bottom: 1.75em;
}
.columns > * { flex: 1 1 0; min-width: 0; }

@media (max-width: 781px) {
  .columns { flex-direction: column; gap: 0; }
}

.center { text-align: center; }
.accent-2 { color: var(--accent-2); }

.content figure { margin: 0 0 1em; }

.content figcaption {
  margin: .5em 0 1em;
  padding-bottom: .25em;
  border-bottom: 1px solid #eee;
}

.content figure.aligncenter { display: table; margin: 0 auto 1em; }

.content blockquote {
  position: relative;
  margin: 0 0 1em;
  padding: .5em 2em;
  font-family: Georgia, "Bitstream Charter", serif;
  font-size: 1.1em;
}
.content blockquote p { margin: 0; }
.content blockquote::before,
.content blockquote::after {
  position: absolute;
  font-size: 4em;
  line-height: 1;
  color: rgba(112, 112, 112, .2);
}
.content blockquote::before { content: "\201C"; top: 0; left: 0; }
.content blockquote::after { content: "\201D"; bottom: -.4em; right: 0; }

.glossary {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 0 1.5em;
  margin: 0 0 1em;
}
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0 0 1em; }

@media (max-width: 640px) {
  .glossary { grid-template-columns: 1fr; }
  .glossary dd { margin-left: 0; }
}

/* full-width dark button */
.block-button {
  display: block;
  margin: 0 0 1.5em;
  padding: .5em 1.5em;
  outline: 2px solid #fff;
  outline-offset: -4px;
  font-size: .9em;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #32373c;
}
.block-button:hover { color: #fff; opacity: .85; }
.block-button.inline { display: inline-block; }

/* gallery: 3 across, leftovers stretch to fill the row */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  margin: 0 0 1.5em;
}
.gallery figure {
  flex: 1 0 calc(33.333% - .34em);
  margin: 0;
}
.gallery a, .gallery img {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery img { object-fit: cover; }
.gallery a:hover { opacity: .85; }

@media (max-width: 600px) {
  .gallery figure { flex-basis: calc(50% - .25em); }
}

/* ---- Forms ---------------------------------------------------------- */

.contact-form p { margin-bottom: 1em; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 24em;
  max-width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
}
.contact-form textarea { height: 227px; resize: vertical; }

.contact-form input:hover,
.contact-form input:focus,
.contact-form textarea:hover,
.contact-form textarea:focus { border-color: #dcdcdc; outline: none; }

.contact-form input[type="file"] { max-width: 100%; font-size: initial; }

.contact-form .honeypot { display: none; }

button,
.contact-form button {
  padding: 1em 2em;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: #fff;
  background: var(--accent-1);
  cursor: pointer;
  transition: background .2s;
}
button:hover { background: var(--accent-2); }
button[disabled] { opacity: .6; cursor: default; }

.form-status { margin-top: 1em; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--accent-2); }
.form-status.error { color: #c0392b; }

/* ---- Inner pages (blog, posts, privacy) --------------------------- */

.container {
  max-width: calc(var(--max-w) - 4em);
  margin: 0 auto;
  padding: 3em 2em;
}

.quote-cta { text-align: center; margin-bottom: 2em; }

.article {
  padding: 3em 4em;
  background: #fff;
}

.article .entry-title {
  margin-top: 0;
  font-size: 1.7em;
  line-height: 1.3;
}
.article .entry-title a { color: var(--headings); text-decoration: none; }
.article .entry-title a:hover { color: var(--accent-1); }

.entry-meta {
  font-weight: 300;
  color: #a7a7a7;
}
.entry-meta a { color: #a7a7a7; text-decoration: none; }
.entry-meta a:hover { color: var(--accent-2); }
.entry-meta > span + span::before { content: " · "; }

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

.continue-reading {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 800px) {
  .container { padding: 2em 1em; }
  .article { padding: 2em 1.25em; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---- Footer --------------------------------------------------------- */

.site-footer {
  padding: 2em 0;
  color: var(--footer-text);
  background: var(--footer-bg);
  text-align: center;
}

.footer-inside {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25em 2em;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li { display: inline-block; }
.footer-menu a { margin: 0 7px; line-height: 2.6; color: var(--accent-1); text-decoration: none; }
.footer-menu a:hover { color: var(--accent-2); }
.footer-menu li:not(:last-child)::after { content: "/"; color: var(--accent-1); }

.to-top {
  position: fixed;
  z-index: 250;
  right: 2em;
  bottom: 2em;
  width: 52px;
  height: 52px;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
  visibility: hidden;
  opacity: 0;
}
.to-top.show { visibility: visible; opacity: 1; }
.to-top:hover { background: #fff; }
.to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 12px;
  height: 12px;
  border: solid var(--accent-1);
  border-width: 2px 0 0 2px;
  transform: translateX(-50%) rotate(45deg);
}
.to-top:hover::before { border-color: var(--accent-2); }
