/*
Theme Name:     T5 Golf — Editorial (v2)
Theme URI:      https://t5golf.com/
Template:       t5-theme
Author:         T5 Golf
Author URI:     https://t5golf.com/
Description:    Editorial / clubhouse design system for T5 Golf. Replaces the v1 'premium deals' direction with a publication-first brand. Cream paper, Fraunces serif, single emerald accent, photo-led, no animations on load. Parent theme remains untouched; revert by re-activating t5-theme.
Version:        2.0.0
Requires at least: 6.0
Tested up to:   6.6
Requires PHP:   7.4
License:        Proprietary
Text Domain:    t5-theme-child
Tags:           golf, editorial, magazine, clubhouse, child-theme
*/

/* =============================================================
   T5 GOLF — Design System v2
   Cream paper · Soft charcoal · Deep emerald (accent, used twice)
   One serif: Fraunces. No gradients. No load animations.
   Loaded AFTER parent style.css so it overrides cleanly.
   ============================================================= */

:root {
  --paper:        #F4EFE6;
  --paper-warm:   #EAE2D2;
  --ink:          #1B1B1B;
  --ink-dim:      #6B6B6B;
  --rule:         #D8D2C2;
  --emerald:      #1F4936;
  --emerald-deep: #11281D;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --max:    1280px;
  --read:   720px;
  --gutter: 48px;
}

/* ============ DEFENSIVE RESETS ============
   Parent theme uses inline Georgia + Bebas elsewhere — neutralize. */

body, body * {
  box-sizing: border-box;
}

html, body {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

/* Force-replace Bebas / Georgia inline styles inherited from parent */
body h1, body h2, body h3, body h4,
body [style*="Bebas"],
body [style*="Georgia"] {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  line-height: 1.05 !important;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--emerald); }

img { max-width: 100%; display: block; }

/* ============ TYPOGRAPHY ============ */

.t5v2-eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2vw, 28px); }

.t5v2-italic { font-style: italic; font-weight: 400; }

p { font-size: 16px; line-height: 1.75; color: var(--ink); }
p.t5v2-lead { font-size: 19px; line-height: 1.6; color: var(--ink-dim); font-style: italic; }
p.t5v2-dim  { color: var(--ink-dim); }

/* ============ NAV ============ */

.t5v2-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.t5v2-nav.is-on-hero {
  /* Hero photo is light cream; ink-color nav reads fine — keep ink */
  color: var(--ink);
}

.t5v2-wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
}
.t5v2-wordmark .t5 { font-weight: 600; letter-spacing: 0.04em; }

.t5v2-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}
.t5v2-nav-links li {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 400;
  position: relative;
  padding: 0 18px;
}
.t5v2-nav-links li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 12px;
  background: currentColor;
  opacity: 0.35;
}
.t5v2-nav-links a:hover { font-style: italic; }

.t5v2-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .t5v2-nav-links { display: none; }
  .t5v2-mobile-toggle { display: inline-block; }
}

.t5v2-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.t5v2-mobile-menu.is-open { display: flex; }
.t5v2-mobile-menu a {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
}

/* ============ HERO (front page) ============ */

.t5v2-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background: var(--paper-warm);
  overflow: hidden;
}

.t5v2-hero-art {
  position: absolute;
  inset: 0;
  background-color: var(--paper);
  background-image: url('assets/hero-sketch.png'), url('assets/hero-sketch.jpg'), url('assets/hero-sketch.webp');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
}
/* Pencil-paper hatching fallback when no image is present */
.t5v2-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 22px, rgba(27, 27, 27, 0.025) 22px, rgba(27, 27, 27, 0.025) 23px),
    repeating-linear-gradient(45deg, transparent 0, transparent 30px, rgba(27, 27, 27, 0.018) 30px, rgba(27, 27, 27, 0.018) 31px);
  pointer-events: none;
}
.t5v2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0) 60%, rgba(27, 27, 27, 0.04) 100%);
  pointer-events: none;
}
.t5v2-hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  max-width: 580px;
  z-index: 2;
  /* Cream paper card behind text — protects type from sketch line work */
  background: rgba(244, 239, 230, 0.92);
  padding: 36px 40px 40px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(27, 27, 27, 0.06);
}
.t5v2-hero-copy .t5v2-eyebrow { color: var(--ink-dim); margin-bottom: 18px; display: block; }
.t5v2-hero-copy h1 {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.t5v2-hero-copy .sub {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 460px;
  line-height: 1.65;
}
.t5v2-hero-cta {
  display: inline-block;
  margin-top: 36px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 14px 28px;
  background: transparent;
  transition: all .2s ease;
  text-decoration: none;
}
.t5v2-hero-cta:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }

@media (max-width: 720px) {
  .t5v2-hero-copy { left: 24px; right: 24px; bottom: 24px; max-width: none; }
}

/* ============ SECTION FRAMEWORK ============ */

.t5v2-section { padding: 120px var(--gutter); background: var(--paper); }
@media (max-width: 720px) { .t5v2-section { padding: 80px 24px; } }

.t5v2-container { max-width: var(--max); margin: 0 auto; }
.t5v2-read      { max-width: var(--read); margin: 0 auto; }

.t5v2-section-header { margin-bottom: 64px; }
.t5v2-section-header .t5v2-eyebrow { display: block; margin-bottom: 18px; }
.t5v2-section-header .t5v2-rule { width: 64px; height: 1px; background: var(--ink); margin-bottom: 28px; }
.t5v2-section-header h2 { max-width: 720px; margin: 0 0 16px; }
.t5v2-section-header .italic-sub {
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  font-weight: 400;
  max-width: 640px;
  margin: 0;
}

/* ============ INTRODUCTION (asymmetric 5:7) ============ */

.t5v2-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.t5v2-intro-grid .left .t5v2-eyebrow { display: block; margin-bottom: 18px; }
.t5v2-intro-grid .left .t5v2-rule { width: 48px; height: 1px; background: var(--ink); margin-bottom: 28px; }
.t5v2-intro-grid .left p { font-size: 14px; }
.t5v2-intro-grid .right p {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}
.t5v2-intro-grid .right p .accent {
  font-style: normal;
  background: linear-gradient(transparent 70%, rgba(31, 73, 54, 0.18) 70%);
}
@media (max-width: 880px) {
  .t5v2-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .t5v2-intro-grid .right p { font-size: 22px; }
}

/* ============ EDITORIAL (deal) CARDS ============ */

.t5v2-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 880px) { .t5v2-editorial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .t5v2-editorial-grid { grid-template-columns: 1fr; } }

.t5v2-entry { display: flex; flex-direction: column; }
.t5v2-entry-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 24px;
  position: relative;
}
.t5v2-entry-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.t5v2-entry-image .placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(27,27,27,0.04) 12px, rgba(27,27,27,0.04) 13px);
  display: grid;
  place-items: center;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

/* ---- Brand-logo fallback tile (when no product image is available) ---- */
.t5v2-entry-image.is-logo-fallback {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
}
.t5v2-brand-logo-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18% 22%;
  transition: opacity .2s ease;
}
.t5v2-brand-logo-tile:hover { opacity: 0.7; }
.t5v2-brand-logo-tile img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}
.t5v2-entry .t5v2-eyebrow { margin-bottom: 10px; }
.t5v2-entry h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.t5v2-entry h3 a { color: inherit; }
.t5v2-entry .desc { font-size: 14px; color: var(--ink-dim); margin: 0 0 16px; line-height: 1.6; }
.t5v2-entry .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.t5v2-entry .price { font-style: italic; font-size: 20px; color: var(--ink); }
.t5v2-entry .was { font-size: 14px; color: var(--ink-dim); text-decoration: line-through; }
.t5v2-entry .read-more {
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.t5v2-entry .read-more:hover { color: var(--emerald); border-color: var(--emerald); }

/* ============ JOURNAL BREAK (full-bleed photo placeholder/section) ============ */

.t5v2-journal-break {
  padding: 0;
  background: var(--paper-warm);
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
}
.t5v2-journal-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 18px, rgba(27,27,27,0.025) 18px, rgba(27,27,27,0.025) 19px);
}
.t5v2-journal-break .copy {
  position: relative;
  max-width: 540px;
  padding: 0 32px;
}
.t5v2-journal-break .t5v2-eyebrow { display: block; margin-bottom: 16px; color: var(--ink-dim); }
.t5v2-journal-break h2 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 28px;
}
.t5v2-journal-break .read-more {
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ============ TRACKER (quiet inline mention) ============ */

.t5v2-tracker-line {
  background: var(--paper);
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.t5v2-tracker-line .t5v2-eyebrow { display: block; margin-bottom: 12px; }
.t5v2-tracker-line p {
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.5;
}
.t5v2-tracker-line a {
  color: var(--emerald);
  border-bottom: 1px solid var(--emerald);
  padding-bottom: 2px;
}

/* ============ DEALS PAGE — header strip ============ */

.t5v2-deals-header {
  background: var(--paper);
  padding: 120px var(--gutter) 48px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.t5v2-deals-header .t5v2-eyebrow { display: block; margin-bottom: 14px; }
.t5v2-deals-header h1 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  margin: 0 0 16px;
}
.t5v2-deals-header p {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto;
}

.t5v2-cat-bar {
  background: var(--paper);
  padding: 32px var(--gutter);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.t5v2-cat-bar a {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all .2s;
  text-decoration: none;
}
.t5v2-cat-bar a:hover { color: var(--ink); }
.t5v2-cat-bar a.is-active { color: var(--ink); border-color: var(--ink); font-style: italic; }

.t5v2-empty {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
}
.t5v2-empty p {
  font-style: italic;
  font-size: 22px;
  color: var(--ink-dim);
  margin: 0 0 24px;
}

/* ============ 404 ============ */

.t5v2-404 {
  min-height: 100vh;
  background: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.t5v2-404 p {
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 620px;
  line-height: 1.25;
}
.t5v2-404 a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.t5v2-404 a:hover { color: var(--emerald); border-color: var(--emerald); }

/* ============ FOOTER ============ */

.t5v2-foot {
  background: var(--paper);
  padding: 80px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.t5v2-foot .t5v2-wordmark {
  color: var(--ink);
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
}
.t5v2-foot .tagline {
  font-style: italic;
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 24px;
}
.t5v2-foot .meta { font-size: 12px; color: var(--ink-dim); }
.t5v2-foot .meta a { color: var(--ink-dim); text-decoration: none; }
.t5v2-foot .meta a:hover { color: var(--emerald); }
.t5v2-foot .meta span { margin: 0 10px; }

/* ============ KILL ZONE — explicit overrides for parent v1 chrome ============
   The parent theme has gold gradients, glow halos, Bebas headlines,
   and emoji eyebrows. Kill them here so they cannot leak into v2. */

body .t5-promo-strip,
body .t5-hero-glow-tr,
body .t5-hero-glow-bl,
body .t5-hero-grid,
body .t5-hero-eyebrow,
body .t5-deals-banner,
body .t5-categories,
body .t5-tracker-promo {
  display: none !important;
}

/* End of T5 v2 child styles */
