:root {
  --color-ink: #161225;
  --color-muted: #5d6070;
  --color-indigo: #3f3193;
  --color-indigo-deep: #20135c;
  --color-red: #c53a46;
  --color-gold: #d9a84f;
  --color-teal: #2d8f89;
  --color-cloud: #f6f7fb;
  --color-paper: #fffaf3;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(24, 18, 55, 0.14);
  --shadow-line: 0 1px 0 rgba(25, 23, 47, 0.08);
  --radius: 8px;
  --header-height: 78px;
  --sidebar-width: 286px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--color-muted);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-indigo-deep);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25, 23, 47, 0.07);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(24, 18, 55, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand img,
.footer-brand img {
  width: 172px;
  height: auto;
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.menu,
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #312f3d;
  font-size: 0.91rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--color-red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(25, 23, 47, 0.16);
  border-radius: 6px;
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-indigo-deep);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-anchor {
  scroll-margin-top: var(--header-height);
}

.hero-section {
  position: relative;
  min-height: calc(88svh - var(--header-height));
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-ink);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 27%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.hero-slider,
.hero-slide,
.hero-slide::before {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: -2;
}

.hero-slide {
  opacity: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 800ms ease;
}

.hero-slide::before {
  content: "";
  background: linear-gradient(90deg, rgba(16, 11, 44, 0.88) 0%, rgba(34, 22, 77, 0.7) 40%, rgba(34, 22, 77, 0.2) 78%);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 138px) 0 clamp(80px, 8vw, 116px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--color-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: #ffd98d;
}

.hero-content h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.3vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffd98d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 14px 32px rgba(197, 58, 70, 0.3);
}

.button-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline {
  width: fit-content;
  color: var(--color-indigo-deep);
  border-color: rgba(63, 49, 147, 0.26);
  background: var(--color-white);
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - 1120px) / 2));
  bottom: 28px;
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  color: var(--color-white);
  background: rgba(22, 18, 37, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-meta a {
  font-weight: 700;
  font-size: 0.92rem;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-light {
  background: var(--color-white);
}

.section-ink {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(32, 19, 92, 0.98), rgba(22, 18, 37, 0.98)),
    linear-gradient(90deg, rgba(197, 58, 70, 0.18), rgba(45, 143, 137, 0.2));
}

.section-ink p {
  color: rgba(255, 255, 255, 0.75);
}

.section-grid,
.section-heading,
.feature-grid,
.service-grid,
.contact-layout,
.why-layout,
.testimonial-grid,
.blog-grid,
.footer-inner,
.content-wrap {
  width: var(--container);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.section h2,
.content-wrap h1 {
  color: var(--color-ink);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-ink h2,
.section-ink h3 {
  color: var(--color-white);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading.centered {
  text-align: center;
}

.text-stack p {
  font-size: 1.06rem;
}

.section-image,
.contact-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-cloud);
  border: 1px solid rgba(25, 23, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.section-image img,
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-image {
  aspect-ratio: 9 / 7;
}

.section-image-dark {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.contact-image {
  max-width: 470px;
  margin-top: 26px;
  aspect-ratio: 9 / 6;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.why-layout .feature-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.service-grid,
.blog-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.blog-card,
.contact-form {
  border-radius: var(--radius);
  box-shadow: var(--shadow-line);
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-number {
  display: inline-block;
  margin-bottom: 34px;
  color: #ffd98d;
  font-weight: 900;
}

.feature-card h3,
.service-card h3,
.blog-card h3,
.blog-card h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card {
  overflow: hidden;
  min-height: 100%;
  background: var(--color-white);
  border: 1px solid rgba(25, 23, 47, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(197, 58, 70, 0.24);
}

.service-card h3 {
  color: var(--color-indigo-deep);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-cloud);
}

.service-card-body {
  padding: 24px;
}

.testimonials-section {
  background: var(--color-paper);
}

.testimonial-grid {
  width: 100%;
  display: grid;
  gap: 18px;
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid rgba(25, 23, 47, 0.08);
  box-shadow: var(--shadow-line);
}

.testimonial-card p {
  margin-bottom: 18px;
  color: #353142;
  font-size: 1.05rem;
}

.testimonial-card strong {
  color: var(--color-indigo-deep);
}

.inner-hero {
  padding: calc(var(--header-height) + clamp(64px, 8vw, 108px)) 0 clamp(64px, 8vw, 108px);
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(16, 11, 44, 0.88), rgba(34, 22, 77, 0.62)),
    url("../photos/testimonials.jpg") center / cover;
}

.inner-hero-content,
.testimonial-page-grid {
  width: var(--container);
  margin: 0 auto;
}

.inner-hero-content {
  max-width: 850px;
}

.inner-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.8vw, 5.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.inner-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.testimonial-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.large-testimonial {
  min-height: 250px;
}

.testimonials-cta {
  background: var(--color-paper);
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(246, 247, 251, 0.96)),
    linear-gradient(90deg, rgba(45, 143, 137, 0.16), rgba(217, 168, 79, 0.14));
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy > p {
  max-width: 650px;
  font-size: 1.05rem;
}

.contact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 4px solid var(--color-red);
}

.contact-list strong {
  color: var(--color-indigo-deep);
}

.contact-list span,
.contact-list a {
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--color-white);
  border: 1px solid rgba(25, 23, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--color-ink);
  font: inherit;
  border: 1px solid rgba(25, 23, 47, 0.16);
  border-radius: 6px;
  background: var(--color-white);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(63, 49, 147, 0.18);
  border-color: var(--color-indigo);
}

.contact-form .button {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.blog-card {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(25, 23, 47, 0.08);
  box-shadow: 0 16px 34px rgba(25, 23, 47, 0.08);
}

.blog-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-cloud);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-date {
  margin-bottom: 12px;
  color: var(--color-red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card a:hover,
.blog-card a:focus {
  color: var(--color-red);
}

.archive-section,
.content-section {
  padding-top: calc(var(--header-height) + 64px);
}

.content-wrap {
  max-width: 860px;
}

.entry-content {
  font-size: 1.06rem;
}

.entry-content a {
  color: var(--color-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-featured-image {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.site-footer {
  padding: 56px 0 28px;
  color: var(--color-white);
  background: var(--color-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(160px, 0.7fr) minmax(240px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--color-white);
  border-radius: 8px;
}

.footer-brand img {
  width: 164px;
  filter: none;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 16px;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.25;
}

.footer-column p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-column p + p {
  margin-top: 10px;
}

.footer-links,
.footer-contact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a,
.footer-contact-list a,
.footer-contact-list span {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-contact-list a:hover,
.footer-contact-list a:focus {
  color: var(--color-white);
}

.footer-contact-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-white);
  font-size: 0.86rem;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 26px;
  margin: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (min-width: 1021px) {
  html {
    scroll-padding-top: 0;
  }

  .section-anchor {
    scroll-margin-top: 0;
  }

  .skip-link {
    left: calc(var(--sidebar-width) + 16px);
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    height: 100svh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(25, 23, 47, 0.09);
    border-bottom: 0;
    box-shadow: 18px 0 44px rgba(24, 18, 55, 0.08);
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 18px 0 44px rgba(24, 18, 55, 0.08);
  }

  .header-inner {
    width: auto;
    min-height: 100%;
    margin: 0;
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 34px;
  }

  .site-brand img {
    width: 184px;
  }

  .primary-navigation {
    width: 100%;
    display: block;
  }

  .menu,
  .nav-menu {
    width: 100%;
    display: grid;
    gap: 7px;
    align-items: stretch;
  }

  .nav-menu a {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
    color: #312f3d;
    white-space: normal;
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    color: var(--color-red);
    background: var(--color-cloud);
  }

  main,
  .site-footer {
    margin-left: var(--sidebar-width);
  }

  main {
    min-height: 100svh;
  }

  .hero-section {
    min-height: 100svh;
  }

  .hero-meta {
    right: max(28px, calc((100% - 1120px) / 2));
  }

  .archive-section,
  .content-section {
    padding-top: 72px;
  }

  .inner-hero {
    padding-top: clamp(64px, 8vw, 108px);
  }
}

@media (max-width: 1020px) {
  :root {
    --container: min(100% - 32px, 920px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    background: var(--color-white);
    border: 1px solid rgba(25, 23, 47, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }

  .menu-open .primary-navigation {
    display: block;
  }

  .nav-menu {
    display: grid;
    gap: 4px;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 0 8px;
  }

  .hero-slide {
    background-position: 62% center;
  }

  .hero-content {
    padding-top: clamp(70px, 12vw, 110px);
  }

  .hero-meta {
    left: 16px;
    right: 16px;
    justify-content: center;
  }

  .two-column,
  .contact-layout,
  .why-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .testimonial-page-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
    --container: min(100% - 26px, 560px);
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .site-brand img,
  .footer-brand img {
    width: 138px;
  }

  .hero-section {
    min-height: calc(84svh - var(--header-height));
  }

  .hero-slide {
    background-position: 70% center;
  }

  .hero-content {
    padding-bottom: 106px;
  }

  .hero-content h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 17vw, 4.4rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-dots {
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    bottom: 18px;
    text-align: center;
  }

  .section {
    padding: 58px 0;
  }

  .section h2,
  .content-wrap h1 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  .feature-grid,
  .why-layout .feature-grid,
  .service-grid,
  .testimonial-page-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .service-card {
    min-height: auto;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-image {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
