/*
Theme Name: Think Divinely
Theme URI: https://thinkdivinely.com/
Author: Think Divinely
Description: Custom WordPress theme based on the Think Divinely website design.
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: think-divinely
*/

:root {
  --bg: #faf7f2;
  --bg-soft: #f3ede3;
  --surface: #ffffff;
  --text: #2d2a26;
  --text-soft: #5e584f;
  --accent: #8a6a2f;
  --accent-dark: #6f5323;
  --border: #e4dbcf;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.container { width: min(92%, var(--max)); margin: 0 auto; }

.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text .tagline { 
	margin: 0; 
	color: var(--text-soft); 
	font-size: 1.1rem;
  font-style: italic;
	text-align: left; 
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  align-items: center;
  font-size: .98rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: #2D2A26;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent-dark);
  text-decoration: none;
}

.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(34,30,26,.56),rgba(34,30,26,.62)),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color:#fff;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom,rgba(0,0,0,.10),rgba(0,0,0,.28));
  pointer-events:none;
}
.hero-inner { position:relative; z-index:1; padding:110px 0 95px; max-width:760px; }
.eyebrow {
  display:inline-block; padding:7px 14px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px; font-size:.86rem;
  letter-spacing:.08em; text-transform:uppercase; margin-bottom:22px;
}
.hero h1 { margin:0 0 18px; font-size:clamp(2.4rem,5vw,4.5rem); line-height:1.08; font-weight:700; }
.hero p.lead { margin:0 0 28px; font-size:1.18rem; line-height:1.8; color:rgba(255,255,255,.94); }

.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:12px; }
.btn {
  display:inline-block; padding:14px 22px; border-radius:999px;
  font-weight:700; border:2px solid transparent; transition:all .2s ease;
}
.btn-primary { background:#fff; color:var(--accent-dark); }
.btn-primary:hover,.btn-primary:focus { background:#f8f1e5; text-decoration:none; }
.btn-secondary { background:transparent; color:#fff; border-color:rgba(255,255,255,.7); }
.btn-secondary:hover,.btn-secondary:focus { background:rgba(255,255,255,.10); text-decoration:none; }

.section { padding:72px 0; }
.section.alt { background:var(--bg-soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-title { margin:0 0 14px; font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.2; text-align:center; }
.section-intro { max-width:780px; margin:0 auto 42px; text-align:center; color:var(--text-soft); font-size:1.05rem; }

.two-col { display:grid; grid-template-columns:1.05fr .95fr; gap:36px; align-items:start; }
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:18px; padding:28px; box-shadow:var(--shadow);
}
.card h3 { margin-top:0; margin-bottom:12px; font-size:1.35rem; }
.card p:last-child,.feature p:last-child { margin-bottom:0; }

.feature-list { display:grid; gap:20px; }
.feature {
  background:var(--surface); border:1px solid var(--border);
  border-left:5px solid var(--accent); padding:22px 22px 20px;
  border-radius:10px; box-shadow:var(--shadow);
}
.feature h3 { margin:0 0 8px; font-size:1.2rem; }

.quote-block {
  background:#fff; border:1px solid var(--border);
  border-radius:18px; padding:34px; box-shadow:var(--shadow); font-size:1.1rem;
}
.quote-block p { margin:0 0 18px; }
.quote-block strong { color:var(--accent-dark); }

.cta { text-align:center; }
.cta-panel {
  max-width:900px; margin:0 auto;
  background:linear-gradient(135deg,#8a6a2f,#6f5323);
  color:#fff; padding:46px 34px; border-radius:24px; box-shadow:var(--shadow);
}
.cta-panel h2 { margin-top:0; margin-bottom:12px; font-size:clamp(1.9rem,3vw,2.7rem); line-height:1.2; }
.cta-panel p { max-width:720px; margin:0 auto 24px; color:rgba(255,255,255,.94); }

.site-footer { border-top:1px solid var(--border); background:#fff; padding:32px 0; color:var(--text-soft); font-size:1.05rem;}
.footer-tagline {
  font-style: italic;
}
.footer-inner { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-nav { display:flex; flex-wrap:wrap; gap:16px; }
.footer-nav a { color:var(--text-soft); }

.content-area { padding:72px 0; }
.content-wrap { max-width:900px; margin:0 auto; }
.entry-title { margin-top:0; font-size:clamp(2rem,4vw,3.5rem); line-height:1.15; }
.entry-meta { color:var(--text-soft); font-size:.95rem; margin-bottom:28px; }
.entry-content { font-size:1.08rem; }
.entry-content h2,.entry-content h3 { line-height:1.25; margin-top:1.8em; }
.entry-content img { margin:1.5rem auto; }
.entry-content blockquote {
  margin:2rem 0; padding:1rem 1.5rem;
  border-left:5px solid var(--accent); background:var(--bg-soft);
}
.post-list { display:grid; gap:24px; }
.post-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-card-image {
  display: block;
  width: 260px;
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.25;
}

.post-card h2 a {
  color: var(--text);
}

.post-card .entry-meta {
  margin-bottom: 8px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: #777;
  font-size: .95rem;
  margin-bottom: 10px;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.post-meta-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.post-card .btn {
  margin-top: auto;
}
.post-card h2 { margin-top:0; line-height:1.25; }
.post-card .entry-meta { margin-bottom:12px; }

.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (max-width:980px) {
  .two-col,.card-grid { grid-template-columns:1fr; }
  .header-inner { flex-direction:column; align-items:flex-start; }
  .nav { justify-content:flex-start; }
  .hero-inner { padding:90px 0 80px; }
}
@media (max-width:640px) {
  .hero h1 { font-size:2.4rem; }
  .hero p.lead { font-size:1.05rem; }
  .card,.feature,.quote-block,.cta-panel,.post-card { padding:24px 20px; }
  .nav { gap:12px; }
}
/* Recent Posts - horizontal thumbnail layout */

.post-list .post-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-list .post-card-image {
    display: block;
    width: 220px;
    height: 155px;
    overflow: hidden;
    border-radius: 12px;
}

.post-list .post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-list .post-card-content {
    min-width: 0;
}

.post-list .post-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.post-list .post-card .entry-meta {
    margin-bottom: 8px;
}

.post-list .post-card .btn {
    margin-top: 10px;
}


/* Mobile */
@media (max-width: 640px) {
    .post-list .post-card {
        grid-template-columns: 1fr;
    }

    .post-list .post-card-image {
        width: 100%;
        height: 220px;
    }
}

/* =========================================================
   Individual Post Pages
   ========================================================= */

article.single-post {
  max-width: 900px;
  margin: 0 auto;
}

.single-post-image {
  margin-bottom: 32px;
  border-radius: 18px;
  overflow: hidden;
}

.single-post-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-post-header {
  margin-bottom: 32px;
}

.single-post-header .post-meta {
  margin-bottom: 14px;
}

.single-post-header .entry-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.single-post-content {
  font-size: 1.08rem;
  line-height: 1.8;
}

.single-post-content p {
  margin-bottom: 1.4em;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 1.8em;
  margin-bottom: .6em;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.5em;
}

.single-post-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: #f7f5f1;
  border-radius: 0 10px 10px 0;
}

.single-post-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.post-navigation a {
  color: #2D2A26;
  font-weight: 600;
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}


/* =========================================================
   Individual Post Page - Final Polish
   ========================================================= */

article.single-post {
  max-width: 900px;
  margin: 0 auto;
}

.single-post-header {
  margin-bottom: 36px;
}

.single-post-header .entry-title {
  color: #2D2A26;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.single-post-header .post-meta {
  margin-bottom: 16px;
}

/* Article typography */

.single-post-content {
  color: #3f3c38;
  font-size: 1.08rem;
  line-height: 1.8;
}

.single-post-content p {
  margin: 0 0 1.5em;
}

.single-post-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-post-content a:hover {
  text-decoration-thickness: 2px;
}

/* Headings inside articles */

.single-post-content h2 {
  color: #2D2A26;
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 2em 0 .7em;
}

.single-post-content h3 {
  color: #2D2A26;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 1.8em 0 .6em;
}

.single-post-content h4 {
  color: #2D2A26;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.6em 0 .5em;
}

/* Lists */

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.single-post-content li {
  margin-bottom: .5em;
}

/* Block quotes */

.single-post-content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--accent);
  background: #f7f5f1;
  border-radius: 0 12px 12px 0;
  color: #4b4742;
  font-size: 1.08rem;
}

/* Images within articles */

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-post-content figure {
  margin: 2em 0;
}

.single-post-content figcaption {
  margin-top: 8px;
  color: #777;
  font-size: .9rem;
  line-height: 1.5;
}

/* Previous / Next */

.single-post-footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.post-navigation a {
  display: inline-block;
  color: #2D2A26;
  font-weight: 600;
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--accent-dark);
}

/* Mobile post layout */

@media (max-width: 640px) {

  article.single-post {
    max-width: 100%;
  }

  .single-post-header {
    margin-bottom: 28px;
  }

  .single-post-header .entry-title {
    font-size: 2rem;
    line-height: 1.18;
  }

  .single-post-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .single-post-content h2 {
    font-size: 1.55rem;
  }

  .single-post-content h3 {
    font-size: 1.3rem;
  }

  .single-post-content blockquote {
    padding: 18px 20px;
  }

  .single-post-footer {
    margin-top: 40px;
  }

  .post-navigation {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .post-navigation .previous-post,
  .post-navigation .next-post {
    width: 100%;
  }

}

/* =========================================================
   Header Search
   ========================================================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input {
  width: 130px;
  height: 38px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: #2D2A26;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: width .2s ease, border-color .2s ease;
}

.header-search input:focus {
  width: 180px;
  border-color: #2D2A26;
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2D2A26;
  cursor: pointer;
}

.header-search button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.header-search button:hover {
  color: var(--accent-dark);
}

/* Search mobile layout */

/* =========================================================
   Responsive Mobile Navigation
   ========================================================= */

.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2D2A26;
  border-radius: 2px;
}

/* =========================================================
   Mobile Navigation
   ========================================================= */

@media (max-width: 1150px) {

  .header-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mobile-nav-row {
    width: 100%;
    justify-content: flex-end;
  }

  .mobile-nav-row .nav {
    display: none;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-nav-row .nav.is-open {
    display: block;
  }

  .mobile-nav-row .nav ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-row .nav li {
    width: 100%;
  }

  .mobile-nav-row .nav a {
    display: block;
    width: 100%;
    padding: 11px 4px;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .header-search input:focus {
    width: 100%;
  }
}

/* =========================================================
   Mobile Hamburger Navigation
   ========================================================= */

.mobile-menu-toggle {
  display: none;
}


/* ---------------------------------------------------------
   Tablet / Mobile
   --------------------------------------------------------- */

@media (max-width: 1150px) {

  .mobile-nav-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 42px;
    height: 42px;
    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;

    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2D2A26;
    border-radius: 2px;
  }


  /* Hide the navigation until the hamburger is clicked */

  .mobile-nav-row .nav {
    display: none;
    width: 100%;
  }


  /* Show the navigation when the hamburger is clicked */

  .mobile-nav-row .nav.is-open {
    display: block;
  }


  /* Stack the navigation links */

  .mobile-nav-row .nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    width: 100%;
    margin: 12px 0 0;
    padding: 8px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-row .nav li {
    width: 100%;
  }

  .mobile-nav-row .nav a {
    display: block;
    width: 100%;
    padding: 11px 4px;
  }


  /* Search */

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .header-search input:focus {
    width: 100%;
  }

}

/* Tighten header spacing on smaller screens */
@media (max-width: 980px) {

  .header-inner {
    gap: 8px;
  }

  .header-right {
    gap: 6px;
  }

  .mobile-nav-row {
    min-height: 42px;
  }

}
/* =========================================================
   Footer Social Links
   ========================================================= */

.footer-social {
  margin-top: 0;
}

.footer-social h3 {
  margin: 0 0 12px;
  color: #5e584f;
  font-size: 1rem;
  font-weight: 600;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #5e584f;
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  transition: all .2s ease;
}

.footer-social-links a:hover {
  color: #fff;
  background: #5e584f;
  border-color: #5e584f;
}

.footer-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Remove bullets from footer navigation */
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    list-style: none;
}

/* Blog pagination */
.pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
}

.pagination .page-numbers.current {
    font-weight: 700;
}

.pagination .page-numbers.dots {
    padding-left: 4px;
    padding-right: 4px;
}

.pagination .page-numbers:hover {
    text-decoration: underline;
}