/*
Theme Name: Din Solicitors
Theme URI: https://v2.dinsolicitors.co.uk/
Description: Official WordPress theme for Din Solicitors (a trading name of Din & Associates Ltd) — West Yorkshire's No Win, No Fee solicitors. Faithful conversion of the "Kindred" homepage design (warm white, brand red #9a0f1a, Jost + Manrope). Sticky mega-menu header, typed/synced hero slider, services, process, personal-injury tabs, case studies, testimonials slider, insights, news, FAQ accordion, and a multi-tier footer with the live SRA digital badge. Designed, developed & maintained by Devute (https://devute.com).
Author: Devute
Author URI: https://devute.com/
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dinsolicitors
Tags: business, professional-services, legal, custom-menu, featured-images, threaded-comments, translation-ready, sticky-post
*/

/*
 * The full design system lives in css/styles.css (enqueued by functions.php).
 * This file holds the WordPress theme header plus light styling for the inner
 * page templates (index.php / page.php / single.php / 404.php / search.php) so
 * blog and standard pages stay on-brand once content is added in WordPress.
 */

:root {
  --red: #9a0f1a;
  --red-hover: #b51322;
  --red-deep: #7d0c14;
  --ink: #2c2622;
  --body: #6d655c;
  --muted: #8a8178;
  --blush: #fdf2f1;
  --gold: #e0a93b;
  --line: #f1e3e2;
}

/* ---- inner page shell (blog, single posts, standard pages, 404, search) ---- */
.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px 96px;
}

.page-shell .page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.page-shell .page-eyebrow:before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
}

.page-shell .page-title {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  color: var(--ink);
}

.page-shell .entry-content,
.page-shell .page-intro {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
}

.page-shell .entry-content h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.page-shell .entry-content h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 23px;
  color: var(--ink);
  margin: 32px 0 12px;
}
.page-shell .entry-content a { color: var(--red); }
.page-shell .entry-content a:hover { color: var(--red-hover); }
.page-shell .entry-content img { border-radius: 14px; height: auto; }
.page-shell .entry-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--red);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---- post list (index.php / archive / search) ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: #e9c6c4; transform: translateY(-3px); }
.post-card .post-thumb { display: block; }
.post-card .post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.post-card .post-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-card-meta { font-size: 12.5px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 10px; }
.post-card .post-card-title {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.post-card .post-card-title a { color: var(--ink); text-decoration: none; }
.post-card .post-card-title a:hover { color: var(--red); }
.post-card .post-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 18px; flex: 1; }
.post-card .post-card-more { font-family: 'Jost', sans-serif; font-size: 14px; color: var(--red); text-decoration: none; }

/* ---- buttons / pagination ---- */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
}
.btn-red:hover { background: var(--red-hover); }

.din-pagination {
  margin-top: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.din-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 40px;
  border: 1px solid var(--line);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.din-pagination .page-numbers.current,
.din-pagination .page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- comments ---- */
.din-comments { margin-top: 64px; }
.din-comments h2 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 26px; color: var(--ink); margin: 0 0 24px; }
.din-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.din-comments .comment-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.din-comments .comment-author { font-family: 'Jost', sans-serif; font-size: 16px; color: var(--ink); }
.din-comments input[type="text"],
.din-comments input[type="email"],
.din-comments input[type="url"],
.din-comments textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .page-shell { padding: 56px 28px 72px; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .page-shell { padding: 48px 20px 64px; }
}

/* ============================================================
   NEWSROOM & INSIGHTS  (index.php — news / blog / archive / search)
   ============================================================ */
.news-page { overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- hero ---- */
.news-hero {
  background:
    radial-gradient(60% 90% at 78% 0%, rgba(224,169,59,0.10), transparent 55%),
    radial-gradient(80% 120% at 20% 0%, var(--blush), transparent 60%),
    #fff;
  padding: 72px 24px 54px;
  text-align: center;
}
.news-hero-inner { max-width: 720px; margin: 0 auto; }
.news-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Jost', sans-serif; font-size: 12.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.news-eyebrow:before, .news-eyebrow:after { content: ""; width: 30px; height: 1px; background: var(--red); opacity: .7; }
.news-h1 {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.5px;
  color: var(--ink); margin: 0 0 18px;
}
.news-sub { font-family: 'Manrope', sans-serif; font-size: 17px; line-height: 1.7; color: var(--body); max-width: 580px; margin: 0 auto; }

.news-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px;
  margin: 32px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: 40px; padding: 7px 7px 7px 22px; box-shadow: 0 18px 50px -28px rgba(122,20,20,0.4);
}
.news-search > .fa-magnifying-glass { color: var(--red); font-size: 15px; }
.news-search input { flex: 1; border: none; outline: none; background: none; font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--ink); }
.news-search .btn-red { padding: 12px 24px; }

.news-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.news-pill {
  font-family: 'Jost', sans-serif; font-size: 14px; color: var(--body);
  border: 1px solid var(--line); background: #fff; border-radius: 40px;
  padding: 9px 18px; text-decoration: none; transition: all .2s ease;
}
.news-pill:hover { border-color: var(--red); color: var(--red); }
.news-pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- featured ---- */
.news-featured-wrap { max-width: 1100px; margin: 0 auto; padding: 14px 48px 0; }
.news-featured {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--blush);
}
.nf-media { display: block; min-height: 320px; }
.nf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.nf-badge, .nc-badge {
  align-self: flex-start; font-family: 'Jost', sans-serif; font-size: 12px;
  letter-spacing: .4px; color: #fff; background: var(--red); border-radius: 30px; padding: 6px 14px;
}
.nf-meta, .nc-meta { font-family: 'Jost', sans-serif; font-size: 12.5px; color: var(--muted); letter-spacing: .4px; margin: 16px 0 10px; }
.nf-title { font-family: 'Jost', sans-serif; font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.22; margin: 0 0 14px; }
.nf-title a { color: var(--ink); text-decoration: none; }
.nf-title a:hover { color: var(--red); }
.nf-excerpt { font-family: 'Manrope', sans-serif; font-size: 15.5px; line-height: 1.7; color: var(--body); margin: 0 0 24px; }

/* ---- list ---- */
.news-list-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 48px 24px; }
.news-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.news-list-title { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 30px; color: var(--ink); margin: 0; }
.news-count { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--muted); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.news-card:hover { border-color: #e9c6c4; transform: translateY(-4px); box-shadow: 0 24px 50px -34px rgba(122,20,20,0.4); }
.nc-media { position: relative; display: block; height: 188px; background: var(--blush); }
.nc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-media .nc-badge { position: absolute; top: 14px; left: 14px; }
.nc-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #e3b9b6; font-size: 34px; }
.nc-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.nc-body .nc-meta { margin: 0 0 8px; }
.nc-title { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 19.5px; line-height: 1.3; margin: 0 0 10px; }
.nc-title a { color: var(--ink); text-decoration: none; }
.nc-title a:hover { color: var(--red); }
.nc-excerpt { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.6; color: var(--body); margin: 0 0 16px; flex: 1; }
.nc-more { font-family: 'Jost', sans-serif; font-size: 14px; color: var(--red); text-decoration: none; }
.nc-more:hover { color: var(--red-hover); }
.news-empty { font-family: 'Manrope', sans-serif; font-size: 17px; color: var(--body); text-align: center; padding: 40px 0; }
.news-list-wrap .din-pagination { justify-content: center; }

/* ---- newsletter band ---- */
.news-subscribe { margin-top: 64px; background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%); }
.news-sub-inner { max-width: 1100px; margin: 0 auto; padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.news-sub-text h2 { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 30px; color: #fff; margin: 0 0 8px; }
.news-sub-text p { font-family: 'Manrope', sans-serif; font-size: 15px; color: rgba(255,255,255,0.82); margin: 0; max-width: 420px; }
.news-sub-form { display: flex; gap: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 40px; padding: 7px 7px 7px 8px; }
.news-sub-form input { border: none; outline: none; background: #fff; border-radius: 30px; padding: 13px 20px; font-family: 'Manrope', sans-serif; font-size: 14px; min-width: 240px; color: var(--ink); }
.btn-sub { border: none; background: #fff; color: var(--red); font-family: 'Jost', sans-serif; font-size: 15px; border-radius: 30px; padding: 13px 26px; cursor: pointer; transition: background .2s ease; }
.btn-sub:hover { background: #f7eede; }

@media (max-width: 980px) {
  .news-featured { grid-template-columns: 1fr; }
  .nf-media { min-height: 240px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .news-featured-wrap, .news-list-wrap { padding-left: 28px; padding-right: 28px; }
  .news-sub-inner { padding: 40px 28px; }
}
@media (max-width: 620px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-search { flex-wrap: wrap; border-radius: 20px; padding: 14px; }
  .news-search .btn-red { width: 100%; justify-content: center; }
  .news-sub-form { width: 100%; flex-direction: column; border-radius: 20px; }
  .news-sub-form input { min-width: 0; width: 100%; }
  .btn-sub { width: 100%; }
}
