/* GolferSwings — homepage, recreated to match the live site's actual magazine/grid layout */

:root {
  --ink: #14261c;
  --green: #06752e;
  --green-deep: #0b3a1f;
  --bg: #f4f6f4;
  --card: #ffffff;
  --line: #e3e9e5;
  --muted: #6c766f;
  --gold: #b8892f;
}

body { background: var(--bg); font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #4e5652; }
h1,h2,h3,h4 { font-family: "Poppins", sans-serif; color: var(--ink); }
a { text-decoration: none; }

/* ---------- Editorial display type ---------- */
.mag-hero h2, .section-head h2, .post-hero h1, .hub-hero h1 {
  font-family: "Fraunces", "Poppins", serif;
  font-optical-sizing: auto;
}

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: #b9c6bd; font-size: .75rem; padding: 6px 0; }
.topbar a { color: #b9c6bd; margin-left: 14px; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .header-top { display: block; }
.site-header .logo-wrap { text-align: center; padding: 18px 0 10px; }
.site-header .logo-wrap img { height: 46px; }
.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.main-nav > .container > ul > li { position: relative; }
.main-nav a {
  display: block; padding: 14px 16px; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
}
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.main-nav .search-ic { padding: 14px 4px; color: var(--ink); }

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; margin: 0;
  border: none; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav dropdown (mega menu) ---------- */
.main-nav .has-dropdown > a::after {
  content: "▾"; display: inline-block; margin-left: 5px; font-size: .7em; vertical-align: 1px;
}
.main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--green);
  border-radius: 0 0 6px 6px; box-shadow: 0 14px 30px rgba(20,38,28,.12);
  min-width: 240px; padding: 10px 0; margin: 0; list-style: none;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: block; }
.main-nav .dropdown li { position: static; }
.main-nav .dropdown a {
  padding: 9px 20px; font-size: .78rem; font-weight: 500; text-transform: none;
  letter-spacing: normal; white-space: nowrap; color: var(--ink);
}
.main-nav .dropdown a:hover { color: var(--green); background: #f4f8f5; }
.main-nav .dropdown .dropdown-heading {
  padding: 6px 20px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-top: 4px;
}
.main-nav .dropdown .dropdown-heading:first-child { margin-top: 0; }
.main-nav .dropdown-cols { display: flex; }
.main-nav .dropdown-cols .dropdown-col { min-width: 220px; }
.main-nav .dropdown-cols .dropdown-col + .dropdown-col { border-left: 1px solid var(--line); }

/* ---------- Nav flyout submenu (3rd level: brand -> model reviews) ---------- */
.main-nav .has-subdropdown { position: relative; }
.main-nav .has-subdropdown > a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.main-nav .has-subdropdown > a::after { content: "▸"; font-size: .7em; color: var(--muted); }
.main-nav .dropdown-sub {
  display: none; position: absolute; top: -11px; left: 100%; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 14px 30px rgba(20,38,28,.12); min-width: 200px; max-height: 70vh; overflow-y: auto;
  padding: 10px 0; margin: 0; list-style: none;
}
.main-nav .has-subdropdown:hover > .dropdown-sub,
.main-nav .has-subdropdown:focus-within > .dropdown-sub { display: block; }
.main-nav .dropdown-sub a {
  padding: 7px 18px; font-size: .76rem; font-weight: 500; text-transform: none;
  letter-spacing: normal; white-space: nowrap; color: var(--ink);
}
.main-nav .dropdown-sub a:hover { color: var(--green); background: #f4f8f5; }

@media (max-width: 991px) {
  .site-header .header-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
  }
  .site-header .logo-wrap { text-align: left; padding: 14px 0; }
  .nav-toggle { display: flex; }

  .main-nav { display: none; border-top: 1px solid var(--line); max-height: 75vh; overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > .container { padding: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > .container > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 12px 16px; }

  .main-nav .dropdown { display: block; position: static; border: none; box-shadow: none; padding-left: 14px; min-width: 0; }
  .main-nav .dropdown-cols { flex-direction: column; }
  .main-nav .dropdown-cols .dropdown-col + .dropdown-col { border-left: none; border-top: 1px solid var(--line); }
  .main-nav .has-dropdown > a::after { display: none; }
  .main-nav .dropdown-sub {
    display: block; position: static; border: none; box-shadow: none;
    padding-left: 14px; min-width: 0; max-height: none; overflow-y: visible;
  }
  .main-nav .has-subdropdown > a::after { display: none; }
}

/* ---------- Site search ---------- */
.search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; color: var(--ink);
}
.search-toggle svg { width: 19px; height: 19px; }
.topbar-search { width: auto; height: auto; padding: 4px; color: #fff; opacity: .85; }
.topbar-search:hover { opacity: 1; }
.topbar-search svg { display: block; }
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,20,15,.6); padding: 8vh 16px 16px;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); overflow: hidden; max-height: 78vh; display: flex; flex-direction: column;
}
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex: none; }
.search-input-icon { color: var(--muted); flex: none; }
.search-input-wrap input {
  flex: 1; border: none; outline: none; font-size: 1.05rem; font-family: "Poppins", sans-serif; color: var(--ink); background: transparent;
}
.search-input-wrap input::placeholder { color: #9aa39c; }
.search-close {
  flex: none; border: none; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 4px 6px;
}
.search-close:hover { color: var(--ink); }
.search-results { overflow-y: auto; padding: 8px; }
.search-hint { padding: 20px 14px; color: var(--muted); font-size: .9rem; margin: 0; }
.search-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-radius: 8px; color: var(--ink); font-size: .92rem; font-weight: 500;
}
.search-result:hover, .search-result:focus { background: #f4f8f5; color: var(--ink); }
.search-result-title { flex: 1; min-width: 0; }
.search-result-cat {
  flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--green); background: #eaf6ee; padding: 4px 9px; border-radius: 999px;
}

/* ---------- Hero ---------- */
.mag-hero { position: relative; aspect-ratio: 1200 / 700; overflow: hidden; background: var(--ink); }
.mag-hero img { width: 100%; height: 100%; object-fit: cover; }
.mag-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(10,20,14,.85) 0%, rgba(10,20,14,.2) 50%, rgba(10,20,14,.05) 100%);
}
.mag-hero .hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 0; color: #fff; z-index: 2; }
@media (max-width: 767px) { .mag-hero { aspect-ratio: 4 / 5; } }
.pill { display: inline-block; background: var(--green); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 3px; }
.pill.dark { background: var(--ink); }
.mag-hero h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 600; margin: 14px 0 12px; border-bottom: 2px solid var(--green); display: inline-block; padding-bottom: 12px; letter-spacing: -.01em; text-transform: none; }
.mag-hero h2 a { color: inherit; }
.mag-hero h2 a:hover { color: #fff; text-decoration: none; }
.byline { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #d6e0da; }
.byline .avatar { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; padding: 3px; flex: none; }
.byline .avatar img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Hero carousel ---------- */
.mag-hero-carousel { position: relative; }
.mag-hero-carousel .mag-hero { margin: 0; }
.mag-hero-carousel .carousel-indicators { margin-bottom: 20px; gap: 7px; }
.mag-hero-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255,255,255,.5);
  border: none; opacity: 1; transition: background-color .2s ease, transform .2s ease; box-shadow: none; text-indent: 0;
}
.mag-hero-carousel .carousel-indicators .active { background-color: var(--green); transform: scale(1.35); }
.mag-hero-carousel .carousel-control-prev,
.mag-hero-carousel .carousel-control-next { width: 7%; opacity: 0; transition: opacity .2s ease; }
.mag-hero-carousel:hover .carousel-control-prev,
.mag-hero-carousel:hover .carousel-control-next { opacity: .85; }
.mag-hero-carousel .carousel-control-prev-icon,
.mag-hero-carousel .carousel-control-next-icon { width: 2rem; height: 2rem; }

/* ---------- Section headings ---------- */
.mag-section { padding: 72px 0; }
.mag-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 1.7rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; text-transform: uppercase; }
.section-head .bar { width: 44px; height: 2px; background: var(--green); margin: 0 auto; }

/* ---------- Review cards ---------- */
.rcard { background: var(--card); border: 1px solid rgba(20,38,28,.07); border-radius: 10px; overflow: hidden; height: 100%; box-shadow: 0 1px 2px rgba(20,38,28,.04); transition: box-shadow .25s ease, transform .25s ease; }
.rcard:hover { box-shadow: 0 22px 40px rgba(20,38,28,.13); transform: translateY(-4px); }
.rcard .thumb { position: relative; height: 190px; overflow: hidden; background: #eef2ef; }
.rcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rcard:hover .thumb img { transform: scale(1.04); }
.rcard .thumb .pill { position: absolute; left: 14px; bottom: -12px; }
.rcard .body { padding: 26px 22px 20px; }
.rcard h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.4; margin: 0 0 14px; }
.rcard h3 a { color: var(--ink); }
.rcard h3 a:hover { color: var(--green); text-decoration: underline; }
.rcard .byline { color: var(--muted); font-size: .78rem; }
.rcard .byline .avatar { background: #fff; }

/* ---------- Featured lead card + mini headline list (editorial hierarchy) ---------- */
.rcard-featured .thumb { height: 320px; }
.rcard-featured .body { padding: 28px 26px 26px; }
.rcard-featured h3 { font-family: "Fraunces", "Poppins", serif; font-size: 1.4rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.rcard-featured p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 12px 0 16px; }
@media (max-width: 991px) { .rcard-featured .thumb { height: 240px; } }

.mini-list { display: flex; flex-direction: column; height: 100%; }
.mini-item { display: flex; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); align-items: center; border-radius: 8px; transition: background .15s ease; }
.mini-item:first-child { padding-top: 2px; }
.mini-item:last-child { border-bottom: none; padding-bottom: 2px; }
.mini-item:hover { background: #f4f8f5; }
.mini-item .mini-thumb { flex: none; width: 88px; height: 66px; border-radius: 8px; overflow: hidden; background: #eef2ef; }
.mini-item .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .mini-body { flex: 1; min-width: 0; }
.mini-item .mini-cat { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); margin-bottom: 4px; }
.mini-item h4 { font-size: .92rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--ink); }
.mini-item:hover h4 { color: var(--green); }

/* ---------- List-style cards ---------- */
.lcard { display: flex; gap: 22px; background: #fff; border: 1px solid rgba(20,38,28,.07); border-radius: 10px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(20,38,28,.04); transition: box-shadow .25s ease; }
.lcard:hover { box-shadow: 0 16px 32px rgba(20,38,28,.1); }
.lcard .thumb { flex: none; width: 260px; }
.lcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 160px; }
.lcard .body { padding: 22px 24px 22px 0; flex: 1; }
.lcard h3 { font-size: 1.15rem; margin: 8px 0 10px; font-weight: 600; }
.lcard h3 a { color: var(--ink); }
.lcard h3 a:hover { color: var(--green); }
.lcard p { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.lcard .date { font-size: .76rem; color: #98a29b; }
@media (max-width: 767px) { .lcard { flex-direction: column; } .lcard .thumb { width: 100%; } }

/* ---------- Category tiles ---------- */
.cat-tile { position: relative; height: 220px; border-radius: 10px; overflow: hidden; display: block; box-shadow: 0 1px 2px rgba(20,38,28,.04); transition: box-shadow .25s ease; }
.cat-tile:hover { box-shadow: 0 20px 36px rgba(20,38,28,.16); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,15,.15) 0%, rgba(11,20,15,.55) 100%); }
.cat-tile .label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.cat-tile .label span {
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 10px 20px; text-align: center; border-radius: 999px;
}

/* ---------- Brand tiles (Drivers by Brand) ---------- */
.brand-tile { position: relative; height: 200px; border-radius: 10px; overflow: hidden; display: block; box-shadow: 0 1px 2px rgba(20,38,28,.04); transition: box-shadow .25s ease; }
.brand-tile:hover { box-shadow: 0 20px 36px rgba(20,38,28,.16); }
.brand-tile img { width: 100%; height: 100%; object-fit: cover; background: #eef2ef; transition: transform .4s ease; }
.brand-tile:hover img { transform: scale(1.06); }
.brand-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,15,0) 42%, rgba(11,20,15,.88) 100%); }
.brand-tile .brand-info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; }
.brand-tile .brand-info .name { font-family: "Fraunces", "Poppins", serif; font-size: 1.15rem; font-weight: 600; display: block; letter-spacing: -.005em; }
.brand-tile .brand-info .years { font-size: .72rem; color: #d6e0da; display: block; margin-top: 3px; }

/* ---------- Author card ---------- */
.author-card { display: flex; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 44px; box-shadow: 0 1px 3px rgba(20,38,28,.05); }
.author-avatar {
  flex: none; width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.author-avatar img { width: 100%; height: 100%; object-fit: contain; }
.author-info { flex: 1; min-width: 0; }
.author-kicker { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.author-info h2 { font-family: "Fraunces", "Poppins", serif; font-size: 1.6rem; font-weight: 600; margin: 0 0 4px; letter-spacing: -.005em; }
.author-tagline { color: var(--green-deep); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.author-info p:not(.author-tagline) { color: var(--muted); line-height: 1.7; margin-bottom: 16px; font-size: .95rem; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; }
@media (max-width: 767px) { .author-card { flex-direction: column; text-align: center; padding: 32px 26px; } }

/* ---------- Callout ---------- */
.tools-callout { background: #eaf6ee; border: 1px solid #cfe9d7; border-radius: 10px; padding: 24px 28px; }

/* ---------- Footer ---------- */
.mag-footer { background: var(--ink); color: #b9c6bd; padding: 50px 0 0; }
.mag-footer .logo-wrap img { height: 42px; margin-bottom: 12px; }
.mag-footer h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.mag-footer a { color: #b9c6bd; }
.mag-footer a:hover { color: #fff; }
.mag-footer .news-thumb { display: flex; gap: 10px; margin-bottom: 14px; }
.mag-footer .news-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.mag-footer .news-thumb .t { font-size: .82rem; color: #dfe8e1; line-height: 1.3; }
.mag-footer .bottom-bar { border-top: 1px solid #24352a; margin-top: 40px; padding: 18px 0; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mag-footer .social a { display: inline-flex; width: 30px; height: 30px; border: 1px solid #33443a; border-radius: 50%; align-items: center; justify-content: center; margin-left: 8px; font-size: .8rem; }
