/* ══════════════════════════════════════════════════════════
   NOTICE ONE — sizeguide.css
   Size Guide page styles
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.sg-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

.sg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sg-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.45);
}

.sg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.97) 0%,
    rgba(10,10,10,0.6) 55%,
    rgba(10,10,10,0.35) 100%
  );
}

.sg-hero-inner { position: relative; z-index: 1; }

.sg-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
  margin: 0.75rem 0 1.25rem;
}

.sg-intro {
  max-width: 580px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Fit Note Pills ───────────────────────────────────────── */
.fit-note {
  background: var(--bg-2);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.fit-note-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.fit-pill {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  flex: 1;
  min-width: 180px;
  transition: border-color 0.2s;
}

.fit-pill:hover { border-color: var(--accent); }

.fit-pill-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.fit-pill-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Unit Toggle ──────────────────────────────────────────── */
.unit-toggle-wrap {
  padding: 1.5rem 0 0;
}

.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  overflow: hidden;
}

.unit-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.unit-btn + .unit-btn {
  border-left: 1px solid var(--border);
}

.unit-btn--active {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}

/* ── Section Alt (bottoms) ────────────────────────────────── */
.sg-section--alt { background: var(--bg-2); }

/* ── Sub Heading ──────────────────────────────────────────── */
.sg-sub-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  margin: 3rem 0 1.25rem;
}

/* ── Size Tables ──────────────────────────────────────────── */
.sg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

.sg-table thead tr {
  background: rgba(201,169,110,0.08);
  border-bottom: 1px solid var(--accent);
}

.sg-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.sg-table td {
  padding: 0.9rem 1.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: background 0.15s;
}

.sg-table tbody tr:hover td {
  background: rgba(201,169,110,0.04);
  color: var(--text);
}

.sg-table tbody tr:last-child td { border-bottom: none; }

.size-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Popular Row ──────────────────────────────────────────── */
.sg-row--popular td {
  background: rgba(201,169,110,0.06);
  color: var(--text);
}

.popular-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--accent);
  padding: 0.15rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  font-weight: 600;
}

/* ── How to Measure ───────────────────────────────────────── */
.measure-section { background: var(--bg); }

.measure-intro {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 1rem 0 2.5rem;
}

.measure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .measure-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .measure-grid { grid-template-columns: 1fr; }
}

.measure-card {
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s;
}

.measure-card:hover { border-color: var(--accent); }

.measure-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.measure-icon svg { width: 100%; height: 100%; }

.measure-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
}

.measure-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── Fit Tips ─────────────────────────────────────────────── */
.fit-tips-section { background: var(--bg-2); }

.fit-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .fit-tips-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.fit-tip { display: flex; flex-direction: column; gap: 0.75rem; }

.fit-tip-num {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.fit-tip-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.fit-tip p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── CTA ──────────────────────────────────────────────────── */
.sg-cta { background: var(--bg); border-top: 1px solid var(--border); }

.sg-cta-inner { text-align: center; }

.sg-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.sg-cta-body {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.sg-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-sg {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.25s, color 0.25s;
}

.btn-sg:hover {
  background: transparent;
  color: var(--accent);
}

.btn-sg--outline {
  background: transparent;
  color: var(--accent);
}

.btn-sg--outline:hover {
  background: var(--accent);
  color: #0a0a0a;
}

/* CM6 FIX — phones: every column of the size charts fits on screen (no hidden columns) */
@media (max-width: 600px) {
  .sg-table { min-width: 0; font-size: 0.82rem; }
  .sg-table th { padding: 0.75rem 0.4rem; font-size: 0.6rem; letter-spacing: 0.06em; }
  .sg-table td { padding: 0.8rem 0.4rem; }
  .sg-table th:first-child, .sg-table td:first-child { padding-left: 0.75rem; }
  .popular-tag { display: block; margin: 0.3rem 0 0; width: max-content; font-size: 0.5rem; padding: 0.1rem 0.35rem; }
}
