/* Koru House Hakuba - base styles (skeleton).
   Mobile-first: base rules for small screens, min-width media queries for larger ones.
   Light theme. Brand colours from Koru_Brand_Guidelines.pdf; the design pass comes later.
   System fonts for now (no downloads), decided in the design step. */

:root {
  --ink: #1d2a33;
  --muted: #4a5a66;
  --line: #dfe5ea;
  --tint: #f2f7fb;
  --white: #ffffff;
  /* Brand blue #0083CA is 4.1:1 on white: fine for large shapes, too light for small text.
     #0068B7 (the guidelines' print blue) is 5.7:1, so it's used for links and buttons. */
  --brand-blue: #0083ca;
  --blue: #0068b7;
  --blue-dark: #00559a;
  --green: #2f6b23; /* logo green, 6.5:1 on white */

  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP";
  --font: system-ui, -apple-system, "Segoe UI", Roboto, var(--jp), sans-serif;

  --gutter: 1.25rem;
  --radius: 0.5rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

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

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
}

p {
  margin: 0 0 1rem;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 40rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  z-index: 10;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.brand__logo {
  width: 48px;
  height: 48px;
}

.brand__place {
  font-weight: 400;
  color: var(--muted);
}

.lang-switcher ul {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn--outline {
  background: transparent;
  color: var(--blue);
}

/* Sections */
.hero {
  padding: 4rem 0 3rem;
  background: var(--tint);
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
}

.section {
  padding: 3.5rem 0;
}

.section--tint {
  background: var(--tint);
}

/* Enquiry form */
.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form__pair {
  display: grid;
  gap: 1rem;
}

@media (min-width: 30rem) {
  .form__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
}

.form__hint {
  font-weight: 400;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #8a98a3; /* 3:1 against white, as form borders need */
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  background: var(--white);
}

.form button {
  justify-self: start;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.25rem;
}
