/* =====================================
   Coach Homes III COA Website Styles
   Last Updated: April 2026
===================================== */

:root {
  --navy: #174a68;
  --deep-ocean: #0f3a52;
  --sky: #6fb7d6;
  --seafoam: #dff2f6;
  --sand: #f4ecdf;
  --sunlight: #fff9f0;
  --white: #ffffff;
  --text: #243746;
  --muted: #5c7482;
  --border: rgba(23, 74, 104, 0.12);
  --shadow: 0 14px 40px rgba(15, 58, 82, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1220px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(111, 183, 214, 0.18), transparent 32%),
    linear-gradient(180deg, #f9fdff 0%, #eef8fb 42%, #f8f5ee 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  padding: 1.1rem 0 2rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.anchor-section {
  scroll-margin-top: 100px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(23, 74, 104, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--sky));
  box-shadow: 0 8px 18px rgba(23, 74, 104, 0.25);
  flex-shrink: 0;
}

.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--deep-ocean);
}

.brand-text p {
  margin: 0.12rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--deep-ocean);
  transition: 0.2s ease;
}

.nav a:hover {
  background: rgba(111, 183, 214, 0.14);
  color: var(--navy);
}

/* Shared Cards */
.hero-copy,
.hero-card,
.section-card,
.feature-card,
.image-card,
.link-card,
.cta-panel,
.info-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy {
  border-radius: 34px;
  padding: 2.7rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(223, 242, 246, 0.9)),
    var(--white);
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(111, 183, 214, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(111, 183, 214, 0.14);
  color: var(--navy);
}

.hero-copy h2,
.hero-card h2 {
  margin: 0;
  color: var(--deep-ocean);
}

.hero-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  max-width: 11ch;
}

.hero-copy p,
.hero-card p {
  color: var(--muted);
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-card {
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.hero-card-text {
  border-radius: 30px;
  padding: 2.2rem 2.4rem;
  display: block;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(223, 242, 246, 0.92)),
    var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card-text h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--deep-ocean);
}

.hero-card-text p {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-card-content {
  padding: 1.2rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(223, 242, 246, 0.72));
}

.hero-card-content strong {
  display: block;
  color: var(--deep-ocean);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.hero-card-content span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: var(--white);
  box-shadow: 0 12px 25px rgba(23, 74, 104, 0.22);
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-ocean);
  border: 1px solid rgba(23, 74, 104, 0.12);
}

/* Quick Links */
.quick-links {
  padding: 0 0 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.2rem;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(111, 183, 214, 0.18), rgba(223, 242, 246, 0.72));
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--deep-ocean);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Section Headers */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  color: var(--deep-ocean);
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.section-heading h3 {
  font-size: 1.5rem;
}

.section-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

/* Community Images */
.images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.image-card {
  border-radius: 26px;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card .caption {
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(223, 242, 246, 0.72));
}

.caption strong {
  display: block;
  color: var(--deep-ocean);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.caption span {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Content Grids */
.content-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.3rem;
  align-items: start;
}

.two-column-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

/* Section Cards */
.section-card {
  border-radius: 28px;
  padding: 1.35rem;
}

.section-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.22rem;
  color: var(--deep-ocean);
}

.section-card > p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Link Cards */
.link-card {

  border-radius: 18px;
  padding: 1rem 1rem 1rem 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 236, 223, 0.72));
  transition: 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 58, 82, 0.1);
}

.link-card-text {
  min-width: 0;
}

.link-card-text strong {
  display: block;
  color: var(--deep-ocean);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.link-card-text span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  flex-shrink: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(23, 74, 104, 0.08);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Governance / Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.info-card {
  border-radius: 20px;
  padding: 1rem 1rem 0.95rem;
}

.info-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--deep-ocean);
  font-size: 0.98rem;
}

.info-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
}

/* CTA */
.cta {
  padding: 0.75rem 0 3rem;
}

.cta-panel {
  border-radius: 30px;
  padding: 1.7rem;
  background: linear-gradient(135deg, rgba(23, 74, 104, 0.98), rgba(111, 183, 214, 0.94));
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 1rem;
  align-items: center;
}

.cta-panel h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
}

.cta-panel .btn-secondary {
  background: var(--white);
  color: var(--deep-ocean);
  border: none;
}

/* Footer */
footer {
  padding: 0 0 2.4rem;
}

.footer-card {
  border-radius: 24px;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-card strong {
  color: var(--deep-ocean);
}

/* Responsive */
@media (max-width: 1050px) {
  .hero-grid,
  .content-grid,
  .cta-panel,
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .section-heading,
  .footer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-card,
  .section-card,
  .cta-panel {
    padding: 1.35rem;
  }

  .images-grid {
    grid-template-columns: 1fr;
  }

  .image-card img {
    height: 250px;
  }

  .link-card {
    align-items: flex-start;
  }
}

  .hero--compact {
    padding: 2.5rem 0 1rem;
}