/* Martin Stewart: site styles. One accent colour (deep green), warm stone neutrals. */

:root {
  --accent: #23614a;        /* deep green: 7.2:1 on white */
  --accent-dark: #184634;
  --accent-soft: #e6f0eb;
  --sun: #e8b04a;           /* decorative only, never used for text */
  --stone: #efe3c8;
  --stone-dark: #b9a479;
  --hill: #d6e4da;
  --bg: #ffffff;
  --bg-tint: #faf7f0;
  --text: #1d2420;
  --muted: #4d5752;         /* 7.6:1 on white */
  --line: #e2ddd2;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 6px 20px rgb(0 0 0 / .05);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: .85rem; letter-spacing: .03em;
}
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .97rem; }
.nav-list a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-list .nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.nav-list .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--text); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px; }
  .nav-list .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font: inherit; font-weight: 600; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent);
  cursor: pointer; transition: background .15s, transform .15s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button:active { transform: translateY(1px); }
.button-ghost { background: transparent; color: var(--accent); }
.button-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-tint), #fff); padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .8em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-art svg { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 420px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-tint); }
.section-intro { color: var(--muted); font-size: 1.12rem; max-width: 40em; margin-bottom: 36px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Problem cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card-icon svg { width: 26px; height: 26px; }
.aside-line { margin-top: 32px; font-family: var(--font-head); font-size: 1.25rem; font-style: italic; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .card-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 22px 22px; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; box-shadow: var(--shadow); }
.price-card p:last-child { color: var(--muted); margin: 0; }
.price-card-featured { border: 2px solid var(--accent); }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700;
  font-size: .8rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--accent-dark); line-height: 1.1; margin: 4px 0 14px; }
.price-from { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-footnote { margin-top: 28px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case-image { aspect-ratio: 16 / 9; }
.case-body { padding: 24px; }
.case-tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.case h3 { margin-bottom: .2em; font-size: 1.4rem; }
.case-sub { color: var(--muted); font-weight: 600; }
.quote { margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid var(--sun); background: var(--bg-tint); border-radius: 0 10px 10px 0; }
.quote p { font-family: var(--font-head); font-style: italic; font-size: 1.08rem; margin-bottom: .4em; }
.quote footer { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* Placeholders: easy to spot until filled in */
.placeholder {
  display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--bg-tint), var(--bg-tint) 12px, #f3eee2 12px, #f3eee2 24px);
  color: var(--muted); font-weight: 700; border: 2px dashed var(--stone-dark);
}
.placeholder-text { color: #6b4e12; background: #fdf3dc; padding: 2px 6px; border-radius: 4px; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 6 / 7; border-radius: 20px; width: 100%; height: auto; object-fit: cover; }
.about img { width: 100%; height: auto; border-radius: 20px; display: block; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts li { background: var(--bg-tint); border-radius: 12px; padding: 14px; font-size: .95rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--accent-dark); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Contact */
.section-accent { background: var(--accent); color: #fff; }
.section-accent a { color: #fff; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy p { color: #e4efe9; font-size: 1.1rem; }
.contact-details { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-details li { padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .2); }
.contact-details span { display: inline-block; min-width: 70px; color: #cfe2d8; font-size: .92rem; }
.contact-form { background: #fff; color: var(--text); padding: 28px; border-radius: var(--radius); box-shadow: 0 10px 40px rgb(0 0 0 / .15); }
.contact-form a { color: var(--accent); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 1.5px solid #8f978f; border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; }
.contact-form .button { width: 100%; }
.privacy-note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 28px; } .contact-form { padding: 22px; } }

/* Footer */
.site-footer { background: #15201b; color: #c9d3ce; padding: 28px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }

/* Privacy page */
.prose { max-width: 720px; padding: 56px 20px 80px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Case study screenshots: two overlapping app screens */
.case-shots { position: relative; background: linear-gradient(135deg, var(--accent-soft), var(--bg-tint)); overflow: hidden; }
.shot { position: absolute; width: 78%; height: auto; border-radius: 8px; box-shadow: 0 8px 28px rgb(0 0 0 / .22); }
.shot-back { top: 7%; right: 4%; }
.shot-front { bottom: 7%; left: 4%; }

/* Single wide case study: screenshots beside the text on larger screens */
.case-wide { flex-direction: row; }
.case-wide .case-image { flex: 1 1 52%; aspect-ratio: auto; min-height: 380px; }
.case-wide .case-body { flex: 1 1 48%; padding: 32px; }
.case-wide .case-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .case-wide { flex-direction: column; }
  .case-wide .case-image { aspect-ratio: 16 / 10; min-height: 0; }
  .case-wide .case-body { padding: 24px; }
}

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }
