/* ================================================================
   THIRSTYBEAR - Homepage Sections (matched to approved prototype)
   ================================================================ */

/* Container */
.tb-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Full-width sections break out of GP containers */
.tb-front-page .tb-hero,
.tb-front-page .tb-primary-section,
.tb-front-page .tb-modules-section,
.tb-front-page .tb-blog-preview {
  width: 100%;
  max-width: 100%;
}

/* ================================================================
   HERO
   ================================================================ */
.tb-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-wood);
}

.tb-hero__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.tb-hero:hover .tb-hero__background { transform: scale(1.0); }

.tb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26,14,10,0.4) 0%,
    rgba(26,14,10,0.55) 40%,
    rgba(26,14,10,0.75) 100%
  );
}

.tb-hero__grain {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.tb-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 900px;
}

.tb-hero__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 5.5vw, 4rem) !important;
  color: var(--warm-white) !important;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.tb-hero__title em {
  font-style: normal;
  color: var(--amber);
  font-family: var(--font-handwritten) !important;
  text-transform: none;
}

.tb-hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 36px;
  font-style: italic;
}

.tb-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tb-hero__scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  animation: tbFloat 3s ease-in-out infinite;
}

@keyframes tbFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ================================================================
   MISSION / PRIMARY SECTION
   ================================================================ */
.tb-primary-section {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-wood);
}

.tb-primary-section__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.tb-primary-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 10, 0.55);
}

.tb-primary-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.tb-primary-section__heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  color: var(--warm-white) !important;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0 0 32px 0;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

/* ================================================================
   SOCIAL MODULES
   ================================================================ */
.tb-modules-section {
  padding: 60px 0;
  background:
    repeating-linear-gradient(90deg, transparent, rgba(0,0,0,0.02) 1px, transparent 2px, transparent 8px),
    linear-gradient(180deg, #4a2c1a 0%, #5c3a24 30%, #4a2c1a 50%, #5c3a24 70%, #4a2c1a 100%) !important;
}

.tb-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 420px;
}

.tb-module {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tb-module:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 44px rgba(0,0,0,0.4);
}

/* Module: Latest Post */
.tb-module--latest-post {
  background: var(--warm-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.tb-module__icon { color: var(--teal-deep); margin-bottom: 20px; }

.tb-module__excerpt {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  flex: 1;
  font-style: italic;
}

.tb-module__link {
  margin-top: 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 700;
}

.tb-module__link:hover { color: var(--amber); }

/* Module: Featured Image */
.tb-module--featured-image {
  display: flex;
  align-items: flex-end;
  min-height: 420px;
}

.tb-module__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.tb-module--featured-image:hover .tb-module__bg { transform: scale(1.05); }

.tb-module__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,14,10,0.85) 100%);
}

.tb-module__content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.tb-module__title {
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  color: var(--warm-white) !important;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.tb-module__cta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.tb-module__cta:hover { color: var(--amber-bright); }

/* Module: Follow/Instagram */
.tb-module--follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
}

.tb-module--follow .tb-module__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 40px;
}

.tb-module__text {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: var(--warm-white);
  margin-bottom: 12px;
}

.tb-module__handle {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--amber);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* ================================================================
   BLOG PREVIEW
   ================================================================ */
.tb-blog-preview {
  padding: 80px 0;
  background: var(--warm-white);
}

.tb-blog-preview__header {
  text-align: center;
  margin-bottom: 48px;
}

.tb-blog-preview__label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 4px;
}

.tb-blog-preview__heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  color: var(--text-dark) !important;
  text-transform: uppercase;
}

.tb-blog-preview__featured { margin-bottom: 40px; }

.tb-blog-preview__posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.tb-blog-preview__cta { text-align: center; }
