/* Lathmar simple GitHub Pages website
   Structure:
   - Fullscreen landing screen with title image
   - Two-column follow-up section
   - Static HTML/CSS only, suitable for GitHub Pages
*/

:root {
  --bg: #080706;
  --panel: rgba(20, 17, 14, 0.40); /* adjusted transparency from 0.92 to 0.40 for glassy effect */
  --panel-border: rgba(196, 163, 95, 0.35);
  --text: #e8dcc5;
  --muted: #b8a98d;
  --gold: #c9a35a;
  --gold-bright: #efce7b;
  --shadow: rgba(0, 0, 0, 0.78);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(88, 60, 32, 0.25), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  /* background brick pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%23e8dcc5' fill-opacity='0.05'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 163, 90, 0.24);
  background: #000;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
  z-index: 0;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(92vw, var(--max-width));
  padding: 3rem 1.5rem;
  text-align: center;
  text-shadow:
    0 3px 5px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.85);
}

.hero__title-logo {
  width: min(92vw, 980px);
  height: auto;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.9))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
  /* parallax effect on Lathmar logo */
  position: sticky;
  transform: translateY(var(--scroll-offset, 0));
  will-change: transform;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1 {
  margin: 0;
  color: #f1dfb7;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.tagline {
  margin: 1.1rem auto 0;
  max-width: 680px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(10, 8, 7, 0.45);
  backdrop-filter: blur(2px);
  color: #f2e6c9;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.45);
}

.hero__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__nav a,
.button {
  display: inline-block;
  min-width: 9rem;
  padding: 0.78rem 1.12rem;
  border: 1px solid rgba(239, 206, 123, 0.78);
  background: rgba(10, 8, 7, 0.84);
  color: #f6e7c4;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.62);
  box-shadow:
    0 0.7rem 1.45rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(111, 79, 37, 0.3) inset;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  backdrop-filter: blur(1px); /* matching glassy look in header */
}

.hero__nav a:hover,
.button:hover {
  background: rgba(63, 44, 22, 0.9);
  border-color: rgba(255, 220, 140, 0.96);
  box-shadow:
    0 0.95rem 1.85rem rgba(0, 0, 0, 0.54),
    0 0 14px rgba(223, 170, 78, 0.26);
  transform: translateY(-1px);
  text-decoration: none;
}

.hero__nav a:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(255, 226, 152, 0.95);
  outline-offset: 2px;
}

.page {
  /* required height for whole section scrolling */
  min-height: 100vh;
  min-height: 100svh;
  width: min(92vw, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px); /* glassy look */
}

.panel h2 {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: 1.75rem;
  line-height: 1.15;
}

.description p:first-of-type {
  font-size: 1.08rem;
}

.feature-list {
  margin: 1.3rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.35rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 163, 90, 0.36);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  text-align: center;
}

.button--primary {
  background: rgba(101, 63, 28, 0.9);
  border-color: rgba(239, 206, 123, 0.8);
}

.small-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  width: 100%; /* covers the brick patterns */
  margin: 0 auto;
  padding: 2rem calc((100vw - min(92vw, var(--max-width))) / 2) 3rem; /* contents still honor the --max-width position */
  color: rgba(232, 220, 197, 0.62);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid rgba(201, 163, 90, 0.18);
  box-shadow: 0 -1rem 2.4rem rgba(0, 0, 0, 0.42);
  background-color: var(--bg); /* covers the brick patterns */
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero__image {
    transform: scale(1.08);
  }

  .hero__title-logo {
    width: min(94vw, 760px);
  }

  .hero__nav a,
  .button {
    width: 100%;
    max-width: 22rem;
  }

  /* reposition hero content on smaller screens to avoid clipping */
  .hero__content {
    padding: 18% 0;
  }
}
