/* =========================================================
   Tom Ford brand pages: shared family styles
   Loaded by /eyewear/brands/tom-ford/, /tom-ford-icon/ and /tom-ford-private-collection/
   (global tokens live in style.css). Black, white and a polished-metal accent.
   ========================================================= */

:root { --tf-black: #0b0b0b; --tf-metal: #b5a27a; --tf-metal-soft: #d9cba6; }

.tf-left { text-align: left; margin: 10px 0 22px; }
.tf-wordmark { display: block; width: clamp(180px, 18vw, 240px); height: auto; margin-bottom: 26px; }
.tf-story .eyebrow { color: var(--gold-deep); }

/* ---------- Signature band ---------- */
.tf-band { position: relative; overflow: hidden; background: var(--tf-black); color: var(--cream-2); padding-block: clamp(56px, 8vw, 104px); }
.tf-band__t {
  position: absolute; right: 4%; bottom: -.08em; pointer-events: none;
  font-family: var(--font-title); font-weight: 300; font-size: clamp(220px, 30vw, 400px); line-height: 1; color: rgba(255, 255, 255, .05);
}
.tf-band__facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; }
.tf-band__facts li { padding: 4px clamp(14px, 2.4vw, 32px); border-left: 1px solid rgba(255, 255, 255, .18); }
.tf-band__facts li:first-child { border-left: 0; padding-left: 0; }
.tf-band__facts strong { display: block; font-family: var(--font-title); font-weight: 300; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; color: var(--tf-metal-soft); }
.tf-band__facts span { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; opacity: .85; max-width: 24ch; }

/* ---------- Collection switch and product grid ---------- */
.tf-switch { display: flex; justify-content: center; border: 0; padding: 0; margin: 0 auto clamp(28px, 4vw, 44px); }
.tf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.tf-switch label {
  padding: 12px 22px; border: 1px solid var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  transition: background .3s, color .3s;
}
.tf-switch label + input + label { border-left: 0; }
.tf-switch label:hover { color: var(--gold-deep); }
.tf-switch input:checked + label { background: var(--tf-black); color: var(--cream-2); }
.tf-switch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }

.tf-prods { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.tf-coll:has(.tf-switch input:nth-of-type(1):checked) .tf-prods:nth-of-type(1),
.tf-coll:has(.tf-switch input:nth-of-type(2):checked) .tf-prods:nth-of-type(2),
.tf-coll:has(.tf-switch input:nth-of-type(3):checked) .tf-prods:nth-of-type(3) { display: grid; }
.tf-coll .tf-prod { animation: tfIn .6s var(--ease-out) both; }
.tf-prods li:nth-child(2) { animation-delay: .04s; } .tf-prods li:nth-child(3) { animation-delay: .08s; }
.tf-prods li:nth-child(4) { animation-delay: .12s; } .tf-prods li:nth-child(5) { animation-delay: .16s; }
.tf-prods li:nth-child(6) { animation-delay: .2s; }  .tf-prods li:nth-child(7) { animation-delay: .24s; }
.tf-prods li:nth-child(8) { animation-delay: .28s; }
@keyframes tfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.tf-prod__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.tf-prod__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.tf-prod:hover .tf-prod__img img { transform: scale(1.06); }
.tf-prod__tag {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; background: var(--tf-black);
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2);
}
.tf-prod__code { margin-top: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; color: var(--ink-soft); }
.tf-prod__name { margin-top: 4px; font-family: var(--font-title); font-weight: 300; font-size: 21px; line-height: 1.15; color: var(--ink); }
.tf-prod__colour { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- The family (cross-links) ---------- */
.tf-fam__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); max-width: 980px; margin: 0 auto; }
.tf-fam__card { display: block; padding-bottom: 6px; color: inherit; text-decoration: none; }
.tf-fam__img { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid rgba(31, 31, 31, .08); }
.tf-fam__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease-out); }
.tf-fam__card:hover .tf-fam__img img { transform: scale(1.06); }
.tf-fam__kicker { margin-top: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.tf-fam__name { margin: 6px 0 8px; font-family: var(--font-title); font-weight: 300; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; }
.tf-fam__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.tf-fam__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tf-fam__card:hover .tf-fam__more { color: var(--teal); border-color: var(--teal); }
.tf-fam__card:hover .tf-fam__more .arrow { animation: nudge .6s var(--ease-out); }
.tf-fam__card:focus-visible { outline: 2px solid var(--teal); outline-offset: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tf-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tf-band__facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .tf-band__facts li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .tf-band__facts { grid-template-columns: 1fr; }
  .tf-band__facts li { border-left: 0; padding-left: 0; }
  .tf-prods { gap: 12px; }
  .tf-prod__name { font-size: 17px; }
  .tf-switch label { padding: 11px 12px; letter-spacing: .06em; font-size: 11px; }
  .tf-fam__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-coll .tf-prod { animation: none; }
}
