/* ============================================================
   THE ZACHARY GROUP — Pixel-Perfect Recreation
   Fonts: Playfair Display (headings) + Poppins (body)
   Colors: #62c2cc (teal), #f0de1a (yellow CTA), #3c4858 (dark footer), #88C540 (green)
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: disc;
  padding-left: 1.5rem;
}

ul li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.625rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.625rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.page-wrapper {
  overflow: hidden;
}

/* === BUTTONS === */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border: 1px solid #333;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 100px;
}

.button:hover {
  background-color: #333;
  color: #fff;
}

.button--long {
  min-width: 14rem;
}

.button--cta {
  background-color: #fff;
  border-color: #fff;
  color: #333;
  min-width: 30rem;
  font-size: 0.75rem;
  letter-spacing: 3px;
}

.button--cta:hover {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

.button-nav {
  display: inline-block;
  padding: 0.625rem 2rem;
  background-color: #62c2cc;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.button-nav:hover {
  background-color: #4fb0ba;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  padding: 0 1.25rem;
  transition: box-shadow 0.3s ease;
}

.navbar--scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.navbar__container {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar__logo-link {
  display: inline-block;
}

.navbar__logo {
  width: auto;
  height: auto;
  max-width: 220px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar__link {
  padding: 0.5rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: #62c2cc;
}

.navbar__buttons {
  margin-left: 1rem;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger-line--top { margin-bottom: 6px; }
.hamburger-line--middle {
  position: relative;
  margin-bottom: 6px;
}
.hamburger-line--middle-inner {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
}
.hamburger-line--bottom {}

/* === HERO === */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #eef0f3;
  margin-top: 68px;
  min-height: calc(100vh - 68px);
}

.hero__content {
  max-width: 940px;
  margin: 0 auto;
  padding: 6.25rem 1.25rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__text {
  padding-right: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero__description {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.hero__cta {
  margin-top: 2rem;
}

.hero__mobile-image {
  display: none;
}

.hero__image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  overflow: hidden;
}

.hero__image-bg {
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* === SECTIONS === */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #eef0f3;
}

.section--white {
  background-color: #fff;
}

.container {
  max-width: 940px;
  width: 100%;
  margin: 0 auto;
  padding: 6.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.container--padded-top {
  padding-top: 3rem;
}

.container--no-pad-bottom {
  padding-bottom: 0;
}

/* === EXPERTISE === */
.expertise {
  width: 100%;
  margin-bottom: 6rem;
}

.expertise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.expertise__heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.expertise__subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
}

.expertise__list {
  padding-left: 1.25rem;
}

.expertise__list li {
  margin-bottom: 0.25rem;
}

.expertise__list li p {
  margin-bottom: 0;
}

/* === INDUSTRIES === */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.industry-card {
  display: flex;
  flex-direction: column;
  background-color: #eef0f3;
  padding: 2rem;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-top: 45px solid white;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.industry-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.industry-card__icon {
  width: 60px;
  height: 60px;
}

.industry-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.industry-card__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* === TEAM === */
.team {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  width: 100%;
  align-items: center;
}

.team__headshots {
  display: flex;
  justify-content: center;
}

.team__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
}

.team__photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  margin-bottom: 1rem;
  background-color: hsla(56, 100%, 49%, 1);
}

.clip-hex {
  clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
}

.team__name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.team__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

.team__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
}

.team__content h2 {
  margin-bottom: 1.5rem;
}

.team__content p {
  margin-bottom: 0;
  color: #555;
}

.team__cta {
  margin-top: 2rem;
}

/* === LATEST NEWS === */
.news-heading {
  align-self: flex-start;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: #62c2cc;
  margin-top: 1rem;
}

.news {
  margin-top: 3rem;
  width: 100%;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.news__card:hover {
  transform: translateY(-4px);
}

.news__image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news__card:hover .news__image {
  transform: scale(1.05);
}

.news__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === CTA BANNER === */
.cta-banner {
  background-color: #f0de1a;
  padding: 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-banner__heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #333;
}

.pre-footer-bg {
  background-color: #3c4858;
  height: 8rem;
  margin-top: -4rem;
  position: relative;
  z-index: 1;
}

/* === FOOTER === */
.entire-footer {}

.footer {
  background-color: #3c4858;
  color: #fff;
}

.footer__container {
  max-width: 940px;
  margin: 0 auto;
  padding: 3.75rem 1.25rem;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo-link img {
  width: 294px;
}

.footer__certification img {
  width: 100px;
  height: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1fr;
  gap: 2rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__description {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer__privacy-wrap {
  margin-top: auto;
}

.footer__privacy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__privacy:hover {
  color: #fff;
}

.footer__links-wrap {
  display: flex;
  flex-direction: column;
}

.footer__link {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #62c2cc;
}

.footer__link-static {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__email-form {
  display: flex;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.footer__email-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-right: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: none;
}

.footer__email-input::placeholder {
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.footer__submit-btn {
  padding: 0.5rem 1rem;
  background-color: #62c2cc;
  border: 1px solid #62c2cc;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer__submit-btn:hover {
  background-color: #4fb0ba;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer__social-link svg {
  width: 40px;
  height: 40px;
}

.footer__email {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer__email:hover {
  color: #fff;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate="fade-up"].animate-in {
  animation: fadeUp 0.8s ease forwards;
}

[data-animate="industry"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="industry"].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE: TABLET (max-width: 991px) === */
@media screen and (max-width: 991px) {
  h1 { font-size: 2.625rem; }
  h2 { font-size: 2.25rem; }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .navbar__menu.is-open { display: flex; }
  .navbar__hamburger { display: flex; }
  .navbar__link { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
  .navbar__buttons { margin-left: 0; margin-top: 0.5rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { padding-right: 0; }
  .hero__image-wrapper { display: none; }

  .hero__mobile-image {
    display: block;
    width: 100%;
    clip-path: polygon(50% 0%, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0% 50%, 15% 15%);
    max-width: 500px;
    margin: 0 auto;
  }

  .hero { min-height: auto; }
  .hero__content { padding: 5rem 1.25rem 0; }

  .expertise__grid { grid-template-columns: 1fr; gap: 2rem; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; gap: 2rem; }
  .team__headshots { order: -1; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid .news__card:last-child { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .button--cta { min-width: auto; width: 100%; max-width: 30rem; }
}

/* === RESPONSIVE: MOBILE LANDSCAPE (max-width: 767px) === */
@media screen and (max-width: 767px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }

  .container { padding: 3.75rem 1.25rem; }
  .expertise { margin-bottom: 3rem; }
  .industries { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .news__grid .news__card:last-child { display: flex; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner__heading { font-size: 1.75rem; }
  .button--cta { min-width: auto; width: 100%; }
  .footer__logos { flex-direction: column; align-items: flex-start; }
  .footer__logo-link img { width: 220px; }
}

/* === RESPONSIVE: MOBILE (max-width: 479px) === */
@media screen and (max-width: 479px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }

  .hero__content { padding: 3.125rem 1.25rem 0; }
  .container { padding: 3.125rem 1.25rem; }
  .team__photo { width: 200px; height: 200px; }
  .expertise__heading { font-size: 1.5rem; }
  .button { font-size: 0.625rem; padding: 0.625rem 1rem; }
  .button--long { min-width: 12rem; }
  .industry-card__title { font-size: 1.125rem; }
  .cta-banner__heading { font-size: 1.5rem; }
}
