/* Melanie Roche memorial site: one stylesheet for all pages.
   Fonts, colours and sizes are taken from the original Weebly page. */

/* ---------- Fonts (stored in the fonts folder, nothing loads from outside) ---------- */

@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }
/* Noto Serif is the current name of Droid Serif, the heading font Weebly used */
@font-face { font-family: "Noto Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/noto-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/noto-serif-latin-700-normal.woff2") format("woff2"); }

/* ---------- Colours (change them here) ---------- */

:root {
  --text: #626262;          /* body text on white */
  --heading: #2a2a2a;       /* headings on white */
  --coral: #DA664F;         /* course section */
  --slate: #323D3F;         /* book section */
  --blue: #2a2f97;          /* energy healing section */
  --brown: #624A3E;         /* memorial section */
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 23px;
}

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

a { color: inherit; }

p { margin: 0 0 23px; }
p:last-child { margin-bottom: 0; }

h2 {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 54px;
  color: var(--heading);
  margin: 0 0 20px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigation bar ---------- */

.site-header { position: relative; z-index: 2; padding: 26px 0; }

/* On the homepage the bar sits on top of the big photo */
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--heading);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav a:hover, .nav a.current { border-bottom-color: var(--heading); }

/* ---------- Big photo banner at the top of the homepage ---------- */

.banner {
  background-image: url("images/414221017.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 110px 0;
  text-align: center;
}

.banner h2 {
  font-size: 65px;
  line-height: 70px;
  color: var(--heading);
  margin: 0 0 30px;
}

.banner h2.tagline { font-size: 48px; line-height: 58px; margin: 0; }

/* ---------- Sections ---------- */

.section { padding: 60px 0; }

.section.coral { background: var(--coral); }
.section.slate { background: var(--slate); }
.section.blue  { background: var(--blue); }
.section.brown { background: var(--brown); min-height: 430px; }

/* white text on the coloured sections */
.section.coral, .section.slate, .section.blue, .section.brown { color: #fbfafa; }
.section.coral h2, .section.slate h2, .section.blue h2, .section.brown h2 { color: #fdfafa; }

.center { text-align: center; }

/* Text sized like Weebly's "font size 6" and "font size 4" */
h2.size-6 { font-size: 32px; line-height: 44px; }
.size-4 { font-size: 18px; line-height: 26px; }

/* Two side-by-side columns; widths match the original layout */
.cols { display: flex; gap: 40px; align-items: flex-start; }
.col-50 { flex: 0 0 50%; }
.col-45 { flex: 1 1 45%; }
.col-41 { flex: 0 0 41%; }
.col-59 { flex: 1 1 59%; }
.col-54 { flex: 0 0 54%; }
.col-46 { flex: 1 1 46%; }
.pad-top { padding-top: 10px; }
.spacer-top { padding-top: 50px; }

hr.short {
  width: 50%;
  margin: 20px auto 20px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  margin: 10px 0;
  padding: 16px 40px;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--white);
  border-radius: 2px;
}

.button:hover { background: var(--white); color: var(--slate); }

/* ---------- Memorial video ---------- */

.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* keeps the 16:9 shape */
  margin-top: 20px;
}

.video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Phones and small screens ---------- */

@media (max-width: 766px) {
  .nav { justify-content: center; gap: 6px 22px; }
  .banner { padding: 110px 0 70px; }
  .banner h2 { font-size: 38px; line-height: 44px; }
  .banner h2.tagline { font-size: 28px; line-height: 36px; }
  h2 { font-size: 30px; line-height: 38px; }
  h2.size-6 { font-size: 24px; line-height: 32px; }
  .cols { flex-direction: column; gap: 24px; }
  .cols > div { flex-basis: auto; width: 100%; }
  .spacer-top { padding-top: 0; }
  .section { padding: 44px 0; }
}
