/* famblue.de — change colours and fonts here ------------------------------ */

:root {
  --bg: #faf6ef;          /* cream page background */
  --bg-alt: #f1e8da;      /* sand: alternating sections, footer */
  --text: #3d3630;        /* body text */
  --heading: #4a3f35;     /* headings */
  --accent: #376f6a;      /* links, phone numbers (teal, dark enough for text) */
  --accent-soft: #3f7f7a; /* lighter teal for large or decorative elements */
  --line: #e2d6c3;        /* hairlines */
  --header-bg: var(--bg);        /* top bar */
  --header-text: var(--heading); /* wordmark */

  --font-heading: "Caveat", cursive;
  --font-body: "Nunito", system-ui, sans-serif;

  --measure: 42rem;       /* width of the text column */
}

/* Fonts (self-hosted, see fonts/OFL-*.txt) ---------------------------------- */

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;    /* 18px */
  line-height: 1.65;
  min-height: 100vh;      /* footer stays at the bottom on short pages */
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.9rem; margin-top: 1.5em; }

p, ul { margin: 0 0 1em; }
ul { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--heading); }

.container {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--header-text);
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  outline: 1px solid var(--line);  /* defines the pale edge against the cream */
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.nav li { margin: 0; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Hero ---------------------------------------------------------------------- */

.hero-text {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
}
.hero-text p { margin: 0; }
.hero-text .services { font-weight: 700; margin-bottom: 0.25em; }

.hero-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 55%;
}

@media (max-width: 640px) {
  .hero-text { padding-block: 2.5rem 2rem; }
  .hero-image { aspect-ratio: 4 / 3; }
}

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

.section { padding-block: 4rem; }
.section--alt { background: var(--bg-alt); }

.pull-quote {
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--accent-soft);
  text-align: center;
}
.pull-quote p { margin: 0 0 0.25em; }
.pull-quote footer {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.testimonial {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border-radius: 0.5rem;
  font-style: italic;
}
.testimonial p:last-child { margin-bottom: 0; }

.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent-soft);
  background: var(--bg);
}
.note strong { display: block; color: var(--heading); }
.note p { margin: 0; }

/* Contact ------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.portrait {
  width: 200px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.contact h3 { margin-top: 0; }
.contact address { font-style: normal; }
.contact .qualification { margin-top: -0.5em; }

@media (max-width: 640px) {
  .contact { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portrait { width: 160px; }
  .contact .note { text-align: left; }
}

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

.site-footer {
  padding: 1.5rem 1.25rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }

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

.legal h2 { font-size: 2rem; margin-top: 1.5em; }
.legal h1 + h2 { margin-top: 0.5em; }
