/* Anrid Consulting — site styles
   Brand colours taken from the logo: teal #1c959a, magenta #b94e9c, green #299b47 / #80ae41.
   Text and button shades are darkened versions so they pass contrast checks. */
:root {
  --ink: #15292b;
  --muted: #4a5d60;
  --bg: #ffffff;
  --bg-soft: #f2f8f8;
  --line: #d9e6e6;
  --teal: #137277;
  --teal-dark: #0c4f53;
  --teal-brand: #1c959a;
  --teal-soft: #e4f3f3;
  --magenta: #a23e88;
  --magenta-hover: #85306f;
  --magenta-soft: #f7e9f3;
  --green: #2a7f3d;
  --green-brand: #80ae41;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-brand);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 0.75rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 76px; width: auto; }
@media (max-width: 480px) { .brand img { height: 64px; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { font: 500 0.98rem var(--font-head); color: var(--ink); text-decoration: none; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--magenta); }

/* Buttons */
.btn {
  display: inline-block; font: 600 0.98rem var(--font-head); text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 4px; border: 2px solid var(--magenta);
  background: var(--magenta); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--magenta-hover); border-color: var(--magenta-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--magenta); }
.btn-ghost:hover { background: var(--magenta-soft); color: var(--magenta-hover); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(3rem, 7vw, 5rem); display: flex; flex-direction: column; gap: 1.25rem; }
/* Hero with a photo: copy on the left, photo on the right, facts strip full width */
.hero .wrap.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 3rem; row-gap: 1.25rem; align-items: start; }
.hero-split > * { grid-column: 1; }
.hero-split > .hero-photo { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.hero-split > .facts { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .hero .wrap.hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split > .hero-photo { grid-column: 1; grid-row: auto; }
}
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 14px 30px -18px rgba(12, 79, 83, 0.55); }
.wheel { display: block; width: 100%; max-width: 240px; height: auto; margin-inline: auto; }

.eyebrow { font: 600 0.8rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 0.5rem; }
.fact { background: var(--bg); padding: 1rem 1.15rem; }
.fact strong { display: block; font: 600 1.15rem var(--font-head); color: var(--teal-dark); }
.fact span { font-size: 0.92rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; max-width: 70ch; }
.section-head p { color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--teal-brand); border-radius: 6px; padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.card.alt { border-top-color: var(--magenta); }
.card ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.card .more { margin-top: auto; font: 600 0.95rem var(--font-head); }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1rem; }
.faq h2 { font-size: 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.faq h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Services list */
.service-group { display: flex; flex-direction: column; gap: 0; margin-bottom: 3rem; }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 1rem 2.5rem; align-items: center; margin-bottom: 1.25rem; }
.group-head h2 { margin-bottom: 0.5rem; }
.group-head p { color: var(--muted); max-width: 60ch; }
.group-head .wheel { max-width: 200px; }
@media (max-width: 640px) { .group-head { grid-template-columns: minmax(0, 1fr); } .group-head .wheel { max-width: 180px; margin-inline: 0; } }

/* Work gallery: real client and speaking photos with captions */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery img.top { object-position: center 25%; }
.gallery figcaption, .photo figcaption { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.photo figcaption { margin-top: 0.6rem; }
.photo-portrait { max-width: 340px; justify-self: center; }

.values { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.values li { font: 600 0.95rem var(--font-head); padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--magenta-soft); color: var(--magenta); }
.values li:nth-child(2) { background: var(--teal-soft); color: var(--teal); }
.values li:nth-child(3) { background: #ecf5e3; color: var(--green); }
.media-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .media-split { grid-template-columns: minmax(0, 1fr); } }
.service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 2rem; align-items: start; padding-block: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { grid-column: 1; }
.service p { grid-column: 1; color: var(--muted); max-width: 64ch; }
.service .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; }
  .service .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.4rem; }
}

/* Quote */
.quote { border-left: 4px solid var(--green-brand); padding: 0.25rem 0 0.25rem 1.25rem; max-width: 60ch; }
.quote p { font: 500 1.25rem/1.5 var(--font-head); }
.quote cite { display: block; margin-top: 0.6rem; font-style: normal; color: var(--muted); }

.testimonials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 760px; }
@media (min-width: 960px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
.testimonial { margin: 0; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--magenta); border-radius: 6px; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.testimonial:nth-child(2) { border-top-color: var(--teal-brand); }
.testimonial:nth-child(3) { border-top-color: var(--green-brand); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; line-height: 1.6; }
.testimonial figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.testimonial figcaption strong { font: 600 1rem var(--font-head); color: var(--ink); }
.testimonial figcaption span { font-size: 0.92rem; color: var(--muted); }

/* Fact list (definition list) */
.fact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0; }
.fact-list dt { font: 600 0.95rem var(--font-head); color: var(--teal-dark); }
.fact-list dd { margin: 0; }
@media (max-width: 480px) { .fact-list { grid-template-columns: 1fr; gap: 0.15rem; } .fact-list dd { margin-bottom: 0.6rem; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; align-items: start; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font: 600 0.92rem var(--font-head); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid #b3c7c8; border-radius: 4px; padding: 0.65rem 0.75rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.9rem; color: var(--muted); }

/* CTA band */
.cta { background: var(--teal-dark); color: #fff; }
.cta .wrap { padding-block: 2.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.cta h2 { color: #fff; }
.cta p { color: #d3e9ea; }
.cta a:not(.btn) { color: #fff; }

/* Footer */
.site-footer { background: #0e2526; color: #c6d8d9; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-base { border-top: 1px solid #22403f; }
.footer-base .wrap { padding-block: 1rem; display: block; font-size: 0.85rem; color: #93abab; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
