/* ============================================================
   INTEX — Main Stylesheet
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Core palette — aligned with intexfashion.com */
  --cream:      #F2EDE4;        /* warm off-white background */
  --warm-white: #F8F5F1;        /* page background */
  --ink:        #1A1814;        /* near-black text */
  --red:        #8B1A1A;        /* INTEX primary red — headings, key accents */
  --red-dark:   #6B1414;        /* darker red for hover states */
  --gold:       #C4AB59;        /* logo gold accent */
  --gold-light: #D4C07A;        /* lighter gold */
  --muted:      #6B635A;        /* body text, captions */
  --border:     rgba(26,24,20,0.10);
  --border-red: rgba(139,26,26,0.20);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────────── */
#intex-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(12px);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.nav-logo-mark {
  height: 34px; width: auto; display: block;
}
.nav-logo-wordmark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--ink);
  line-height: 1;
}
.nav-logo span { color: var(--red); }

/* Desktop nav links */
.nav-links-desktop { display: flex; gap: 36px; list-style: none; }
.nav-links-desktop a {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s;
}
.nav-links-desktop a:hover,
.nav-links-desktop a.active { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-cta {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 0.5px solid var(--red); padding: 10px 24px; cursor: pointer;
  background: none; color: var(--red); font-family: 'Montserrat', sans-serif;
  font-weight: 500; transition: all 0.3s; text-decoration: none; display: inline-block;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red); border-color: var(--red); color: var(--warm-white); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  width: 36px; height: 36px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.3s; transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer — sits outside nav, covers full viewport height */
.nav-drawer {
  display: none;                            /* hidden by default on all sizes */
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 75vw; max-width: 280px;
  background: var(--warm-white);
  z-index: 1001;                            /* above nav bar */
  box-shadow: -4px 0 32px rgba(26,24,20,0.2);
  flex-direction: column;
}
.nav-drawer.open { display: flex; }
.nav-drawer ul {
  list-style: none; display: flex; flex-direction: column;
  flex: 1; padding-top: 64px;              /* clear nav bar height */
}
.nav-drawer ul li {
  flex: 1; display: flex; align-items: center;
  border-bottom: 0.5px solid var(--border);
}
.nav-drawer ul li a {
  display: flex; align-items: center;
  width: 100%; height: 100%; padding: 0 28px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { color: var(--red); background: var(--cream); }

/* Overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,24,20,0.5);
}
.nav-overlay.visible { display: block; }

/* ── SCROLL OFFSET — compensate for fixed nav ─────────────── */
/* Desktop nav height ≈ 71px, mobile ≈ 65px */
section[id], div[id="blog-grid"] {
  scroll-margin-top: 80px;
}
@media (max-width: 900px) {
  section[id], div[id="blog-grid"] {
    scroll-margin-top: 68px;
  }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,24,20,0.78) 0%, rgba(26,24,20,0.45) 55%, rgba(26,24,20,0.15) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 0 60px 80px; max-width: 680px; }
.hero-eyebrow { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 24px; font-weight: 500; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: 72px; font-weight: 300; line-height: 1.0; color: var(--warm-white); margin-bottom: 28px; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 12px; letter-spacing: 0.06em; line-height: 1.9; color: rgba(250,250,247,0.6); max-width: 420px; margin-bottom: 48px; font-weight: 300; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500; cursor: pointer;
  background: none; border: none; font-family: 'Montserrat', sans-serif; text-decoration: none;
}
.hero-btn-line { width: 40px; height: 0.5px; background: var(--red); }

.hero-stats {
  position: absolute; bottom: 0; right: 0; z-index: 2;
  display: flex; background: rgba(250,250,247,0.95); backdrop-filter: blur(8px);
}
.stat-item { padding: 28px 36px; border-left: 0.5px solid var(--border); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--ink); line-height: 1; }
.stat-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee-bar { background: var(--red); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; gap: 60px; animation: marquee 22s linear infinite; }
.marquee-item { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--warm-white); font-weight: 500; }
.marquee-dot { color: rgba(255,255,255,0.4); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── ABOUT ────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; }
.about-img {
  background: #C8BEA6; min-height: 580px;
  display: flex; align-items: flex-end; padding: 40px; position: relative; overflow: hidden;
}
.about-img-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-img-caption { font-family: 'Cormorant Garamond', serif; font-size: 12px; color: rgba(250,250,247,0.7); letter-spacing: 0.08em; font-style: italic; position: relative; z-index: 1; text-shadow: 0 1px 4px rgba(26,24,20,0.4); }
.hero-video-placeholder { position: absolute; inset: 0; background: var(--ink); z-index: 0; }
.about-content { padding: 90px 72px; display: flex; flex-direction: column; justify-content: center; }

.section-label { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 24px; font-weight: 500; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; line-height: 1.1; margin-bottom: 28px; }
.section-title em { font-style: italic; color: var(--red); }
.section-body { font-size: 12px; line-height: 2; color: var(--muted); margin-bottom: 36px; font-weight: 300; max-width: 400px; }

.certs { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cert-badge { border: 0.5px solid var(--border); padding: 9px 18px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lwg-badge { display: inline-flex; align-items: center; gap: 10px; border: 0.5px solid var(--red); padding: 8px 16px; margin-top: 24px; }
.lwg-badge-text { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 500; }

/* ── OFFER ────────────────────────────────────────────────── */
.offer { padding: 100px 60px; background: var(--cream); }
.offer-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.offer-note { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; font-weight: 300; max-width: 280px; text-align: right; line-height: 1.8; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.offer-card { background: var(--cream); padding: 48px 40px; position: relative; transition: background 0.3s; }
.offer-card:hover { background: var(--warm-white); }
.offer-num { font-family: 'Cormorant Garamond', serif; font-size: 72px; font-weight: 300; color: rgba(26,24,20,0.06); line-height: 1; position: absolute; top: 24px; right: 32px; }
.offer-icon-line { width: 28px; height: 0.5px; background: var(--red); margin-bottom: 28px; }
.offer-name { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.offer-desc { font-size: 12px; line-height: 1.9; color: var(--muted); font-weight: 300; }
.offer-card-dark { background: var(--ink) !important; }
.offer-cta-btn {
  display: inline-block; background: var(--red); color: var(--warm-white);
  border: none; padding: 12px 28px; font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; font-family: 'Montserrat', sans-serif;
  font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 28px; transition: all 0.2s;
}
.offer-cta-btn:hover { background: var(--red-dark); opacity: 1; }

/* ── TECHNIQUES ───────────────────────────────────────────── */
.techniques { padding: 100px 60px; background: var(--warm-white); }
.tech-header { margin-bottom: 64px; }

/* Carousel layout */
.tech-carousel-wrap {
  display: flex; align-items: center; gap: 16px;
}
.tech-carousel-viewport {
  flex: 1; overflow: hidden;
}

/* 2-row grid — cards are shown/hidden by JS per page */
.tech-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.tech-card {
  aspect-ratio: 1; overflow: hidden; position: relative; cursor: pointer;
}
.tech-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s ease;
}
.tech-card:hover .tech-card-img { transform: scale(1.04); }
.tech-card-inner {
  width: 100%; height: 100%; display: flex; align-items: flex-end;
  position: relative; z-index: 1;
}
.tech-card-label {
  padding: 20px; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; color: var(--warm-white);
  background: linear-gradient(to top, rgba(26,24,20,0.65) 0%, transparent 100%);
  width: 100%;
}

/* Placeholder colours */
.tc1  { background: #BEB5A4; } .tc2  { background: #A89880; }
.tc3  { background: #C5BDB0; } .tc4  { background: #B0A898; }
.tc5  { background: #CCB8A0; } .tc6  { background: #A0948A; }
.tc7  { background: #C8BEA8; } .tc8  { background: #B8A890; }
.tc9  { background: #C2B8A4; } .tc10 { background: #AFA090; }
.tc11 { background: #BDB0A0; } .tc12 { background: #A89C8C; }
.tc13 { background: #C6BCAE; } .tc14 { background: #B4AA98; }
.tc15 { background: #A8A090; } .tc16 { background: #BFBAA8; }

/* Prev / Next arrows */
.tech-carousel-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 0.5px solid var(--border); background: none; cursor: pointer;
  font-size: 18px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tech-carousel-btn:hover { border-color: var(--red); color: var(--red); }
.tech-carousel-btn:disabled { opacity: 0.2; cursor: default; }

/* Dot indicators */
.tech-carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.tech-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tech-carousel-dot.active {
  background: var(--red); transform: scale(1.3);
}

/* ── PROCESS ──────────────────────────────────────────────── */
.process { padding: 100px 60px; background: var(--ink); }
.process-title { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; line-height: 1.1; color: var(--warm-white); margin-bottom: 72px; }
.process-title em { font-style: italic; color: var(--gold-light); }
.process-steps { display: flex; gap: 0; position: relative; }
.process-line { position: absolute; top: 28px; left: 5%; right: 5%; height: 0.5px; background: rgba(139,26,26,0.20); }
.process-step { flex: 1; text-align: center; padding: 0 20px; }
.process-dot {
  width: 56px; height: 56px; border: 0.5px solid var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; background: var(--ink); position: relative; z-index: 1;
}
.process-dot-num { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--red); }
.process-step-title { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-white); font-weight: 500; margin-bottom: 10px; }
.process-step-desc { font-size: 11px; line-height: 1.8; color: rgba(250,250,247,0.38); font-weight: 300; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { padding: 100px 60px; background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-detail { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.contact-row { display: flex; gap: 20px; align-items: flex-start; }
.contact-row-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 500; min-width: 64px; margin-top: 2px; }
.contact-row-val { font-size: 12px; color: var(--muted); line-height: 1.7; font-weight: 300; }
.contact-row-val a { color: var(--red); text-decoration: none; }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-field { margin-bottom: 0; }
.form-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form-input {
  background: var(--warm-white); border: 0.5px solid var(--border);
  padding: 14px 16px; font-size: 12px; font-family: 'Montserrat', sans-serif;
  font-weight: 300; color: var(--ink); outline: none; width: 100%; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--red); }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-submit {
  background: var(--ink); color: var(--warm-white); border: none;
  padding: 16px 40px; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  font-family: 'Montserrat', sans-serif; font-weight: 500; cursor: pointer;
  transition: background 0.3s; margin-top: 8px;
}
.form-submit:hover { background: var(--red); }
.form-msg { padding: 14px 16px; margin-bottom: 20px; font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.form-msg.success { background: rgba(139,26,26,0.08); color: var(--red); border: 0.5px solid var(--red); }
.form-msg.error   { background: rgba(200,60,60,0.07); color: #a33; border: 0.5px solid rgba(200,60,60,0.3); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--ink); padding: 52px 60px; display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; flex-direction: column; gap: 0; }
.footer-logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-mark { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-logo-wordmark {
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--warm-white); line-height: 1;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: var(--warm-white); }
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 10px; color: rgba(250,250,247,0.28); letter-spacing: 0.1em; font-weight: 300; margin-top: 10px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-social-link { color: rgba(250,250,247,0.38); transition: color 0.2s; display: flex; align-items: center; }
.footer-social-link:hover { color: var(--red); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,250,247,0.38); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }

/* ── JOURNAL / BLOG LISTING ───────────────────────────────── */
.page-header {
  padding: 160px 60px 80px; background: var(--ink);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.page-eyebrow { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; font-weight: 500; }
.page-title { font-family: 'Cormorant Garamond', serif; font-size: 72px; font-weight: 300; line-height: 1.0; color: var(--warm-white); }
.page-title em { font-style: italic; color: var(--gold-light); }
.page-header-right { font-size: 11px; color: rgba(250,250,247,0.38); font-weight: 300; letter-spacing: 0.05em; line-height: 1.8; max-width: 280px; text-align: right; }

.filter-bar {
  padding: 28px 60px; border-bottom: 0.5px solid var(--border);
  display: flex; gap: 8px; align-items: center; background: var(--warm-white);
  position: sticky; top: 71px; z-index: 100;
}
.filter-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-right: 8px; }
.filter-btn {
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 7px 16px; border: 0.5px solid var(--border);
  background: none; cursor: pointer; color: var(--muted); text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-weight: 500; transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active { border-color: var(--red); color: var(--red); }

#blog-grid { padding: 72px 60px 100px; }
.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; }
.blog-rest     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.post-card {
  background: var(--warm-white); cursor: pointer; transition: background 0.2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.post-card:hover { background: var(--cream); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: #C8BEA6; flex-shrink: 0; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 13px;
  color: rgba(26,24,20,0.3); font-style: italic; letter-spacing: 0.08em;
}
.post-card-body { padding: 32px 36px 40px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.post-card-category {
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 600; border: 0.5px solid var(--red); padding: 4px 10px;
}
.post-card-date { font-size: 10px; color: var(--muted); font-weight: 300; letter-spacing: 0.05em; }
.post-card-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; color: var(--ink); }
.post-card.featured .post-card-title { font-size: 34px; }
.post-card-excerpt { font-size: 12px; line-height: 1.85; color: var(--muted); font-weight: 300; flex: 1; }
.post-card-readmore { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.post-card-readmore-line { width: 28px; height: 0.5px; background: var(--ink); transition: width 0.3s; }
.post-card:hover .post-card-readmore-line { width: 44px; }

.no-results { padding: 80px 0; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--muted); font-style: italic; }

.blog-pagination { padding: 48px 0 20px; display: flex; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers {
  font-size: 10px; letter-spacing: 0.15em; padding: 8px 14px;
  border: 0.5px solid var(--border); color: var(--muted); text-decoration: none; font-weight: 500; transition: all 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ── SINGLE POST VIEW ─────────────────────────────────────── */
.post-view-header { padding: 140px 60px 72px; background: var(--ink); }
.post-view-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.post-view-category { font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 600; border: 0.5px solid var(--red); padding: 5px 12px; }
.post-view-date { font-size: 10px; color: rgba(250,250,247,0.4); font-weight: 300; }
.post-view-title { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; line-height: 1.05; color: var(--warm-white); max-width: 820px; }
.post-view-hero-img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-view-hero-placeholder { height: 420px; background: #C0B49A; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 14px; color: rgba(26,24,20,0.35); font-style: italic; letter-spacing: 0.08em; }
.post-view-body { max-width: 720px; margin: 0 auto; padding: 72px 60px 100px; }
.post-content p { font-size: 15px; line-height: 2; color: var(--ink); font-weight: 300; margin-bottom: 28px; }
.post-content h2, .post-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--ink); margin: 48px 0 16px; line-height: 1.2; }
.post-content strong { font-weight: 500; }
.post-back {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); font-weight: 500; cursor: pointer;
  background: none; border: none; font-family: 'Montserrat', sans-serif;
  margin-bottom: 48px; padding: 0; text-decoration: none;
}
.post-back-line { width: 28px; height: 0.5px; background: var(--red); }

/* ── CATALOG POPUP MODAL ──────────────────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,24,20,0.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeInOverlay 0.25s ease;
}
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.popup-box {
  background: var(--warm-white);
  padding: 56px 60px;
  max-width: 580px; width: calc(100% - 48px);
  position: relative;
  max-height: 90vh; overflow-y: auto;
  animation: slideUpBox 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUpBox { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.popup-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--muted); line-height: 1;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--ink); }

.popup-title {
  font-family: 'Cormorant Garamond', serif; font-size: 38px;
  font-weight: 300; line-height: 1.1; margin-bottom: 12px; color: var(--ink);
}
.popup-title em { font-style: italic; color: var(--red); }
.popup-intro {
  font-size: 12px; line-height: 1.9; color: var(--muted);
  font-weight: 300; margin-bottom: 32px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  /* ── Nav ── */
  #intex-nav          { padding: 18px 20px; }
  .nav-links-desktop  { display: none; }       /* hide desktop links */
  .nav-hamburger      { display: flex; }        /* show hamburger */
  .nav-cta            { padding: 8px 14px; font-size: 9px; letter-spacing: 0.15em; }
  .nav-cta        { padding: 9px 14px; font-size: 9px; }
  .hero-content { padding: 0 24px 60px; }
  .hero-title   { font-size: 48px; }
  .hero-stats   { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .about-img      { min-height: 320px; }
  .about-content  { padding: 60px 32px; }
  .offer          { padding: 72px 24px; }
  .offer-grid     { grid-template-columns: 1fr; }
  .offer-header   { flex-direction: column; align-items: flex-start; gap: 20px; }
  .offer-note     { text-align: left; }
  .techniques     { padding: 72px 24px; }
  .tech-carousel-track { grid-template-columns: repeat(2, 1fr); }
  .tech-carousel-btn   { width: 36px; height: 36px; font-size: 14px; }
  .process        { padding: 72px 24px; }
  .process-steps  { flex-direction: column; gap: 40px; }
  .process-line   { display: none; }
  .contact        { padding: 72px 24px; gap: 48px; }
  footer          { flex-direction: column; gap: 28px; text-align: center; padding: 40px 24px; }
  .footer-left    { align-items: center; }
  .footer-links   { flex-wrap: wrap; justify-content: center; }
  .popup-box      { padding: 40px 24px; }
  /* Blog */
  .page-header    { padding: 120px 24px 60px; flex-direction: column; gap: 24px; }
  .page-title     { font-size: 48px; }
  .page-header-right { text-align: left; }
  .filter-bar     { padding: 20px 24px; flex-wrap: wrap; }
  #blog-grid      { padding: 48px 24px 72px; }
  .blog-featured, .blog-rest { grid-template-columns: 1fr; }
  .post-view-header { padding: 110px 24px 52px; }
  .post-view-title  { font-size: 40px; }
  .post-view-body   { padding: 48px 24px 72px; }
}

/* ══════════════════════════════════════════════════════════
   CATALOGUE PAGE
══════════════════════════════════════════════════════════ */

.catalogue { padding-top: 71px; } /* clear fixed nav */

/* ── Shared section layout ── */
.cat-section { padding: 100px 60px; }
.cat-section.cat-cream { background: var(--cream); }
.cat-section.cat-dark  { background: var(--ink); }
.cat-section-inner { max-width: 1200px; margin: 0 auto; }

.cat-eyebrow { font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 16px; }
.cat-eyebrow-light { color: var(--gold-light); }
.cat-heading { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 300; line-height: 1.1; margin-bottom: 36px; color: var(--ink); }
.cat-heading em { font-style: italic; color: var(--red); }
.cat-heading-light { color: var(--warm-white); }
.cat-heading-light em { color: var(--gold-light); }
.cat-body { font-size: 13px; line-height: 2; color: var(--muted); font-weight: 300; margin-bottom: 20px; max-width: 520px; }
.cat-body-wide { max-width: 760px; }
.cat-body-light { color: rgba(250,250,247,0.55); }

/* ── Two-column layout ── */
.cat-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cat-two-col-reverse { direction: rtl; }
.cat-two-col-reverse > * { direction: ltr; }
.cat-text-col {}
.cat-img-col { min-height: 500px; background: #C8BEA6; position: relative; overflow: hidden; }
.cat-img-placeholder { width: 100%; height: 100%; background: #C8BEA6; min-height: 500px; }

/* ── COVER ── */
.cat-cover { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.cat-cover-left { background: #2a2218; position: relative; overflow: hidden; }
.cat-cover-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-cover-photo-placeholder { width: 100%; height: 100%; min-height: 100vh; background: #2a2218; }
.cat-cover-right { display: flex; align-items: center; justify-content: center; background: var(--cream); }
.cat-cover-content { padding: 60px; text-align: center; }
.cat-logo { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.cat-logo span { color: var(--red); }
.cat-tagline { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 60px; font-weight: 500; }
.cat-cover-badge { display: flex; align-items: center; gap: 20px; justify-content: center; border: 0.5px solid var(--red); padding: 20px 32px; }
.cat-badge-label { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cat-badge-value { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--red); }

/* ── MISSION LIST ── */
.cat-mission-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.cat-mission-list li { font-size: 13px; line-height: 1.8; color: var(--muted); font-weight: 300; padding-left: 20px; position: relative; }
.cat-mission-list li::before { content: '→'; position: absolute; left: 0; color: var(--red); font-size: 11px; top: 3px; }

/* ── STATS ── */
.cat-stat-row { display: flex; gap: 40px; margin-top: 40px; padding-top: 40px; border-top: 0.5px solid var(--border); }
.cat-stat { display: flex; flex-direction: column; gap: 4px; }
.cat-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: var(--ink); line-height: 1; }
.cat-stat-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ── TEAM GRID ── */
.cat-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(250,250,247,0.1); margin-top: 48px; }
.cat-team-item { padding: 48px 40px; background: rgba(250,250,247,0.04); }
.cat-team-num { font-family: 'Cormorant Garamond', serif; font-size: 56px; font-weight: 300; color: var(--red); line-height: 1; margin-bottom: 10px; }
.cat-team-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,250,247,0.45); font-weight: 500; }

/* ── PROCESS ── */
.cat-process-steps { display: flex; position: relative; margin: 64px 0 56px; }
.cat-process-line { position: absolute; top: 24px; left: 5%; right: 5%; height: 0.5px; background: rgba(139,26,26,0.20); }
.cat-process-step { flex: 1; text-align: center; padding: 0 16px; }
.cat-process-dot { width: 48px; height: 48px; border: 0.5px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; background: var(--warm-white); position: relative; z-index: 1; }
.cat-process-dot span { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--red); }
.cat-process-title { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.cat-process-desc { font-size: 11px; line-height: 1.7; color: var(--muted); font-weight: 300; }

.cat-lead-times { display: flex; align-items: center; gap: 48px; padding: 48px; background: var(--cream); margin-top: 16px; }
.cat-lead-time-item { text-align: center; }
.cat-lead-time-num { font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 300; color: var(--ink); line-height: 1; }
.cat-lead-time-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.cat-lead-time-divider { width: 0.5px; height: 80px; background: var(--border); }
.cat-lead-time-note { font-size: 12px; line-height: 1.9; color: var(--muted); font-weight: 300; max-width: 360px; }

/* ── OFFER GRID ── */
.cat-offer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); margin-top: 48px; }
.cat-offer-card { background: var(--cream); padding: 36px 28px; position: relative; transition: background 0.2s; }
.cat-offer-card:hover { background: var(--warm-white); }
.cat-offer-num { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; color: rgba(26,24,20,0.07); line-height: 1; position: absolute; top: 16px; right: 20px; }
.cat-offer-line { width: 20px; height: 0.5px; background: var(--red); margin-bottom: 20px; }
.cat-offer-name { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.cat-offer-desc { font-size: 11px; line-height: 1.8; color: var(--muted); font-weight: 300; }

/* ── TECHNIQUES ── */
.cat-tech-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.cat-tech-tag { border: 0.5px solid var(--border); padding: 10px 20px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; transition: all 0.2s; cursor: default; }
.cat-tech-tag:hover { border-color: var(--red); color: var(--red); }

/* ── CLIENTS ── */
.cat-clients-grid { display: grid; grid-template-columns: 1fr 0.5px 1fr; gap: 60px; align-items: start; margin-top: 56px; }
.cat-clients-divider { background: rgba(250,250,247,0.1); }
.cat-clients-market { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--gold-light); font-style: italic; margin-bottom: 28px; }
.cat-client-name { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,250,247,0.5); font-weight: 500; padding: 10px 0; border-bottom: 0.5px solid rgba(250,250,247,0.08); }

/* ── CERTIFICATIONS ── */
.cat-certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.cat-cert-card { background: var(--warm-white); padding: 56px 48px; }
.cat-cert-icon { margin-bottom: 28px; }
.cat-cert-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.cat-cert-title em { font-style: italic; color: var(--red); }
.cat-cert-body { font-size: 12px; line-height: 1.9; color: var(--muted); font-weight: 300; }
.cat-audits { margin-top: 48px; padding-top: 40px; border-top: 0.5px solid var(--border); }
.cat-audits-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.cat-audits-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-audit-tag { border: 0.5px solid var(--border); padding: 7px 16px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ── VTS ── */
.cat-vts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.cat-vts-card { padding: 56px 44px; background: var(--cream); }
.cat-vts-letter { font-family: 'Cormorant Garamond', serif; font-size: 96px; font-weight: 300; color: rgba(139,26,26,0.10); line-height: 1; margin-bottom: 8px; }
.cat-vts-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.cat-vts-body { font-size: 13px; line-height: 1.9; color: var(--muted); font-weight: 300; }

/* ── R&D ── */
.cat-rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.cat-rd-card { padding: 56px 48px; background: rgba(250,250,247,0.04); }
.cat-rd-title { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--warm-white); margin-bottom: 10px; }
.cat-rd-subtitle { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 24px; }
.cat-rd-body { font-size: 13px; line-height: 1.9; color: rgba(250,250,247,0.45); font-weight: 300; }

/* ── CTA ── */
.cat-cta-section { background: var(--ink); }
.cat-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cat-cta-inner .cat-heading { color: var(--warm-white); }
.cat-cta-contacts { display: flex; flex-direction: column; gap: 28px; }
.cat-cta-contact { padding-bottom: 24px; border-bottom: 0.5px solid rgba(250,250,247,0.1); }
.cat-cta-name { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-white); font-weight: 500; margin-bottom: 6px; }
.cat-cta-email, .cat-cta-phone { display: block; font-size: 12px; color: var(--red); text-decoration: none; font-weight: 300; letter-spacing: 0.05em; transition: opacity 0.2s; }
.cat-cta-email:hover, .cat-cta-phone:hover { opacity: 0.7; }
.cat-cta-btn { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; border: 0.5px solid var(--red); padding: 14px 32px; cursor: pointer; background: none; color: var(--red); font-family: 'Montserrat', sans-serif; font-weight: 500; transition: all 0.3s; }
.cat-cta-btn:hover { background: var(--red); color: var(--ink); }

/* ── Catalogue responsive ── */
@media (max-width: 900px) {
  .cat-cover { grid-template-columns: 1fr; min-height: auto; }
  .cat-cover-left { min-height: 50vh; }
  .cat-cover-content { padding: 48px 32px; }
  .cat-logo { font-size: 48px; }
  .cat-section { padding: 72px 24px; }
  .cat-two-col, .cat-two-col-reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .cat-img-col { min-height: 280px; }
  .cat-img-placeholder { min-height: 280px; }
  .cat-heading { font-size: 38px; }
  .cat-team-grid { grid-template-columns: 1fr 1fr; }
  .cat-process-steps { flex-direction: column; gap: 32px; }
  .cat-process-line { display: none; }
  .cat-lead-times { flex-direction: column; gap: 28px; }
  .cat-offer-grid { grid-template-columns: 1fr 1fr; }
  .cat-clients-grid { grid-template-columns: 1fr; }
  .cat-clients-divider { display: none; }
  .cat-certs-grid, .cat-vts-grid, .cat-rd-grid { grid-template-columns: 1fr; }
  .cat-cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .cat-stat-row { gap: 24px; flex-wrap: wrap; }
}
