/*
Theme Name: Weekly Tipple
Theme URI: https://littleredjet.com/
Author: Little Red Jet
Author URI: https://littleredjet.com/
Description: A curated beverage-brand directory theme. Includes a custom "Beverages" post type with categories and founder / funding fields, an industry news blog, and a combined Hire Us / Sponsor contact page (Contact Form 7). Built for Iris Nova.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weekly-tipple
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-soft: #f2f2f2;
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --line: #e6e6e6;
  --line-strong: #d8d8d8;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }
.nav-pills {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.nav-pills a { padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink); transition: background .15s; }
.nav-pills a:hover, .nav-pills a.active { background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .12s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: var(--bg-card); color: var(--ink); border-color: var(--line); }
.btn svg { width: 16px; height: 16px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 96px 0 56px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; margin: 0 auto 22px; max-width: 16ch; }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.subscribe { margin: 30px auto 0; max-width: 470px; display: flex; gap: 8px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 20px; }
.subscribe input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: none; font-family: inherit; color: var(--ink); }

/* Contact Form 7 subscriber form styled as the inline pill */
.subscribe-cf7 { margin: 30px auto 0; max-width: 470px; }
.subscribe-cf7 form.wpcf7-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 20px; }
.subscribe-cf7 form.wpcf7-form > p { margin: 0; display: contents; }
.subscribe-cf7 .wpcf7-form-control-wrap { flex: 1; min-width: 0; }
.subscribe-cf7 input[type=email], .subscribe-cf7 input[type=text] { width: 100%; border: 0; background: transparent; font-family: inherit; font-size: 15px; color: var(--ink); outline: none; padding: 8px 0; }
.subscribe-cf7 input[type=submit] { flex: 0 0 auto; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.subscribe-cf7 input[type=submit]:hover { opacity: .92; }
.subscribe-cf7 .wpcf7-spinner { position: absolute; }
.subscribe-cf7 .wpcf7-response-output { flex-basis: 100%; width: 100%; margin: 10px 4px 0 !important; padding: 0 !important; border: 0 !important; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; font-weight: 600; margin: 0; }
.view-all { font-size: 14px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; background: var(--bg-card); }
.view-all:hover { color: var(--ink); }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .16s, box-shadow .16s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,0.08); }
.card-media { display: block; position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:28px; letter-spacing:-0.02em; background: linear-gradient(135deg,#e9e4dd,#cfd6d8); color: #fff; }
.badge-new { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.card-body { padding: 16px 16px 18px; }
.card-head { display: block; }
.card-head:hover .card-title { text-decoration: underline; }
.card-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.card-url { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; word-break: break-all; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.tag:hover { color: var(--ink); }

/* ---------- Directory filter ---------- */
.dir-head { padding: 80px 0 14px; }
.dir-head h1 { font-size: clamp(34px,5vw,52px); font-weight:600; letter-spacing:-0.02em; margin:0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.filter { font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-soft); cursor: pointer; }
.filter:hover { color: var(--ink); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Blog ---------- */
.blog-list { display: flex; flex-direction: column; gap: 4px; max-width: 760px; margin: 0 auto; }
.blog-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.blog-row:hover .blog-row-title { text-decoration: underline; }
.blog-row-main { display: flex; align-items: center; gap: 14px; }
.blog-row-title { font-size: 19px; font-weight: 600; }
.blog-row-date { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.article { max-width: 760px; margin: 0 auto; padding: 70px 0 30px; }
.article .eyebrow { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.article h1 { font-size: clamp(30px,4.5vw,46px); font-weight: 600; letter-spacing:-0.02em; line-height:1.1; margin: 12px 0 28px; }
.article h2 { font-size: 24px; font-weight: 600; margin: 38px 0 14px; }
.article h3 { font-size: 19px; font-weight: 600; margin: 26px 0 10px; }
.article p { margin: 0 0 18px; color: #2a2a2a; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 9px; color: #2a2a2a; }
.article-hero { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg,#e9e4dd,#cfd6d8); margin-bottom: 8px; }
.article-hero img { width:100%; height:100%; object-fit:cover; }

/* ---------- Detail (beverage) ---------- */
.detail { padding: 64px 0 24px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.detail-media video, .detail-media img { width:100%; height:100%; object-fit: cover; }
.detail h1 { font-size: clamp(34px,5vw,52px); font-weight: 600; letter-spacing:-0.02em; margin: 0 0 18px; }
.detail .lead { color: #2a2a2a; font-size: 18px; margin: 0 0 28px; }
.meta-label { font-size: 13px; color: var(--ink-soft); margin: 22px 0 8px; }
.meta-value { font-weight: 600; }
.detail .visit { margin-top: 30px; }

/* ---------- Submit / Hire ---------- */
.submit-hero { text-align:center; padding: 86px 0 20px; }
.submit-hero h1 { font-size: clamp(32px,4.6vw,50px); font-weight:600; letter-spacing:-0.02em; max-width: 20ch; margin: 0 auto 18px; line-height:1.1; }
.submit-hero p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; font-size: 18px; }
.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; max-width: 720px; margin: 8px auto 0; }
.form-card h3 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.form-card .benefits { list-style: none; padding: 0; margin: 0 0 24px; }
.form-card .benefits li { display:flex; gap:10px; align-items:flex-start; color:#2a2a2a; margin-bottom:10px; font-size:15px; }
.form-card .benefits li::before { content:"\2713"; color: var(--ink); font-weight:700; }
/* Contact Form 7 styling to match the theme */
.form-card .wpcf7 label { display:block; font-size:13px; color: var(--ink-soft); margin-bottom:6px; font-weight:500; }
.form-card .wpcf7 input[type=text],
.form-card .wpcf7 input[type=email],
.form-card .wpcf7 input[type=tel],
.form-card .wpcf7 textarea,
.form-card .wpcf7 select {
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size:15px; background: var(--bg); color: var(--ink); outline:none; margin-bottom: 14px;
}
.form-card .wpcf7 input:focus, .form-card .wpcf7 textarea:focus, .form-card .wpcf7 select:focus { border-color: var(--line-strong); }
.form-card .wpcf7 input[type=submit] {
  width:100%; justify-content:center; margin-top: 6px; cursor:pointer;
  background: var(--ink); color:#fff; border:0; padding: 14px 20px; border-radius: 999px; font-weight:600; font-size:15px;
}
.form-card .wpcf7 input[type=submit]:hover { opacity:.92; }

/* ---------- Generic page / legal ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 70px 0 30px; }
.legal h1 { font-size: clamp(32px,4.5vw,48px); font-weight:600; letter-spacing:-0.02em; margin:0 0 10px; }
.legal h2 { font-size: 20px; font-weight:600; margin: 30px 0 10px; }
.legal p { color:#2a2a2a; margin: 0 0 16px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { color:#2a2a2a; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 50px 0 40px; }
.footer-inner { display:flex; flex-wrap:wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-credit { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.footer-credit a { color: var(--ink); font-weight: 500; }
.footer-nav { display:flex; flex-direction:column; gap: 10px; }
.footer-nav a { color: var(--ink-soft); font-size: 15px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 34px; color: var(--ink-soft); font-size: 13px; display:flex; gap: 16px; flex-wrap:wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-pills { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { flex-direction: column; gap: 6px; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 10px 0; font-weight: 500; }
}
@media (max-width: 540px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}
