/* ============================================================
   Heiman Fire Theme — Main Stylesheet
   Extracted from the original landing page design.
   ============================================================ */

:root {
  --red: #C8102E;
  --red-dark: #8a0c1e;
  --gold: #F5A623;
  --dark: #161616;
  --white: #ffffff;
  --light-gray: #e2e2e2;
  --text-dark: #111111;
  --text-mid: #444444;
}

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

/* Accessibility — visually hidden but readable by screen readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

body {
  background: #ffffff;
  color: var(--text-dark);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

#main-container {
  max-width: 1330px;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(0,0,0,0.12);
}

/* Above-fold wrapper fills viewport */
#viewport-fill {
  height: 100svh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@supports not (height: 100svh) {
  #viewport-fill { height: 100vh; }
}

/* ======== HEADER ======== */
#header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 10px;
}

.logo-container a { display: block; line-height: 0; }
.logo-container img { width: 194px; height: 63px; object-fit: contain; display: block; }

.navigation-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.social-links ul { display: flex; gap: 16px; list-style: none; align-items: center; }
.social-links a { color: #555; font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.social-links a:hover { color: var(--red); }

.main-navigation ul { display: flex; align-items: center; gap: 10px; list-style: none; }
.main-navigation a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover { color: var(--white); }
.main-navigation .nav-sep { color: #333; font-size: 0.7rem; }

.phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.phone::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  transition: background 0.2s;
}
.phone:hover { color: var(--gold); }
.phone:hover::before { background: var(--gold); }

/* ======== NAP BAR ======== */
#nap-bar {
  background: #f5f2ee;
  border-bottom: 1px solid #e2dfd9;
  flex-shrink: 0;
}
.nap-bar-inner {
  max-width: 1330px;
  margin: 0 auto;
  padding: 9px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nap-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nap-item:hover { color: var(--red); }
.nap-item .nap-ico {
  width: 13px; height: 13px;
  background: var(--red);
  flex-shrink: 0;
}
.nap-ico.phone-ico {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.nap-ico.pin-ico {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/><circle cx='12' cy='10' r='3' fill='none' stroke='black' stroke-width='2.2'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/><circle cx='12' cy='10' r='3' fill='none' stroke='black' stroke-width='2.2'/></svg>") center/contain no-repeat;
}
.nap-ico.clock-ico {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2.2'/><polyline points='12 6 12 12 16 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2.2'/><polyline points='12 6 12 12 16 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.nap-item.nap-phone { color: var(--red); font-weight: 700; }
.nap-item.nap-phone:hover { color: var(--red-dark); }
.nap-sep {
  width: 1px; height: 14px;
  background: #cfc9c0;
}
@media (max-width: 1024px) { .nap-bar-inner { padding: 9px 28px; } }
@media (max-width: 820px) {
  .nap-bar-inner { gap: 14px; padding: 8px 20px; }
  .nap-sep { display: none; }
  .nap-item { font-size: 0.75rem; letter-spacing: 0.08em; }
}
@media (max-width: 520px) {
  .nap-bar-inner { gap: 10px 14px; }
  .nap-item .nap-addr-full { display: none; }
  .nap-item .nap-addr-short { display: inline; }
}
.nap-item .nap-addr-short { display: none; }

/* Footer hours line */
.footer-hours {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* ======== HERO ======== */
#hero {
  position: relative;
  overflow: hidden;
  flex: 0 0 24vh;
  min-height: 120px;
}

#hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.85) saturate(0.9);
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 64px;
  z-index: 2;
}

#hero::after {
  content: 'HEIMAN';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11rem;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

#hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 10px;
  text-align: right;
}
#hero h1 em { color: var(--red); font-style: normal; }

#hero p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  max-width: 440px;
  line-height: 1.6;
  text-align: right;
}

/* ======== DIVISIONS LABEL ======== */
#divisions-label {
  background: #ffffff;
  border-bottom: 1px solid var(--light-gray);
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  height: 40px;
}

#divisions-label .accent-line { width: 32px; height: 3px; background: var(--red); flex-shrink: 0; }
#divisions-label span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ======== CARD GRID ======== */
#main-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--light-gray);
  flex: 1 1 0;
  min-height: 0;
}

/* ======== CARD ======== */
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  min-height: 0;
}

.link-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.12); z-index: 2; }

.link-card .card-photo-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.link-card img.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.23,1,0.32,1);
}

.link-card:hover img.card-photo { transform: scale(1.05); }

/* Red left bar on hover */
.link-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  z-index: 3;
}
.link-card:hover::before { transform: scaleY(1); }

/* Text panel */
.overlay {
  flex-shrink: 0;
  border-top: 3px solid var(--light-gray);
  background: #ffffff;
  transition: border-color 0.2s;
}
.link-card:hover .overlay { border-top-color: var(--red); }

.overlay-inner { padding: 12px 16px 14px; }

.card-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-tag::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}

.overlay-inner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.link-card:hover .overlay-inner h2 { color: var(--red); }

.card-desc {
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1.5px solid rgba(200,16,46,0.3);
  padding-bottom: 2px;
  transition: gap 0.25s, border-color 0.2s;
}
.button::after { content: '→'; transition: transform 0.25s; }
.link-card:hover .button { gap: 14px; border-color: var(--red); }
.link-card:hover .button::after { transform: translateX(4px); }

/* ======== FOOTER ======== */
#footer {
  background: var(--dark);
  border-top: 3px solid var(--red);
  padding: 40px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.footer-col-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}

#footer address {
  font-style: normal;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
}

#footer address a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
#footer address a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

.footer-logos { display: flex; align-items: center; gap: 16px; }
.footer-logos img { height: 44px; width: auto; opacity: 0.85; }
.footer-logos a:hover img { opacity: 1; }
.footer-logos img.fama-logo { filter: brightness(0) invert(1); }

/* ======== ANIMATIONS ======== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
#header-container { animation: fadeUp 0.4s ease both; }
#hero             { animation: fadeUp 0.4s 0.07s ease both; }
#divisions-label  { animation: fadeUp 0.4s 0.1s ease both; }
.link-card:nth-child(1) { animation: fadeUp 0.5s 0.14s ease both; }
.link-card:nth-child(2) { animation: fadeUp 0.5s 0.20s ease both; }
.link-card:nth-child(3) { animation: fadeUp 0.5s 0.26s ease both; }
.link-card:nth-child(4) { animation: fadeUp 0.5s 0.32s ease both; }
.link-card:nth-child(5) { animation: fadeUp 0.5s 0.38s ease both; }
.link-card:nth-child(6) { animation: fadeUp 0.5s 0.44s ease both; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  #header-container { padding: 10px 28px; }
  #hero .hero-overlay { padding: 0 36px; }
  #divisions-label { padding: 0 28px; }
  #footer { padding: 32px 28px 24px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  #main-links-container { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .logo-container img { width: 150px; height: 49px; }
}

@media (max-width: 700px) {
  #viewport-fill { height: auto; overflow: visible; }
  #header-container { padding: 10px 16px; }
  #hero { flex: none; height: 200px; }
  #hero .hero-overlay { padding: 0 20px; }
  #hero h1 { font-size: 1.6rem; }
  #hero p { font-size: 0.8rem; }
  #divisions-label { padding: 0 16px; }
  #main-links-container { display: flex; flex-direction: column; flex: none; }
  .link-card { min-height: 280px; }
  .link-card .card-photo-wrap { flex: 1 1 0; }
  .navigation-right { align-items: flex-end; gap: 0; }
  .social-links, .main-navigation ul li, .main-navigation .nav-sep { display: none; }
  .main-navigation ul { gap: 0; }
  .phone { font-size: 1.3rem; margin-left: 0; }
  .logo-container img { width: 130px; height: 43px; }
  #footer { padding: 28px 16px 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 420px) {
  #hero h1 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
