/* ── MASTER BUTCHER ACADEMY — Shared Styles ─────────── */

:root {
  --crimson:    #7B1C1C;
  --crimson-dk: #4A0E0E;
  --crimson-lt: #9E2A2A;
  --gold:       #C9A84C;
  --gold-lt:    #E8C96A;
  --gold-dk:    #A07830;
  --white:      #F9F4EE;
  --off-white:  #EDE5D8;
  --dark:       #1A0A0A;
  --mid:        #3D1A1A;
  --text-body:  #2C1010;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
}
.nav-logo img { height: 44px; width: 44px; object-fit: contain; mix-blend-mode: screen; }
.nav-brand {
  font-family: 'Cinzel', serif; font-size: 0.82rem;
  color: var(--gold); letter-spacing: 0.08em; line-height: 1.2;
}
.nav-links { display: flex; gap: 0.1rem; list-style: none; }
.nav-links a {
  font-family: 'Source Sans 3', sans-serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--off-white); text-decoration: none;
  padding: 0.4rem 0.65rem; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(201,168,76,0.1); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(26,10,10,0.98); z-index: 999;
  padding: 1rem 2rem; border-bottom: 1px solid rgba(201,168,76,0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--off-white); text-decoration: none;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero {
  padding-top: 64px;
  min-height: 280px;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(74,14,14,0.3), rgba(26,10,10,0.8));
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 2.5rem 2rem 2.5rem;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.breadcrumb {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(201,168,76,0.7); margin-bottom: 0.6rem;
}
.breadcrumb a { color: rgba(201,168,76,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  color: var(--white); line-height: 1.05;
}
.page-hero h1 span { color: var(--gold); }
.page-hero-tag {
  display: inline-block; margin-top: 0.8rem;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
  border-radius: 20px; padding: 0.25rem 1rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
}

/* ── LAYOUT ──────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4.5rem 0; }
.section-label {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  color: var(--white); line-height: 1.1; margin-bottom: 1rem;
}
.section-title span { color: var(--gold); }
.gold-rule {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem 0;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: 3px; text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--gold-lt); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline {
  display: inline-block; color: var(--gold); border: 1px solid var(--gold);
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.8rem 1.8rem; border-radius: 3px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }
.btn-pdf {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: var(--off-white); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18); padding: 0.55rem 1rem;
  border-radius: 2px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-pdf:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.btn-ghost {
  display: inline-block; color: rgba(249,244,238,0.6);
  font-size: 0.8rem; letter-spacing: 0.08em; text-decoration: none;
  border-bottom: 1px solid rgba(249,244,238,0.2); padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ── COURSE CARDS (home & courses page) ──────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 6px;
  padding: 2rem 1.75rem; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  display: flex; flex-direction: column;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.course-card:hover {
  border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.04);
  transform: translateY(-4px);
}
.course-card:hover::before { transform: scaleX(1); }
.course-number {
  font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 900;
  color: rgba(201,168,76,0.1); line-height: 1; margin-bottom: 0.4rem;
}
.course-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.2;
}
.course-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px; padding: 0.18rem 0.55rem; margin-bottom: 0.8rem;
}
.course-card p {
  font-size: 0.88rem; line-height: 1.65;
  color: rgba(249,244,238,0.7); margin-bottom: 1.4rem; flex: 1;
}
.card-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; margin-top: auto; }

/* ── CONTENT BLOCKS (course detail pages) ────────────── */
.content-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start;
}
.content-main { }
.content-sidebar { position: sticky; top: 84px; }

.info-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px; padding: 1.75rem; margin-bottom: 1.5rem;
}
.info-card h4 {
  font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { color: rgba(249,244,238,0.55); }
.info-row .value { color: var(--off-white); font-weight: 600; text-align: right; max-width: 55%; }

.module-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.module-table th {
  font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,168,76,0.08); padding: 0.75rem 1rem;
  text-align: left; border-bottom: 1px solid rgba(201,168,76,0.2);
}
.module-table td {
  padding: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top;
  color: var(--off-white);
}
.module-table tr:last-child td { border-bottom: none; }
.module-table tr:hover td { background: rgba(201,168,76,0.04); }
.module-table td:first-child { color: var(--gold-lt); font-weight: 600; white-space: nowrap; }

.cert-badge {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1rem; border-radius: 4px; margin-bottom: 0.6rem;
  border: 1px solid rgba(201,168,76,0.2);
}
.cert-seal {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; flex-shrink: 0;
}
.seal-gold   { background: #C9A84C; color: #1A0A0A; }
.seal-silver { background: #A8A8A8; color: #1A0A0A; }
.seal-bronze { background: #CD7F32; color: #1A0A0A; }
.seal-red    { background: #9E2A2A; color: #fff; }
.cert-badge .cert-info { font-size: 0.82rem; line-height: 1.4; }
.cert-badge .cert-name { color: var(--off-white); font-weight: 600; }
.cert-badge .cert-req  { color: rgba(249,244,238,0.5); font-size: 0.76rem; }

.highlight-box {
  background: rgba(201,168,76,0.07); border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0; padding: 1.1rem 1.3rem;
  font-size: 0.88rem; line-height: 1.65; color: rgba(249,244,238,0.85);
  margin: 1.5rem 0;
}
.highlight-box strong { color: var(--gold); display: block; margin-bottom: 0.3rem; }

.benefit-list { list-style: none; margin-top: 1rem; }
.benefit-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem; line-height: 1.55; color: var(--off-white);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before {
  content: '✦'; color: var(--gold); font-size: 0.6rem; margin-top: 4px; flex-shrink: 0;
}

/* ── GOOGLE FORM ─────────────────────────────────────── */
.form-embed-wrap {
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(201,168,76,0.25); margin-top: 1.5rem;
}
.form-embed-wrap iframe { display: block; width: 100%; border: none; }

/* ── GALLERY ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gallery-item { overflow: hidden; border-radius: 3px; position: relative; }
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; min-height: 160px; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease; filter: brightness(0.85);
}
.gallery-item.featured img { min-height: 330px; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,14,14,0.6), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── PARTNERS ────────────────────────────────────────── */
.partners-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem;
}
.partner-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.8rem 1.2rem; border: 1px solid rgba(123,28,28,0.15); border-radius: 6px;
  background: var(--white); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.partner-card:hover {
  border-color: rgba(123,28,28,0.35); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(123,28,28,0.1);
}
.partner-logo {
  width: 110px; height: 72px; object-fit: contain; margin-bottom: 0.9rem;
  filter: grayscale(15%); transition: filter 0.3s;
}
.partner-card:hover .partner-logo { filter: grayscale(0%); }
.partner-card h4 {
  font-family: 'Playfair Display', serif; font-size: 0.95rem;
  font-weight: 700; color: var(--crimson-dk); margin-bottom: 0.3rem;
}
.partner-card p { font-size: 0.8rem; line-height: 1.5; color: #666; }

/* ── CONTACT FORM ────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 3px; padding: 0.85rem 1.1rem;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem;
  color: var(--white); outline: none; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(249,244,238,0.35); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  background: var(--gold); color: var(--dark);
  font-family: 'Cinzel', serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 2rem; border: none; border-radius: 3px;
  cursor: pointer; align-self: flex-start;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: var(--gold-lt); transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--dark); border-top: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem 2rem; text-align: center;
}
.footer-logo {
  font-family: 'Cinzel', serif; font-size: 0.95rem;
  color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.5rem;
}
footer p { font-size: 0.78rem; color: rgba(249,244,238,0.4); }
footer a { color: rgba(201,168,76,0.6); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.3rem 1.5rem; margin: 0.8rem 0;
}
.footer-links a {
  font-size: 0.78rem; color: rgba(249,244,238,0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.featured { grid-column: span 1; grid-row: span 1; }
  .gallery-item.featured img { min-height: 160px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .courses-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3rem 0; }
  .module-table { font-size: 0.8rem; }
  .module-table td:first-child { white-space: normal; }
}
