/* ========================================
   KES HOMEPAGE REFINEMENTS
   Unifies section labels and card framing, corrects the Why KES photo frame,
   and gives the two KES statement callouts one shared visual treatment.
   ======================================== */

:root {
  --color-kes-green-deep: #3f5c46;
  --color-kes-frame: rgba(64, 84, 67, 0.34);
  --color-muted: #434843;
}

/* ========================================
   SECTION LABELS
   ======================================== */

/* Use one deeper agricultural green for section labels on light backgrounds. */
.eyebrow {
  color: var(--color-kes-green-deep);
}

/* Preserve the light treatment where the label sits on the dark reassurance band. */
.reassurance .eyebrow {
  color: #f2ead5;
}

/* ========================================
   HEADER — LARGER KES LOGO
   ======================================== */

.site-logo {
  width: min(465px, 50vw);
}

@media (max-width: 900px) {
  .site-logo {
    width: min(410px, 48vw);
  }
}

/* ========================================
   HERO — PHOTO + PLANNING PRINCIPLE
   ======================================== */

/*
   Keep the photograph as the right-hand anchor, align it with the top of the
   hero copy, and place the KES Planning Principle directly beneath it.
*/
.hero-visual {
  align-self: start;
  width: 100%;
}

.hero-image {
  background: none;
}

.hero-image img {
  opacity: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 43% 46%;
  transform: scale(1.12);
  transform-origin: 43% 46%;
  box-shadow: none;
}

@media (min-width: 901px) {
  .hero-grid {
    align-items: start;
  }
}

/* Give the expanded technical-services line enough visual weight to work as a quick recognition signal. */
.credibility-line {
  max-width: 760px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-kes-green-deep);
}

/* ========================================
   KES STATEMENT CALLOUTS
   ======================================== */

/*
   Keep the KES Planning Principle in the hero and the KES Working Approach
   in How We Work visually identical: same two-line structure, frame, type
   size, label treatment, and emphasis.
*/
.hero-principle,
.how-we-work .philosophy-line {
  position: relative;
  max-width: 860px;
  margin-top: 2.4rem;
  padding: 1.35rem 1.65rem 1.3rem 1.8rem;
  border-left: 6px solid var(--color-gold);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(47, 51, 47, 0.06);
  color: var(--color-navy);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-visual .hero-principle {
  width: 100%;
  max-width: none;
  margin-top: 1rem;
}

.hero-principle-label,
.how-we-work .philosophy-line::before {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--color-kes-green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-principle strong {
  display: block;
  color: var(--color-navy);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.how-we-work .philosophy-line::before {
  content: "KES Working Approach";
}

/* ========================================
   SERVICES — REMOVE DECORATIVE NUMBERS
   ======================================== */

/* The service cards are categories, not a sequence; remove the 01–04 markers. */
.service-card::after {
  display: none;
}

.service-card h3 {
  max-width: 100%;
}

/* ========================================
   CLIENT QUOTES + PEOPLE — SHARED FRAME SYSTEM
   ======================================== */

.testimonial-card,
.person-card {
  border: 1px solid var(--color-kes-frame);
  box-shadow: 0 8px 24px rgba(47, 51, 47, 0.055);
}

/* Keep testimonial cards visually distinct through the quotation mark rather than a gold stripe. */
.testimonial-card::before {
  color: rgba(32, 63, 102, 0.14);
}


/* ========================================
   PLANNING REQUIREMENTS — EXPANDABLE NOTE
   ======================================== */

.planning-requirements {
  padding: 0 0 4.75rem;
  background: #f2f0e9;
}

.planning-note {
  overflow: hidden;
  border: 1px solid var(--color-kes-frame);
  border-left: 5px solid var(--color-gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 20px rgba(47, 51, 47, 0.045);
}

.planning-note summary {
  position: relative;
  display: block;
  padding: 1.15rem 3.4rem 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

.planning-note summary::-webkit-details-marker {
  display: none;
}

.planning-note summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.35rem;
  transform: translateY(-50%);
  color: var(--color-kes-green-deep);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.planning-note[open] summary::after {
  content: "−";
}

.planning-note summary:hover .planning-note-heading {
  color: var(--color-kes-green-deep);
}

.planning-note summary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -3px;
}

.planning-note-heading {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.planning-note-summary {
  display: block;
  max-width: 920px;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.planning-note-content {
  padding: 0 1.4rem 1.45rem;
  border-top: 1px solid rgba(64, 84, 67, 0.16);
}

.planning-note-landowner {
  padding-top: 1.25rem;
}

.planning-note-content h3 {
  margin: 0 0 0.35rem;
  color: var(--color-navy);
  font-size: 1rem;
}

.planning-note-content p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.planning-note-landowner p {
  max-width: 900px;
}

.planning-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2.4rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(64, 84, 67, 0.14);
}

@media (max-width: 650px) {
  .planning-requirements {
    padding-bottom: 3.5rem;
  }

  .planning-note summary {
    padding: 1rem 2.9rem 1rem 1.05rem;
  }

  .planning-note summary::after {
    right: 1rem;
  }

  .planning-note-content {
    padding: 0 1.05rem 1.2rem;
  }

  .planning-note-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ========================================
   WHY KES — FULL-WIDTH HEADING + CREDENTIALS
   ======================================== */

.about-heading {
  margin-bottom: 2.4rem;
}

.about-heading h2 {
  max-width: 900px;
}

.about-main {
  align-items: center;
}

.about-image {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 163, 76, 0.30);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: none;
}

.about-image::before {
  display: none;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-content p {
  color: var(--color-muted);
}

.about-content > p {
  max-width: 680px;
}

.credibility-section {
  margin-top: 3rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--color-border);
}

.credibility-intro {
  max-width: none;
  margin-bottom: 1.5rem;
}

@media (min-width: 901px) {
  .about-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .credibility-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
  }
}

@media (max-width: 900px) {
  .about-main {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .about-heading {
    margin-bottom: 1.8rem;
  }

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

/* ========================================
   FOOTER — COPYRIGHT + LINKEDIN ICON
   ======================================== */

/*
   The copyright text already lives in the footer HTML.  Keep that real text
   centered and position the LinkedIn icon independently at the far right.
*/
.site-footer .container p {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding-right: 44px;
  padding-left: 44px;
  font-size: 0.92rem;
  text-align: center;
}

.site-footer .container p a {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #0a66c2;
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-footer .container p a::before {
  content: "in";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.site-footer .container p a:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.site-footer .container p a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ========================================
   ANCHOR OFFSET FOR STICKY HEADER
   ======================================== */

html {
  scroll-padding-top: 145px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 150px;
  }
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 650px) {
  .site-logo {
    width: min(335px, 90vw);
  }

  .header-inner {
    padding-top: 0.8rem;
    padding-bottom: 0.65rem;
    gap: 0.35rem;
  }

  .how-we-work .philosophy-line {
    margin-top: 1.7rem;
  }

  .hero-principle,
  .how-we-work .philosophy-line {
    padding: 1.05rem 1.1rem 1rem 1.2rem;
    font-size: 1.18rem;
  }

  .hero-visual .hero-principle {
    margin-top: 0.9rem;
  }

  .hero-image img {
    transform: scale(1.06);
    transform-origin: 44% 46%;
  }

  .about-image {
    transform: none;
  }

  .site-footer .container p {
    padding-right: 40px;
    padding-left: 40px;
    font-size: 0.85rem;
  }

  .site-footer .container p a {
    width: 28px;
    height: 28px;
  }
}
