/* ─── VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --brand:       #A31A00;
  --brand-dark:  #7a1300;
  --brand-light: #c92200;
  --dark-accent:  #A88A26;
  --white:       #ffffff;
  --off-white:   #f8f6f4;
  --light-gray:  #ebebeb;
  --mid-gray:    #000000;
  --dark:        #1a1a1a;
  --text:        #000000;

  --font:        'Figtree', sans-serif;

  --nav-h:       72px;
  --max-w:       1280px;
  --gutter:      clamp(1.5rem, 5vw, 4rem);

  --radius:      4px;
  --radius-lg:   8px;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:       0.3s var(--ease);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.4;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display   { font-size: clamp(3.5rem, 10vw, 9rem); font-weight: 700; letter-spacing: -0.03em; }
.h1        { font-size: clamp(2.5rem, 6vw, 5rem);  font-weight: 700; }
.h2        { font-size: clamp(1.8rem, 4vw, 3rem);  font-weight: 700; }
.h3        { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 500; }
.h4        { font-size: 1.125rem; font-weight: 700; }
.overline  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.body-lg   { font-size: 1.125rem; line-height: 1.7; }
.body-sm   { font-size: 0.875rem; line-height: 1.6; }

/* ─── LAYOUT UTILITIES ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section--flush-top  { padding-top: 0; }
.section--dark       { background: var(--dark); color: var(--white); }
.section--brand      { background: var(--brand); color: var(--white); }
.section--off-white  { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 26, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--brand);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline-dark:hover {
  background: var(--brand);
  color: var(--white);
}


.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
/* ─── SECTION HEADER ─────────────────────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-header .overline {
  color: var(--brand);
  margin-bottom: 0.75rem;
  display: block;
}
.section-header p {
  max-width: 56ch;
  color: var(--text);
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  margin-inline: auto;
}

/* ─── DIVIDER ────────────────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-block: 1rem;
}

/* ─── SCROLL ANIMATION ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.is-error { border-color: #cc0000 !important; box-shadow: 0 0 0 3px rgba(204,0,0,0.1) !important; }

/* ─── INSTAGRAM EMBED ────────────────────────────────────────────────────── */
/* ── Instagram strip ──────────────────────────────────────── */
.ig-strip-section {
  padding-block: 4rem 0;
  background: var(--white);
}
.ig-strip-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.ig-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ig-strip__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--light-gray);
  text-decoration: none;
}
.ig-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ig-strip__item:hover img {
  transform: scale(1.05);
}
.ig-strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig-strip__item:hover .ig-strip__overlay { opacity: 1; }
.ig-strip__overlay svg {
  width: 2rem;
  height: 2rem;
}
.ig-strip__overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
/* loading shimmer */
@keyframes ig-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.ig-strip__item--loading {
  background: #e8e8e8;
  background-image: linear-gradient(90deg, #e8e8e8 25%, #d0d0d0 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: ig-shimmer 1.4s infinite linear;
}
.ig-strip__item--loading img { opacity: 0; }

/* fallback if fetch fails — dark tile with IG icon */
.ig-strip__item--fallback { background: var(--dark); }
.ig-strip__item--fallback .ig-strip__overlay {
  opacity: 1;
  background: transparent;
}

@media (max-width: 600px) {
  .ig-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Reset blockquote so Instagram's iframe fills the cell */
.ig-embed-item {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ig-embed-grid { grid-template-columns: 1fr; }
}

/* ─── INDEX BUILDING MAP ─────────────────────────────────────────────────── */
.idx-bmap-section {
  padding: 5rem 0 6rem;
  background: var(--dark);
}

.idx-bmap-header {
  text-align: center;
  margin-bottom: 3rem;
}
.idx-bmap-header .h2       { color: var(--white); }
.idx-bmap-header .body-lg  { color: rgba(255,255,255,0.5) !important; max-width: 100% !important; text-align: center; }
.idx-bmap-header .overline { color: var(--dark-accent) !important; }

.idx-bmap {
  max-width: 800px;
  margin: 0 auto;
}

.idx-bmap__compound {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.idx-bmap__address {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.125rem;
}

.idx-bmap__row { display: flex; gap: 0.875rem; }
.idx-bmap__row--top  { flex-direction: column; }
.idx-bmap__row--bottom { flex-direction: row; }

.idx-bmap__block {
  background: rgba(255,255,255,0.96);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.idx-bmap__block:hover {
  border-color: var(--dark-accent);
  box-shadow: 0 6px 28px rgba(168,138,38,0.18);
  transform: translateY(-3px);
}

.idx-bmap__block--hughs  { width: 100%; min-height: 110px; justify-content: center; }
.idx-bmap__block--house,
.idx-bmap__block--hrc    { flex: 1; min-height: 140px; }

.idx-bmap__num {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-accent);
  margin-bottom: 0.25rem;
}

.idx-bmap__name {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.idx-bmap__type {
  font-size: 0.75rem;
  color: var(--text);
  margin-top: 0.125rem;
}

.idx-bmap__badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.idx-bmap__arrow {
  position: absolute;
  bottom: 1.125rem;
  right: 1.25rem;
  font-size: 0.875rem;
  color: var(--dark-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.idx-bmap__block:hover .idx-bmap__arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 640px) {
  .idx-bmap__row--bottom { flex-direction: column; }
  .idx-bmap__block--hughs { min-height: 90px; }
  .idx-bmap__name { font-size: 1rem; }
}

