/* ==========================================================================
   Running Dog Media — brand palette drawn from the logo:
   navy #0E2A47 · teal #2E7D96 · cyan #43B8D8 · rust #C2691F · off-white #F7FAFC
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a2038;
  --teal: #2e7d96;
  --cyan: #43b8d8;
  --cyan-soft: #d9f0f8;
  --rust: #c2691f;
  --rust-dark: #a5541a;
  --ink: #1c2b3a;
  --muted: #52657a;
  --bg: #f7fafc;
  --bg-alt: #edf4f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 12px 40px rgba(14, 42, 71, 0.14);
  --font-head: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

h2 em, h1 em { font-style: normal; color: var(--rust); }

.accent { color: var(--rust); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--cyan); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-head--light h2 { color: var(--white); }
.section-head--light .section-sub { color: #b6cddc; }

section { padding: 88px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(194, 105, 31, 0.35);
}
.btn--primary:hover {
  background: var(--rust-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 105, 31, 0.4);
}
.btn--ghost {
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 20px; font-size: 0.85rem; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav__mark { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(14, 42, 71, 0.2)); }
.nav__wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav__wordmark em { font-style: normal; color: var(--teal); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.nav__links a:not(.btn):hover { color: var(--teal); }
.nav__toggle { display: none; background: none; border: none; }
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(67, 184, 216, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(46, 125, 150, 0.1), transparent 50%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__ctas .btn { padding-left: 24px; padding-right: 24px; }
.hero__note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.hero__art img { filter: drop-shadow(0 18px 32px rgba(14, 42, 71, 0.22)); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 42, 71, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Pain ---------- */
.pain { background: var(--bg-alt); }
.pain__bridge {
  text-align: center;
  max-width: 720px;
  margin: 48px auto 0;
  font-size: 1.12rem;
  color: var(--ink);
}

/* ---------- Services (dark) ---------- */
.services {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(67, 184, 216, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.card--service { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
.card--service:hover { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
.card--service h3 { color: var(--white); font-size: 1.3rem; }
.card--service p { color: #b6cddc; }
.card--service em { color: var(--cyan); font-style: normal; }
.card--service ul { margin-top: 16px; padding-left: 2px; list-style: none; }
.card--service li {
  color: #d3e3ee;
  font-size: 0.94rem;
  padding: 5px 0 5px 26px;
  position: relative;
}
.card--service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rust);
  clip-path: polygon(20% 45%, 40% 65%, 80% 25%, 90% 35%, 40% 85%, 10% 55%);
}
.card__icon--teal {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(67, 184, 216, 0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon--teal svg { width: 28px; height: 28px; }

/* ---------- Who ---------- */
.who__fit {
  margin: 0 auto 48px;
  background: var(--white);
  border-left: 5px solid var(--rust);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 32px;
  max-width: 820px;
  font-size: 1.05rem;
}
.who__lead {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 26px;
}

/* ---------- How (dark) ---------- */
.how {
  background:
    radial-gradient(ellipse at 85% 90%, rgba(67, 184, 216, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px 28px 30px;
  position: relative;
}
.step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--rust);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(194, 105, 31, 0.4);
}
.step h3 { color: var(--white); margin-bottom: 10px; }
.step p { color: #b6cddc; font-size: 0.97rem; }
.step em { color: var(--cyan); font-style: normal; }

/* ---------- Results / case ---------- */
.results { background: var(--bg-alt); }
.case {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 880px;
  margin: 0 auto;
}
.case__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--cyan-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.case h3 { font-size: 1.45rem; margin-bottom: 22px; color: var(--navy); }
.testimonial {
  border-left: 4px solid var(--cyan);
  padding: 4px 0 4px 24px;
}
.testimonial p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.about__photo img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__copy p { margin-bottom: 16px; color: var(--muted); }
.about__copy p strong { color: var(--ink); }
.about__link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.about__link:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq__list { max-width: 780px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 42, 71, 0.05);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 20px 52px 20px 24px;
  position: relative;
  transition: color 0.15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--teal); }
.faq__item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Contact (dark) ---------- */
.contact {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(67, 184, 216, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}
.contact__book, .contact__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 38px 34px;
}
.contact__book h3, .contact__form h3 { color: var(--white); margin-bottom: 10px; }
.contact__book p { color: #b6cddc; margin-bottom: 24px; }
.contact__alt { margin-top: 22px; font-size: 0.92rem; }
.contact__alt a { color: var(--cyan); }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d3e3ee;
  margin-bottom: 6px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #7e97ab; }
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--cyan);
  border-color: transparent;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__logo {
  width: 240px;
  border-radius: 10px;
}
.footer__meta { text-align: right; color: #b6cddc; font-size: 0.95rem; }
.footer__fine { margin-top: 12px; font-size: 0.8rem; color: #6d8499; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__art { order: -1; max-width: 480px; margin: 0 auto; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { width: 300px; max-width: 100%; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .case { padding: 32px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(14, 42, 71, 0.1);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.is-open { display: flex; }
}
