/*
  READ FIRST!
  Always use the variables! Always! Use the CSS variables defined in :root for colors, spacing,
  radii, shadows, and layout.
  Always write expanded css code!!
*/
:root {
  --bg: #f8f8f8;
  --white: #ffffff;
  --black: #222222;
  --gray: #7b7b7b;
  --accent: #FA4529;
  --font-sans: Roboto, system-ui, -apple-system, Segoe UI, Inter, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-serif: "Ledger", Georgia, "Times New Roman", serif;
  --maxw: 1200px;

}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 14px;
}

/* Layout */
.page-container {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* Navbar */
.site-navbar {
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr auto;
  align-items: center;
  background: transparent;
  color: var(--black);
  font-family: var(--font-sans);
  padding: 2rem 0;
}

.site-navbar a {
  color: var(--black);
  text-decoration: none;
}

/* Global link hover: left-to-right color fill (no underline) */
a {
  text-decoration: none;
  /* Two layers: accent grows over black from left to right */
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--black), var(--black));
  background-repeat: no-repeat;
  background-position: left;
  background-size: 0% 100%, 100% 100%;
  -webkit-background-clip: text, text;
  background-clip: text, text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: background-size 250ms ease;
}

a:hover,
a:focus-visible {
  /* Remove black base so accent has no underlay where it has filled */
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(transparent, transparent);
  background-size: 100% 100%, 100% 100%;
}

.navbar-logo {
  justify-self: start;
  /* Neutralize global link gradient/text-clip for image-only logo link */
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.navbar-logo:hover,
.navbar-logo:focus-visible {
  /* Keep logo neutral on hover/focus; do not apply global text gradient */
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.navbar-logo img {
  height: 42px;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  display: inline-block;
}

.navbar-links li + li {
  margin-left: 16px;
}

.navbar-cta {
  justify-self: end;
  text-decoration: none;
  border-bottom: 1px dotted rgba(123, 123, 123, 0.8);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}



.navbar-cta .material-icons {
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

/* Hero and stats styles */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 3rem;
  padding: 2rem 0 0;
}

.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  overflow: hidden;
}

/* Keep left content clear of the absolute image panel without using padding */
.hero-left {
  margin-right: 48%;
  position: relative;
  padding-bottom: 4rem; /* reserve space for the pinned scroll link */
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 0 0 1.5rem 0;
}

.hero-rows {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2rem 0;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  justify-items: start;
}

.hero-row {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-row-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.hero-row-text {
  margin: 0;
  color: var(--gray);
}

.hero-stats {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0;
  padding: 1rem 0.3rem;
}

.hero-stats .stat:first-child {
  padding-right: 5rem;
}

.stat {
  display: grid;
  align-content: start;
}

.hero-stats .stat-text {
  grid-column: 1 / -1;
}

/* Middle row centered */
.stat-text {
  align-self: center;
  padding: 0;
  margin: 0;
  justify-self: start;
  width: fit-content;
}

.stat-title {
  font-size: 20rem;
  font-weight: 200;
  padding: 0;
  margin: 0;
  line-height: 0.9;
  /* Nudge left to counter font sidebearing */
  margin-left: -0.09em;
  font-family: var(--font-serif);
}

.stat-subtitle {
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--gray);
  padding: 0;
  width: 75%;
}

.stat-number {
  font-size: 4rem;
  font-weight: 200;
  line-height: 1;
}

.stat-number .plus {
  font-size: 0.55em;
  line-height: 1;
  vertical-align: text-top;
  position: relative;
  top: 0.3rem;
  display: inline-block;
  margin-right: 0.15em;
}

.stat-label {
  color: var(--gray);
  margin-top: 0.25rem;
  font-weight: 200;
}

.scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  margin: 0;
}

.scroll-down .material-icons {
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* About section */
.about {
  padding: 10rem 0 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-col {
  align-self: start;
}

.about-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-title {
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 1rem 0;
  font-weight: 400;
  font-family: var(--font-serif);
}

.section-desc {
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--gray);
  padding: 0;
  width: 75%;
}

.about-arrow {
  display: block;
  margin-top: auto;
  width: 300px;
  height: auto;
  align-self: center;
  opacity: 0.5;
}

.about-middle .about-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.about-icon .material-icons {
  font-size: 5rem;
  color: var(--gray);
  line-height: 1;
}

.about-title .section-title,
.about-middle .section-title {
  margin: 0;
  font-weight: 400;
}

.about-text p {
  font-size: 1.3rem;
  font-weight: 200;
  color: var(--gray);
  padding: 0;
}

.about-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-right .about-image {
  width: 50%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.about-meta {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.25rem;
  color: var(--gray);
  font-weight: 300;
}

.about-right .about-meta {
  margin-top: auto;
}

.about-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Meta rows: 2-column layout (icon left, text right) */
.about-meta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  column-gap: 1.2rem;
  row-gap: 1rem;
  margin-bottom: 1rem;
}

.about-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1;
}

.about-meta-text {
  color: var(--black);
  font-weight: 200;
  line-height: 1.5;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Right column image: centered */
.about-right .about-image {
  margin: 0 auto;
}

.about-image-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--white);
  font-size: 1.3rem;
  color: var(--black);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Extra about-me grid (4 cells, 2x2) */
.about-me-grid {
  padding: 0 0 5rem 0;
}

.about-4grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-4cell {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-4cell:nth-child(1),
.about-4cell:nth-child(2) {
  padding: 3.5rem;
}

/* vertical middle divider: only between the two columns */
.about-4cell:nth-child(1),
.about-4cell:nth-child(3) {
  padding: 3.5rem;
}

.about-4title {
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 0.3rem 0;
  font-weight: 400;
  text-align: center;
  font-family: var(--font-serif);
}

.about-4text {
  font-size: 1.3rem;
  font-weight: 200;
  color: var(--gray);
  padding: 0;
  text-align: center;
  line-height: 1.7;
}

.providers {
  padding: 5rem 0 4rem 0;
}

.providers-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.providers-badge {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.providers-title {
  margin: 0 auto 1rem auto;
  font-size: 2.4rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: var(--font-serif);
}

.providers-desc {
  margin: 0 auto 2.5rem auto;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
  max-width: 800px;
}

/* Generic text block helpers (badge, title, body) */
.text-block-badge {
  font-size: 1.1rem;
  color: var(--gray);
  margin: 1.5rem 0;
  font-weight: 300;
}

.text-block-title {
  margin: 0 auto 1.2rem auto;
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
  font-family: var(--font-serif);
  width: 70%;
}

.text-block-body {
  margin: 1.5rem auto 1.8rem auto;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
  max-width: 70%;
}

.text-block-lists {
  margin-top: 2.5rem;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.text-block-list {
  padding: 0;
  margin: 1rem 1.5rem;
  display: inline-block;
  color: var(--black);
}

.text-block-list li {
  display: inline;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--black);
  margin-right: 0.8rem;
  position: relative;
}

.text-block-list li::before {
  content: "✓";
  display: inline-block;
  margin-right: 0.35rem;
  color: green;
}


.providers-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.providers-logo-item img {
  display: block;
  max-width: 100px;
  width: auto;
  opacity: 0.8;
}

/* CTA banner under About */
.cta-banner {
  padding: 0 0 5rem 0;
}

.cta-banner-inner {
  background: #f5f5f5;
  color: var(--black);
  padding: 3rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.cta-banner-title {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: var(--font-serif);
}

.cta-banner-text {
  margin: 0 0 1.75rem 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
}

.cta-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  background: var(--black);
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  color: var(--bg);
  /* Override global link gradient/text-clip so the label is visible */
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.cta-banner-button:hover,
.cta-banner-button:focus-visible {
  background: #d33920;
}

/* Dark variant of CTA banner */
.cta-banner--dark .cta-banner-inner {
  background: var(--black);
  color: var(--white);
}

.cta-banner--dark .cta-banner-title {
  color: var(--white);
}

.cta-banner--dark .cta-banner-text {
  color: var(--white);
}

.cta-banner--dark .cta-banner-button--white {
  border-color: rgba(255, 255, 255, 0.4);
}

/* White variant of CTA banner button */
.cta-banner-button--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Override global link gradient/text-clip so the label is visible */
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.cta-banner-button--white:hover,
.cta-banner-button--white:focus-visible {
  background: #f0f0f0;
}

.cta-banner-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cta-banner-image {
  max-width: 70%;
  height: auto;
  display: block;
}


/* recent work section */

.recent-work {
  padding: 5rem 0 6rem 0;
}

.recent-work-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.recent-work-badge {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

.recent-work-title {
  margin: 0 auto;
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: var(--font-serif);
  width: 65%;
}

.recent-work-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem;
}

.recent-work-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 2rem;
}

.recent-work-item:first-child {
  margin-top: 10rem;
}

.recent-work-item-name {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

.recent-work-item-title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 400;
  font-family: var(--font-serif);
}

.recent-work-item-title a {
  color: inherit;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.recent-work-item-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.recent-work-item-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.recent-work-item-image-wrap a {
  display: block;
  position: relative;
}

.recent-work-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 180ms ease-out;
  z-index: 1;
}

.recent-work-image-overlay .material-icons {
  color: var(--bg);
  font-size: 2rem;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.recent-work-item-image-wrap a:hover .recent-work-image-overlay,
.recent-work-item-image-wrap a:focus-visible .recent-work-image-overlay {
  opacity: 1;
}

.recent-work-item-desc {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--gray);
}

.reviews {
  padding: 6rem 0 6rem 0;
}

.reviews-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reviews-content {
  transition: transform 250ms ease, opacity 250ms ease;
}

.reviews-content.is-exiting {
  opacity: 0;
  transform: translateX(-20px);
}

.reviews-content.is-entering {
  opacity: 0;
  transform: translateX(20px);
}

.reviews-client {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.reviews-client-name {
  font-size: 1.2rem;
  font-weight: 400;
  font-family: var(--font-serif);
}

.reviews-client-role {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 200;
}

.reviews-quote {
  margin: 2rem 0 2.5rem 0;
  font-size: 1.8rem;
  line-height: 1.6;
  font-weight: 300;
  font-family: var(--font-serif);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.reviews-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  border: none;
  background: #d0d0d0;
  padding: 0;
  cursor: pointer;
}

.reviews-dot.is-active {
  background: var(--black);
}

.faq {
  padding: 6rem 0 6rem 0;
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 4.5rem;
}

.faq-badge {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

.faq-title {
  margin: 0 auto;
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: var(--font-serif);
  width: 65%;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  gap: 5rem;
}

.faq-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-side-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 400;
  font-family: var(--font-serif);
}

.faq-side-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  max-width: 65%;
}

.faq-side-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-right {
  display: flex;
  flex-direction: column;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.75rem;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 0 0.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--gray);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.faq-item.is-open .faq-answer {
  max-height: 250px;
  opacity: 1;
}

.faq-answer p {
  margin: 1rem 0 0 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
  width: 80%;
}

.footer-cta {
  padding: 6rem 0 6rem 0;
}

.footer-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.footer-cta-badge {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 300;
}

.footer-cta-title {
  margin: 0 auto;
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: var(--font-serif);
  width: 65%;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-footer-brand {
  font-weight: 500;
  margin-right: 0.5rem;
}

.site-footer-text {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

