/* Xyrho — site styles, from the Xyrho design system */
:root {
  --brand-crimson: #d71452;
  --brand-coral: #e35c44;
  --brand-orange: #f29100;
  --brand-crimson-deep: #a80f40;
  --on-brand: #ffffff;
  --surface-000: #fffdfa;
  --surface-100: #fbf7f2;
  --surface-200: #f4ede5;
  --border: #e6dcd0;
  --ink: #2a211c;
  --ink-muted: #6b5d53;
  --ink-on-dark: #d9cfc4;
  --gradient: linear-gradient(90deg, var(--brand-crimson) 0%, var(--brand-coral) 55%, var(--brand-orange) 100%);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-100); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--brand-crimson-deep); }
a:hover { color: var(--brand-crimson); }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }

.bar { height: 6px; background: var(--gradient); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-crimson-deep); }
.dark .eyebrow { color: var(--brand-orange); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 48rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 27px; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.3; }
.btn-primary { background: var(--brand-crimson); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-crimson-deep); color: var(--on-brand); }
.btn-secondary { border-color: var(--brand-crimson-deep); color: var(--brand-crimson-deep); background: transparent; }
.btn-secondary:hover { background: var(--surface-200); }

/* Header */
.site-header .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.site-header img { height: 56px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--brand-crimson-deep); text-decoration: underline; }
.site-nav a.btn-primary { color: var(--on-brand); padding: 12px 22px; text-decoration: none; }
@media (max-width: 600px) { .site-header img { height: 44px; } .site-nav { gap: 8px 20px; } }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.hero .lead { font-size: 1.25rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero figure { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hero figure img { width: 100%; height: 380px; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius-lg); }
figcaption { font-size: 0.8125rem; color: var(--ink-muted); }
@media (max-width: 600px) { .hero { padding-top: 48px; padding-bottom: 72px; } .hero figure img { height: 280px; } }

/* Sections */
.band { background: var(--surface-200); }
.dark { background: var(--ink); color: var(--surface-100); }
.section { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 48px; }
@media (max-width: 600px) { .section { padding-top: 72px; padding-bottom: 72px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.card p, .service p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-muted); }
.tick { width: 48px; height: 6px; border-radius: 3px; }
.c1 { background: var(--brand-crimson); } .c2 { background: var(--brand-coral); } .c3 { background: var(--brand-orange); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.service { border-top: 3px solid var(--brand-crimson); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.service:nth-child(2) { border-top-color: var(--brand-coral); }
.service:nth-child(3) { border-top-color: var(--brand-orange); }

.quote { max-width: 960px; padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 24px; }
.quote .tick { width: 64px; background: linear-gradient(90deg, var(--brand-crimson), var(--brand-orange)); }
.quote blockquote { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 300; line-height: 1.3; }
.quote p { color: var(--ink-on-dark); }

.about { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-photo { flex: 1 1 280px; min-width: 0; max-width: 360px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); }
.about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 1.0625rem; line-height: 1.6; }
.about-text p.first { font-size: 1.1875rem; }
.about-text p.muted { color: var(--ink-muted); }

.photo-band img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 600px) { .photo-band img { height: 240px; } }

/* Contact */
.contact { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-text p { font-size: 1.0625rem; line-height: 1.6; }
.contact form { flex: 999 1 480px; min-width: 0; background: var(--surface-000); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 600px) { .contact form { padding: 24px; } }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #8f7f72; border-radius: var(--radius-sm); background: #ffffff; color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--ink-muted); }
.contact button { align-self: flex-start; min-height: 48px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-on-dark); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 44px; width: auto; }
.site-footer p { font-size: 0.875rem; }

/* Simple message pages */
.message { min-height: 60vh; padding-top: 96px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 24px; max-width: 44rem; }
.message h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.15; }
.form-status { font-weight: 700; margin: 0; }
.form-status:empty { display: none; }
.form-status.error { color: var(--brand-crimson-deep); }
