/*
Theme Name: Manta Lures
Theme URI: https://mantalures.com
Author: Manta Lures
Description: Custom brochure theme for Manta Lures, handcrafted deep sea trolling lures. No e-commerce - built to drive people to Instagram, Facebook, and email.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: manta-lures
*/

/* ===================== Design tokens ===================== */
:root{
  --navy-deep: #0b1a26;
  --navy-black: #060f16;
  --navy-panel: #10222f;
  --maple-red: #c02c3f;
  --maple-red-dark: #922031;
  --brass: #cf9f4f;
  --foam-teal: #3fb2a6;
  --off-white: #f3efe4;
  --muted: #93a6b3;
  --line: rgba(243,239,228,0.14);

  --font-display: 'UnifrakturCook', serif;
  --font-body: 'Barlow Condensed', sans-serif;

  --max-w: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

/* ===================== Reset / base ===================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--navy-deep);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ margin: 0 0 0.4em; font-weight: 400; }
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
:focus-visible{
  outline: 2px solid var(--foam-teal);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

/* ===================== Type scale ===================== */
.wordmark{
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--off-white);
  letter-spacing: 0.01em;
}
.wordmark .leaf{
  display: inline-block;
  vertical-align: middle;
  width: 1.24em;
  height: auto;
  margin: 0 0.12em;
}

h1.page-title, .hero h1{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}
h2.section-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--off-white);
  max-width: 34ch;
}
.eyebrow{ display:none; } /* intentionally unused - see design notes */

.lede{
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ===================== Header ===================== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(6,15,22,0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.site-header .wordmark{
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
}
.primary-nav ul{ display:flex; gap: clamp(1rem,2.5vw,2.2rem); }
.primary-nav a{
  font-size: 1.05rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover, .primary-nav a:focus-visible{
  color: var(--off-white);
  border-color: var(--maple-red);
}
.nav-toggle{ display:none; }

@media (max-width: 720px){
  .primary-nav ul{
    position: fixed; inset: 62px 0 0 0;
    flex-direction: column; gap:0;
    background: var(--navy-black);
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    padding: 1rem var(--gap);
    transform: translateY(-8px);
    opacity:0; pointer-events:none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .primary-nav ul.is-open{ opacity:1; pointer-events:auto; transform:none; background:#060f16 !important; }
  .primary-nav li{ border-bottom:1px solid var(--line); }
  .primary-nav a{ display:block; padding: 0.9rem 0; color: var(--off-white) !important; }
  .nav-toggle{
    display:block; background:none; border:1px solid var(--line);
    color: var(--off-white); font-size:1rem; padding: 0.4rem 0.8rem;
    border-radius: 3px;
  }
}

/* ===================== Latest update photo banner ===================== */
/* Shown above the hero on the homepage. Pulls the most recent WordPress
   post (a tournament announcement, or a new-lure / workshop reveal). When
   that post has a featured image it becomes a full-width photo banner;
   when there's no image it degrades to a plain navy bar. */
.latest-banner{
  position:relative; overflow:hidden;
  min-height: clamp(180px, 42vw, 420px);
  display:flex; align-items:flex-end;
  background: var(--navy-black);
  border-bottom: 1px solid var(--line);
}
.latest-banner--has-img .latest-banner--bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter: brightness(0.55) saturate(1.1);
}
.latest-banner--copy{
  position:relative; z-index:1;
  padding: clamp(1.5rem, 5vw, 3rem) 0;
}
.latest-banner--eyebrow{
  display:inline-block;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform:uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.latest-banner--copy h2{
  margin:0 0 1rem; max-width: none;
}
.latest-banner--copy a.btn{
  display:inline-block; margin-top: 0.5rem;
}
.latest-banner--has-img{
  min-height: clamp(260px, 60vw, 640px);
}

/* ===================== Hero ===================== */
/* Two columns on desktop, stacked on mobile. The logo sits on its own
   light plate (its lettering has ~1:1 contrast on navy - unreadable),
   and the photo lives in a fixed-aspect box so it can never be
   cropped unpredictably the way a full-bleed background-image was. */
.hero{ padding: clamp(2rem, 5vw, 4rem) 0; }
.hero .container{
  display:grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.1fr 1fr;
  align-items:center;
}
@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
}

.hero-plate{
  background: #ffffff; /* matches the logo file's own background exactly - no cutout, no seam */
  padding: clamp(1.25rem, 3vw, 2rem);
  display:flex; align-items:center; justify-content:center;
}
.hero-plate img{
  width:100%; height:auto; max-width: 460px;
  object-fit: contain;
}

.hero-copy{ padding: 0 0.25rem; margin-top: 1.5rem; }
.hero .tagline{
  color: var(--off-white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.hero-links{ display:flex; gap: clamp(1.2rem, 3vw, 2rem); flex-wrap:wrap; }

.hero-photo{
  aspect-ratio: 4 / 5;
  overflow:hidden;
  background: var(--navy-panel);
}
.hero-photo img{ width:100%; height:100%; object-fit:contain; }
@media (max-width: 900px){
  .hero-photo{ aspect-ratio: 16/10; }
}
.text-link{
  font-size: 1.1rem;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
}
.text-link:hover, .text-link:focus-visible{ border-color: var(--foam-teal); color: var(--foam-teal); }

/* ===================== Sections generic ===================== */
.section{ padding: clamp(3rem, 8vw, 6rem) 0; }
.section--panel{ background: var(--navy-panel); }
.section--black{ background: var(--navy-black); }
.section-head{ margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

/* ===================== Tackle strip (lure gallery) ===================== */
.tackle-strip{
  display:flex; overflow-x:auto; gap:0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tackle-strip figure{
  flex: 0 0 auto; width: min(72vw, 320px);
  margin:0; border-right: 1px solid var(--line);
  position:relative;
}
.tackle-strip img{ height:100%; width:100%; object-fit:contain; }
.tackle-strip figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(0deg, rgba(6,15,22,0.85), transparent);
  font-size: 0.95rem; color: var(--muted);
}
.strip-more{ margin-top: 1.4rem; }

/* Larger gallery grid used on the Lures page */
.lure-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px; background: var(--line);
}
.lure-grid figure{ margin:0; background: var(--navy-deep); }
.lure-grid img{ width:100%; height:auto; object-fit:contain; }
.lure-grid figcaption{ padding: 0.9rem 1rem; color: var(--muted); font-size:0.95rem; }

/* ===================== Catches / promo banner ===================== */
.promo-banner{
  position:relative; border-radius:0; overflow:hidden;
  min-height: 360px; display:flex; align-items:center;
  background-size:cover; background-position:center;
}
.promo-banner::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(6,15,22,0.92) 0%, rgba(6,15,22,0.55) 45%, rgba(6,15,22,0.15) 100%);
}
.promo-banner .promo-copy{ position:relative; z-index:1; max-width: 30ch; padding: 2rem var(--gap); }

.catch-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 2px; background: var(--line); margin-top: 2rem;
}
.catch-grid figure{ margin:0; background: var(--navy-panel); }
.catch-grid img{ width:100%; height:auto; object-fit:contain; }
.catch-placeholder{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); font-size:0.9rem; text-align:center; padding:1rem;
  border: 1px dashed var(--line);
}

/* ===================== Events / tournaments ===================== */
.tourney-list{ border-top: 1px solid var(--line); }
.tourney-list li{
  display:flex; flex-wrap:wrap; gap: 0.4rem 1.2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  align-items:baseline;
}
.tourney-list .date{ color: var(--brass); font-variant-numeric: tabular-nums; min-width: 9ch; }
.tourney-list .name{ font-size:1.15rem; }
.tourney-list .place{ color: var(--muted); }

.partner-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: var(--gap); margin-top:1.5rem;
}
.partner-grid figure{ margin:0; }
.partner-grid img{ width:100%; height:auto; object-fit:contain; }
.partner-grid figcaption{ margin-top:0.5rem; color:var(--muted); font-size:0.95rem; }

/* ===================== Footer ===================== */
.site-footer{ background: var(--navy-black); border-top: 1px solid var(--line); padding: clamp(2.5rem,6vw,3.5rem) 0; }
.site-footer .wordmark{
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
}
.footer-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem; }
.contact-links{ display:flex; gap: clamp(1.2rem,3vw,2rem); flex-wrap:wrap; }
.contact-links a{ font-size:1.05rem; border-bottom:1px solid transparent; }
.contact-links a:hover, .contact-links a:focus-visible{ border-color: var(--foam-teal); color: var(--foam-teal); }
.copyright{ color: var(--muted); font-size:0.9rem; margin-top:2rem; }

/* ===================== Home hero / logo ===================== */
/* Logo is the first thing below the header. On its own plate for
   contrast, tagline underneath — nothing else in this block. */
.hero{
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
}
.hero .container{
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.hero-plate{
  background: #ffffff;
  padding: clamp(1rem, 3vw, 2rem);
  display:flex; align-items:center; justify-content:center;
  max-width: 460px; width:100%;
}
.hero-plate img{ width:100%; height:auto; max-height: 260px; object-fit: contain; }
.hero-tagline{
  margin-top: 1.2rem;
  color: var(--off-white);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

/* ===================== Home content blocks ===================== */
/* Each section = one link above one preview photo. Links sit ABOVE the
   photo (never overlaid on it). Blog -> Lures -> Catches, in order. */
.home-block{
  padding: 0 0;
}
.home-block-inner{
  display:flex; flex-direction:column; align-items:center;
}
.home-link{
  align-self:flex-start;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--off-white);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 3px;
  margin: 0 auto clamp(1rem, 2.5vw, 2rem) 0;
  transition: color .15s ease, border-color .15s ease;
}
.home-link:hover, .home-link:focus-visible{
  color: var(--foam-teal);
  border-color: var(--foam-teal);
}
.home-preview{
  margin: 0;
  width: 100%;
  max-width: 900px;
}
.home-preview img{
  width: 100%; height: auto;
  display: block;
  border: 1px solid var(--line);
}
@media (max-width: 720px){
  .home-link{ align-self:stretch; text-align:center; }
}

/* ===================== Buttons (used sparingly) ===================== */
.btn{
  display:inline-block; padding: 0.7rem 1.4rem;
  border: 1px solid var(--maple-red); color: var(--off-white);
  font-size: 1rem;
}
.btn:hover, .btn:focus-visible{ background: var(--maple-red); }

/* ===================== Fixed-on-dark text ===================== */
/* These sit on chrome that stays dark in both the navy and bright
   variants (sticky header, photo scrims) - so their text color is
   intentionally NOT a token that flips with the page background. */
.site-header .wordmark,
.site-header .wordmark .leaf ~ *{ color: #f3efe4; }
.site-header .primary-nav a{ color: #93a6b3; }
.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible{ color: #f3efe4; }
.tackle-strip figcaption{ color: #c7d2d8; }
.promo-banner .promo-copy,
.promo-banner .promo-copy .section-title{ color: #f3efe4; }
.promo-banner .promo-copy .lede{ color: #c7d2d8; }
