/* Site styles: layout, typography, responsive rules, and animation fallbacks. */
:root {
  --green: #76bc21;
  --dark-green: #107035;
  --yellow:   #d5c425;
  --blue: #12496b;
  --light-blue: #1579bc;
  --ink: #24371f;
  --white: #fff;
  --section-space: clamp(3rem, 6vw, 6rem);
  --page-gutter: clamp(1.25rem, 4vw, 4rem);
  --content-width: 90rem;
  --intensity-gap: 8px; /* Between bars, and between desktop columns. */
  --intensity-bar-height: 36px; /* Height of each individual bar. */
}

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

body {
  margin: 0;
  background: var(--white);
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
p,
figure,
blockquote {
  margin: 0;
}

p {
  margin-bottom: 1rem;
  color: var(--blue);
}

h2 {
  margin-bottom: 0.5rem;
}

section { min-height: 100vh; }


a:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  transform: translateY(-200%);
}

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

/* Sections control vertical spacing; inner containers control width. */
main > section {
  padding-block: var(--section-space);
  overflow-x: clip;
}

.section-inner {
  width: min(var(--content-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

/* ----------------------- BRANDING SECTION -------- */

#branding {
  --branding-border-width: 24px;
  --branding-pinned-width: 264px; /* Current logo width at a 390px mobile viewport. */
  --branding-pinned-padding: 24px; /* Space above and below the pinned logo. */
  position: relative;
  height: 100vh;
  height: 100svh;
  /* Keep the logo's starting position stable while the decorative border shrinks. */
  padding: var(--branding-border-width) calc(10% + var(--branding-border-width));
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 10;
}

#branding::before {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--branding-current-border, var(--branding-border-width)) solid var(--dark-green);
  pointer-events: none;
}

#branding h1 {
  width: 100%;
  /* Fit the SVG's aspect ratio inside short landscape viewports too. */
  max-width: calc((100svh - 2 * var(--branding-border-width) - 2rem) * 119.92 / 28.77);
  line-height: 0;
  transform: scale(var(--branding-logo-scale, 1));
  transform-origin: top center;
}

#branding .logo {
  display: block;
  width: 100%;
}

/* The backdrop stays full-width while the logo above it scales independently. */
#branding.is-pinned::after {
  content: "";
  position: fixed;
  z-index: 9;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--branding-logo-height) * var(--branding-logo-scale, 1) + 2 * var(--branding-pinned-padding));
  background: var(--white);
  pointer-events: none;
}

#branding.is-pinned h1 {
  position: fixed;
  z-index: 10;
  top: var(--branding-pinned-padding);
  left: 50%;
  width: var(--branding-logo-width);
  max-width: none;
  background: var(--white);
  transform: translateX(-50%) scale(var(--branding-logo-scale, 1));
  transform-origin: top center;
  will-change: transform;
}

html.branding-scroll-ready {
  scroll-padding-top: calc(var(--branding-pinned-height) + 1rem);
}

@media (min-width: 64rem) {
  #branding {
    --branding-border-width: 72px;
  }
}

@media print {
  #branding h1 {
    transform: none;
  }

  #branding.is-pinned::after {
    display: none;
  }

  #branding.is-pinned h1 {
    position: static;
    width: 100%;
    transform: none;
  }

  #branding::before {
    border-width: var(--branding-border-width);
  }
}


/* ----------------------- SERVICES SECTION -------- */

.services-grid {
  display: grid;
  gap: 2rem; 
  grid-template-columns: minmax(0, 1fr); 
}

.services-grid .section-title {
  grid-column: 1 / -1; 
}

@media (min-width: 40rem) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  }
}

@media (min-width: 64em) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
  }
}

/* ----------------------- CARDS -------- */

.card {
  position: relative;
  min-width: 0;
  background-color: #ffffff;
  border: 3px solid #6CA33B; 
  padding: 1.75rem;
  overflow-wrap: anywhere;
}

.card h2 {
  font-weight: var(--font-weight-heading);
  font-size: 1.5rem;
  font-family: unit-gothic-719;
  text-transform: uppercase;
  letter-spacing: -0.0375rem;
  line-height: 1;
}

/* 1. The Eraser */
.card::before {
  content: "";
  position: absolute;
  bottom: -3px; /* Pulls the shape down over the bottom border */
  right: -3px;  /* Pulls the shape right over the right border */
  width: 36px;
  height: 36px;
  background-color: #ffffff; /* This MUST match the background color behind the card */
}

/* 2. The Fold */
.card::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 0;
  height: 0;
  
  /* CSS Triangle Trick */
  border-top: 36px solid #1B6A31; /* Dark green color and fold size */
  border-right: 36px solid transparent; /* Cuts the square diagonally */
}

/* ----------------------- DIFFERENT SECTION ----------------------- */

#different {
  background-color: var(--green);
  padding: 15% 0;
}

#different p {
  background-color: var(--white);
  padding:2%;
}

#different p span {
  font-family: unit-gothic-718, sans-serif;
  color: var(--dark-green);
}

@media (min-width: 40rem) {

  #different p {
    max-width: 75%;
  }
}


/* ----------------------- ABOUT SECTION -------- */

#about {
  margin:4rem 0;
}

/* ----------------------- INTENSITY SECTION ----------------------- */

/* Partners still use the shared services grid. */
#partners .section-title {
  grid-column: 1 / -1;
  grid-row: 1;
}

#partners .intro {
  grid-column: 1 / -1;
  grid-row: 2;
}

.intensity-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.intensity-option {
  min-width: 0;
}

#intensity h3 {
  margin: 0 0 0.5rem;
  font-family: unit-gothic-716, sans-serif;
  text-transform: uppercase;
  color: var(--dark-green, #1a7431);
  font-size: 1.5rem;
}

#intensity p:not(.intro) {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (min-width: 40rem) {
  #intensity p:not(.intro) {
    font-size: 1.50rem;
  }
}

/* Each decorative span is one bar; no gradient or height calculations needed. */
.intensity-bars {
  display: grid;
  grid-auto-rows: var(--intensity-bar-height);
  gap: var(--intensity-gap);
  margin-top: 2rem;
}

.intensity-bars > span {
  background: var(--green);
}

.intensity-bars > span:first-child {
  background: var(--dark-green);
}

@media (min-width: 64rem) {
  .intensity-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--intensity-gap);
    align-items: end;
  }

  .intensity-option h3,
  .intensity-option p {
    padding-inline-end: 2rem;
  }
}

.portrait img {
  border-radius: 50%;
}

#clients {
  padding-bottom: 0;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.client-grid li {
  flex: 0 0 50%;
  min-width: 0;
  height: 10rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-grid img {
  width: 100%;
  height: 100%;
  max-width: 12rem;
  max-height: 7rem;
  padding: 0;
  object-fit: contain;
}

#testimonials {
  display: grid;
  align-items: center;
}

.testimonial-grid {
  display: grid;
  align-items: center;
  gap: 1.875rem;
}

.testimonial {
  min-width: 0;
}

.talk-bubble {
  position: relative;
  background: var(--dark-green);
}

.talk-bubble::after {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -40px;
  border: 20px solid;
  border-color: var(--dark-green) var(--dark-green) transparent transparent;
}

.talk-bubble p {
  margin: 0;
  padding: 10%;
}

.quoter {
  margin-bottom: 1rem;
  padding: 48px 24px 0;
}

#footer {
  padding: 3%;
  background: var(--dark-green);
}

.contact-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: clamp(1rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
}

.contact-links li {
  min-width: 0;
  max-width: 100%;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  transition: color 0.2s ease-in-out;
}

.icon {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 40rem) {
  .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    align-items: center;
    width: 83.333333%;
    margin-inline: auto;
  }

  .client-grid li {
    flex-basis: 20%;
  }

  .contact-links {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 64rem) {
  /* At the page bottom, center complete figures between the pinned header and footer. */
  #testimonials {
    min-height: calc(100vh - var(--footer-height, 0px));
    padding-block: 1rem;
    padding-block-start: calc(var(--branding-pinned-height, 0px) + 1rem);
  }

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

/* AOS is optional: content stays visible if its script is blocked or fails. */
html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .contact-links a {
    transition: none;
  }
}

@media print {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }

  .skip-link {
    display: none;
  }
}

/* Typography. Font files are loaded by the Adobe Fonts stylesheet in index.html. */
:root {
  --font: "clarendon-urw", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-body: 400;
  --font-weight-heading: 400;
}

/* Base text */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  font-weight: var(--font-weight-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-heading);
}

p {
  line-height: 1.6;
}

h2 {
  color: var(--dark-green);
  font-size: 1.1875rem;
  line-height: 1.2;
  text-transform: uppercase;
}

a {
  color: inherit;
}

.skip-link {
  color: var(--ink);
}

/* Section titles and introductions */
h2.section-title {
  font-size: 2.5rem;
  color: var(--green);
  font-family: unit-gothic-717, sans-serif;
  line-height: 0.8;
  letter-spacing: -0.2rem;
  margin-bottom: 3rem;
}

#different h2.section-title {
  color: var(--white);
}

h2.section-title span {
  color: var(--dark-green);
}

p.intro {
  font-size: 1.25rem;
  line-height: 1.6;
}



/* Portrait and client lists */
.portrait {
  text-align: center;
}

.client-grid {
  list-style: none;
}

.client-grid li {
  text-align: center;
}

/* Testimonials */
.talk-bubble p {
  font-weight: var(--font-weight-body);
  color: var(--white);
}

.quoter {
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: right;
  font-weight: var(--font-weight-heading);
}

.quoter span {
  color: var(--green);
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* Contact links */
.contact-links {
  list-style: none;
}

.contact-links a {
  color: var(--white);
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links a:hover,
.contact-links a:active {
  color: var(--green);
}

/* Responsive typography: tablet and larger */
@media (min-width: 40rem) {
  h2 {
    font-size: 1.9375rem;
  }

  h2.section-title {
    font-size: 4rem;
    font-family: unit-gothic-716, sans-serif;
    letter-spacing: -0.375rem;
  }

  .card h2 {
    font-size: 2rem;
  }

  .intro-copy {
    font-size: 2.5rem;
  }

  #services h2,
  #clients h2 {
    text-align: left;
  }

  .talk-bubble p {
    font-size: 1.3125rem;
  }

  .contact-links a {
    font-size: 1.5rem;
  }
}

/* Responsive typography: desktop */
@media (min-width: 64rem) {
  h2.section-title {
    font-size: 6rem;
  }

  p.intro {
    font-size: 1.75rem;
  }
}
