/* Primeho.com — light marketing agency theme */

:root {
  --bg: #f6f4f0;
  --bg-elevated: #fffcf8;
  --surface: #ffffff;
  --ink: #1f1d24;
  --ink-muted: #5c5763;
  --line: #e8e4dc;
  --accent: #3d6b5e;
  --accent-soft: #e3efe9;
  --accent-hover: #325749;
  --peach: #e8c4b8;
  --peach-soft: #f5e6df;
  --shadow: 0 18px 50px rgba(31, 29, 36, 0.08);
  --shadow-sm: 0 8px 24px rgba(31, 29, 36, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg-elevated);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 248, 0.94);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

@media (min-width: 800px) {
  .site-nav {
    margin-left: auto;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), var(--peach-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-elevated) !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--surface) !important;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 85%;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, var(--peach-soft), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, var(--accent-soft), transparent 50%),
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--surface);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent-hover);
}

.btn-on-dark {
  background: var(--surface);
  color: var(--ink);
}

.btn-on-dark:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-full {
  width: 100%;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-trust li {
  padding: 0.35rem 0.75rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-panel {
  justify-self: stretch;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stat + .hero-stat {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Logos strip */
.logos {
  padding: 2rem 0 2.5rem;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, var(--bg));
}

.logos-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.logos-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 45%, var(--ink-muted));
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tint {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 45%, var(--bg)), var(--bg));
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-lead {
  margin: 0;
  color: var(--ink-muted);
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Work */
.work-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.work-visual {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.work-a {
  background-image: linear-gradient(145deg, #dfe9e4 0%, #e8d5cf 45%, #c9ddd4 100%);
}

.work-b {
  background-image: linear-gradient(155deg, #e8e0f2 0%, #f0e6dc 50%, #d4e4e0 100%);
}

.work-c {
  background-image: linear-gradient(160deg, #e4ebe6 0%, #dce6f0 40%, #e8d9cf 100%);
}

.work-body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.work-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem;
}

.work-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Split / process */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.process-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
}

.process-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.process-list span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.split-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pullquote {
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.pullquote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.pullquote footer {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.metric-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
}

.about-card h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.about-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.about-list li {
  margin-bottom: 0.5rem;
}

.about-card-accent {
  background: linear-gradient(160deg, var(--peach-soft), var(--surface));
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.text-link:hover {
  text-decoration: underline;
}

/* Testimonials */
.testimonials .section-head {
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.testimonial figcaption {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(120deg, var(--ink) 0%, #2a3d36 50%, var(--accent-hover) 100%);
  color: color-mix(in srgb, var(--bg-elevated) 92%, white);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--surface);
}

.cta-lead {
  margin: 0;
  max-width: 42ch;
  opacity: 0.92;
}

/* Contact */
.contact-section {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-meta {
  margin-top: 2rem;
  font-style: normal;
  display: grid;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-form {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #9a3b3b;
  margin-top: 0.25rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.logo-footer {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 28ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-legal-name {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--ink);
}

.footer-legal-line,
.footer-registered-address {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer-registered-address {
  font-style: normal;
  margin-bottom: 0;
}

/* Reveal on scroll — content stays visible if JS fails; animation is progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-reveal-pending .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
  }

  .reveal {
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-delay-1 {
    transition-delay: 0.08s;
  }

  .reveal-delay-2 {
    transition-delay: 0.16s;
  }

  .reveal-delay-3 {
    transition-delay: 0.24s;
  }

  .reveal-delay-4 {
    transition-delay: 0.32s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal-pending .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Mobile nav */
@media (max-width: 799px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0 1.25rem;
    box-shadow: var(--shadow-sm);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
  }

  .nav-list a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border: none;
  }
}
