/* Vellora Beacon: agency site */

:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --card: #fffdf9;
  --ink: #1b1d21;
  --ink-2: #33363c;
  --muted: #5c5f66;
  --line: #ddd6c8;
  --line-strong: #c3baa8;
  --accent: #11756d;
  --accent-soft: #e3f0ec;
  --on-ink: #f5f2ec;
  --on-ink-muted: #bdb8ae;
  --error: #a3302a;
  --focus: #11756d;
  /* The brand mark's flag reads this variable inline. */
  --teal-bright: #5fd1c4;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }
/* Author display rules (e.g. .draft { display: grid }) must never beat the hidden attribute. */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 4.5rem; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--card); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  --focus: var(--teal-bright);
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid rgba(245, 242, 236, 0.1);
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: 1.85rem; height: 1.85rem; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--on-ink-muted); }
.nav a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.nav__cta {
  display: inline-block; border: 1px solid rgba(245, 242, 236, 0.5); color: var(--on-ink) !important;
  padding: 0.45rem 0.9rem; border-radius: var(--radius);
}
.nav__cta:hover { background: var(--on-ink); color: var(--ink) !important; text-decoration: none !important; }

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  background: none; border: 1px solid rgba(245, 242, 236, 0.3); color: var(--on-ink);
  font: inherit; font-size: 0.92rem; padding: 0.5rem 0.85rem; border-radius: var(--radius); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid rgba(245, 242, 236, 0.12);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem var(--gutter) 1.25rem; }
  .nav li a { display: block; padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(245, 242, 236, 0.12); }
  .nav li:last-child a { border-bottom: 1px solid rgba(245, 242, 236, 0.5); margin-top: 1rem; text-align: center; padding: 0.8rem 1rem; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.35rem;
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button--primary { background: var(--ink); color: var(--on-ink); }
.button--primary:hover { background: var(--ink-2); }
.button--secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.button--secondary:hover { border-color: var(--ink); }
.button--text { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; padding-inline: 0.5rem; }

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

.hero {
  --focus: var(--teal-bright);
  background: var(--ink); color: var(--on-ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 5vw, 3.75rem);
}
.hero__inner { display: grid; gap: 1.2rem; justify-items: start; }
.hero__title {
  font-size: clamp(2.9rem, 6.6vw, 5.75rem); line-height: 0.98; letter-spacing: -0.025em;
  max-width: 12ch; text-wrap: balance;
}
.hero__support { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-ink-muted); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.6rem; }
.hero .button--primary { background: var(--on-ink); color: var(--ink); }
.hero .button--primary:hover { background: #fff; }
.hero .button--secondary { background: transparent; color: var(--on-ink); border-color: rgba(245, 242, 236, 0.45); }
.hero .button--secondary:hover { border-color: var(--on-ink); }
@media (max-width: 520px) {
  .hero__actions { width: 100%; }
  .hero__actions .button { flex: 1 1 10rem; }
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 2rem;
  padding-bottom: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line-strong);
}
.section-head h2, .process h2, .inquiry h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Work ---------- */

.work { padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(3.5rem, 8vw, 6.5rem); }

.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }

/* Each preview uses its own concept's palette. */
.project--cleaning { --stage: #cfe7df; --stage-ink: #2a6b5f; }
.project--barbershop { --stage: #23201c; --stage-ink: #8c2f24; }
.project--landscaping { --stage: #d8cdb4; --stage-ink: #3e5a35; }

.project {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.5rem; align-items: center;
}
.project__visual { grid-column: 1 / span 7; grid-row: 1; }
.project__text { grid-column: 9 / -1; grid-row: 1; }
.project:nth-child(even) .project__visual { grid-column: 6 / -1; }
.project:nth-child(even) .project__text { grid-column: 1 / span 4; }

.project__label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--stage-ink, var(--accent)); border: 1px solid currentColor; padding: 0.12rem 0.45rem; border-radius: 3px;
}
.project h3 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); margin-bottom: 0.7rem; }
.project__task { color: var(--muted); max-width: 25rem; margin-bottom: 1.25rem; }
.project__link {
  font-weight: 600; color: var(--stage-ink, var(--accent)); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 0.1rem;
}
.project__link span { display: inline-block; transition: transform 0.2s; }
/* The whole row opens the concept, while assistive tech hears one link. */
.project__link::after { content: ""; position: absolute; inset: 0; }
.project:hover .project__link span { transform: translateX(3px); }

.project__visual {
  display: flex; align-items: flex-end; gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1.1rem, 3.4vw, 2.6rem) clamp(1rem, 3vw, 2.4rem) 0;
  background: var(--stage); border-radius: 8px; overflow: hidden;
}
.frame {
  display: block; position: relative; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 40px -20px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}
.frame img { display: block; width: 100%; height: auto; }
.frame--desk { flex: 0 0 auto; width: 76%; border-radius: 6px 6px 0 0; }
.frame--phone {
  flex: 1 1 auto; margin-bottom: clamp(1.1rem, 3.4vw, 2.6rem);
  border-radius: 8px; aspect-ratio: 390 / 844;
}
.project--barbershop .frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
/* Phone captures are 500px wide with the 390px page on the left: show only that part. */
.frame--phone img { position: absolute; top: 0; left: 0; width: 128.21%; max-width: none; }
.project:hover .frame--desk { transform: translateY(-3px); }

@media (max-width: 900px) {
  .project__visual, .project__text,
  .project:nth-child(even) .project__visual, .project:nth-child(even) .project__text { grid-column: 1 / -1; grid-row: auto; }
}
/* Phones: one larger, simpler preview per project. */
@media (max-width: 600px) {
  .project { row-gap: 1.1rem; }
  .project__visual { padding: 0.9rem 0.9rem 0; border-radius: 6px; }
  .frame--desk { width: 100%; border-radius: 4px 4px 0 0; }
  .frame--phone { display: none; }
}

/* ---------- Process ---------- */

.process { background: var(--paper-2); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2rem; }
.process h2 { grid-column: 1 / span 4; }
.steps {
  grid-column: 5 / -1;
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem;
}
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.steps li::before {
  content: counter(step) ".";
  display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.6rem;
}
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .process h2, .steps { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Inquiry ---------- */

.inquiry { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.inquiry__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2rem; align-items: start; }
.inquiry__intro { grid-column: 1 / span 4; position: sticky; top: 6rem; }
.form, .draft { grid-column: 5 / -1; }
.inquiry h2 { margin-bottom: 0.9rem; }
.inquiry__intro > p { color: var(--muted); }
.inquiry__intro > p.inquiry__direct { margin-top: 1.5rem; font-size: 0.94rem; }
.inquiry__email {
  display: inline-block; margin-top: 0.2rem; font-family: var(--serif); font-size: 1.35rem; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor; overflow-wrap: anywhere;
}
.inquiry__direct .webmail { display: inline-block; margin-top: 0.6rem; }
.webmail a { color: var(--accent); font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.footer .webmail a { color: var(--on-ink); font-weight: 400; }
.notice {
  margin-top: 1.75rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  font-size: 0.94rem; color: var(--ink-2);
}
.notice strong { color: var(--ink); }

.form, .draft {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(27, 29, 33, 0.04), 0 20px 40px -32px rgba(27, 29, 33, 0.3);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}
.form { display: grid; gap: 2rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.1rem; min-width: 0; }
.form legend {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  padding: 0 0 0.5rem; margin-bottom: 1.1rem; width: 100%; border-bottom: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; align-items: start; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.94rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 0.25rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.7rem 0.8rem; min-height: 2.9rem;
  transition: border-color 0.15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #998f7c; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field__hint { font-size: 0.85rem; color: var(--muted); }
.field__error { font-size: 0.88rem; color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.75rem; }
.check {
  display: flex; align-items: center; gap: 0.7rem; cursor: pointer; min-height: 2.9rem;
  padding: 0.6rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-weight: 500; font-size: 0.96rem; line-height: 1.35;
}
.check:hover { border-color: #998f7c; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; margin: 0; }
.field--group.is-invalid .check { border-color: #d9a29e; }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form__fine { font-size: 0.86rem; color: var(--muted); }

.draft { display: grid; gap: 1.25rem; }
.draft:focus { outline: none; }
.draft:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.draft__badge {
  justify-self: start; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  background: #fbe7c6; color: #6b4300; padding: 0.25rem 0.6rem; border-radius: 3px;
}
.draft h3 { font-size: 1.9rem; }
.draft__list { margin: 0; display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; border-top: 1px solid var(--line); }
.draft__list dt, .draft__list dd { padding: 0.65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.draft__list dt { color: var(--muted); font-size: 0.92rem; padding-right: 1rem; }
.draft__list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.draft__warn { background: #fff7e8; border-left: 3px solid #d08a17; padding: 0.85rem 1rem; font-size: 0.94rem; }
.draft__note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 0.85rem 1rem; font-size: 0.94rem; font-weight: 500; }
.draft__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.draft__send { display: grid; gap: 0.75rem; padding: 1.1rem 0 1.25rem; border-block: 1px solid var(--line); }
.draft__send-label { font-family: var(--serif); font-size: 1.2rem; }
.draft__other { font-size: 0.9rem; color: var(--muted); }
.draft__status { font-weight: 600; color: var(--accent); min-height: 1.5em; }

@media (max-width: 900px) {
  .inquiry__intro, .form, .draft { grid-column: 1 / -1; }
  .inquiry__intro { position: static; }
}
@media (max-width: 640px) {
  .form__row, .checks { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .draft__list { grid-template-columns: 1fr; }
  .draft__list dt { border-bottom: 0; padding-bottom: 0; }
  .draft__list dd { padding-top: 0.15rem; }
  .draft__actions .button, .form__submit .button { flex: 1 1 100%; }
}

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

.footer { --focus: var(--teal-bright); background: var(--ink); color: var(--on-ink-muted); padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 2rem; align-items: baseline; }
.footer__brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--on-ink); }
.footer__place { grid-column: 1 / -1; }
.footer__contact { grid-column: 1 / -1; margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__contact a { color: var(--on-ink); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.footer__fine { grid-column: 1 / -1; font-size: 0.85rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(245, 242, 236, 0.12); }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Footer legal links ---------- */

.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.92rem; }
.footer__legal a { color: var(--on-ink); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.footer__legal a:hover, .footer__legal a[aria-current="page"] { color: #fff; }

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

.legal-back { color: var(--on-ink-muted); font-size: 0.94rem; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.legal-back:hover { color: var(--on-ink); }
.legal { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: 1.75rem 0 0.5rem; }
.legal__meta { color: var(--muted); font-size: 0.95rem; }
.legal__status { background: #fff7e8; border-left: 3px solid #d08a17; padding: 0.9rem 1.1rem; font-size: 0.97rem; }
.legal__toc { margin: 2rem 0 0.5rem; padding: 1.1rem 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.legal__toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.legal__toc li { padding: 0.15rem 0; break-inside: avoid; }
.legal__toc a { color: var(--accent); }
.legal section { padding-top: 2rem; scroll-margin-top: 5rem; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.85rem; }
.legal ul { padding-left: 1.2rem; margin: 0.75rem 0 0; }
.legal li + li { margin-top: 0.5rem; }
.legal a { color: var(--accent); }
/* Long hostnames in policy text must wrap on narrow screens. */
.legal p, .legal li { overflow-wrap: break-word; }
.tbc { background: var(--paper-2); border: 1px dashed var(--line-strong); padding: 0.7rem 0.9rem; font-size: 0.95rem; color: var(--ink); }
.legal__also { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .legal__toc ol { columns: 1; } }
