/* CAMBIO Services — plain HTML/CSS stylesheet */

:root {
  --ink: #232323;
  --muted: #767676;
  --blue: #149dcc;
  --paper: #ffffff;
  --mist: #efefef;
  --field: #f5f5f5;
  --line: #e8e8e8;
  --wrap: 1140px;
  --measure: 760px;
  --wide: 950px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(var(--measure), calc(100% - 2rem));
  margin-inline: auto;
}

.wide {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--paper);
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 2.5rem;
  width: auto;
  max-width: none;
}

.site-nav {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
}

.site-nav a {
  color: #000;
  padding: 0.7rem 0.65rem;
}

.site-nav a.button {
  color: #fff;
  padding: 0.4rem 1.5rem;
}

.site-nav .button {
  margin-top: 0.35rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem 3rem;
  border: 2px solid var(--blue);
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.button-small {
  padding: 0.4rem 1.5rem;
  white-space: nowrap;
}

.button-form {
  border-radius: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
}

/* Photo banners */

.banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.hero {
  padding: 4.5rem 0 5.5rem;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../assets/images/depositphotos-19626777-original-2000x1333.jpg");
}

.statement {
  padding: 4.5rem 0;
  background-image:
    linear-gradient(rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.6)),
    url("../assets/images/mbr-1920x1211.jpg");
}

.cta {
  padding: 4.5rem 0;
  background-image:
    linear-gradient(rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.6)),
    url("../assets/images/depositphotos-59691141-original-2000x1333.jpg");
}

.page-hero {
  padding: 4.5rem 0 3.75rem;
  background-image:
    linear-gradient(rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.6)),
    url("../assets/images/depositphotos-1613038-original-2000x1339.jpg");
}

.banner h1,
.banner h2,
.banner p {
  color: #fff;
}

.hero h1,
.statement h2,
.page-hero h1 {
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.cta h2,
.panel h2,
.contact-copy h1 {
  font-size: clamp(1.8rem, 1.15rem + 2.2vw, 3rem);
  line-height: 1.2;
}

.cta h2,
.statement h2,
.hero h1,
.page-hero h1 {
  font-weight: 700;
}

.kicker {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  font-weight: 300;
  line-height: 1.3;
}

.hero .kicker {
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem);
}

.intro {
  margin-bottom: 1.25rem;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.6;
}

/* Service cards */

.services {
  padding: 4.5rem 0.5rem;
  background: var(--mist);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1600px;
  margin: 0 auto;
}

.card {
  margin: 1rem;
  background: var(--paper);
}

.card img {
  width: 100%;
}

.card div {
  padding: 2rem;
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

/* Alternating features */

.feature {
  padding: 3.75rem 0;
  background: var(--paper);
}

.feature-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.feature-row > * {
  width: 100%;
  min-width: 0;
}

.feature-row img {
  width: 100%;
}

.prose {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Forms and contact */

.panel {
  padding: 5.5rem 0;
  background: var(--paper);
}

.panel h2,
.panel .kicker {
  text-align: center;
}

.panel .kicker {
  margin-bottom: 2rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.form-row img {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.trio,
.pair {
  display: grid;
  gap: 1rem;
}

.field {
  text-align: left;
}

.field label,
.contact-form label:not(.sr-only) {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  color: #565656;
  font: inherit;
  font-size: 1rem;
  line-height: 1.43;
  min-height: 3.5em;
  padding: 1.07em 0.5em;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form textarea {
  min-height: 6.5rem;
  resize: none;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.form-actions {
  text-align: center;
}

.contact {
  padding: 4.5rem 0 5.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.map {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 25rem;
  padding: 2rem;
  background: #e9e5dc;
  color: #6b6763;
  text-align: center;
}

.map p {
  font-size: 1.5rem;
  font-weight: 500;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.icon-row svg {
  width: 48px;
  height: 48px;
  flex: none;
}

.icon-row p {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.contact-copy h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
}

.contact-copy .prose {
  margin-bottom: 1.25rem;
}

/* Project list */

.samples {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.samples li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 2.75rem;
}

.samples li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  line-height: 25px;
  text-align: center;
}

.samples strong {
  font-weight: 700;
}

@media (min-width: 768px) {
  .logo img {
    height: 3.8rem;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

@media (min-width: 992px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 0.5rem 4rem;
  }

  .site-nav {
    flex-basis: auto;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav .button {
    margin: 0 0 0 0.75rem;
  }

  .form-row {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }

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

  .feature-row {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .feature-row > img,
  .feature-row > a {
    flex: 1.35;
    width: auto;
  }

  .feature-row > .prose {
    flex: 1;
    width: auto;
  }

  .feature-flip .prose {
    text-align: right;
  }
}

@media (max-width: 767px) {
  .contact-copy,
  .contact-copy h1,
  .contact-copy h2,
  .contact-copy .prose,
  .icon-row,
  .feature-flip .prose {
    text-align: center;
    justify-content: center;
  }
}
