/* Prestij Ajans - shared stylesheet. No external requests: fonts are local. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Russo One";
  src: url("../fonts/RussoOne.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red-dark: #7a0f12;
  --red-light: #f0555a;
  --charcoal: #2b2b2b;
  --gray: #8a8a8a;
  --gray-light: #ededed;
  --white: #ffffff;
  --radius: 0.5rem;
  --container: 72rem;
  --font-text: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-label: "Russo One", "Montserrat", system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-label);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--charcoal);
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 46rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--red-dark);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-light);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-block;
  flex-shrink: 0;
}

.brand img {
  width: 150px;
  height: auto;
  aspect-ratio: 1146 / 420;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Touch targets >= 44px for standalone links (inline text links are exempt) */
.site-nav a,
.link-list a,
.site-footer li a,
.card > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-nav a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--red-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav .nav-cta a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--red-dark);
  color: var(--white);
  text-decoration: none;
}

.site-nav .nav-cta a:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Language switcher */
.nav-lang a {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
}

.nav-lang a:hover,
.nav-lang a[aria-current="page"] {
  border-color: var(--red-dark);
  color: var(--red-dark);
  text-decoration: none;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--red-dark);
  border-radius: var(--radius);
  background: var(--red-dark);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  color: var(--red-dark);
}

.button-secondary:hover {
  background: var(--white);
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sections */
main {
  display: block;
}

.section {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.section + .section {
  border-top: 1px solid var(--gray-light);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  max-width: 44rem;
}

/* Eyebrow variant for use on the dark CTA band (red-dark fails contrast there) */
.eyebrow-invert {
  color: var(--gray-light);
}

/* Hero with brand stripes (CSS only, no image weight) */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -6rem;
  width: 22rem;
  height: 2.2rem;
  transform: rotate(35deg);
  transform-origin: center;
  pointer-events: none;
}

.hero::before {
  background: var(--red-dark);
}

.hero::after {
  top: 0.4rem;
  right: -8rem;
  background: var(--red-light);
}

.hero .container {
  position: relative;
}

@media (max-width: 40rem) {
  .hero::before,
  .hero::after {
    width: 12rem;
    height: 1.1rem;
    top: -2rem;
    right: -4rem;
  }

  .hero::after {
    top: -0.2rem;
    right: -5rem;
  }
}

/* Hero entrance animation (Ana Plan 3.5 pilot, chosen 2026-09-27): transform/
   opacity only. When prefers-reduced-motion is set, the global rule further
   down this file removes the animation entirely, and these elements fall
   back to their default (fully visible, untransformed) state -- no extra
   override needed. */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim > * {
  animation: heroFadeUp 0.6s ease-out both;
}

.hero-anim > *:nth-child(1) { animation-delay: 0s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.08s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.16s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.24s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.32s; }

/* Centered, single-column, editorial hero with a large, very faint dragon
   watermark instead of a side illustration (Ana Plan 3.5, chosen 2026-09-27). */
.hero-centered {
  text-align: center;
}

.hero-centered .container {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero-centered h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
}

.hero-centered .lead {
  margin-inline: auto;
}

.hero-centered .actions {
  justify-content: center;
}

.hero-centered-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 40rem);
  opacity: 0.05;
  pointer-events: none;
}

.hero-trust-inline {
  margin: 1.5rem 0 0;
  color: var(--charcoal);
  font-size: 0.9rem;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

/* Balanced 5-card grid: tablet 2+2+1 (last full width), desktop 3+2 on a 6-unit grid */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-5 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .grid-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .grid-5 > * {
    grid-column: span 2;
  }

  .grid-5 > :nth-child(n + 4) {
    grid-column: span 3;
  }
}

.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--red-dark);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--red-dark);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card > a {
  gap: 0.35rem;
  font-weight: 600;
}

.link-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.card > a:hover .link-arrow {
  transform: translateX(3px);
}

/* Icon badge used inside service and principle cards: light tint circle, red-dark
   line icon. Consistent 1.75px stroke across all inline SVGs (see markup). */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(122, 15, 18, 0.08);
  color: var(--red-dark);
  flex-shrink: 0;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Principle cards: icon-and-text row with a left accent instead of the services
   cards' top accent, so the two card groups read as related but distinct. */
.card-icon-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--gray-light);
  border-left: 4px solid var(--red-dark);
}

.card-icon-row .card-icon {
  margin-bottom: 0;
}

.card-icon-row > div {
  min-width: 0;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  min-width: 0;
  padding-top: 3.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--red-dark);
  border-radius: 50%;
  font-family: var(--font-label);
  font-size: 1rem;
  color: var(--red-dark);
  background: var(--white);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

/* Service detail */
.service {
  scroll-margin-top: 1rem;
}

/* Service detail panel: reuses the red-accent + icon badge language from the
   homepage cards so each service keeps a consistent identity on the detail
   page (same icon as its homepage card, left red stripe like the principle
   cards). */
.service-panel {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--red-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
}

.service-panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.service-panel-head > div {
  min-width: 0;
}

.service-panel-head .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-panel-head h2 {
  margin-bottom: 0;
}

.service-panel-head .eyebrow {
  margin-bottom: 0.1rem;
}

.service dl {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.service dt {
  font-family: var(--font-label);
  color: var(--red-dark);
}

.service dd {
  margin: 0.25rem 0 0;
}

.service dd ul {
  margin: 0;
  padding-left: 1.25rem;
}

/* Callout / note */
.note {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--red-light);
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.draft-note {
  padding: 1rem 1.25rem;
  border: 2px dashed var(--red-dark);
  border-radius: var(--radius);
  font-weight: 600;
}

.placeholder {
  background: #fff3c4;
  color: var(--charcoal);
  padding: 0 0.25em;
  border-radius: 2px;
}

/* FAQ with native details/summary (no JS) */
.faq details {
  border-bottom: 1px solid var(--gray-light);
  padding-block: 0.3rem;
}

.faq summary {
  padding-block: 0.6rem;
  cursor: pointer;
  font-weight: 700;
}

.faq summary:hover {
  color: var(--red-dark);
}

.faq details p {
  margin: 0.6rem 0 0;
}

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
}

.cta-band .container {
  max-width: 40rem;
  text-align: center;
}

.cta-band .actions {
  justify-content: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band a:not(.button) {
  color: var(--white);
}

.cta-band .button {
  background: var(--white);
  border-color: var(--white);
  color: var(--red-dark);
}

.cta-band .button:hover {
  background: var(--gray-light);
  border-color: var(--gray-light);
  color: var(--charcoal);
}

/* Contact */
.contact-email {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li + li {
  margin-top: 0.1rem;
}

/* Method panel: framed callout around the "we practice what we preach" section,
   so the proof-of-work links read as a distinct, trustworthy block. */
.method-panel {
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--red-light);
  border-radius: var(--radius);
  background: var(--gray-light);
}

.method-panel > p:first-child {
  margin-top: 0;
}

.method-panel .link-list {
  margin-top: 1rem;
}

.method-panel .link-list a {
  gap: 0.4rem;
  font-weight: 600;
}

/* Legal pages */
.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: 0.6rem;
  border: 1px solid var(--gray-light);
  text-align: left;
  vertical-align: top;
}

.table-wrap {
  overflow-x: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
  align-items: center;
}

.about-grid img {
  width: 100%;
  max-width: 20rem;
  justify-self: center;
}

/* 404 */
.not-found {
  text-align: center;
}

.not-found img {
  width: 10rem;
  margin: 0 auto 1.5rem;
  opacity: 0.15;
}

.not-found .actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  position: relative;
  padding-block: 2.5rem;
  border-top: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem;
}

.site-footer .brand img {
  width: 130px;
}

.site-footer h2 {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-dark);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  color: var(--charcoal);
}

.site-footer a:hover {
  color: var(--red-dark);
}

.site-footer .email-link {
  overflow-wrap: anywhere;
}

.copyright {
  margin: 2rem 0 0;
  color: var(--charcoal);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Packages (2026-09-29): four tiers, each building on the previous one. The two
   middle tiers are the ones we recommend, so they carry the accent border, a
   badge and the solid button; the outer tiers use the secondary button. */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.75rem 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--white);
}

.package.is-featured {
  border: 2px solid var(--red-dark);
  box-shadow: 0 12px 28px rgba(122, 15, 18, 0.12);
}

.package-badge {
  position: absolute;
  top: 0;
  left: 1.5rem;
  transform: translateY(-50%);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-tier {
  margin-bottom: 0.25rem;
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.package h3 {
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.package-tag {
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.package-for {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

.package-items {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.package-items li {
  position: relative;
  padding-left: 1.6rem;
}

.package-items li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.4em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--red-dark);
  border-bottom: 2px solid var(--red-dark);
  transform: rotate(-45deg);
}

.package-cta {
  margin-top: auto;
  text-align: center;
}

.packages-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
  align-items: start;
}

.packages-foot h3 {
  margin-bottom: 0.4rem;
}

.packages-foot .note p:last-child {
  margin-bottom: 0;
}

.first-step {
  margin-top: 0;
}

.first-step .eyebrow {
  margin-bottom: 0.4rem;
}

/* Homepage package teaser */
.package-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.package-strip li {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
}

.package-strip li.is-featured {
  border: 2px solid var(--red-dark);
}

.package-strip strong {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 1.1rem;
}

.package-strip span {
  font-size: 0.95rem;
}

.package-strip em {
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media print {
  .site-nav,
  .skip-link,
  .hero::before,
  .hero::after,
  .cta-band {
    display: none;
  }
}
