/* Fonts loaded from Google Fonts for easy deployment */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500&family=Raleway:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap");

/* boilerplate */

:root {
  --color-darkgrey: hsl(230, 24%, 20%);
  --color-lightgrey: hsl(60, 7%, 87%);
  --color-red: hsl(351, 98%, 58%);
  --color-black: hsl(0, 100%, 0%);
  --color-white: hsl(0, 100%, 100%);
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-open-ms: 650ms;
  --nav-panel-ms: 700ms;
  --nav-item-ms: 520ms;
}

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

body {
  font-family: "Raleway", Times, serif;
  margin: 0;
}

h1 {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 4rem;
  font-weight: 500;
  margin: 0;
}

h2 {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  margin: 0;
}

h3 {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0;
}

h4 {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
}

h5 {
  font-size: 1.4rem;
  margin: 0;
}

h6 {
  font-size: 1rem;
  margin: 0;
}

p,
ul {
  margin: 0;
  line-height: 150%;
}

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

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

p,
li {
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0.04em;
}

/* -------------------------
   Scroll reveal animations
   ------------------------- */

/* elements before reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* revealed state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* optional: mild stagger (JS sets --reveal-delay) */
.reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.navbar {
  background: hsla(230, 24%, 20%, 0.8);
  width: 100%;
  height: 150px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  padding: 30px 3%;
  top: 0;
  gap: 16px;
  box-shadow: 0px 1px 4px gray;
  transition: transform 0.3s ease;
  z-index: 10020;
}

.navbar.hidden {
  transform: translateY(-100%);
}

nav {
  width: 100%;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
}

#home-logo {
  width: 180px;
}

.drop-menu {
  background-color: inherit;
  color: white;
  font-family: inherit;
  padding: 8px 16px;
  font-size: 1.4rem;
  font-weight: 400;
  border: none;
  margin: 0;
  letter-spacing: 0.05em;
}

.dropdown {
  position: relative;
  display: inline-block;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-darkgrey);
  min-width: 240px;
  box-shadow: 0px 8px 16px 0px var(--color-black);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-weight: 300;
}

.dropdown-content a:hover {
  background-color: var(--color-red);
  /* underline text option*/
  color: white;
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: auto;
  text-decoration-thickness: 2px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#active__menu {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 0.2rem;
  text-decoration-thickness: 3px;
}

/* ---------- Desktop vs Mobile Nav Visibility ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 10030;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.nav-desktop {
  display: flex;
  align-items: center;
  flex: 1; /* takes the space between logo and hamburger */
  gap: 24px;
}

.nav-desktop__links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
}

#contact__button {
  margin-left: auto; /* pushes it to the right */
}

@media (max-width: 600px) {
  .nav-desktop {
    display: none;
  }
  #contact__button {
    display: none;
  } /* optional: keep contact inside drawer */
  .nav-toggle {
    display: inline-flex;
  }
  .nav-close {
    display: inline-flex;
  }
}

/* ---------- Hamburger Button (2 lines -> X) ---------- */
.nav-toggle__bar {
  transform-origin: center;
  width: 26px;
  height: 2px;
  background: white;
  display: block;
  margin: 4px 0; /* vertical stacking */
  transition:
    transform 260ms ease,
    opacity 180ms ease;
}

/* We'll add a class to body when open */
body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle__bar:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity var(--nav-open-ms) var(--nav-ease);
  z-index: 10040;
}

/* ---------- Drawer ---------- */
.nav-drawer {
  position: fixed;
  inset: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--color-darkgrey);
  color: white;
  z-index: 10050;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--nav-open-ms) var(--nav-ease),
    transform var(--nav-open-ms) var(--nav-ease);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

body.nav-open .nav-drawer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .nav-drawer__footer {
  opacity: 1;
  transform: translateY(0);
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.nav-panel .nav-item,
.nav-panel .nav-back {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--nav-item-ms) var(--nav-ease),
    transform var(--nav-item-ms) var(--nav-ease);
}

/* when menu opens, reveal */
body.nav-open .nav-panel.is-active .nav-item,
body.nav-open .nav-panel.is-active .nav-back {
  opacity: 1;
  transform: translateY(0);
}

/* stagger (manual but effective) */
body.nav-open .nav-panel.is-active .nav-item:nth-child(1) {
  transition-delay: 120ms;
}
body.nav-open .nav-panel.is-active .nav-item:nth-child(2) {
  transition-delay: 170ms;
}
body.nav-open .nav-panel.is-active .nav-item:nth-child(3) {
  transition-delay: 220ms;
}
body.nav-open .nav-panel.is-active .nav-item:nth-child(4) {
  transition-delay: 270ms;
}
body.nav-open .nav-panel.is-active .nav-item:nth-child(5) {
  transition-delay: 320ms;
}

/* Header */
.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer__logo img {
  width: 140px;
  height: auto;
}

/* Close button (X) */
.nav-close {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10060;
  -webkit-tap-highlight-color: transparent;
}

.nav-close__bar {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
}

.nav-close__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-close__bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Panels (slide horizontally) */
.nav-panels {
  position: relative;
  flex: 1;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-panel {
  position: absolute;
  inset: 0;
  padding: 18px;
  transform: translateX(100%);
  transition: transform var(--nav-panel-ms) var(--nav-ease);
}

.nav-panel.is-active {
  transform: translateX(0);
}
.nav-panel.is-left {
  transform: translateX(-100%);
} /* previous panel when sliding */

/* Menu items */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.nav-item {
  width: auto;
  text-align: center;
  background: transparent;
  border: 0;
  color: white;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item a {
  color: white;
} /* safety if you ever nest */
.chev {
  opacity: 0.8;
  font-size: 1.8rem;
}

/* Back link */
.nav-back {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  padding: 10px 6px 16px;
  cursor: pointer;
}

/* Footer area inside drawer */
.nav-drawer__footer {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--nav-open-ms) var(--nav-ease),
    transform var(--nav-open-ms) var(--nav-ease);
  transition-delay: 180ms; /* comes in after menu items start */
}

.nav-drawer__cta {
  margin: 0; /* override your global button margin */
  width: auto;
  display: inline-block;
  text-align: center;
}

/* Social icons */
.nav-drawer__social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.nav-drawer__social a {
  color: white;
  display: inline-flex;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--nav-item-ms) var(--nav-ease),
    transform var(--nav-item-ms) var(--nav-ease);
}

.nav-drawer__social a:hover {
  color: var(--color-red);
  transform: translateY(-2px);
}

.nav-drawer__social ion-icon {
  font-size: 34px;
  color: currentColor;
}

body.nav-open .nav-drawer__social a {
  opacity: 1;
  transform: translateY(0);
}

body.nav-open .nav-drawer__social a:nth-child(1) {
  transition-delay: 220ms;
}
body.nav-open .nav-drawer__social a:nth-child(2) {
  transition-delay: 250ms;
}
body.nav-open .nav-drawer__social a:nth-child(3) {
  transition-delay: 280ms;
}
body.nav-open .nav-drawer__social a:nth-child(4) {
  transition-delay: 310ms;
}

.nav-drawer__header,
.nav-drawer__footer {
  padding-left: calc(18px + env(safe-area-inset-left));
  padding-right: calc(18px + env(safe-area-inset-right));
}

.button {
  background-color: var(--color-red);
  color: white;
  padding: 19px 45px;
  margin: 20px;
  border-radius: 7px;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: none;
  text-decoration: none;
  display: inline-block;
  transform: translateY(0); /* optional, but helps consistency */
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  background-color: hsl(351, 85%, 60%);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

#contact__button {
  font-size: 1.4rem;
  padding: 10px 35px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 800px;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 50%;
}

.hero-text {
  width: 100%;
  text-align: center;
  color: var(--color-white);
  padding: 20px;
  transform: translateY(140px);
  line-height: 1.4;
}

.hero-text h3 {
  margin-bottom: 10px;
}

.hero-text h1 {
  margin-bottom: 20px;
}

#hero-index {
  background-image: url("../assets/Photos/Hole_10_Nikanti_BRT_Agronomy_homepage.jpeg");
}

.sub-header {
  background-size: cover;
  background-color: var(--color-lightgrey);
  height: fit-content;
  width: 100%;
}

.sub-header__content {
  width: 70%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  padding: 40px;
  padding-top: 100px;
  padding-bottom: 100px;
}

#sub-header__h2 {
  padding-bottom: 30px;
}

.sub-header__list {
  font-size: 1.1rem;
  text-align: left;
  line-height: 200%;
}

.sub-header__partner {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sub-header__partner p {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35, 42, 63, 0.7);
  margin-bottom: 12px;
}

.sub-header__partner img {
  max-width: 260px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  padding-top: 20px;
}

.main-content {
  background-size: cover;
  background-color: var(--color-white);
  height: fit-content;
  width: 100%;
  display: grid;
  padding: 40px;
}
/* Section layout */
.content-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.section-button {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Header */
.section-header {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: left;
}

/* Columns wrapper */
.columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

/* Individual column */
.column {
  display: flex;
  flex-direction: column;
}

.column img {
  margin-bottom: 20px;
  border-radius: 6px;
}

/*
#RCGC_Ryan {
  margin-top: 60px;
}
*/

.section-button-left {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 60px;
  margin-left: -25px;
}

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center center; /* <-- controls positioning */
  background-repeat: no-repeat;
  background-color: var(--color-lightgrey);
  width: 100%;
  overflow: hidden;
}

.services-section {
  padding-top: 120px;
}

.services-image {
  max-width: 550px;
  width: 100%;
}

@media (max-width: 600px) {
  #mission-background + .services-section {
    margin-top: 60px;
  }
  #mission-background + .services-section .mobile-top {
    margin-top: 0;
  }
  #mission-background + .services-section .section-button-left {
    margin-bottom: 20px;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
  pointer-events: none;
}

.hero-section-content {
  position: relative;
  z-index: 1;

  width: 70%;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  padding: 40px;
  padding-top: 100px;
  padding-bottom: 100px;
  line-height: 1.4;
  color: white;
}

.hero-section-content h3 {
  margin-bottom: 10px;
}

.hero-section-content h1 {
  margin-bottom: 20px;
}

.mission-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: left;
  padding: 20px;
  padding-top: 100px;
  padding-bottom: 100px;
  color: white;
}

.mission-content h3 {
  font-weight: 350;
}

#mission-background {
  background-image: url("../assets/Photos/RCGC\ H10\ Autumn.JPG");
}

#hero-footer-background {
  background-image: url("../assets/Photos/turf.jpg");
  margin-bottom: -1px;
}

.footer {
  background-color: var(--color-darkgrey);
  color: var(--color-white);
  width: 100%;

  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 80px;

  padding: 60px 40px;
  align-items: start;
}

/* make each footer column stack nicely */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  align-items: center;
  text-align: center;
}

/* Column 3 aligned to the right */
.footer-social {
  justify-self: end;
  text-align: right;
  padding-right: 60px;
}

.footer-social ion-icon {
  font-size: 30px; /* adjust to taste */
  color: currentColor;
}

/* Social icons in a row */
.footer-social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.footer-social-icons a {
  color: var(--color-white);
  display: inline-flex;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.footer-social-icons a:hover {
  color: var(--color-red);
  transform: translateY(-3px);
}

/* 🔥 Override global red link color inside footer */
.footer-links a {
  position: relative;
  color: white;
  text-decoration: none;
  width: fit-content;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: var(--color-red);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-links a:hover::after {
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.cta-button {
  width: 360px; /* choose your “standard” button width */
  max-width: 92vw; /* prevents overflow on small screens */
  display: inline-flex; /* perfect centering */
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Fix 1px seam above footer on index */
#hero-footer-background {
  background-color: var(--color-darkgrey); /* match footer */
}

/* Mobile: stack columns */
@media (max-width: 600px) {
  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding: 44px 18px;
  }

  .footer-column {
    align-items: center; /* centers flex children */
    text-align: center;
  }

  .footer-social {
    justify-self: center; /* overrides desktop right align */
    text-align: center;
    padding-right: 0;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-links a {
    width: auto; /* removes fit-content alignment bias */
  }
}
/* -------------------------
   Mobile layout: stack columns (PLACE AT END OF FILE)
   ------------------------- */
@media (max-width: 600px) {
  .columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .column p {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services-image {
    max-width: 100%;
  }

  .services-section {
    padding-top: 72px; /* was 120px */
  }

  /* Environmental section only */
  .services-section .services-image {
    order: -1;
  }

  .section-button-left {
    margin-left: 0;
  }

  .content-grid,
  .main-content {
    padding: 22px;
  }

  .sub-header__content,
  .hero-section-content,
  .mission-content {
    width: 100%;
    padding: 64px 18px;
  }

  .mobile-top {
    margin-top: 60px;
  }

  .mobile-tight {
    margin-top: 0;
  }

  .navbar {
    height: 96px;
    padding: 16px 4%;
  }

  #home-logo {
    width: 140px; /* was 180px */
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    height: 620px; /* instead of 800px */
  }

  .hero-text {
    transform: none;
    padding: 140px 18px 24px; /* pushes text down naturally */
  }

  img {
    border-radius: 10px;
  }

  .services-image img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
    object-position: center 5%;
  }

  .button {
    font-size: 1.15rem;
    padding: 14px 18px;
    margin: 14px auto;
    text-align: center;
  }

  .nav-item {
    padding: 16px 18px;
    min-height: 48px; /* good tap size */
  }

  h1 {
    font-size: 2.4rem;
    line-height: 1.05;
  }
  h2 {
    font-size: 1.9rem;
    line-height: 1.1;
  }
  h3 {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  h4 {
    font-size: 1.05rem;
  }

  p,
  li {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  /* HERO: stronger type, better hierarchy */
  #hero-index .hero-text {
    padding: 132px 18px 26px;
    max-width: 520px;
    margin: 0 auto;
  }

  #hero-index .hero-text h3 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  #hero-index .hero-text h1 {
    font-size: 2.9rem; /* bigger than our global mobile h1 */
    line-height: 1.05;
    margin: 10px 0 14px;
  }

  .mission-content {
    padding: 72px 18px; /* gives breathing room */
  }

  .mission-content h3 {
    font-size: 1.25rem; /* slightly larger than body */
    line-height: 1.75; /* more open, easier to read */
    max-width: 36rem;
  }

  .columns h4 {
    font-size: 1.15rem; /* slightly larger than paragraph */
    line-height: 1.35;
    margin-top: 8px;
  }

  .columns p {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  /* ------------------------------------------------
   Buttons: ONE consistent rule (mobile)
   ------------------------------------------------ */
  .button {
    display: block;
    width: 100%;
    max-width: 360px; /* adjust if you want wider, e.g. 420px */
    margin: 16px auto; /* centers the button block */
    text-align: center;

    padding: 14px 18px;
    font-size: 1.05rem;
  }
}

/* -------------------------
   Page helpers + components
   ------------------------- */

.drop-menu.active {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 3px;
}

.page-main {
  min-height: 100vh;
}

/* Pages without a hero need breathing room below fixed nav */
.page-main > .main-content:first-child {
  padding-top: 180px;
}
@media (max-width: 600px) {
  .page-main > .main-content:first-child {
    padding-top: 120px;
  }
}

/* Hero variants */
.hero--page {
  height: 640px;
}
.hero-text--page {
  transform: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 200px 20px 60px;
}
@media (max-width: 600px) {
  .hero--page {
    height: 560px;
  }
  .hero-text--page {
    transform: none;
    padding: 132px 18px 26px;
  }
}

/* Page hero backgrounds */
#hero-about {
  background-image: url("../assets/Photos/Nikanti\ H13\ Bunkers.jpeg");
}
#hero-consulting {
  background-image: url("../assets/Photos/Nikanti\ H16.jpeg");
  background-position: center 80%;
}
#hero-analytics {
  background-image: url("../assets/Photos/OM246_sampling.jpeg");
}

#hero-analytics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  z-index: 0;
  pointer-events: none;
}

#hero-analytics .hero-text {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  #hero-analytics::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* adjust strength here */
    z-index: 0;
    pointer-events: none;
  }

  #hero-analytics .hero-text {
    position: relative;
    z-index: 1;
  }
}
#hero-testimonials {
  background-image: url("../assets/Photos/Aquella.jpeg");
}
#hero-contact {
  background-image: url("../assets/Photos/Contact\ Hero.jpg");
  background-position: center 80%;
}

#hero-blog {
  background-image: url("../assets/Photos/PVGC H10.jpeg");
  background-position: center 62%;
}

@media (max-width: 600px) {
  #hero-blog {
    background-position: center center;
  }
}

.consulting-section .section-button {
  margin-bottom: 20px;
}
.consulting-testimonials {
  padding-top: 0;
}

.consulting-testimonials .section-header {
  margin-top: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
}

.card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__body ul {
  padding-left: 18px;
}

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

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.gallery-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 330px;
  }
}

/* Testimonials list */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.testimonial {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial img {
  border-radius: 10px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 80%;
}

.testimonial__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 600px) {
  .testimonial {
    grid-template-columns: 1fr;
  }
  .testimonial img {
    height: 330px;
    object-fit: cover;
    object-position: left center;
  }
}

/* FAQ */
.faq-section {
  padding-top: 0;
}

.faq-section .section-header {
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  background: white;
}

.faq-item summary {
  cursor: pointer;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-darkgrey);
  border-bottom: 2px solid var(--color-darkgrey);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

.faq-item p {
  margin-top: 10px;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form__row {
  display: grid;
  gap: 8px;
}

.form label {
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 12px;
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.button--submit {
  margin: 6px 0 0;
}
#liv-adelaide img {
  object-position: center 70%;
}

/* -------------------------
   News page
   ------------------------- */

#hero-news {
  background-image: url("../assets/Photos/Adelaide\ LIV.jpeg");
  background-position: center 80%;
}

.news-intro {
  margin-top: 14px;
  max-width: 760px;
}

.news-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 34px;
}

.news-toolbar__right {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.news-search input,
.news-sort select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: white;
}

.news-search input {
  min-width: 280px;
}

.news-sort select {
  min-width: 180px;
}

.news-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: white;
  color: var(--color-darkgrey);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.news-chip:hover,
.news-chip.is-active {
  background: var(--color-red);
  color: white;
  border-color: var(--color-red);
}

.featured-post {
  margin-bottom: 34px;
}

.featured-post__link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.featured-post__image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.featured-post__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.post-meta {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(35, 42, 63, 0.72);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.news-card .card__body {
  height: 100%;
}

.news-card .card__body h3 {
  font-size: 1.55rem;
}

.post-link {
  display: inline-block;
  margin-top: auto;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-red);
  width: fit-content;
  text-decoration: none;
  padding-bottom: 2px;

  background-image: linear-gradient(var(--color-red), var(--color-red));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;

  transition: background-size 0.3s ease;
}

.news-card__link:hover .post-link,
.featured-post__link:hover .post-link {
  text-decoration: none !important;
  background-size: 100% 2px;
}

.news-empty {
  text-align: center;
  padding: 24px 0 8px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 46px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-darkgrey);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: "Oswald", Arial, Helvetica, sans-serif;
}

.pagination-link:hover,
.pagination-link.is-current {
  background: var(--color-red);
  color: white;
  border-color: var(--color-red);
}

.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;
}

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

  .news-toolbar__right {
    justify-content: flex-start;
  }

  .featured-post__link {
    grid-template-columns: 1fr;
  }

  .featured-post__image img {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  #hero-news {
    background-position: center center;
  }

  .news-search input,
  .news-sort select {
    min-width: 100%;
  }

  .news-toolbar__right {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-post__content {
    padding: 20px;
  }

  .news-card .card__body h3 {
    font-size: 1.3rem;
  }
}

/* -------------------------
   Article page
   ------------------------- */

#hero-article {
  background-image:
    linear-gradient(rgba(22, 28, 43, 0.62), rgba(22, 28, 43, 0.68)),
    var(--hero-image);

  background-position: var(--hero-position, center center);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 720px;
  height: auto;
  display: flex;
  align-items: flex-end;
}

.article-hero__content {
  max-width: 980px;
  margin: 0 auto;
  padding: 210px 20px 76px;
  text-align: center;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

#article-title {
  max-width: 920px;
  margin: 0 auto;
}

.article-hero__dek {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta span {
  color: rgba(35, 42, 63, 0.82);
}

.article-meta--hero {
  justify-content: center;
  margin-top: 24px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  row-gap: 8px;
  column-gap: 0;
}

.article-meta--hero span {
  color: rgba(255, 255, 255, 0.96);
}

.article-meta--hero span + span::before {
  content: "•";
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.78);
}

.article-shell {
  padding-top: 56px;
}

.article-breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: rgba(35, 42, 63, 0.7);
  font-size: 0.96rem;
}

.article-breadcrumb a {
  color: var(--color-darkgrey);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 760px;
}

.article-sidebar {
  position: sticky;
  top: 180px;
  display: grid;
  gap: 18px;
}

.article-sidebar-card {
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-sidebar-card h3 {
  margin-bottom: 14px;
}
.article-sidebar-card h4 {
  margin-top: 14px;
  margin-bottom: 6px;
}

.article-sidebar-card ul {
  padding-left: 20px;
}

.article-sidebar-card li + li {
  margin-top: 10px;
  list-style-position: outside;
  margin-left: 0;
}

.article-sidebar-card .button {
  margin: 18px 0 0;
  padding: 10px 35px;
}

.article-lead {
  font-size: 1.22rem;
  line-height: 1.92;
  color: rgba(35, 42, 63, 0.88);
  margin-bottom: 30px;
}

.article-feature-image {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 32px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.article-body {
  max-width: 760px;
}

.article-body h2 {
  margin-top: 50px;
  margin-bottom: 16px;
  font-size: 2rem;
}

.article-body p,
.article-body li {
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul {
  margin: 8px 0 24px;
  padding-left: 22px;
}

.article-inline-figure {
  margin: 34px 0;
}

.article-inline-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.article-inline-figure figcaption {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(35, 42, 63, 0.72);
}

.article-quote {
  margin: 2.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-red);
  background: rgba(35, 42, 63, 0.08);
  border-radius: 0 12px 12px 0;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--color-darkgrey);
}

.related-posts-section {
  padding-top: 12px;
}

.article-back-link {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-main,
  .article-body {
    max-width: 100%;
  }

  .article-sidebar {
    position: static;
  }
}

.article-sidebar-card .text-link {
  display: inline;
  width: auto;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--color-red), var(--color-red));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

.article-sidebar-card .text-link:hover {
  text-decoration: none !important;
  background-size: 100% 2px !important;
}

@media (max-width: 600px) {
  #hero-article {
    min-height: 620px;
    background-position: center center;
  }

  .article-hero__content {
    padding: 148px 18px 34px;
  }

  .article-kicker {
    font-size: 0.86rem;
  }

  .article-hero__dek {
    font-size: 1rem;
    line-height: 1.72;
  }

  .article-meta--hero {
    font-size: 0.82rem;
    justify-content: center;
  }

  .article-meta--hero span + span::before {
    margin: 0 8px;
  }

  .article-shell {
    padding-top: 34px;
  }

  .article-breadcrumb {
    font-size: 0.9rem;
  }

  .article-lead {
    font-size: 1.08rem;
    line-height: 1.82;
  }

  .article-body h2 {
    font-size: 1.7rem;
    margin-top: 34px;
  }

  .article-body p,
  .article-body li {
    font-size: 1.03rem;
    line-height: 1.82;
  }

  .article-quote {
    font-size: 1.2rem;
    padding: 20px 18px;
  }
}

.article-author {
  margin-top: 56px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(35, 42, 63, 0.08);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}

.article-author__image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.article-author__label {
  margin-bottom: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d7a52;
}

.article-author h3 {
  margin-bottom: 10px;
}

.article-author__content p:last-of-type {
  margin-bottom: 12px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-red);
}

.text-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .article-author {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .article-author__image {
    margin: 0 auto;
  }
}

/* -------------------------
   Animated text links
   ------------------------- */

.text-link {
  display: inline-block;
  width: fit-content;
  color: var(--color-red);
  text-decoration: none;
  padding-bottom: 2px;

  background-image: linear-gradient(var(--color-red), var(--color-red));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;

  transition: background-size 0.3s ease;
}

.text-link:hover {
  text-decoration: none !important;
  background-size: 100% 2px;
}

.article-video {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 30px 0 14px;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.article-video-wrap {
  margin: 30px 0;
}

.article-video-wrap figcaption {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(35, 42, 63, 0.72);
}

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 60px;
  align-items: center;
  justify-items: center;
}

/* Key: fixed visual box */
.logo-item {
  width: 200px;
  height: 100px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Let logos scale inside */
.logo-item img {
  --scale: 1; /* default */

  display: block;
  width: 100%;
  height: 100%;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  object-fit: contain;

  transform: scale(var(--scale));
  transform-origin: center;

  filter: grayscale(100%);
  opacity: 0.9;

  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    opacity 0.3s ease;
}

.logo-item:hover img {
  transform: scale(calc(var(--scale) * 1.05));
  filter: grayscale(0%);
  opacity: 1;
}

/* Per-logo tweaks */
.logo-item--nikanti img {
  --scale: 1.5;
}

.logo-item--pineapple img {
  --scale: 1.1;
}

.logo-item--palmhills img {
  --scale: 1.5;
}

.logo-item--amata img {
  --scale: 1;
}

.logo-item--aphrodite img {
  --scale: 1;
}

.logo-item--aquella img {
  --scale: 1;
}

.logo-item--forestcity img {
  --scale: 1;
}

.logo-item--infinity img {
  --scale: 0.8;
}

.logo-item--klgcc img {
  --scale: 1.8;
}

.logo-item--minthis img {
  --scale: 0.9;
}

.logo-item--rcgc img {
  --scale: 1.2;
}

.logo-item--robinswood img {
  --scale: 1;
}

.logo-item--sentosa img {
  --scale: 1.2;
}

.logo-item--sicc img {
  --scale: 1.2;
}

.logo-item--thanacity img {
  --scale: 2;
}

.logo-item--empire img {
  --scale: 1.3;
}

.logo-item--rbgcc img {
  --scale: 1.3;
}

.logo-item--rba img {
  --scale: 1.2;
}

.logo-item--royal img {
  --scale: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .logo-wall img {
    max-width: 140px;
    max-height: 70px;
  }
}
