/* =========================
   Global Variables
========================= */
:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-red-base: #e10600;    /* Adjust for WCAG AA contrast */
  --color-red-active: #b00300;  /* Slightly darker for hover/active */
  --font-family: 'Exo 2', sans-serif;
  --grid-columns: 12;
  --gutter: 24px;
  --max-width: 1200px;
  --spacing-mid: 48px;
}

/* Global layout stability */
html {
  scrollbar-gutter: stable;
}

/* =========================
   Reset / Base
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
}

/* =========================
   Header
========================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: var(--color-white); /* optional if you want a subtle bg */
}

.site-header .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.site-header .hamburger {
  font-size: 2rem;
  cursor: pointer;
}

/* ===============================
   HAMBURGER ICON
   =============================== */

.hamburger {
  font-size: 1.75rem;
  cursor: pointer;
  user-select: none;
  z-index: 1100;
  line-height: 1;
  color: var(--color-black);
  position: relative;
}

/* Swap character, no repositioning */
body.menu-open .hamburger {
  font-size: 2rem;
}

/* Hide ☰ but keep layout */
body.menu-open .hamburger {
  color: transparent;
}

/* Draw X in-place */
body.menu-open .hamburger::after {
  content: "✕";
  color: var(--color-black);
  position: absolute;
  top: 0;
  left: 0;
}

/* ===============================
   FULLSCREEN MENU OVERLAY
   =============================== */

#menu {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Open state */
body.menu-open #menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===============================
   MENU CONTENT
   =============================== */

#menu .links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#menu .links li {
  padding: 1.25rem 0;
  border-bottom: 1px solid #ddd;
}

#menu .links li:last-child {
  border-bottom: none;
}

#menu .links a {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
}

#menu .links a:hover {
  color: var(--color-red-base);
}

/* =========================
   Home Page - Scroll Locked
========================= */

/* Lock scroll for home page */
html.home-page, 
body.home-page {
  overflow: hidden;       /* no scrolling */
  height: 100%;           /* ensure full viewport */
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Main container fills viewport */
.home-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;          /* exactly one viewport tall */
  box-sizing: border-box;
  padding: var(--spacing-mid);
  position: relative;
}

/* Header fixed at top */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Medallion grid */
.home-main .medallion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  gap: 6rem;
}

@media (max-width: 768px) {
  .home-main .medallion-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Medallions */
.home-main .medallion {
  width: clamp(220px, 30vw, 350px);
}

.home-main .medallion img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.home-main .medallion:hover img {
  transform: scale(1.05);
}

/* Hidden intro text for accessibility */
.home-intro {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   Links / Buttons
========================= */
a {
  color: var(--color-red-base);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-red-active);
  text-decoration: underline;
}

button {
  font-family: var(--font-family);
  background-color: var(--color-red-base);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover,
button:focus {
  background-color: var(--color-red-active);
}

/* =========================
   Page Styles
========================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  margin-top: 80px; /* offset for fixed header */
  overflow: hidden;
}

/* Background image */
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Hero overlay */
.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* default overlay if JS doesn't run */
  background-color: rgba(128, 128, 128, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero content wrapper */
.hero-content {
  position: absolute;
  bottom: 4rem;          /* vertical position inside hero */
  max-width: var(--max-width);
  left: 0;
  right: 0;
  margin: 0 auto;        /* centers the block horizontally */
  padding: 0 var(--gutter);
  text-align: left;       /* aligns text like other text blocks */
  display: grid;
  gap: 0.5rem; /* very small grid gap */
}

/* Typography */
.page-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-white);
  max-width: 36rem; /* optional line length control */
}

/* Responsive Hero Section Adjustments*/

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    margin-top: 72px;
  }

  .hero-content {
    bottom: 2.5rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 45vh;
    margin-top: 64px;
  }

  .hero-content {
    bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }
}

/* Text Blocks */
.text-blocks {
  max-width: var(--max-width);
  margin: var(--spacing-mid) auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: var(--spacing-mid);
  margin-bottom: 1.25em;
}

.text-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-black);
  margin-bottom: 1.25em;
}

.text-block h2 {
  font-size: 2rem;
  line-height: 1.75;
  color: var(--color-black);
  margin-bottom: 1.25em;
}

.text-block ul,
.text-block ol {
  padding-left: 3rem; /* aligns with card padding */
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.text-block li {
  margin-bottom: 0.1rem; /* optional spacing between items */
}

/* Structural CTA */
.structural-cta {
  text-align: center;
  padding: var(--spacing-mid) 0;
}

.structural-cta .cta-divider {
  border: none;
  border-top: 2px solid var(--color-black);
  margin-bottom: 24px;
  width: 60px;
  margin-left: auto;
  margin-right: auto;
}

.structural-cta .cta-headline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-black);
}

.structural-cta .cta-button {
  background-color: var(--color-red-base);
  color: var(--color-white);
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.structural-cta .cta-button:hover,
.structural-cta .cta-button:focus {
  background-color: var(--color-red-active);
}

/* =========================================================
   PRODUCT PAGE
   ========================================================= */

.product-overview {
  margin-bottom: 1.5rem; /* reduced */
}

.product-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.product-overview-image {
  background: #f6f6f6;
}

.product-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Purchase Module --- */
.product-overview-purchase {
  padding: 2rem; /* reduced from 2.5 */
  background: #fff;
  border-left: 1px solid #e5e5e5;
}

.product-overview-purchase h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 600;
}

.product-shipping {
  font-size: 0.75rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.product-overview-purchase p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* Buy module */
.product-buy {
  margin-top: 1.25rem;
}

/* Full-width buy button */
.product-buy .custom-buy-button {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

/* Stripe trust text */
.product-trust {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.75rem;
}

/* =========================================================
   LOWER SECTIONS
   ========================================================= */

.product-sections {
  margin-top: 0; /* reduced */
}

.product-section {
  max-width: 900px;
  margin: 0 auto 1.5rem; /* reduced */
}

.product-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-section p,
.product-section li {
  line-height: 1.7;
}

.product-section ul {
  padding-left: 1.2rem;
}

/* =========================================================
   PRODUCT MEDALLION
   ========================================================= */

.product-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

/* Desktop: stack medallion above title */
@media screen and (min-width: 901px) {
  .product-title-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-medallion {
    width: 75px;
    height: auto;
    margin-bottom: 0.25rem;
  }
}

/* Mobile: medallion + title on one row */
@media screen and (max-width: 900px) {
  .product-title-wrap {
    flex-direction: row;
  }

  .product-medallion {
    width: 50px;
    height: auto;
    flex-shrink: 0;
  }
}

/* Kill inherited text-blocks gap for product page only */
.product-page {
  gap: 0;
}

/* Divider */
.product-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1.5rem 0; /* reduced */
}

/* Specs table */
.product-specs {
  width: 100%;
  border-collapse: collapse;
}

.product-specs th,
.product-specs td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  text-align: left;
}

.product-specs th {
  width: 35%;
  font-weight: 600;
}

/* Section images */
.product-sections .image.main-inside img{
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 1rem auto 0;
}

/* Video wrapper */
.product-sections .image.main-inside .video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
}

/* Iframe */
.product-sections .image.main-inside iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 900px) {
  .product-overview-grid {
    grid-template-columns: 1fr;
  }

  .product-overview-image img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .product-overview-purchase {
    border-left: none;
    border-top: 1px solid #e5e5e5;
    padding: 1.5rem;
  }
}

/* =====================================================
   Shop Grid
   ===================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-mid);
  margin: 0 auto;
  max-width: var(--max-width);
  align-items: stretch;
}

/* INDIVIDUAL PRODUCT CARD */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: #fff; 
  color: #000;           
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: var(--spacing-mid);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.product-feature {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* =====================================================
   SHOP PRODUCT TITLE + MEDALLION (new)
   ===================================================== */

.shop-product-card-title-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: nowrap; /* Never wrap */
}

.shop-product-card-medallion {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.shop-product-card-title {
  font-size: /* 1.25rem; */
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

/* Product meta and excerpt */
.product-meta {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}

.product-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-card .cta-button {
  align-self: flex-start;
  display: inline-block;
  margin-top: auto;
  font-size: 0.875rem;
}

/* ----------------------
   BREAKPOINTS
   ---------------------- */

@media screen and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-mid);
    padding: 0 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-mid);
    padding: 0 1rem;
  }
}


/* =====================================================
   Post Grid
   ===================================================== */

/* POST GRID RESPONSIVE LAYOUT */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-mid);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* POST CARD */
.post-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #000;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Feature image */
.post-feature {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

/* Card content */
.post-content {
  display: flex;
  flex-direction: column;
  padding: 1rem;        /* padding from card edges */
  gap: 0.75rem;
  flex-grow: 1;
}

/* Card title */
.post-title {
  font-size: 1.25rem;   /* bigger than inner h2 */
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

/* Meta (author/date) */
.post-meta {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Content headings inside card */
.post-content h2 {
  font-size: 1rem;       /* smaller than card title */
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

/* Paragraphs / excerpts */
.post-content p {
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

/* Last paragraph before button */
.post-content > p:last-of-type {
  margin-bottom: 1rem;
}

/* CTA button */
.cta-button {
  display: inline-block;
  margin-top: 1rem;       /* spacing above button */
  padding-top: 1rem;
  float: bottom;
  font-size: 0.875rem;
  text-align: center;
  align-self: flex-start;  /* flush left */
}

/* Pagination buttons */
.pagination button {
  margin: 2rem 0.25rem;
  padding: 0.5rem 1rem;
}

/* Tablet: 2 cards across */
@media screen and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card across */
@media screen and (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .blog-grid {
    gap: 1rem;
  }
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Inner constraint */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left / Right columns */
.footer-left,
.footer-right {
  display: block;
}

.footer-left {
  border-right: 1px solid #fff;
  padding-right: 2rem;
}

.footer-right {
  padding-left: 2rem;
}

/* ---------------------
   Footer form
   --------------------- */

.footer-left form {
  display: grid;
  gap: 12px; /* preserves original spacing */
}

.footer-left input,
.footer-left textarea {
  width: 100%;
  padding: 12px; /* preserves original field height */
  border: 1px solid #ccc;
  font-family: var(--font-family);
  font-size: 1rem;
}

.footer-left textarea {
  resize: vertical;
}

.footer-left button {
  background-color: var(--color-red-base);
  color: var(--color-white);
  padding: 12px;
  font-size: 1rem; /* unchanged */
  cursor: pointer;
}

.footer-left button:hover {
  background-color: var(--color-red-active);
}

/* ---------------------
   Footer right content
   --------------------- */

.footer-right p {
  margin-bottom: 0.75rem;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-social a {
  font-size: 1.25rem;
  color: var(--color-white);
}

.footer-social a:hover {
  color: var(--color-red-active);
}

/* ---------------------
   Copyright line
   --------------------- */

.footer-copyright {
  grid-column: 1 / -1; /* spans both columns */
  border-top: 1px solid #fff;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  text-align: left;
}

/* ---------------------
   Responsive behavior
   --------------------- */

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-left,
  .footer-right {
    border-bottom: 1px solid #fff;
    padding-bottom: 2rem;
  }

  .footer-right {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  /* Footer left: remove right padding + vertical separator */
  .footer-inner .footer-left {
    padding-right: 0 !important;
    border-right: none !important;
  }

  /* Footer right: remove left padding, move bottom padding to top */
  .footer-inner .footer-right {
    padding-left: 0 !important;
    padding-top: var(--spacing-mid) !important;
    padding-bottom: 0 !important;
  }
}

.footer-sitemap {
  margin-top: 2rem;
  font-size: 1rem;
  color: #aaa; /* subtle grey */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* spacing between links and separators */
  align-items: center;
}

.footer-sitemap a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-sitemap a:hover {
  color: var(--color-red-base);
}

.footer-sitemap-separator {
  color: #555; 
}