/* ==========================================================
   STYLE: section styles (one block per section)
   ========================================================== */


/* ==========================================================
   1. NAVIGATION  (fixed, Stone background)
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--background-subtle);
  transition: box-shadow var(--duration-fast) var(--ease);
}

/* Soft shadow appears after the page is scrolled (added by script.js) */
.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--border-default), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Desktop: logo left, links centered, button right */
.nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__logo {
  justify-self: start;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* On desktop the panel is invisible as a box, so its children sit in the grid */
.nav__panel {
  display: contents;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__links a {
  font-size: var(--nav-size);
  line-height: var(--nav-line);
  font-weight: 500;
  color: var(--text-light-body);
  transition: color var(--duration-fast) var(--ease);
}

.nav__links a:hover {
  color: var(--text-light-heading);
}

.nav__cta {
  justify-self: end;
}

/* Hamburger and overlay are hidden on desktop */
.nav__toggle,
.nav__overlay {
  display: none;
}


/* ==========================================================
   2. HERO  (photo background, dark overlay)
   ========================================================== */
.hero {
  position: relative;
  padding-block: var(--section-padding-y);
  background-color: #3B3836;                 /* grey placeholder until the photo is added */
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%),
    url("../assets/images/hero.jpg");        /* put your photo at assets/images/hero.jpg */
  background-size: cover;
  background-position: center;
}

.hero__content {
  max-width: 700px;
}

/* Small red line + company name */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  font-weight: 500;
  letter-spacing: var(--eyebrow-track);
  color: var(--text-dark-body);
}

.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand-primary);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--hero-size);
  line-height: var(--hero-line);
  letter-spacing: var(--hero-track);
  color: var(--text-dark-heading);
}

.hero__subtitle {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 28px;                           /* estimated from your design, please confirm */
  line-height: 36px;
  color: var(--text-dark-heading);
}

.hero__text {
  max-width: 680px;
  margin-top: var(--space-heading-to-body);
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
  color: var(--text-dark-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: var(--space-content-to-actions);
}


/* ==========================================================
   3. ABOUT SOLA  (White background)
   ========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 478px;          /* text | collage */
  gap: 48px;
  align-items: start;
}

/* spacing: heading to paragraph 24px, paragraph to paragraph 16px */
.about__text .section-title + .section-text {
  margin-top: var(--space-heading-to-body);
}

.about__text .section-text + .section-text {
  margin-top: 16px;
}

/* ----- Image collage: 1 big image + 3 small, 4 slots in total ----- */
.collage {
  --fade: 0.9s;                              /* how long one cross-fade takes */
  display: grid;
  grid-template-columns: 310fr 160fr;
  gap: 8px;
  height: 438px;
}

.collage__side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}

.collage__slot {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: var(--background-subtle);
}

.collage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade) ease-in-out;
}

.collage__img.is-active {
  opacity: 1;
}

/* Smaller screens: text on top, collage below */
@media (max-width: 1199px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .collage {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 478 / 438;
  }
}


/* ==========================================================
   4. WHAT WE DO  (Ivory background, card slider)
   ========================================================== */
.services {
  background: var(--background-main);
}

.services__head .section-text {
  max-width: 780px;
  margin-top: var(--space-heading-to-body);
}

.slider {
  margin-top: 24px;     /* + 16px card padding = 40px from the text to the images, as in your design */
}

/* The scrolling window. Swiping and arrows both move this. */
.slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;                       /* hide scrollbar (Firefox) */
}

.slider__viewport::-webkit-scrollbar {
  display: none;                               /* hide scrollbar (Chrome, Safari) */
}

.slider__track {
  display: flex;
  gap: 24px;
}

/* ----- Card ----- */
.service-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 72px) / 4);           /* 4 cards visible */
  padding: 16px;
  background: var(--background-surface);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.service-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--background-subtle);
}

.service-card__num {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  font-weight: 700;
  letter-spacing: var(--eyebrow-track);
  color: var(--brand-primary);
}

.service-card__num::after {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.service-card__title {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  letter-spacing: var(--h4-track);
  color: var(--text-light-heading);
  transition: color var(--duration-fast) var(--ease);
}

.service-card__text,
.service-card__caps {
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-light-body);
}

.service-card__text {
  margin-top: 4px;
}

/* Long capability text is cut after 3 lines with "..." (desktop and tablet) */
.service-card__caps {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* "Learn more" always sits at the bottom of the card */
.service-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--caption-size);
  line-height: var(--caption-line);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
}

/* Arrow is hidden until the card is hovered or focused */
.service-card__arrow {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.service-card:focus-within .service-card__title {
  color: var(--brand-primary);
}

.service-card:focus-within .service-card__arrow {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .service-card:hover .service-card__title {
    color: var(--brand-primary);
  }

  .service-card:hover .service-card__arrow {
    opacity: 1;
    transform: none;
  }
}

/* ----- Arrows under the slider ----- */
.slider__controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--brand-secondary);
  transition: opacity var(--duration-fast) var(--ease);
}

.slider__btn svg {
  width: 24px;
  height: 24px;
}

/* Faded at the first and last card */
.slider__btn[aria-disabled="true"] {
  opacity: 0.25;
  cursor: default;
}

/* ----- Fewer cards on smaller screens ----- */
@media (max-width: 1199px) {
  .service-card {
    flex-basis: calc((100% - 48px) / 3);       /* 3 cards */
  }
}

@media (max-width: 1023px) {
  .service-card {
    flex-basis: calc((100% - 24px) / 2);       /* 2 cards */
  }
}

@media (max-width: 767px) {
  .slider {
    margin-top: 24px;
  }

  .slider__track {
    gap: 16px;
  }

  .service-card {
    flex-basis: 100%;                          /* 1 card, swipe for the next */
  }

  .service-card__img {
    height: auto;
    aspect-ratio: 7 / 5;
  }

  /* On mobile the full capability text is shown */
  .service-card__caps {
    display: block;
    overflow: visible;
  }
}


/* ==========================================================
   5. OUR WORK  (White background, filter tabs, project grid)
   ========================================================== */
.work {
  background: var(--background-surface);
}

.work__head .section-text {
  max-width: 780px;
  margin-top: var(--space-heading-to-body);
}

/* ----- Filter tabs ----- */
.work__filters {
  display: flex;
  flex-wrap: nowrap;                           /* always ONE row, like your design */
  gap: 18px;
  margin-top: var(--space-content-to-actions);
}

.filter-btn {
  flex-shrink: 0;
  /* 31px side padding as in the design; shrinks slightly on laptops (1240px to 1439px) so all 5 tabs stay in one row */
  padding: 15px clamp(12px, calc((100vw - 1100px) / 10 - 1px), 31px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--background-surface);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-light-body);
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--brand-secondary);
  color: var(--text-light-heading);
}

/* Selected tab = red, like the primary button */
.filter-btn.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-inverse);
  font-weight: 700;
}

.filter-btn.is-active:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

/* ----- Project grid ----- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  transition: opacity 0.2s var(--ease);
}

.work__grid.is-switching {
  opacity: 0;                                  /* soft fade when filter or page changes */
}

.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 397 / 228;
  background: var(--background-subtle);
}

.work-item[hidden] {
  display: none;
}

.work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft dark fade at the bottom so the white label is readable on bright photos */
.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.work-item__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-inverse);
}

/* ----- Pagination (appears only when there are more than 9 projects) ----- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.pagination[hidden] {
  display: none;
}

.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--brand-secondary);
  transition: opacity var(--duration-fast) var(--ease);
}

.pagination__btn svg {
  width: 24px;
  height: 24px;
}

.pagination__btn[aria-disabled="true"] {
  opacity: 0.25;
  cursor: default;
}

.pagination__page span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  font-size: var(--body-small-size);
  line-height: 1;
  font-weight: 500;
  color: var(--text-light-heading);
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.pagination__page:hover span {
  border-color: var(--brand-secondary);
}

.pagination__page[aria-current="page"] span {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-inverse);
}

/* ----- Small laptops, tablets and phones: tabs become a swipeable row ----- */
@media (max-width: 1239px) {
  .work__filters {
    gap: 12px;
    overflow-x: auto;
    margin-inline: calc(var(--side-padding) * -1);   /* runs edge to edge so you can swipe */
    padding-inline: var(--side-padding);
    scrollbar-width: none;
  }

  .work__filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 15px 31px;
  }
}

/* ----- Tablet: 2 columns ----- */
@media (max-width: 1023px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Mobile: swipeable tabs, 1 column ----- */
@media (max-width: 767px) {
  .filter-btn {
    padding: 13px 23px;
    font-size: var(--nav-size);
    line-height: var(--nav-line);
  }

  .work__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Comfortable thumb size for page numbers and arrows */
  .pagination__btn {
    width: 44px;
    height: 44px;
  }
}


/* ==========================================================
   6. WHY SOLA PLUS  (Ivory background, 5 cards + button)
   ========================================================== */
.why {
  background: var(--background-main);
}

.why__head .section-text {
  max-width: 790px;
  margin-top: var(--space-heading-to-body);
}

.why__body {
  margin-top: 16px;                              /* + 24px card padding = 40px to the first icon */
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ----- Card: white (Background/Surface) always. On hover a small drop shadow is added ----- */
.why-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--background-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);          /* no shadow yet (kept as 0 so it can fade in) */
  transition:
    background-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.why-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Soft red circle behind the icon */
.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217, 0, 0, 0.08);
  box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.04);
}

.why-card__icon img {
  width: 20px;
  height: 20px;
}

.why-card__label {
  font-size: var(--eyebrow-size);
  line-height: var(--eyebrow-line);
  font-weight: 700;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--text-light-body);
}

.why-card__title {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h4-size);
  line-height: var(--h4-line);
  letter-spacing: var(--h4-track);
  color: var(--text-light-heading);
  transition: color var(--duration-fast) var(--ease);
}

.why-card__text {
  margin-top: 8px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-light-body);
}

/* "Learn more" sits at the bottom, so every card in a row lines up */
.why-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--caption-size);
  line-height: var(--caption-line);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
}

.why-card__arrow {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.why-card:focus-within {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);       /* Figma: X 0, Y 2, blur 8, black 8% */
}

.why-card:focus-within .why-card__title {
  color: var(--brand-primary);
}

.why-card:focus-within .why-card__arrow {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .why-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);     /* Figma: X 0, Y 2, blur 8, black 8% */
  }

  .why-card:hover .why-card__title {
    color: var(--brand-primary);
  }

  .why-card:hover .why-card__arrow {
    opacity: 1;
    transform: none;
  }
}

/* ----- "Have an Idea in your mind" cell (6th slot) ----- */
.why-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  text-align: center;
}

.why-cta__text {
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: 500;
  color: var(--text-light-heading);
}

.why-cta .btn {
  width: 100%;
}

/* ----- Smaller screens ----- */
@media (max-width: 1199px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);       /* 5 cards + button = 3 even rows */
  }
}

@media (max-width: 767px) {
  .why__body {
    margin-top: 16px;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   7. OUR CAPABILITIES  (White background, 5 rows)
   ========================================================== */
.capabilities {
  background: var(--background-surface);
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr 652px;              /* text | rows */
  gap: 48px;
  align-items: center;                           /* text is vertically centered next to the rows */
}

.capabilities__intro .section-text {
  margin-top: var(--space-heading-to-body);
}

.capabilities__list ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----- Row: white fill, grey border; on hover a red border and a small shadow ----- */
.cap-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 24px;   /* photo | text | arrow */
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--background-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.cap-row__img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--background-subtle);
}

/* number and title on one line, the text lines up under the title */
.cap-row__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
}

.cap-row__num,
.cap-row__title {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: 400;
  transition: color var(--duration-fast) var(--ease);
}

.cap-row__num {
  color: var(--text-light-muted);
}

.cap-row__title {
  color: var(--text-light-heading);
}

.cap-row__text {
  grid-column: 2;
  margin-top: 8px;
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-light-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;                         /* long text is cut after 3 lines with "..." */
  overflow: hidden;
}

.cap-row__arrow {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
}

.cap-row:focus-visible {
  outline-offset: 2px;
}

.cap-row:focus-visible,
.cap-row:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);     /* Figma: X 0, Y 2, blur 8, black 8% */
}

.cap-row:focus-visible .cap-row__num,
.cap-row:focus-visible .cap-row__title {
  color: var(--brand-primary);
}

@media (hover: hover) {
  .cap-row:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .cap-row:hover .cap-row__num,
  .cap-row:hover .cap-row__title {
    color: var(--brand-primary);
  }
}

/* ----- Tablet and small laptop: text on top, rows below ----- */
@media (max-width: 1199px) {
  .capabilities__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .capabilities__intro .section-text {
    max-width: 720px;
  }
}

/* ----- Mobile: photo on top, text and arrow below ----- */
@media (max-width: 767px) {
  .cap-row {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .cap-row__img {
    grid-column: 1 / -1;
    height: auto;
    aspect-ratio: 200 / 92;
  }
}


/* ==========================================================
   8. OUR PROCESS  (Ivory background, 4 step cards)
   ========================================================== */
.process {
  background: var(--background-main);
}

.process__head .section-text {
  max-width: 790px;
  margin-top: var(--space-heading-to-body);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.process__grid > li {
  display: flex;                                 /* all cards in a row get the same height */
}

/* ----- Card: white fill, grey border (both states); on hover a small shadow ----- */
.process-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--background-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

/* icon circle + a thin line running to the end of the card */
.process-card__top {
  display: flex;
  align-items: center;
}

.process-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--brand-primary);
  background: rgba(217, 0, 0, 0.08);
  box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.04);
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.process-card__icon svg {
  width: 20px;
  height: 20px;
}

.process-card__line {
  flex: 1;
  height: 1px;
  background: var(--border-default);
  transition: background-color var(--duration-fast) var(--ease);
}

.process-card__title {
  margin-top: 16px;
  font-size: var(--body-large-size);
  line-height: var(--body-large-line);
  font-weight: 400;
  color: var(--text-light-heading);
  transition: color var(--duration-fast) var(--ease);
}

.process-card__text {
  margin-top: 8px;
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-light-body);
}

@media (hover: hover) {
  .process-card:hover {
    /* the border stays the same grey, only the small shadow is added */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .process-card:hover .process-card__icon {
    background: var(--brand-primary);            /* solid red circle, white icon */
    color: var(--text-inverse);
    box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.12);
  }

  .process-card:hover .process-card__line {
    background: var(--brand-primary);
  }

  .process-card:hover .process-card__title {
    color: var(--brand-primary);
  }
}

/* ----- Smaller screens: 2 columns, then 1 ----- */
@media (max-width: 1199px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ==========================================================
   MOBILE  (below 768px)
   ========================================================== */
@media (max-width: 767px) {

  /* ----- Navigation: logo left, hamburger right ----- */
  .nav__inner {
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
  }

  .nav__toggle-bar {
    display: block;
    height: 2px;
    background: var(--brand-secondary);
    border-radius: 2px;
    transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
  }

  /* Hamburger turns into an X when open */
  .nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Slide-in panel from the right */
  .nav__panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 102;
    width: min(320px, 85vw);
    height: 100dvh;
    padding: calc(var(--nav-height) + 16px) var(--side-padding) 32px;
    background: var(--background-subtle);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open .nav__panel {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 16px;
    line-height: 24px;
  }

  .nav__cta {
    width: 100%;
  }

  /* Keep the hamburger and logo above the panel */
  .nav__logo,
  .nav__toggle {
    position: relative;
    z-index: 103;
  }

  /* Dark overlay behind the panel */
  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 101;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open .nav__overlay {
    opacity: 1;
    visibility: visible;
  }

  /* ----- Hero ----- */
  .hero__subtitle {
    font-size: 20px;                         /* estimated, please confirm */
    line-height: 28px;
  }

  /* ----- About collage (mobile proportions) ----- */
  .collage {
    max-width: none;
    grid-template-columns: 196fr 160fr;
    aspect-ratio: 364 / 438;
  }

  /* Hero buttons fill the full width on mobile */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }
  
}
/* ==========================================================
   9. LET'S DISCUSS YOUR PROJECT  (Black background + Form)
   ========================================================== */
.contact {
  background: var(--background-black);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.eyebrow--dark {
  color: var(--text-dark-body);
}

.eyebrow--dark::before {
  opacity: 1;
}

.section-title--dark {
  color: var(--text-dark-heading);
}

.section-text--dark {
  margin-top: var(--space-heading-to-body);
  color: var(--text-dark-body);
}

/* ----- Form card ----- */
.contact__card {
  padding: 32px;
  background: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.contact__card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  letter-spacing: var(--h3-track);
  color: var(--text-dark-heading);
}

.contact__card-subtitle {
  margin-top: 8px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-dark-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: var(--form-label-size);
  line-height: var(--form-label-line);
  font-weight: 400;
  color: var(--text-dark-heading);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--form-input-size);
  line-height: var(--form-input-line);
  color: var(--text-dark-heading);
  transition:
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease);
}

.form-input::placeholder {
  color: #7A7A7A;
}

.form-input:focus {
  outline: none;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.form-input.is-error {
  border-color: var(--text-dark-eyebrow);
}

/* Custom dropdown arrow */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-dark-muted);
  border-bottom: 1.5px solid var(--text-dark-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.form-select:invalid {
  color: #7A7A7A;
}

.form-select option {
  background: #1C1C1C;
  color: #FFFFFF;
}

.form-textarea {
  min-height: 112px;
  resize: vertical;
}

.form-error {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-dark-eyebrow);
  min-height: 0;
}

.form-error:empty {
  display: none;
}

.form-status {
  font-size: var(--body-small-size);
  color: var(--text-dark-eyebrow);
}

.form-status:empty {
  display: none;
}

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 1023px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .contact__card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   10. THANK YOU PAGE + INFO STRIP + FOOTER
   ========================================================== */
.thank-you {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 180px);
  padding-block: 72px;
  background-color: #202020;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
    url("../assets/images/thank-you-bg.jpg");
  background-size: cover;
  background-position: center;
}

.thank-you__card {
  max-width: 680px;
  margin-inline: auto;
  padding: 56px 48px;
  background: var(--background-black);
  border-radius: var(--radius);
  text-align: center;
}

.thank-you__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #5EE878;
}

.thank-you__icon svg {
  width: 32px;
  height: 32px;
}

.thank-you__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  letter-spacing: var(--h2-track);
  color: var(--text-dark-heading);
}

.thank-you__subtitle {
  margin-top: 12px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-dark-body);
}

.thank-you__text {
  max-width: 520px;
  margin: 24px auto 32px;
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-dark-muted);
}

/* ----- Contact Info Strip ----- */
.info-strip {
  background: var(--background-black);
  padding-block: 56px;
}

.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-inline: 32px;
}

.info-strip__item:first-child {
  padding-left: 0;
}

.info-strip__item:last-child {
  padding-right: 0;
}

.info-strip__item + .info-strip__item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.info-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-secondary);
}

.info-strip__icon svg {
  width: 20px;
  height: 20px;
}

.info-strip__title {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: 500;
  color: var(--text-dark-heading);
}

.info-strip__text {
  margin-top: 6px;
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-dark-muted);
}

/* ----- Footer ----- */
.footer {
  background: var(--background-dark);
  padding-top: 72px;
  padding-bottom: 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1.35fr 1.1fr;
  align-items: start;
  padding-bottom: 48px;
}

.footer__brand {
  padding-right: 48px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-dark-heading);
}

.footer__brand-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.04em;
  color: var(--text-dark-body);
}

.footer__brand-text {
  max-width: 340px;
  margin-top: 24px;
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-dark-body);
}

.footer__accent {
  display: block;
  width: 110px;
  height: 1px;
  margin-top: 24px;
  background: var(--brand-primary);
}

.footer__cta-label {
  margin-top: 32px;
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-dark-heading);
}

.footer__cta {
  margin-top: 16px;
}

.footer__col {
  padding-inline: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__col:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__heading {
  position: relative;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line);
  font-weight: 500;
  color: var(--text-dark-heading);
}

.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--text-dark-heading);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.footer__links a {
  font-size: var(--body-small-size);
  line-height: var(--body-small-line);
  color: var(--text-dark-muted);
  transition: color var(--duration-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--text-dark-heading);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer__copy {
  font-size: var(--caption-size);
  line-height: var(--caption-line);
  color: var(--text-dark-muted);
}

.footer__social {
  flex-shrink: 0;
  color: var(--text-dark-secondary);
  transition: color var(--duration-fast) var(--ease);
}

.footer__social:hover {
  color: var(--text-dark-heading);
}

.footer__social svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1199px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer__col {
    padding-inline: 0;
    border: 0;
  }

  .footer__col:last-child {
    border-right: 0;
  }
}

@media (max-width: 1023px) {
  .info-strip__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-strip__item {
    padding-inline: 0;
  }

  .info-strip__item + .info-strip__item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 28px;
  }
}

@media (max-width: 767px) {
  .thank-you__card {
    padding: 40px 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__col {
    padding-left: 16px;
  }
}