/* Tracey's Fashion - homepage styles (v3)
   Save as /css/home-modern.css.
   Everything is scoped under .tf-home / .tf-footer. Link colour, font and underline are
   locked with !important because the old site stylesheet (TFindex.css) styles every <a>. */

.tf-home {
  --ink: #1c1917;
  --muted: #6b625b;
  --cream: #faf6f1;
  --sand: #efe7dd;
  --accent: #9f1d3f;
  --accent-dark: #7d1631;
  --gold: #b8935a;
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.tf-home * { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; font-size: inherit; color: inherit; }
html, body { background: #fff !important; }
.tf-home { background: #fff; line-height: 1.6; font-size: 16px; padding-top: 0; }
.tf-home img { display: block; max-width: 100%; }
.tf-home ul { list-style: none; }
.tf-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* The top menu bar floats over the page on desktop; the script at the bottom of
   indexMiddle3.php measures it and sets padding-top on .tf-home. */

/* ---- Link lock: colour comes from --c, so old a:link / a:hover rules cannot change it ---- */
.tf-home a {
  color: var(--c, inherit) !important;
  font-family: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}
.tf-home a:focus-visible, .tf-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Announcement bar */
.tf-announce { background: #fff; color: var(--muted); border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; text-align: center; font-size: 15px; letter-spacing: .03em; padding: 11px 16px; }
.main-menu { border-bottom: 0 !important; } /* the divider above the announcement is now drawn by the bar itself, so all three lines have the same full width */
.tf-announce * { color: var(--muted); }

/* Buttons */
.tf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: transform .2s, background .2s, box-shadow .2s; border: 1.5px solid transparent; }
.tf-btn-primary { background: var(--accent); --c: #fff; }
.tf-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(159,29,63,.25); }
.tf-btn-ghost { border-color: var(--ink); background: transparent; --c: var(--ink); }
.tf-btn-ghost:hover { background: var(--ink); --c: #fff; }
.tf-btn-ghost:hover * { color: #fff; }

/* Hero */
.tf-hero { background: #fff; padding: 40px 0 64px; }
.tf-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tf-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.tf-hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 20px; }
.tf-hero h1 em { font-style: italic; color: var(--accent); }
.tf-hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.tf-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.tf-hero-sub { margin-top: 18px; font-size: 15px; color: var(--muted); }
.tf-hero-sub a { --c: var(--accent); font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; }
.tf-hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.tf-hero-points li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 8px; }

.tf-hero-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.tf-hero-media figure { position: relative; overflow: hidden; border-radius: 200px 200px var(--radius) var(--radius); background: var(--sand); aspect-ratio: 3 / 4.2; }
.tf-hero-media figure:nth-child(2) { margin-bottom: 56px; border-radius: var(--radius) var(--radius) 200px 200px; }

/* Cover images: size is forced so old global img rules cannot shrink them */
.tf-hero-media img, .tf-cat img, .tf-card-img img {
  position: absolute; inset: 0; max-width: none !important;
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  transition: transform .7s ease;
}
.tf-hero-media figure:hover img { transform: scale(1.05); }

/* Sections */
.tf-section { background: #fff; padding: 72px 0; }
.tf-section.alt { background: var(--cream); }
.tf-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.tf-head h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.tf-head p { color: var(--muted); margin-top: 6px; }
.tf-link { --c: var(--accent); font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.tf-link:hover { --c: var(--accent-dark); border-color: var(--accent-dark); }
.tf-subhead { margin: 44px 0 18px; align-items: baseline; }
.tf-subhead h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 24px; }

/* Category tiles */
.tf-cats { display: grid; gap: 20px; }
.tf-cats-wool { grid-template-columns: repeat(2, 1fr); }
.tf-cats-dress { grid-template-columns: repeat(4, 1fr); }
.tf-cat { --c: #fff; position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.tf-cats-wool .tf-cat { aspect-ratio: 16 / 10; }
.tf-cats-dress .tf-cat { aspect-ratio: 4 / 5; }
.tf-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,0) 55%); pointer-events: none; }
.tf-cat:hover img { transform: scale(1.06); }
/* Wool tiles use banners that already carry text, so keep the shade light */
.tf-cats-wool .tf-cat::after { background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%); }
/* Placeholder look when a tile has no photo yet */
.tf-cat.ph-yarns { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 7px, transparent 7px 14px), linear-gradient(135deg, #c9a77c, #8c5e3c); }
.tf-cat.ph-sweaters { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 7px, transparent 7px 14px), linear-gradient(135deg, #b4586f, #5f2335); }
.tf-cat.ph-dress { background: linear-gradient(135deg, #d9c9b8, #a89580); }
.tf-cat-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tf-cat-label * { color: #fff; }
.tf-cat-label span { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.tf-cats-wool .tf-cat-label span { font-size: 30px; }
.tf-cat-label .tf-arrow { flex: none; font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); backdrop-filter: blur(4px); display: grid; place-items: center; transition: background .2s, transform .2s; }
.tf-cat:hover .tf-cat-label .tf-arrow { background: var(--accent); transform: translateX(4px); }

/* Just added */
.tf-chips { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tf-chips::-webkit-scrollbar { display: none; }
.tf-chip { appearance: none; -webkit-appearance: none; border: 1.5px solid #d9cfc3; background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.tf-chip:hover { border-color: var(--ink); }
.tf-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.tf-card { --c: var(--ink); display: block; }
.tf-card[hidden] { display: none !important; }
.tf-card-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); aspect-ratio: 3 / 4; }
.tf-card:hover .tf-card-img img { transform: scale(1.06); }
.tf-badge { position: absolute; z-index: 2; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tf-card-quick { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 999px; text-align: center; padding: 10px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.tf-card:hover .tf-card-quick, .tf-card:focus-visible .tf-card-quick { opacity: 1; transform: none; }
.tf-card-title { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.tf-card-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Trust */
.tf-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tf-trust a { --c: var(--ink); display: block; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid #eadfd2; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tf-trust a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.07); border-color: var(--gold); }
.tf-trust b { display: block; font-size: 17px; margin-bottom: 6px; }
.tf-trust span { display: block; color: var(--muted); font-size: 14px; }
.tf-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }

/* CTA band */
.tf-band { background: var(--cream); border: 1px solid var(--sand); border-radius: 22px; padding: 56px 40px; text-align: center; }
.tf-band h2, .tf-band p { color: var(--ink); }
.tf-band h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; }
.tf-band p { color: var(--muted);  margin-bottom: 26px; }
.tf-band-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Reveal on scroll */
.tf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.tf-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tf-reveal { opacity: 1; transform: none; transition: none; } .tf-home * { transition: none !important; } }

/* Tablet */
@media (max-width: 960px) {
  .tf-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .tf-cats-dress { grid-template-columns: repeat(2, 1fr); }
  .tf-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-trust { grid-template-columns: repeat(2, 1fr); }
}
/* Phone */
@media (max-width: 640px) {
  .tf-announce { font-size: 13px; letter-spacing: .02em; padding: 12px 14px; }
  .tf-section { padding: 52px 0; }
  .tf-hero { padding: 24px 0 44px; }
  .tf-hero-media figure:nth-child(2) { margin-bottom: 32px; }
  .tf-cats { gap: 12px; }
  .tf-cats-wool { grid-template-columns: 1fr; }
  .tf-cats-wool .tf-cat { aspect-ratio: 16 / 11; }
  .tf-cats-wool .tf-cat-label span { font-size: 26px; }
  .tf-cat-label { left: 14px; right: 14px; bottom: 14px; }
  .tf-cats-dress .tf-cat-label span { font-size: 18px; }
  .tf-cats-dress .tf-cat-label .tf-arrow { display: none; }
  .tf-grid { gap: 20px 12px; }
  .tf-card-quick { display: none; }
  .tf-trust { grid-template-columns: 1fr; }
  .tf-band { padding: 40px 22px; border-radius: 16px; }
  .tf-btn { width: 100%; }
  .tf-hero-cta, .tf-band-cta { flex-direction: column; }
}

/* Phone/tablet header (<=767px): the header's own grey line is the line above the announcement,
   so drop the announcement's top border and the 8px gap -> text sits centred between the two lines */
@media (max-width: 767px) {
  .tf-announce { border-top: 0 !important; margin-top: 0 !important; box-sizing: border-box !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    min-height: 60px !important; padding: 0 14px !important; line-height: 1.35 !important; }
}
