/* ============================================================
   Pine Creek — main stylesheet
   Palette: gold #AB996D · black #231F20 · gray #585858
            light-gray #bebebe · cream #F7F4EE · white #fff
   Fonts: Libre Baskerville (headings) · Lato (body)
   NOTE: css/main.scss is the source. No build tooling is present
   locally, so this compiled file is edited directly and kept in
   sync with the SCSS by hand.
   ============================================================ */

:root {
  --gold: #AB996D;
  --gold-dark: #8a7a52;
  --black: #231F20;
  --gray: #585858;
  --light-gray: #bebebe;
  --cream: #F7F4EE;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: "Lato", sans-serif;
  background-color: var(--white);
  color: var(--black);
  margin: 0;
  overflow-x: hidden;
  line-height: 1.65;
}

html { scroll-behavior: smooth; }

p, a, li, span, div, td, th { font-family: "Lato", sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: "Libre Baskerville", serif; }

img { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
p { margin-top: 0; margin-bottom: 1rem; }

/* ============================================================
   MINIMAL GRID & UTILITIES
   Self-hosted replacement for the small subset of Bootstrap 4
   this site used (grid, a few utilities, button base). Removes a
   render-blocking ~160 KB external stylesheet. Breakpoint lg = 992px.
   ============================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.row > [class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}
/* mobile-first: columns are full width until the lg breakpoint */
[class*="col-lg-"] { flex: 0 0 100%; max-width: 100%; }

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

.mb-4 { margin-bottom: 1.5rem; }

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  .mb-lg-0 { margin-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  border: 1px solid transparent;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}
.btn {
  font-family: "Libre Baskerville", serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 0.55rem 1.5rem;
  border-radius: 2px;
}
.btn + .btn { margin-left: 0.5rem; }

.btn-light {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-primary {
  color: var(--white);
  background-color: var(--gold);
  border-color: var(--gold);
}
.btn-primary:hover { color: var(--white); }
.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn-primary:active, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  background-color: #81714a;
  border-color: #81714a;
  box-shadow: 0 0 0 0.2rem rgba(129, 113, 74, 0.5);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav.main-nav {
  background: var(--white);
  border-bottom-left-radius: 100% 64px;
  border-bottom-right-radius: 100% 64px;
  box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.16);
  display: flex;
  padding: 12px 0 28px;
  position: fixed;
  width: 100%;
  z-index: 20;
  transition: box-shadow 0.25s, padding 0.25s;
}
nav.main-nav.scrolled {
  padding: 8px 0 20px;
  box-shadow: 0 6px 14px 0px rgba(0, 0, 0, 0.18);
}
nav.main-nav .mobile-nav {
  align-items: center;
  display: flex;
  flex-direction: row;
}
nav.main-nav .mobile-nav .mobile-nav--logo {
  display: none;
  max-width: 96px;
}
nav.main-nav .mobile-nav .mobile-nav--logo img { width: 100%; }
@media (max-width: 991px) {
  nav.main-nav .mobile-nav .mobile-nav--logo { display: block; }
}
nav.main-nav .mobile-nav .hamburger {
  cursor: pointer;
  display: none;
  margin-left: auto;
  position: relative;
  width: 30px;
  z-index: 1;
}
nav.main-nav .mobile-nav .hamburger > div {
  background-color: var(--black);
  border-radius: 2px;
  height: 4px;
  margin-bottom: 5px;
  transition: 0.25s;
  width: 30px;
}
nav.main-nav .mobile-nav .hamburger > div:last-child { margin-bottom: 0; }
nav.main-nav .mobile-nav .hamburger:hover > div { background-color: var(--gold); }
@media (max-width: 991px) {
  nav.main-nav .mobile-nav .hamburger { display: block; }
}
nav.main-nav .mobile-nav .hamburger.in div:first-child {
  position: relative; top: 1px; transform: rotate(45deg);
}
nav.main-nav .mobile-nav .hamburger.in div:nth-child(2) {
  transform: translate(-17px); width: 40px; opacity: 0;
}
nav.main-nav .mobile-nav .hamburger.in div:last-child {
  bottom: 8px; position: relative; transform: rotate(-45deg);
}
nav.main-nav ul {
  align-items: center;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}
@media (max-width: 991px) {
  nav.main-nav ul {
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    height: 100%;
    left: 100%;
    padding: 24px;
    position: fixed;
    top: 0;
    transition: 0.25s;
    width: 100%;
    z-index: 5;
  }
  nav.main-nav ul.in { left: 0; }
}
nav.main-nav ul li {
  font-family: "Libre Baskerville", serif;
  list-style: none;
  width: 100%;
}
nav.main-nav ul li a {
  font-family: "Libre Baskerville", serif;
  color: var(--black);
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
  transition: color 0.2s;
}
nav.main-nav ul li a:hover { color: var(--gold); }
@media (max-width: 991px) {
  nav.main-nav ul li a { font-size: 16px; padding-bottom: 22px; width: 50%; }
}
nav.main-nav ul li:nth-child(-n+3) a { text-align: left; }
nav.main-nav ul li:nth-last-child(-n+3) a { text-align: right; }
@media (max-width: 991px) {
  nav.main-nav ul li:nth-child(-n+3) a,
  nav.main-nav ul li:nth-last-child(-n+3) a { text-align: center; }
}
nav.main-nav ul li.main-nav--logo a img { margin: 0 14px; height: 52px; width: auto; }
@media (max-width: 991px) {
  nav.main-nav ul li.main-nav--logo { display: none; }
  nav.main-nav { border-radius: 0; padding: 18px 0; }
}

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */
.page-content { padding-top: 92px; }
@media (max-width: 991px) { .page-content { padding-top: 72px; } }

.section { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 767px) { .section { padding-top: 48px; padding-bottom: 48px; } }

.eyebrow {
  display: inline-block;
  font-family: "Libre Baskerville", serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow.light { color: #d8c9a3; }

.section-title { font-size: 36px; margin: 0 0 16px; line-height: 1.2; }
.section-subtitle { color: var(--gray); font-style: italic; margin-bottom: 20px; }
.section-lead {
  max-width: 780px;
  margin: 0 auto 8px;
  color: var(--gray);
  font-size: 17px;
}
@media (max-width: 767px) { .section-title { font-size: 28px; } }

.section-divider {
  border: 0;
  border-top: 1px solid rgba(171, 153, 109, 0.35);
  margin: 0;
}

.feature-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
}
@media (max-width: 767px) { .feature-img { height: 280px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - 92px);
  min-height: 480px;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 991px) { .hero { height: calc(100vh - 72px); } }

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,31,32,0.35) 0%, rgba(35,31,32,0.15) 40%, rgba(35,31,32,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 20px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 13px;
  font-family: "Libre Baskerville", serif;
  margin-bottom: 12px;
  color: #f2e9d6;
}
.hero-title {
  font-size: 84px;
  margin: 0 0 14px;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 20px;
  font-family: "Libre Baskerville", serif;
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero-btn { font-size: 15px; padding: 0.7rem 2rem; }
@media (max-width: 767px) {
  .hero-title { font-size: 52px; }
  .hero-sub { font-size: 16px; }
}
.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.85;
  animation: heroBounce 2s infinite;
}
.hero-scroll svg { width: 34px; height: 34px; }
@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================================
   GALLERY (carousel)
   ============================================================ */
.gallery {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
}
.gallery-track {
  position: relative;
  width: 100%;
  height: 460px;
}
@media (max-width: 991px) { .gallery-track { height: 360px; } }
@media (max-width: 575px) { .gallery-track { height: 260px; } }
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.gallery-img.is-active { opacity: 1; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, transform 0.15s;
}
.gallery-arrow:hover { background: var(--white); }
.gallery-arrow:active { transform: translateY(-50%) scale(0.92); }
.gallery-arrow svg { width: 22px; height: 22px; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }

.gallery-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gallery-dot.is-active { background: var(--gold); transform: scale(1.25); }

/* ============================================================
   COMMUNITY MAP
   ============================================================ */
.map-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(171, 153, 109, 0.3);
  max-width: 900px;
  margin: 0 auto;
}
.map-img { display: block; width: 100%; }

/* ============================================================
   HOA BOARD TABLE
   ============================================================ */
.board-heading {
  text-align: center;
  font-size: 24px;
  margin: 40px 0 24px;
}
.board-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.4);
}
.board-table thead th {
  background: var(--black);
  color: var(--white);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  text-align: left;
  padding: 16px 22px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.board-table tbody td {
  padding: 16px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}
.board-table tbody tr:nth-child(even) { background: var(--cream); }
.board-table tbody tr:hover { background: rgba(171, 153, 109, 0.12); }
.board-table td a { color: var(--gold-dark); text-decoration: none; }
.board-table td a:hover { text-decoration: underline; }
.board-table td[data-label="Position"] { font-family: "Libre Baskerville", serif; }

/* Stack into cards on small screens */
@media (max-width: 575px) {
  .board-table { box-shadow: none; }
  .board-table thead { display: none; }
  .board-table, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table tbody tr {
    margin-bottom: 16px;
    border: 1px solid rgba(171, 153, 109, 0.3);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px -14px rgba(0,0,0,0.4);
  }
  .board-table tbody tr:nth-child(even) { background: var(--white); }
  .board-table tbody td { border-top: none; padding: 10px 18px; }
  .board-table tbody td:first-child { padding-top: 16px; font-weight: 700; font-size: 17px; }
  .board-table tbody td:last-child { padding-bottom: 16px; }
  .board-table tbody td::before {
    content: attr(data-label);
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 2px;
  }
  .board-table tbody td:first-child::before { content: ""; margin: 0; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--black);
  color: var(--white);
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-lead { color: #cfcabd; }
.contact-btn {
  margin-top: 18px;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  font-family: "Libre Baskerville", serif;
  padding: 0.7rem 2rem;
}
.contact-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream);
  text-align: center;
  padding: 44px 0;
  border-top: 1px solid rgba(171, 153, 109, 0.3);
}
.footer-logo { height: 70px; margin-bottom: 14px; }
.footer-tagline {
  font-family: "Libre Baskerville", serif;
  color: var(--gray);
  margin-bottom: 6px;
}
.footer-copy { color: var(--light-gray); font-size: 13px; margin: 0; }

/* ============================================================
   CUSTOM-HOMES AVAILABILITY NOTE
   ============================================================ */
.availability-note {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 22px 0;
  color: var(--gray);
  font-style: italic;
}
.availability-note a { color: var(--gold-dark); font-weight: 700; }

/* ============================================================
   GOOGLE MAP EMBED (Kannapolis)
   ============================================================ */
.map-embed {
  margin-top: 40px;
  position: relative;
  width: 100%;
  padding-top: 42%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(171, 153, 109, 0.3);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) { .map-embed { padding-top: 75%; } }

/* ============================================================
   HOMEOWNER DOCUMENTS
   ============================================================ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 28px auto 0;
}
@media (max-width: 767px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(171, 153, 109, 0.35);
  border-radius: 6px;
  text-decoration: none;
  color: var(--black);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.45);
  border-color: var(--gold);
  text-decoration: none;
  color: var(--black);
}
.doc-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(171, 153, 109, 0.14);
  color: var(--gold-dark);
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-text { display: flex; flex-direction: column; }
.doc-title {
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 3px;
}
.doc-meta { font-size: 12.5px; color: var(--gray); }
.doc-note { text-align: center; color: var(--gray); margin-top: 24px; font-size: 15px; }
.doc-note a { color: var(--gold-dark); font-weight: 700; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.gallery-track.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 18, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  max-width: 700px;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close {
  top: 18px; right: 18px;
  width: 48px; height: 48px;
}
.lightbox-close svg { width: 26px; height: 26px; }
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
}
.lightbox-arrow svg { width: 28px; height: 28px; }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }
@media (max-width: 575px) {
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
}
