/* ============================================================
   Influendoo — Web Development & Creative Studio
   Flat color system: solid violet primary, coral micro-accents.
   ============================================================ */

:root {
  --violet: #6C2BD9;
  --violet-dark: #4A1D96;
  --violet-deep: #2A1052;
  --coral: #FF6B4A;
  --coral-text: #D2451F;
  --ink: #1E1633;
  --body: #4B4560;
  --muted: #7C7691;
  --bg: #FFFFFF;
  --bg-soft: #F7F5FA;
  --line: #E7E2F0;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 6px 24px rgba(42, 16, 82, 0.07);
  --shadow-lg: 0 16px 44px rgba(42, 16, 82, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.28rem; }

p + p { margin-top: 1em; }

a { color: var(--violet); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--violet-dark); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Accent word in headings: solid violet with a coral underline */
.accent-text {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
}
.btn-primary:hover { background: var(--violet-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--violet);
  border-color: var(--violet);
}
.btn-ghost:hover { background: var(--violet); color: #fff; }

/* Button used on dark violet blocks */
.btn-light {
  background: #fff;
  color: var(--violet-dark);
}
.btn-light:hover { background: var(--bg-soft); color: var(--violet-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--violet);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}
.logo span.dot { color: var(--coral); }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a:hover { color: var(--violet); }
.main-nav .btn { padding: 0.55rem 1.4rem; font-size: 0.92rem; min-height: 40px; }
.main-nav .btn::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 5rem;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  background: #F1EAFC;
  border: 1px solid #DCCEF6;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.hero p.lead {
  font-size: 1.18rem;
  margin: 1.4rem 0 2.2rem;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
}
.hero-stats .stat span { font-size: 0.9rem; color: var(--muted); }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* ---------- Photos ---------- */
.photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.prose .photo { margin: 2rem 0; }
figure.photo-figure { margin: 2rem 0; }
figure.photo-figure .photo { margin: 0; }
figure.photo-figure figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-soft); }

.section-head { max-width: 44rem; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card h3 { margin: 1.1rem 0 0.6rem; }
.card p { font-size: 0.98rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--violet);
  display: block;
  margin-bottom: 0.6rem;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.94rem; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card .work-media { background: var(--bg-soft); }
.work-card img { width: 100%; height: auto; }
.work-card .work-body { padding: 1.6rem 1.7rem 1.8rem; }
.work-card .work-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.tag {
  font-size: 0.74rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-dark);
  background: #F1EAFC;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.tag.coral { color: var(--coral-text); background: #FFE7DF; }
.work-card h3 { margin-bottom: 0.45rem; }
.work-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.work-result strong { color: var(--coral-text); font-family: var(--font-display); }

/* ---------- Tech stack ---------- */
.stack-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.stack-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 3px 10px rgba(42, 16, 82, 0.05);
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.quote-card blockquote { font-size: 1rem; color: var(--body); font-style: italic; }
.quote-card .quote-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.avatar.alt { background: var(--coral-text); }
.avatar.alt2 { background: var(--violet-deep); }
.quote-author strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 0.95rem; }
.quote-author span { font-size: 0.84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--violet-deep);
  color: #fff;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 0.9rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 2rem; font-size: 1.12rem; color: #D8CFF2; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: 4.5rem 0 3.8rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero p.lead { font-size: 1.16rem; max-width: 42rem; margin-top: 1.2rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.3rem;
  list-style: none;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--violet); }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.6rem 0 1rem; font-size: 1.65rem; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose ul, .prose ol { margin: 1.1rem 0 1.1rem 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--coral); }
.prose blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--coral);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--ink);
}
.prose strong { color: var(--ink); }

/* ---------- Service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.service-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.6rem; }
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.aside-card h3 { font-size: 1.08rem; margin-bottom: 0.9rem; }
.aside-card ul { list-style: none; }
.aside-card li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.aside-card li:last-child { border-bottom: none; }
.aside-card li a { color: var(--body); display: block; }
.aside-card li a:hover { color: var(--violet); }
.aside-card.cta {
  background: var(--violet-deep);
  color: #D8CFF2;
  border: none;
  text-align: center;
}
.aside-card.cta h3 { color: #fff; }
.aside-card.cta p { font-size: 0.92rem; margin-bottom: 1.2rem; }

.check-list { list-style: none; margin: 1.4rem 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.36em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--violet);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow);
}
.team-card .avatar { width: 84px; height: 84px; margin: 0 auto 1.1rem; font-size: 1.5rem; }
.team-card h3 { font-size: 1.08rem; }
.team-card .role { color: var(--coral-text); font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; display: block; margin: 0.25rem 0 0.7rem; }
.team-card p { font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(108, 43, 217, 0.12);
  background: #fff;
}
.form-group textarea { min-height: 130px; resize: vertical; }

.contact-info-card {
  background: var(--violet-deep);
  color: #D8CFF2;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { color: #fff; margin-bottom: 1rem; }
.contact-info-card ul { list-style: none; margin-top: 1.4rem; }
.contact-info-card li { padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 0.8rem; align-items: baseline; }
.contact-info-card li:last-child { border-bottom: none; }
.contact-info-card strong { color: #fff; font-family: var(--font-display); min-width: 92px; display: inline-block; }
.contact-info-card a { color: #FFB39F; }
.contact-info-card a:hover { color: #fff; }

/* ---------- Blog index ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .post-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--violet); }
.post-card p { font-size: 0.94rem; flex: 1; }
.post-card .card-link { margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }

/* ---------- Blog post (3-column layout) ---------- */
.post-hero { padding: 3.6rem 0 2.6rem; }
.post-hero .post-meta { color: var(--muted); font-size: 0.92rem; margin-top: 1.1rem; }
.post-hero .post-meta span + span::before { content: "•"; margin: 0 0.6rem; color: var(--coral); }

.post-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  border: 1px solid var(--line);
}
.post-featured img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

.post-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.toc h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.toc ol { list-style: none; }
.toc li { margin-bottom: 0.2rem; }
.toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--body);
  padding: 0.42rem 0.7rem;
  border-radius: 9px;
  border-left: 2.5px solid transparent;
  line-height: 1.4;
}
.toc a:hover { color: var(--violet); background: var(--bg-soft); }
.toc a.active {
  color: var(--violet);
  background: var(--bg-soft);
  border-left-color: var(--coral);
  font-weight: 600;
}

.post-cta-col { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.post-cta-card {
  background: var(--violet-deep);
  color: #D8CFF2;
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.post-cta-card h3 { color: #fff; margin-bottom: 0.6rem; }
.post-cta-card p { font-size: 0.92rem; margin-bottom: 1.3rem; }

.post-share-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.post-share-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.post-share-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--violet-deep);
  color: #B9AEDD;
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: #B9AEDD; font-size: 0.95rem; }
.footer-grid a:hover { color: #FFB39F; }
.footer-about p { font-size: 0.95rem; margin-top: 1rem; max-width: 20rem; }
.footer-about .logo { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
}
.footer-bottom a { color: #B9AEDD; }
.footer-bottom a:hover { color: #FFB39F; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 46rem; padding: 3.5rem 0 2rem; }
.legal-content h2 { margin: 2.2rem 0 0.8rem; font-size: 1.4rem; }
.legal-content ul { margin: 1rem 0 1rem 1.4rem; }

/* ---------- Values / about ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-split .photo { aspect-ratio: 4 / 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 640px; margin: 0 auto; aspect-ratio: 3 / 2; }
  .grid-4, .process-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Post columns stack: TOC first, article, CTA last */
  .post-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .post-cta-col { position: static; }

  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}

@media (max-width: 760px) {
  .section { padding: 3.8rem 0; }
  .hero { padding: 3.6rem 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 1.4rem 1.4rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--bg-soft); }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin-top: 1rem; justify-content: center; min-height: 44px; }

  .grid-2, .grid-3, .grid-4, .work-grid, .blog-grid,
  .process-grid, .team-grid, .values-grid,
  .contact-layout, .about-split, .form-row { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
  .footer-grid > * { min-width: 0; }
  .footer-grid a { overflow-wrap: anywhere; }

  .about-split .photo { aspect-ratio: 3 / 2; }
  .cta-band { padding: 3rem 1.6rem; }
  .hero-stats { gap: 1.6rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
