/* E&G Real Estate Group theme styles */

:root {
  --engreg-header-height: 80px;
}

body {
  margin: 0;
}

.engreg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp--preset--color--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.engreg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.engreg-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.engreg-nav a {
  color: var(--wp--preset--color--navy);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--roboto);
}

.engreg-nav a:hover {
  color: var(--wp--preset--color--orange);
}

.engreg-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wp--preset--color--orange);
  color: var(--wp--preset--color--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.engreg-phone-cta:hover {
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white) !important;
}

.engreg-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.engreg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 35, 73, 0.85), rgba(14, 24, 44, 0.7));
}

.engreg-hero > .wp-block-group {
  position: relative;
  z-index: 1;
}

.engreg-hero h1 {
  color: var(--wp--preset--color--white) !important;
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 800px;
}

.engreg-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 700px;
}

.engreg-section {
  padding: 4rem 1.5rem;
}

.engreg-section--alt {
  background: var(--wp--preset--color--off-white);
}

.engreg-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.engreg-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 2rem;
  max-width: none;
  width: 100%;
}

.engreg-focus-card {
  background: var(--wp--preset--color--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--wp--preset--color--orange);
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.engreg-focus-card > * {
  width: 100%;
}

.engreg-focus-card:hover {
  transform: translateY(-4px);
}

.engreg-focus-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 131, 84, 0.12);
  color: var(--wp--preset--color--orange);
  margin: 0 auto 1.25rem;
}

.engreg-focus-card__icon svg {
  width: 32px;
  height: 32px;
}

.engreg-focus-card h3 {
  margin-top: 0;
  color: var(--wp--preset--color--navy);
  text-align: center;
}

.engreg-focus-card p {
  text-align: left;
}

.engreg-why-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.engreg-why-list li {
  background: var(--wp--preset--color--white);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--wp--preset--color--orange);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.engreg-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.engreg-leader-card {
  text-align: center;
  margin: 0;
}

.engreg-leader-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--wp--preset--color--orange);
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.engreg-leader-card:hover img {
  filter: grayscale(0%);
}

.engreg-leader-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0.25rem auto 0;
  border-radius: 50%;
  color: var(--wp--preset--color--navy);
  transition: color 0.2s ease, transform 0.2s ease;
}

.engreg-leader-linkedin svg {
  width: 24px;
  height: 24px;
}

.engreg-leader-linkedin:hover {
  color: var(--wp--preset--color--orange);
  transform: translateY(-2px);
}

.engreg-about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.engreg-about-gallery .engreg-about-gallery__item {
  margin: 0;
}

.engreg-about-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .engreg-about-gallery {
    grid-template-columns: 1fr;
  }
}

.engreg-cta-banner {
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.engreg-cta-banner h2 {
  color: var(--wp--preset--color--white) !important;
  margin-bottom: 1rem;
}

.engreg-footer {
  background: var(--wp--preset--color--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 1.5rem;
}

.engreg-footer a {
  color: var(--wp--preset--color--orange);
}

.engreg-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.engreg-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  text-align: center;
}

.engreg-legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.engreg-legal-content h2 {
  margin-top: 2rem;
}

.engreg-contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--wp--preset--color--off-white);
  border-radius: 8px;
}

.engreg-contact-form-wrap .ff-el-group:has(input[name="sms_transactional[]"]) > .ff-el-input--label,
.engreg-contact-form-wrap .ff-el-group:has(input[name="sms_marketing[]"]) > .ff-el-input--label {
  display: none;
}

.engreg-contact-form-wrap .ff-el-form-check-label {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.engreg-contact-form-wrap .ff-el-form-check {
  margin-bottom: 0.35rem;
}

.engreg-sms-disclaimer {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4a5568;
}

.engreg-sms-legal-links {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .engreg-focus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 768px) {
  .engreg-header__inner {
    flex-wrap: wrap;
  }

  .engreg-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .engreg-hero {
    min-height: 400px;
  }
}
