/* ==========================================================================
   base.css — design tokens, reset, header, footer, mobile nav, buttons.
   Loaded on every page. Page-specific CSS files load after this one and
   only add layout for that page's own content.
   ========================================================================== */

:root {
  /* Colour tokens, sampled from the reference screenshots. */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-footer-bg: #2b2b2b;
  --color-footer-subbar: #7a7a7a;
  --color-input-bg: #ececec;
  --color-border: #dcdcdc;
  --color-required: #d13b3b;
  --color-button-bg: #000000;
  --color-button-text: #ffffff;
  --color-overlay-text: #ffffff;

  /* Type. Headings/nav/buttons are the geometric, letter-spaced face seen
     throughout the reference; body copy uses a plain neutral sans. */
  --font-heading: "Avenir Next", Avenir, "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-height: 92px;
  --header-height-mobile: 72px;
  --max-content-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* Focus visibility — kept even though the reference screenshots can't show
   it; a distinctive site should still be usable with a keyboard. */
:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- shared button styles ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border-color: var(--color-button-bg);
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.site-header__logo-link {
  display: block;
  line-height: 0;
}

.site-header__logo {
  height: 56px;
  width: auto;
}

.site-header__nav {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
}

.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--color-text);
}

.site-header__mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid #eee;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.site-header__mobile-panel.is-open {
  display: block;
}

.site-header__mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.site-header__mobile-panel a {
  display: block;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid #f2f2f2;
}

@media (max-width: 768px) {
  .site-header {
    height: var(--header-height-mobile);
    padding: 0 20px;
  }
  .site-header__logo {
    height: 42px;
  }
  .site-header__nav {
    display: none;
  }
  .site-header__hamburger {
    display: block;
  }
}

/* Fixed bottom tab bar - built for every page, but only shown on mobile
   when body has the "nav-bottom" class (set via ?nav=bottom in the URL,
   see render-header-footer.js). Lets the client compare top vs bottom nav
   without any code change. */
.site-mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  body.nav-bottom .site-header__hamburger,
  body.nav-bottom .site-header__mobile-panel {
    display: none;
  }

  body.nav-bottom .site-mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: var(--color-bg);
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  }

  body.nav-bottom .site-mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-secondary);
  }

  .site-mobile-tabbar__icon {
    display: flex;
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
  }

  .site-mobile-tabbar__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
  }

  body.nav-bottom {
    padding-bottom: 56px;
  }

  body.nav-bottom .painting__back-btn {
    bottom: 72px;
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--color-footer-bg);
  color: #ffffff;
  padding: 56px 40px 0;
}

.site-footer__inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.site-footer__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 17px;
  min-width: 0;
}

.site-footer__row a {
  text-decoration: none;
  color: #ffffff;
  overflow-wrap: anywhere;
  min-width: 0;
}

.site-footer__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #ffffff;
}

.site-footer__subbar {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--color-footer-subbar);
  text-align: center;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__subbar-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer__subbar-link:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 20px 0;
  }
}

/* ---------- shared form field styles ----------
   Used by both contact.html and the enquiry modal, per the review's
   instruction to make the modal a visual match of the contact form —
   sharing the rules here means that's true by construction. */

.field {
  margin-bottom: 26px;
}

.field__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 10px;
}

.field__required {
  color: var(--color-required);
  margin-left: 2px;
}

.field__input,
.field__textarea {
  width: 100%;
  border: none;
  background: var(--color-input-bg);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  border-radius: 1px;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #9a9a9a;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.field__textarea {
  min-height: 160px;
  resize: vertical;
  font-family: var(--font-body);
}

.field__input:focus,
.field__textarea:focus {
  outline: 2px solid #2b6cb0;
  outline-offset: -2px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.mandatory-note {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.mandatory-note .field__required {
  margin-left: 0;
  margin-right: 4px;
}

.form-status {
  margin-top: 18px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 2px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #eaf6ec;
  color: #1e6b2f;
}

.form-status--error {
  background: #fbeaea;
  color: #a33;
}

/* ---------- generic page heading used by videos/reviews/contact ---------- */

.page-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 56px 0 40px;
}

.page-heading--left {
  text-align: left;
  font-size: 22px;
  margin: 40px 0 24px;
}
