/* ============================================================
   GoldenIslesNewHomes.com — shared stylesheet
   Dewey "DJ" Snipes · Engel & Völkers Golden Isles
   ============================================================ */

:root {
  --red: #D71E2B;
  --red-dark: #b21420;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e3de;
  --paper: #ffffff;
  --wash: #f7f6f3;
  --dark: #141414;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4.serif, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--red);
  margin-bottom: 14px;
}
.rule {
  width: 48px;
  height: 2px;
  background: var(--red);
  border: 0;
  margin: 0 0 22px;
}
.rule-center { margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.lead { font-size: 1.1rem; color: #3a3a3a; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { flex-shrink: 0; }
.brand-main {
  display: block;
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: .2em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--red);
  margin-top: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
  padding: 8px 0 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.site-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.active, .site-nav a:hover { border-bottom-color: var(--red); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 15, 18, .38) 0%, rgba(15, 15, 18, .62) 55%, rgba(15, 15, 18, .80) 100%),
    url('../images/hero.jpg') center / cover no-repeat;
  background-color: #22262b; /* fallback while image loads */
}
.hero-inner { max-width: 860px; padding: 110px 24px; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.hero .eyebrow { color: #fff; opacity: .92; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero-role {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  margin-bottom: 22px;
}
.hero-rule { width: 56px; height: 2px; background: var(--red); border: 0; margin: 0 auto 24px; }
.hero-stats {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .9;
  margin-bottom: 26px;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 38px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Interior page hero ---------- */
.page-hero {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 72px 24px 64px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .03em; margin-bottom: 12px; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-wash { background: var(--wash); }
.section-dark { background: var(--dark); color: #fff; }

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}
.split-reverse { grid-template-columns: 7fr 5fr; }
.split img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .split, .split-reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 32px;
}
.card .rule { margin-bottom: 18px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: #444; font-size: .95rem; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
}
.card-link:hover { color: var(--red-dark); border-bottom-color: var(--red-dark); }
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Areas ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.area {
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding: 26px 18px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .06em;
  transition: border-color .2s ease, color .2s ease;
}
.area:hover { border-color: var(--red); }

/* ---------- Lists ---------- */
.list-styled { list-style: none; margin: 0 0 1.2em; }
.list-styled li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.list-styled li::before {
  content: "\2014"; /* em dash */
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid a { display: block; overflow: hidden; background: var(--wash); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); opacity: .92; }
.gallery-grid figcaption {
  font-size: .8rem;
  color: var(--muted);
  padding: 8px 2px 0;
  min-height: 1.2em;
}

/* teaser variant on home page */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.teaser-grid a { display: block; overflow: hidden; background: var(--wash); }
.teaser-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.teaser-grid a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 12, 12, .94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.lightbox-caption {
  color: #ddd;
  font-size: .85rem;
  letter-spacing: .04em;
  margin-top: 14px;
  min-height: 1.2em;
  text-align: center;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--sans);
  cursor: pointer;
  padding: 14px;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s ease, color .2s ease;
}
.lightbox button:hover { opacity: 1; color: var(--red); }
.lightbox-close { top: 14px; right: 18px; font-size: 2rem; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 90px 24px;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-band p { max-width: 640px; margin: 0 auto 30px; color: #d6d6d6; }
.cta-band .eyebrow { color: var(--red); }

/* ---------- Full-width image band ---------- */
.image-band { line-height: 0; }
.image-band img {
  width: 100%;
  height: 46vh;
  min-height: 300px;
  object-fit: cover;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .form-field-full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-item { margin-bottom: 26px; }
.contact-item h3 {
  font-family: var(--sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--red);
  margin-bottom: 6px;
}
.contact-item p, .contact-item a { font-size: 1.05rem; }
.contact-item a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  padding: 70px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .2em;
  margin-bottom: 6px;
}
.footer-tag {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 18px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col h4::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin-top: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.footer-nav a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #2b2b2b;
  padding: 24px;
  text-align: center;
  font-size: .78rem;
  color: #9a9a9a;
}

/* ---------- Misc responsive ---------- */
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 80px 20px; }
  .hero-ctas .btn { width: 100%; }
}
