/*
Theme Name: Methodology
Theme URI: https://gomethodology.com
Description: Custom WordPress theme for Methodology landing pages and blog. Designed to match the gomethodology.com brand — Ivar Display headlines, DM Sans body, premium health/wellness aesthetic.
Author: Methodology Dev Team
Author URI: https://gomethodology.com
Version: 1.0.0
Text Domain: methodology
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
*/

/* ========== CSS VARIABLES ========== */
:root {
  --meth-text: #271D0F;
  --meth-accent: #454803;
  --meth-accent-hover: #363a02;
  --meth-tag: #A2927C;
  --meth-white: #FFFFFF;
  --meth-cream: #F6F4F1;
  --meth-warm: #F6EDD2;
  --meth-dark: #271D0F;
  --meth-sage: #BABE83;
  --meth-footer-bg: #1a1209;
  --meth-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --meth-font-heading: 'Ivar Display', Georgia, 'Times New Roman', serif;
}

/* ========== FONT FACE ========== */
@font-face {
  font-family: 'Ivar Display';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/IvarDisplay-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('fonts/IvarDisplay-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/IvarDisplay-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url('fonts/IvarDisplay-MediumItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/IvarDisplay-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  src: url('fonts/IvarDisplay-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/IvarDisplay-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Ivar Display';
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  src: url('fonts/IvarDisplay-BoldItalic.woff2') format('woff2');
}

/* ========== GLOBAL RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--meth-font-body);
  color: var(--meth-text);
  background: var(--meth-white);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--meth-accent);
  text-decoration: none;
}

a:hover {
  color: var(--meth-accent-hover);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--meth-font-heading);
  color: var(--meth-text);
  font-weight: 500;
}

h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== TAG ========== */
.tag {
  font-family: var(--meth-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meth-tag);
  display: block;
  margin-bottom: 16px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: var(--meth-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 18px 40px;
  background: var(--meth-accent);
  color: var(--meth-white);
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn:hover {
  background: var(--meth-accent-hover);
  color: var(--meth-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(69, 72, 3, 0.25);
}

.btn-sm {
  font-size: 13px;
  padding: 12px 24px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--meth-accent);
  color: var(--meth-accent);
}

.btn-outline:hover {
  background: var(--meth-accent);
  color: var(--meth-white);
  box-shadow: none;
}

/* ========== SITE HEADER / NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 29, 15, 0.06);
  padding: 18px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .site-logo img {
  height: 18px;
  width: auto;
}

.site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--meth-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .header-nav a:hover {
  color: var(--meth-accent);
}

/* ========== SITE FOOTER ========== */
.site-footer {
  background: var(--meth-footer-bg);
  padding: 48px 0;
}

.site-footer .container {
  text-align: center;
}

.site-footer .footer-logo img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
  margin-top: 24px;
  list-style: none;
}

.site-footer .footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .footer-legal {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 24px;
}

/* ========== PAGE CONTENT (full-width) ========== */
.page-content {
  width: 100%;
}

/* ========== BLOG / POST STYLES ========== */
.blog-hero {
  background: var(--meth-cream);
  padding: 80px 0 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.blog-hero .blog-subtitle {
  font-size: 18px;
  color: var(--meth-tag);
  max-width: 600px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 80px 0;
}

.post-card {
  text-decoration: none;
  color: var(--meth-text);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card .post-thumbnail {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 20px;
}

.post-card .post-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meth-tag);
  margin-bottom: 8px;
  display: block;
}

.post-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.post-card .post-excerpt {
  font-size: 14px;
  color: rgba(39, 29, 15, 0.7);
  line-height: 1.5;
}

.post-card .post-date {
  font-size: 12px;
  color: var(--meth-tag);
  margin-top: 12px;
}

/* Single post */
.single-post-header {
  background: var(--meth-cream);
  padding: 80px 0 60px;
  text-align: center;
}

.single-post-header .post-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meth-accent);
  margin-bottom: 16px;
  display: block;
}

.single-post-header h1 {
  font-size: 44px;
  max-width: 720px;
  margin: 0 auto 16px;
}

.single-post-header .post-meta {
  font-size: 14px;
  color: var(--meth-tag);
}

.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 28px 100px;
}

.single-post-content p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.single-post-content h2 {
  font-size: 32px;
  margin: 48px 0 16px;
}

.single-post-content h3 {
  font-size: 24px;
  margin: 36px 0 12px;
}

.single-post-content img {
  width: 100%;
  margin: 32px 0;
}

.single-post-content blockquote {
  border-left: 3px solid var(--meth-accent);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  font-style: italic;
  color: rgba(39, 29, 15, 0.7);
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.single-post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 80px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--meth-text);
  text-decoration: none;
  border: 1px solid rgba(39, 29, 15, 0.1);
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--meth-accent);
  color: var(--meth-accent);
}

.pagination .current {
  background: var(--meth-accent);
  color: var(--meth-white);
  border-color: var(--meth-accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .blog-hero { padding: 60px 0 40px; }
  .blog-hero h1 { font-size: 36px; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .posts-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .single-post-header h1 { font-size: 32px; }
  .single-post-content { padding: 40px 20px 60px; }
  /* .page-content { padding: 40px 20px 60px; } */
  .single-post-content p { font-size: 16px; }
  .site-header .header-nav { gap: 16px; }
  .site-header .header-nav a:not(.btn) { display: none; }
}
