/* ===== Fonts =====
   Inter, self-hosted (no connection to Google). Files in assets/fonts/.
   font-display: swap shows the fallback font until Inter has loaded. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Colour palette: Option B, peach and linen */
  --color-header-bg: #f3e3d3;     /* soft peach: slideshow loading background, status box */
  --color-body-bg: #fffaf5;       /* page: warm linen white */
  --color-text: #2a2420;          /* warm near-black, matches black logo */
  --color-accent: #9c3f22;        /* links and active page: terracotta */
  --color-hover-bg: #ead2bc;      /* nav hover: slightly darker peach */

  --header-height: 80px;
  --page-padding: 1.5rem;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-body-bg);
}

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

/* Main page heading: same style on every page */
h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-accent);
}

/* ===== Header / top bar ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  min-height: var(--header-height);
  padding: 0.75rem var(--page-padding);
  background: var(--color-body-bg);
  border-bottom: 1px solid var(--color-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand img {
  display: block;
  height: 80px;
  width: auto;               /* keeps the logo's own proportions */
  mix-blend-mode: multiply;  /* white JPG background blends into the bar */
}

/* Smaller logo on phones, so the top bar doesn't take too much screen height */
@media (max-width: 600px) {
  .brand img {
    height: 64px;
  }
}

/* ===== Navigation ===== */
.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
}

.nav-list a:hover {
  background: var(--color-hover-bg);
}

.nav-list a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* Visible focus for keyboard users */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Main content ===== */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem var(--page-padding);
}

.content p {
  max-width: 70ch; /* comfortable reading width */
}

/* Wider box for two-column pages (contact) */
.content--wide {
  max-width: 1200px;
}

/* ===== Slideshow (homepage) ===== */
.slideshow {
  margin-bottom: 2rem;
}

.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-header-bg); /* shown while photos load */
  touch-action: pan-y; /* vertical swipes scroll the page; horizontal ones go to the slideshow */
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* fills the frame without distorting */
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.is-active {
  opacity: 1;
}

/* Dots: one per photo, created by slideshow.js */
.slideshow-dots {
  display: none;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.slideshow.is-ready .slideshow-dots {
  display: flex;
}

/* 24×24 px button (easy to tap), with the visible dot drawn in its centre */
.slideshow-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slideshow-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #958a82; /* visible enough against the page (3:1 contrast) */
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.slideshow-dot:hover::before {
  background: var(--color-muted);
}

/* Current photo: bigger and darker dot */
.slideshow-dot[aria-current="true"]::before {
  width: 12px;
  height: 12px;
  background: var(--color-text);
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slideshow-dot::before {
    transition: none;
  }
}

/* ===== Contact page ===== */
:root {
  --color-muted: #5f5650;        /* secondary text */
  --color-placeholder: #7a706a;  /* form placeholders */
  --color-line: #d9cfc6;         /* input underlines */
}

.contact-layout {
  display: grid;
  gap: 3rem;
}

/* Small uppercase labels, as in the design */
.contact-details dt,
.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-details {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.75rem 1rem;
  margin: 0;
}

.contact-details dt {
  padding-top: 0.15rem;
}

.contact-details dd {
  margin: 0;
}

.contact-details a {
  color: var(--color-text);
  text-underline-offset: 3px;
}

.contact-details a:hover {
  color: var(--color-accent);
}

.contact-note {
  margin-top: 2.5rem;
  color: var(--color-muted);
}

.contact-title {
  margin-top: 0;
}

/* Form */
.form-field {
  margin-bottom: 2.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.125rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

/* Visible focus: the underline turns thick and terracotta */
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}

.button-primary {
  padding: 1.1rem 2.5rem;
  border: 0;
  border-radius: 0;
  background: var(--color-text);
  color: var(--color-body-bg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.button-primary:hover {
  background: var(--color-accent);
}

.button-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Privacy note under the send button */
.content .form-privacy {
  max-width: none;    /* may use the full form width */
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Honeypot: moved off-screen rather than display:none, which some bots detect */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Result message after sending */
.form-status {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-text);
  background: var(--color-header-bg);
}

.form-status--error {
  border-left-color: var(--color-accent);
}

/* Two columns on wider screens: details left, form right */
@media (min-width: 760px) {
  .contact-layout {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

  .contact-info {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-form-area {
    grid-column: 2;
    grid-row: 1;
  }

  .contact-details {
    margin-top: 0.75rem;
  }
}

/* More breathing room between the columns on large screens */
@media (min-width: 1100px) {
  .contact-layout {
    gap: 7rem;
  }
}

/* ===== 404 page ===== */
a.button-primary {
  display: inline-block;
  text-decoration: none;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.not-found-actions a:not(.button-primary) {
  color: var(--color-text);
  text-underline-offset: 3px;
}

.not-found-actions a:not(.button-primary):hover {
  color: var(--color-accent);
}
