/* Homepage (index.php) — page content styles only.
   Template chrome, brand tokens, typography and buttons live in main.css.
   Section rhythm, page hero, forms and reveals live in page.css.
*/

/* —— Hero ——
   Navy band running out of the header: primary brand colour carrying
   the agent portrait, with copy reversed out in ivory.
*/
.hero {
  position: relative;
  padding: 3.5rem 0 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 0%, rgba(31, 107, 138, 0.35), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-copy {
  position: relative;
  max-width: 36rem;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}

.hero-copy .eyebrow {
  color: var(--gold);
}

.hero-copy h1 {
  color: var(--ivory);
}

.hero-copy .lede {
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
  color: var(--on-navy);
}

.hero-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Transparent portrait — sits directly on the navy band (no card frame). */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0;
  padding-bottom: 0;
  background: transparent;
  align-self: end;
  animation: heroIn 1.1s var(--ease) both;
}

@media (min-width: 900px) {
  .hero-card {
    margin-left: auto;
    margin-right: 0;
  }
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

/* —— About —— */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

.about-grid p {
  color: var(--charcoal);
}

.about-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.about-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
}

.contact-list svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
}

.contact-list a {
  color: var(--blue);
}

.contact-list a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dre {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Services —— */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: service;
}

@media (min-width: 700px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.service-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  counter-increment: service;
  padding: 1.85rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
    box-shadow 0.3s var(--ease);
}

.service-list li.is-visible {
  opacity: 1;
  transform: none;
}

.service-list li:hover {
  box-shadow: var(--shadow-md);
}

/* Gold badge — a small highlight, per the accent rule. */
.service-list li::before {
  content: counter(service, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.service-list li:nth-child(2) {
  transition-delay: 0.08s;
}

.service-list li:nth-child(3) {
  transition-delay: 0.16s;
}

.service-list h3 {
  margin-bottom: 0.5rem;
}

.service-list p {
  font-size: 0.92rem;
  color: var(--muted);
}

.service-list .service-link {
  margin-top: auto;
}

/* Card-wide click target for the service links. */
.service-list .service-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* —— Communities —— */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .community-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.community-grid a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.community-grid a:hover {
  border-left-color: var(--cta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.community-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.community-region {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Animations —— */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .service-list li {
    opacity: 1;
    transform: none;
  }
}
