/* Ambilands website. Static rebuild of the former WordPress/Elementor site, same look. */

/* Fonts are served from this site (no requests to Google). */
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/balsamiq-sans-normal-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/balsamiq-sans-normal-latin-400.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/balsamiq-sans-normal-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/balsamiq-sans-normal-latin-700.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik Dirt"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/rubik-dirt-normal-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik Dirt"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/rubik-dirt-normal-latin-400.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fefae0;
  --green: #2b5d34;
  --brown: #4b390c;
  --rule: #000;
  --container: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--green);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: inherit; }

.container { width: 100%; max-width: calc(var(--container) + 20px); margin: 0 auto; padding: 0 10px; }

/* ---------- Home: hero ---------- */

.hero {
  height: 100vh;
  min-height: 600px;
  background: var(--bg) url("../img/header.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 115px;
}
.hero a { display: block; }
.hero .badge-apple img { width: 240px; }
.hero .badge-google img { width: 270px; }

/* ---------- Home: intro and features ---------- */

.title, .feature h2 {
  font-family: "Rubik Dirt", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600; /* as on the old site: Rubik Dirt has only 400, browsers embolden it */
  line-height: 1;
  color: var(--green);
  margin: 0;
}
.copy, .feature p {
  font-family: "Balsamiq Sans", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brown);
  margin: 0;
}

.intro { max-width: 620px; margin: 0 auto; padding: 50px 10px 40px; text-align: center; }
.intro .title { margin-bottom: 20px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 124px;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 10px;
}
.feature img { width: 327px; }
.feature .text { max-width: 321px; }

/* Image left, text left-aligned on the right */
.feature.image-left img { justify-self: end; }
.feature.image-left .text { justify-self: start; text-align: left; }
/* Text right-aligned on the left, image on the right */
.feature.image-right .text { justify-self: end; text-align: right; }
.feature.image-right img { justify-self: start; }
/* Tablets: smaller gap so image and text fit side by side. */
@media (min-width: 768px) and (max-width: 1099px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 60px; padding: 60px 20px; }
}
/* The old layout sat slightly off-centre, alternating to the right and to the left (only where there is room). */
@media (min-width: 1100px) {
  .feature { position: relative; }
  .feature.image-left { left: 43px; }
  .feature.image-right { left: -43px; }
}

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

.site-footer { padding: 10px 0 20px; }
.site-footer hr { border: 0; border-top: 1px solid var(--rule); margin: 15px 0 20px; }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-family: "Balsamiq Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
}
.footer-nav > * { position: relative; }
.footer-nav a, .footer-nav span, .footer-nav button { display: block; padding: 15px; text-decoration: none; color: var(--green); }
.footer-nav a:hover, .footer-nav a:focus-visible { text-decoration: underline; }
.footer-nav button { font: inherit; background: none; border: 0; cursor: pointer; }
.footer-nav button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.footer-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  bottom: 100%;
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
  z-index: 10;
}
.footer-nav .dropdown:hover .submenu,
.footer-nav .dropdown:focus-within .submenu { display: block; }

/* ---------- Legal pages ---------- */

.site-header { padding-top: 16px; }
.site-header img { width: 80px; height: 80px; }

.legal {
  font-family: "Balsamiq Sans", system-ui, sans-serif;
  padding-top: 20px;
  padding-bottom: 30px;
  overflow-wrap: anywhere; /* long URLs in the legal texts must not widen the page on phones */
}
.legal h1 { font-size: 40px; font-weight: 400; line-height: 1.2; margin: 0 0 16px; }
.legal h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin: 0 0 16px; }
.legal h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 28px 0 10px; }
.legal p, .legal ul { margin: 0 0 14.4px; }
.legal hr { border: 0; border-top: 2px solid #808080; margin: 24px 0; }
.legal a { color: var(--green); }
.legal.centered { text-align: center; }

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

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  .hero { height: 812px; max-height: 100svh; min-height: 520px; gap: 20px; padding: 0 20px; }
  .hero .badge-apple img, .hero .badge-google img { width: 158px; }

  .intro { padding: 40px 10px 30px; }

  .feature { grid-template-columns: 1fr; row-gap: 20px; padding: 40px 50px; }
  .feature img { width: 179px; justify-self: center !important; }
  .feature .text { max-width: none; justify-self: stretch !important; }
  /* On phones the image comes first where it is on the left on desktop, and after the text otherwise. */

  .footer-nav { flex-direction: column; align-items: center; }
  .footer-nav .dropdown button { display: none; }
  .footer-nav .submenu { display: block; position: static; box-shadow: none; background: none; text-align: center; min-width: 0; }

  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 26px; }
}
