/* -------------------------------------------------------
   Protosquid Engineering — base stylesheet
   Plain CSS, no framework. Variables below are the easiest
   place to retheme colors/type during the style pass.
------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #16202a;
  --color-text-muted: #55636f;
  --color-primary: #1f4e8c;
  --color-primary-dark: #163a68;
  --color-accent: #2f9e8f;
  --color-border: #e2e6ea;

  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  --wrap-max: 1400px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

a {
  color: var(--color-primary);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-2);
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-5) 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
  text-align: center;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.hero__logo {
  width: 100%;
  max-width: 720px;
  height: auto;
}

@media (max-width: 640px) {
  .hero {
    min-height: 50vh;
  }

  .hero__logo {
    max-width: 480px;
  }
}

/* Card grids (shared shape for services / approach / work / clients / industries) */

.what-we-do__grid,
.our-approach__grid,
.work-preview__grid,
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.service-card,
.approach-card,
.project-card,
.industry-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.section:nth-of-type(even) .service-card,
.section:nth-of-type(even) .approach-card,
.section:nth-of-type(even) .project-card,
.section:nth-of-type(even) .industry-card {
  background: var(--color-bg);
}

.service-card h3,
.approach-card h3,
.project-card h3,
.industry-card h3 {
  font-size: 1.1rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.service-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-2);
  background: var(--color-bg-alt);
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach-card {
  text-align: center;
}

.approach-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.approach-card__icon {
  width: 192px;
  aspect-ratio: 1 / 1;
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  overflow: hidden;
}

.approach-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: var(--space-2);
  background: var(--color-bg-alt);
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-preview__cta {
  text-align: center;
  margin-top: var(--space-4);
}

/* Our Work page — full-width alternating rows */

.project-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.project-row--reverse {
  flex-direction: row-reverse;
}

.project-row__media {
  flex: 1 1 50%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}

.project-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-row__body {
  flex: 1 1 50%;
}

.project-row__body h2 {
  font-size: 1.5rem;
}

.project-row__body p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.project-row__highlights {
  margin: var(--space-2) 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.project-row__highlights li {
  margin-bottom: 0.35rem;
}

@media (max-width: 720px) {
  .project-row,
  .project-row--reverse {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Clients */

.our-clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 900px) {
  .our-clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Industries */

.industry-card {
  padding: 0;
  overflow: hidden;
}

.industry-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.industry-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2);
  background: linear-gradient(180deg, rgba(22, 32, 42, 0.15), rgba(22, 32, 42, 0.55));
}

.industry-card__overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Testimonials */

.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-carousel__track {
  position: relative;
  min-height: 9rem;
}

.testimonial-slide {
  display: none;
  margin: 0;
  padding: 0;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-slide__quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text);
}

.testimonial-slide__author {
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-slide__name {
  font-weight: 600;
}

.testimonial-slide__role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.testimonial-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.testimonial-carousel__prev,
.testimonial-carousel__next {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1rem;
}

.testimonial-carousel__dots {
  display: flex;
  gap: 0.4rem;
}

.testimonial-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}

.testimonial-carousel__dot.is-active {
  background: var(--color-primary);
}

/* Contact page */

.contact-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
}

.contact-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.contact-card__value {
  font-weight: 600;
}

.page-header {
  padding-bottom: var(--space-2);
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0 var(--space-2);
  background: var(--color-bg-alt);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__brand span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.site-footer__contact a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__legal {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Responsive */

@media (max-width: 640px) {
  .site-header__inner {
    justify-content: center;
    text-align: center;
  }

  .section__title {
    font-size: 1.4rem;
  }
}
