/* --- UNIVERSAL STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&display=swap');

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  background-image: url('background-texture.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  color: #3d3d3d;
  line-height: 1.7;
  font-size: 16px;
}

.promo-banner {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-weight: bold;
}
.promo-banner p { margin: 0; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: #1a1a1a;
  letter-spacing: 1.5px;
  margin-bottom: 0.5em;
}

a {
  color: #e75a34;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: #1a1a1a; }

/* =========================
   HEADER / NAVIGATION (kept)
   ========================= */
.site-header {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;            /* bump to guarantee it sits above embeds */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff; /* solid, prevents content showing through */
}

/* Consistent logo sizing everywhere */
.logo img,
img.logo,
.logo-link img {
  height: 56px;
  max-height: 56px;
  width: auto;
  display: block;
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
#nav-links a {
  text-decoration: none;
  color: #3d3d3d;
  font-weight: bold;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
}
#nav-links a.active {
  color: #e75a34;
  border-bottom: 2px solid #e75a34;
  padding-bottom: 5px;
}

#hamburger-icon { display: none; cursor: pointer; }
#hamburger-icon .bar {
  width: 25px;
  height: 3px;
  background-color: #3d3d3d;
  margin: 5px 0;
}

/* =========================
   HERO
   ========================= */
.hero {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
  z-index: 1;
}
.hero h1 { font-size: 3.5em; color: #fff; margin: 0.2em 0; }
.hero .subtitle { font-size: 1.3em; color: #ccc; max-width: 600px; margin: 0 auto 30px; }

.cta-button {
  display: inline-block;
  background-color: #e75a34;
  color: #fff;
  padding: 18px 40px;
  font-size: 1.1em;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-button:hover { background-color: #d64923; color: #fff; }

/* =========================
   GENERIC PAGE HEADER
   ========================= */
.page-header {
  padding: 60px 20px;
  background-color: rgba(232, 229, 225, 0.8);
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.page-header h1 { font-size: 3em; }
.page-header .subtitle {
  font-size: 1.2em;
  color: #3d3d3d;
  max-width: 600px;
  margin: 10px auto 0;
}

/* =========================
   CONTENT SECTIONS
   ========================= */
.content-section { padding: 60px 0; }
.content-section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
}

/* =========================
   FEATURES
   ========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.feature-item h3 { font-size: 1.5em; }

/* =========================
   PRODUCT PAGE
   ========================= */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.product-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-details .product-title { font-size: 2.8em; margin-top: 0; }
.product-details .product-price {
  font-size: 2em;
  color: #e75a34;
  font-family: 'Anton', sans-serif;
  margin-bottom: 20px;
}
.product-details .product-description { font-size: 1.1em; margin-bottom: 30px; }

/* Product Image Sizing Fix */
.product-carousel-image-container { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.product-carousel-image { width: 100%; height: 100%; object-fit: cover; }

/* =========================
   VIDEO MODAL
   ========================= */
.video-thumbnail {
  position: relative;
  cursor: pointer;
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
}
.video-thumbnail img { display: block; width: 100%; }
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; background: rgba(0,0,0,0.6);
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  transition: background 0.2s;
}
.play-button:after { content: '▶'; color: white; font-size: 24px; }
.video-thumbnail:hover .play-button { background: #e75a34; }
.video-modal {
  display: none; position: fixed; z-index: 1000; left: 0; top: 0;
  width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8);
}
.modal-content { position: relative; margin: 5% auto; width: 90%; max-width: 800px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.close-modal { position: absolute; top: -30px; right: 0; color: #fff; font-size: 35px; font-weight: bold; cursor: pointer; }

/* =========================
   SHOWCASE VIDEO
   ========================= */
.video-placeholder { width: 100%; max-width: 560px; margin: 20px auto; }
.video-thumbnail-inline { position: relative; cursor: pointer; }
.video-thumbnail-inline img { display: block; width: 100%; }
.video-thumbnail-inline:hover .play-button { background: #e75a34; }

/* =========================
   ACCORDION
   ========================= */
.accordion-item { border-bottom: 1px solid #e0e0e0; }
.accordion-title {
  padding: 20px; cursor: pointer; font-weight: bold; font-size: 1.2em; position: relative;
}
.accordion-title::after {
  content: '+'; position: absolute; right: 20px; font-size: 1.5em; font-family: sans-serif;
}
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease;
  padding: 0 20px;
}
.accordion-content p:first-child, .accordion-content ol:first-child { margin-top: 0; }

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background-color: #1a1a1a; color: #aaa; text-align: center; padding: 40px 20px; font-size: 0.9em;
}
.newsletter-signup {
  max-width: 600px; margin: 0 auto 40px auto; padding: 30px 20px; background-color: #2c2c2c; border-radius: 8px;
}
.newsletter-signup h3 { font-size: 1.6em; margin-bottom: 10px; letter-spacing: 1px; color: #fff; }
.newsletter-signup p { margin: 0 0 20px 0; font-size: 1em; color: #ddd; }
.newsletter-signup form { display: flex; gap: 10px; }
.newsletter-signup input[type="email"] {
  padding: 12px; border: none; border-radius: 4px; flex: 1; font-size: 1em;
}
.newsletter-signup button {
  padding: 12px 24px; background-color: #e75a34; color: #fff; border: none; border-radius: 4px;
  cursor: pointer; font-family: 'Anton', sans-serif; text-transform: uppercase;
}
.newsletter-success { display: none; margin-top: 15px; }
.footer-nav ul {
  list-style: none; padding: 0; margin: 0 0 10px 0; display: flex; gap: 25px; justify-content: center; flex-wrap: wrap;
}
.footer-nav a { font-weight: 700; text-transform: uppercase; font-size: 14px; color: #ccc; }
.site-footer .social-links a { color: #fff; margin: 0 15px; font-size: 1.5em; }

/* ===========================================================
   BLOG (list + single) — fixes + line-clamp compatibility
   =========================================================== */
.blog-container, .post-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

/* Grid for blog.html (if used) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1100px){ .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px){  .blog-grid { grid-template-columns: 1fr; } }

/* Legacy container still fine (single column) */
#blog-posts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.post-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  background: #fff;
}
.post-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-card a { text-decoration: none; color: inherit; }

/* ✅ Uniform thumbnails (fix for huge images) */
.post-card img,
.post-card .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-card-content { padding: 20px; }

/* ✅ Clamp titles/excerpts with standard + webkit */
.post-card-content h2 {
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;                 /* standard */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;                 /* standard */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more { font-weight: bold; color: #e75a34; }

/* ✅ Post hero image capped + consistent ratio */
#post-image {
  width: 100%;
  max-width: 960px;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 20px auto;
  display: block;
}

/* Post content tweaks */
#post-content { line-height: 1.8; }
.back-link { display: inline-block; margin-top: 40px; font-weight: bold; }

/* Tag chips (filters) */
.tag-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: .9rem;
}
.tag-chip.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* =========================
   RELATED POSTS (clean grid)
   ========================= */
.related { margin-top: 40px; }
.related h2 { text-align:center; margin-bottom: 16px; }

#related-grid{
  --min: 260px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  gap: 18px;
}
#related-grid .post-card{
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:8px;
  overflow:hidden;
  display:flex; flex-direction:column;
  transition: transform .06s ease, box-shadow .2s ease;
}
#related-grid .post-card:hover{ transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,.1); }
#related-grid .thumb{
  width:100%; aspect-ratio:16/9; object-fit:cover; display:block;
}
#related-grid .post-card-content{
  padding:14px; display:flex; flex-direction:column; gap:.5rem; flex:1;
}
#related-grid .post-card h2{
  margin:0; font-size: 1rem; line-height:1.35; text-transform:none; letter-spacing:normal;
  display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
#related-grid .post-card p{
  margin:.1rem 0 0; font-size:.95rem; color:#6b6b6b;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .features-grid, .product-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5em; }
  .page-header h1 { font-size: 2.2em; }
  .content-section h2 { font-size: 2em; }

  /* Responsive nav */
  #nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: 100px;                 /* aligned to header height */
    background-color: #ffffff;
    width: 100%;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  #nav-links.active { display: flex; }
  #nav-links li { padding: 1rem 0; }
  #hamburger-icon { display: block; }

  .site-header .logo img,
  header .logo img {
    height: 44px !important;
    max-height: 44px !important;
  }
}

/* Buttons / Pagination helpers reused in blog */
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.cta-button { padding: 10px 16px; border-radius: 10px; border: 1px solid #1a1a1a; background: #1a1a1a; color: #fff; cursor: pointer; }
.cta-button.outline { background: #fff; color: #1a1a1a; }
.cta-button:disabled { opacity: .5; cursor: not-allowed; }
