/* Tiny Town Consulting. Brand tokens shared with tinytowndrinks.co.uk.
   Accessibility: cream on charcoal is 10.3:1; muted text is 8.0:1 on charcoal and 7.0:1 on cream (WCAG AAA). */
:root {
  --charcoal: #302f22;
  --charcoal-2: #3a392b;
  --cream: #e8e0cf;
  --cream-muted: #cfc7b5;
  --ink-muted: #4a4838;
  --line: rgba(232, 224, 207, .32);
  --line-dark: rgba(48, 47, 34, .28);
  --focus: #ffd166;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--charcoal); color: var(--cream);
  font-family: 'Jost', system-ui, sans-serif; font-size: 18px; line-height: 1.6;
  min-height: 100dvh; display: flex; flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
.nw { white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.5vw, 88px); line-height: .95; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
p { margin: 0; }

/* Focus: always visible for keyboard users, high contrast on both backgrounds. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--charcoal); }

.skip-link {
  position: absolute; left: var(--space-2); top: -100px; z-index: 10;
  background: var(--cream); color: var(--charcoal); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: auto; }
.brand span { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-cta { padding: 0 20px; border: 1px solid var(--cream); border-radius: 999px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--cream); color: var(--charcoal); text-decoration: none; }

main { flex: 1; }

/* Buttons and links */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid var(--cream); background: var(--cream); color: var(--charcoal);
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: #fff; border-color: #fff; }
.btn.secondary { background: transparent; color: var(--cream); }
.btn.secondary:hover { background: rgba(232, 224, 207, .12); }
.btn.dark { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn.dark:hover { background: var(--charcoal-2); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }

/* Hero */
.hero { display: grid; grid-template-columns: 6fr 5fr; gap: var(--space-5); align-items: center; padding-top: var(--space-4); padding-bottom: var(--space-6); }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-3); }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; max-width: 34em; }
.hero figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
figcaption { font-size: 14px; color: var(--cream-muted); }

/* Cream band */
.band { background: var(--cream); color: var(--charcoal); padding: var(--space-6) 0; }
.band .muted { color: var(--ink-muted); }
.section-intro { display: flex; flex-direction: column; gap: var(--space-2); max-width: 40em; margin-bottom: var(--space-5); }
.section-intro p { font-size: 19px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.service { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px solid var(--charcoal); }
.service ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }

/* Steps */
.section { padding: var(--space-6) 0; }
.section + .section { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cream); font-size: 18px; }
.steps p { color: var(--cream-muted); font-size: 17px; }

/* Who we help */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.who-list li { padding: var(--space-3) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.who-list li:last-child { border-bottom: 1px solid var(--line); }
.who-list p { color: var(--cream-muted); font-size: 17px; }

/* Why us */
.why { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-5); align-items: start; }
.why-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.why-points li { display: flex; flex-direction: column; gap: 4px; }
.why-points strong { font-size: 21px; font-weight: 500; }
.why-points span { color: var(--cream-muted); font-size: 17px; }

/* CTA band */
.cta { text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cta p { font-size: 19px; max-width: 32em; }

/* Prose pages */
.page-head { padding-top: var(--space-4); padding-bottom: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); max-width: 46em; }
.prose { max-width: 46em; padding-bottom: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.prose h2 { font-size: 28px; margin-top: var(--space-3); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--space-5); align-items: start; padding-bottom: var(--space-6); }
.contact-aside { display: flex; flex-direction: column; gap: var(--space-2); color: var(--cream-muted); }
.contact-aside h2 { color: var(--cream); font-size: 24px; }
form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.field .hint { font-size: 14px; color: var(--cream-muted); }
.req { color: var(--cream-muted); font-weight: 400; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  font: inherit; font-size: 17px; color: var(--cream); background: var(--charcoal-2);
  border: 1px solid var(--cream-muted); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #f3b9a6; border-width: 2px; }
.error-text { color: #f3b9a6; font-size: 15px; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--cream); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.status { font-size: 17px; }
.status.ok { padding: 16px 20px; border-radius: 8px; background: var(--cream); color: var(--charcoal); }
.status.err { color: #f3b9a6; }
.form-summary { grid-column: 1 / -1; padding: 16px 20px; border: 2px solid #f3b9a6; border-radius: 8px; }
.form-summary ul { margin: 8px 0 0; padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: var(--space-4); padding-bottom: var(--space-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 15px; color: var(--cream-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

.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; }

@media (max-width: 960px) {
  .hero, .split, .why, .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 var(--space-2); }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 0 18px; }
  .hero { padding-bottom: var(--space-5); }
  .band, .section { padding: var(--space-5) 0; }
  .steps { grid-template-columns: 1fr; }
  form.enquiry { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
