/* ============================================================
   Baramay Ung Photography — site styles
   Design tokens from the "Modernist" system, with accessibility
   corrections applied (see CONTRAST notes below).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;

  /* CONTRAST: #ec3013 is only 3.76:1 on the page background, which fails
     WCAG AA for normal-size text. It is kept for large display type and
     graphic accents only. Links and small text use --color-accent-700
     (6.41:1), which passes AA. */
  --color-accent: #ec3013;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;

  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* CONTRAST: muted text is held at 72% of the text color (6.14:1, passes
     AA). The original 55-60% values failed AA at body sizes. */
  --color-muted: color-mix(in srgb, var(--color-text) 72%, transparent);

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --gutter: clamp(24px, 6vw, 96px);
  --maxw: 1240px;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 12px; }
img { display: block; max-width: 100%; }
hr.hr { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

/* Visible focus for keyboard users on every interactive element. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-accent-700);
  outline-offset: 2px;
}

/* Skip link — first tab stop, lets keyboard and screen reader users jump
   straight past the header to the page content. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

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

.site-header { border-bottom: 2px solid var(--color-divider); }

.site-header .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  line-height: 0;
}
.logo img {
  height: 100px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
}
.nav a:hover,
.nav a:focus-visible { color: var(--color-accent-700); }

/* Current page is marked for sighted users with color plus an underline,
   so color is not the only signal, and for assistive tech with
   aria-current="page" in the markup. */
.nav a[aria-current="page"] {
  color: var(--color-accent-700);
  border-bottom: 2px solid var(--color-accent-700);
}

/* ---------- Main / heroes ---------- */

main { flex: 1; }

.hero {
  width: 100%;
  height: min(58vh, 520px);
  overflow: hidden;
  background: var(--color-surface);
}
.hero--full {
  height: auto;
  min-height: 70vh;
  flex: 1;
  display: flex;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head { padding-top: 64px; padding-bottom: 40px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow span.mark {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  display: block;
  flex: none;
}
.eyebrow span.label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

.display {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}

.lede {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Two-column body sections ---------- */

.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0;
}

.prose { max-width: 64ch; }
.prose p {
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 22px;
}
.prose p:last-child { margin-bottom: 0; }

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

.form-col { max-width: 620px; }

form.contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.field .req {
  color: var(--color-accent-700);
  margin-left: 2px;
}

.input {
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS Safari zooming on focus */
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-divider);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.input:hover { border-color: var(--color-text); }
.input:focus-visible {
  border-color: var(--color-accent-700);
  outline: 3px solid var(--color-accent-700);
  outline-offset: 2px;
}
textarea.input { resize: vertical; min-height: 140px; }

/* Honeypot — hidden from sighted users and from assistive tech, but bots
   fill it in. Not display:none, which some bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: 0;
  border: 2px solid var(--color-text);
  background: var(--color-text);
  color: #fff;
}
.btn:hover {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
  color: #fff;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* Form status message. aria-live in the markup announces it to screen
   readers without moving focus. */
.form-status {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid transparent;
}
.form-status:empty { display: none; }
.form-status.is-success {
  border-left-color: #1c6b2e;
  color: #14501f;
  background: #eaf4ec;
}
.form-status.is-error {
  border-left-color: var(--color-accent-700);
  color: var(--color-accent-800);
  background: #fdece9;
}

.fineprint {
  font-size: 14px;
  line-height: 1.6;
  margin: 28px 0 0;
  color: var(--color-muted);
}

/* ---------- Services list ---------- */

.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 2px solid var(--color-divider);
}
.service:last-of-type { border-bottom: 2px solid var(--color-divider); }
.service h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.service p.desc {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--color-muted);
  max-width: 48ch;
}
.service p.price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.service p.price .sub {
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.note {
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 0;
  color: var(--color-muted);
  max-width: 56ch;
}

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

.site-footer { border-top: 2px solid var(--color-divider); }
.site-footer .wrap {
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--color-accent-700); }
.copyright {
  font-size: 12px;
  color: var(--color-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split .spacer { display: none; }
}

@media (max-width: 640px) {
  .site-header .wrap {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }
  .logo img { height: 64px; }
  .nav { gap: 20px; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .service {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service p.price {
    text-align: left;
    white-space: normal;
  }
  .page-head { padding-top: 44px; padding-bottom: 28px; }
  .hero { height: min(45vh, 380px); }
}

/* Respect users who ask the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
