/* ============================================================
   FIELD & FAIRWAY — BP&O-inspired layout
   Colors: forest green + warm gold + black/white
   ============================================================ */

/* --- TOKENS --- */
:root {
  --green-dark:   #1c3829;
  --green-mid:    #2a4f3a;
  --green-light:  #3d6b50;
  --gold:         #b8923a;
  --gold-light:   #d4a84b;
  --cream:        #f5f2ec;
  --black:        #0d0d0d;
  --gray-900:     #1a1a1a;
  --gray-700:     #444;
  --gray-500:     #777;
  --gray-300:     #ccc;
  --gray-100:     #f0f0f0;
  --white:        #ffffff;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  --nav-h:        64px;
  --banner-h:     52px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --t-hover:      180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  cursor: none; /* hide default — using custom */
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }

/* --- CUSTOM CURSOR --- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--green-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 220ms var(--ease-out),
    height 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out),
    opacity 220ms var(--ease-out);
  will-change: transform;
  mix-blend-mode: multiply;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--green-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 180ms;
  will-change: transform;
}
body.cursor-hover .cursor {
  width: 56px; height: 56px;
  background: rgba(28, 56, 41, 0.08);
  border-color: var(--green-mid);
}
body.cursor-on-dark .cursor {
  border-color: var(--gold-light);
}
body.cursor-on-dark .cursor-dot {
  background: var(--gold-light);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  z-index: 1000;
  gap: 24px;
}

.nav-logo {
  color: var(--green-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity var(--t-hover);
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 6px 10px;
  letter-spacing: 0.01em;
  transition: color var(--t-hover);
  white-space: nowrap;
}
.nav-link:hover { color: var(--green-dark); }
.nav-arrow {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 1px;
}
.nav-search {
  color: var(--black);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  transition: color var(--t-hover);
}
.nav-search:hover { color: var(--green-dark); }

/* --- TWO-PANEL LAYOUT --- */
.panels-wrapper {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: var(--banner-h);
  overflow: hidden;
}

.panel {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.panel-left  { padding: 40px 36px 60px; }
.panel-right { padding: 40px 36px 60px; }

.panel-divider {
  width: 1px;
  background: var(--gray-300);
  flex-shrink: 0;
  height: 100%;
}

/* --- PANEL HEADERS --- */
.panel-header { margin-bottom: 32px; }
.panel-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.02em;
}
.panel-subhead {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* --- FEATURE CARDS (left panel) --- */
.feature-card { margin-bottom: 0; }
.feature-card-link {
  display: block;
  transition: opacity 200ms;
}
.feature-card-link:hover .feature-img { transform: scale(1.03); }
.feature-card-link:hover .feature-readmore { color: var(--green-dark); }

.feature-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 20px;
}
.feature-img-wrap--sm { height: 240px; }

.feature-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.feature-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.feature-content { padding: 0 2px; }

.feature-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.feature-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.feature-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.feature-readmore {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  transition: color var(--t-hover);
}

/* --- DIVIDERS --- */
.divider-thin {
  height: 1px;
  background: var(--gray-300);
  margin: 36px 0;
}

/* --- STATS ROW --- */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 32px 0;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  margin-top: 8px;
}
.stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* --- DISCOVER GRID (right panel) --- */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gray-300);
  margin-bottom: 0;
}

.discover-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-300);
  margin: -1px; /* collapse borders */
  overflow: hidden;
  transition: background var(--t-hover);
}
.discover-card:hover .discover-img { transform: scale(1.04); }
.discover-card:hover .discover-label { color: var(--green-dark); }

.discover-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}
.discover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}

.discover-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  padding: 14px 16px 4px;
  transition: color var(--t-hover);
  letter-spacing: -0.01em;
}
.discover-count {
  font-size: 12px;
  color: var(--gray-500);
  padding: 0 16px 14px;
  letter-spacing: 0.02em;
}

/* --- BRANDS SECTION --- */
.brands-section { padding: 0; }
.brands-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
}
.brands-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}
.brands-viewall {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--t-hover);
}
.brands-viewall:hover { color: var(--green-dark); }

.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--gray-300);
}
.brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
  transition:
    background var(--t-hover),
    color var(--t-hover);
}
.brand-cell:hover {
  background: var(--cream);
  color: var(--green-dark);
}
.brand-mark {
  width: 120px;
  height: 48px;
}

.brands-viewall-bottom {
  display: block;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  border-top: none;
  transition: color var(--t-hover), background var(--t-hover);
}
.brands-viewall-bottom:hover {
  color: var(--green-dark);
  background: var(--cream);
}

/* --- FITTING CTA BLOCK (dark, like BP&O Plus) --- */
.fitting-cta {
  background: var(--green-dark);
  color: var(--white);
  padding: 40px 36px;
  margin-top: 0;
}
.fitting-cta-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.fitting-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.fitting-cta-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fitting-cta-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding-left: 18px;
  position: relative;
}
.fitting-cta-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-size: 18px;
  line-height: 1.1;
}
.fitting-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition:
    background var(--t-hover),
    transform var(--t-hover);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.fitting-cta-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* --- STICKY BOTTOM BANNER --- */
.sticky-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--banner-h);
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  z-index: 900;
  transition: transform 300ms var(--ease-out);
}
.sticky-banner.hidden {
  transform: translateY(100%);
}
.sticky-banner-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}
.sticky-banner-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 7px 16px;
  transition: background var(--t-hover);
}
.sticky-banner-cta:hover { background: var(--gold-light); }
.sticky-banner-close {
  position: absolute;
  right: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  line-height: 1;
  padding: 8px;
  transition: color var(--t-hover);
  cursor: none;
}
.sticky-banner-close:hover { color: var(--white); }

/* --- SCROLL-DRIVEN FADE-IN --- */
@supports (animation-timeline: scroll()) {
  .feature-card,
  .discover-card,
  .brand-cell,
  .stats-row,
  .fitting-cta {
    opacity: 0;
    animation: fade-in-panel linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes fade-in-panel {
  to { opacity: 1; }
}

/* --- PLAZA BADGE --- */
.plaza-badge {
  position: fixed;
  bottom: calc(var(--banner-h) + 12px);
  left: 16px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 800;
  opacity: 0.85;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }

  .panels-wrapper {
    flex-direction: column;
    position: static;
    height: auto;
    overflow: visible;
  }
  .panel {
    height: auto;
    overflow: visible;
  }
  .panel-left { padding: 32px 20px 20px; }
  .panel-right { padding: 20px 20px 80px; }
  .panel-divider {
    width: 100%;
    height: 1px;
  }

  .nav { padding: 0 16px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 6px 7px; font-size: 12px; }

  .feature-img-wrap { height: 260px; }
  .feature-img-wrap--sm { height: 180px; }

  .discover-grid { grid-template-columns: 1fr 1fr; }
  .discover-img-wrap { height: 140px; }
}

@media (max-width: 600px) {
  .nav-links .nav-link:nth-child(n+4) { display: none; }
  .discover-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { flex-direction: column; gap: 20px; padding: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .sticky-banner-text { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
