/*
Theme Name: Onyx Starter Pro
Author: Jamie Studio
Description: Custom starter theme with responsive design.
Version: 2.4.2
Tested up to: 6.4
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: right-sidebar, theme-options, blog, photography, custom-menu
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --c-bg: #FAF8F4;
  --c-surface: #FFFFFF;
  --c-text: #2B2B35;
  --c-text-light: #6B6B78;
  --c-heading: #1A1A2E;
  --c-accent: #A4343A;
  --c-accent-light: #C85A5F;
  --c-border: #D6D0C7;
  --c-divider: #E8E3DB;
  --c-cream: #F2EDE5;
  --c-card-bg: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --max-w-narrow: 780px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 2.5rem 0 1rem; letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin: 2rem 0 .75rem; }

p { margin-bottom: 1.25rem; }

a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-light); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ── LAYOUT ── */
.mw-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.mw-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ── SITE HEADER (in header.php) ── */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-divider);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.site-header .mw-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700;
  color: var(--c-heading);
  text-decoration: none;
  letter-spacing: -.03em;
}
.site-logo:hover { color: var(--c-accent); }

.site-header nav ul,
.site-header .menu {
  display: flex; gap: 1.8rem; list-style: none;
  align-items: center;
}
.site-header nav ul li a,
.site-header .menu li a {
  font-size: .88rem; font-weight: 600;
  color: var(--c-text-light); text-transform: uppercase;
  letter-spacing: .06em; text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.site-header nav ul li a:hover,
.site-header .menu li a:hover { color: var(--c-accent); }
.site-header nav ul li a::after,
.site-header .menu li a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--c-accent);
  transition: width var(--transition);
}
.site-header nav ul li a:hover::after,
.site-header .menu li a:hover::after { width: 100%; }

.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--c-heading); cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .site-header nav ul,
  .site-header .menu {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--c-surface); padding: 1.5rem;
    border-bottom: 1px solid var(--c-divider);
    gap: 1rem;
  }
  .site-header nav ul.open,
  .site-header .menu.open { display: flex; }
}

/* ── SITE FOOTER (in footer.php) ── */
.site-footer {
  background: var(--c-heading);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: #fff; margin-bottom: .75rem;
}
.footer-desc { font-size: .9rem; line-height: 1.65; max-width: 320px; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: #fff; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer ul li a {
  color: rgba(255,255,255,.6); font-size: .9rem;
  text-decoration: none; transition: color var(--transition);
}
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .82rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--c-heading) 0%, #2E1A3E 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(164,52,58,.25), transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(100,60,120,.2), transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  color: #fff;
}
.hero-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  background: var(--c-accent); color: #fff;
  padding: .35rem .9rem; border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 700px; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .85; line-height: 1.7; }
.hero .btn { margin-top: 1.75rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 700;
  padding: .85rem 2.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: .03em;
}
.btn-primary {
  background: var(--c-accent); color: #fff;
}
.btn-primary:hover {
  background: var(--c-accent-light); color: #fff;
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(164,52,58,.25);
}
.btn-outline {
  background: transparent; color: var(--c-accent);
  border: 2px solid var(--c-accent);
}
.btn-outline:hover { background: var(--c-accent); color: #fff; }
.btn-white { background: #fff; color: var(--c-heading); }
.btn-white:hover { background: var(--c-cream); color: var(--c-accent); }

/* ── CARDS GRID ── */
.cards-section { padding: 4rem 0; }
.cards-section-title {
  text-align: center; margin-bottom: .5rem;
}
.cards-section-sub {
  text-align: center; color: var(--c-text-light);
  margin-bottom: 2.5rem; font-size: 1.05rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--c-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-cat {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-accent); margin-bottom: .5rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: .65rem; line-height: 1.3;
}
.card-title a { color: var(--c-heading); text-decoration: none; }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt {
  font-size: .92rem; color: var(--c-text-light);
  line-height: 1.65; margin-bottom: 1rem;
}
.card-meta {
  font-size: .8rem; color: var(--c-text-light);
  display: flex; gap: 1rem; align-items: center;
}

/* ── ARTICLE CONTENT ── */
.article-wrap {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-meta-top {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.article-date {
  font-size: .82rem; color: var(--c-text-light);
  font-style: italic;
}
.article-reading {
  font-size: .82rem; color: var(--c-accent);
  font-weight: 600;
}
.article-divider {
  border: none;
  border-top: 1px solid var(--c-divider);
  margin: 2.5rem 0;
}

/* Pull-quote */
.pull-quote {
  border-left: 4px solid var(--c-accent);
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--c-heading);
  line-height: 1.55;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  font-style: normal;
  color: var(--c-text-light);
  margin-top: .75rem;
  font-weight: 600;
}

/* Info box */
.info-box {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.info-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--c-accent);
}
.info-box p { margin-bottom: .65rem; }
.info-box p:last-child { margin-bottom: 0; }

/* Numbered list blocks */
.numbered-block {
  display: flex; gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}
.numbered-block-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.numbered-block-content h3 {
  margin-top: 0; margin-bottom: .4rem;
}

/* FAQ */
.faq-section { margin: 3rem 0; }
.faq-section h2 { text-align: center; margin-bottom: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--c-divider);
  padding: 1.25rem 0;
}
.faq-q {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--c-heading);
  margin-bottom: .5rem;
}
.faq-a { color: var(--c-text-light); font-size: .95rem; margin-bottom: 0; }

/* ── SUBSCRIBE FORM ── */
.subscribe-section {
  background: linear-gradient(135deg, var(--c-heading) 0%, #2E1A3E 100%);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  color: #fff;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  color: #fff; font-size: 1.8rem;
  margin-bottom: .5rem;
}
.subscribe-section p { opacity: .8; margin-bottom: 1.5rem; }
.subscribe-form {
  display: flex; flex-direction: column;
  gap: .85rem; max-width: 440px; margin: 0 auto;
}
.subscribe-form input {
  padding: .85rem 1.15rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.5); }
.subscribe-form input:focus {
  outline: none; border-color: var(--c-accent-light);
  background: rgba(255,255,255,.15);
}
.subscribe-form .btn { width: 100%; text-align: center; }

/* ── CONTACT FORM ── */
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 560px;
}
.contact-form input,
.contact-form textarea {
  padding: .9rem 1.15rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--c-accent);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--c-cream);
  border-left: 4px solid var(--c-border);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  font-size: .85rem;
  color: var(--c-text-light);
  line-height: 1.65;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── ABOUT SECTION ── */
.about-section {
  background: var(--c-surface);
  padding: 4rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: .82rem;
  color: var(--c-text-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--c-text-light); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { margin: 0 .4rem; }

/* ── AUTHOR BOX ── */
.author-box {
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1.5rem;
  background: var(--c-cream);
  border-radius: var(--radius);
  margin: 2rem 0;
}
.author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  color: var(--c-heading);
}
.author-bio { font-size: .88rem; color: var(--c-text-light); margin-top: .2rem; }

/* ── READ-ALSO ── */
.read-also {
  border-top: 2px solid var(--c-divider);
  margin: 3rem 0;
  padding-top: 2rem;
}
.read-also h3 { margin-bottom: 1rem; }
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.read-also-item {
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.read-also-item:hover { border-color: var(--c-accent); }
.read-also-item a {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--c-heading);
}
.read-also-item a:hover { color: var(--c-accent); }

/* ── SUCCESS PAGE ── */
.success-wrap {
  text-align: center;
  padding: 6rem 1.5rem;
}
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
}

/* ── LEGAL PAGES ── */
.legal-wrap {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.legal-wrap h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal-wrap h3 { font-size: 1.2rem; }

/* ── COOKIE CONSENT ── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-heading);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.cookie-bar p { font-size: .88rem; max-width: 560px; margin: 0; }
.cookie-bar-btns { display: flex; gap: .65rem; flex-wrap: wrap; }
.cookie-btn {
  padding: .6rem 1.3rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--transition);
}
.cookie-btn-accept { background: var(--c-accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--c-accent-light); }
.cookie-btn-custom { background: rgba(255,255,255,.15); color: #fff; }
.cookie-btn-custom:hover { background: rgba(255,255,255,.25); }
.cookie-btn-reject { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); }
.cookie-btn-reject:hover { color: #fff; border-color: rgba(255,255,255,.5); }

.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
}
.cookie-modal.show { display: flex; }
.cookie-modal-box {
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px; width: 90%;
  max-height: 80vh; overflow-y: auto;
}
.cookie-modal-box h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.cookie-cat {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-divider);
}
.cookie-cat-name { font-weight: 600; font-size: .95rem; }
.cookie-cat-desc { font-size: .82rem; color: var(--c-text-light); margin-top: .25rem; }
.cookie-toggle {
  position: relative;
  width: 46px; height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle .slider {
  position: absolute; inset: 0;
  background: var(--c-border);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-toggle .slider::before {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}
.cookie-toggle input:checked + .slider { background: var(--c-accent); }
.cookie-toggle input:checked + .slider::before { transform: translateX(22px); }
.cookie-toggle input:disabled + .slider { opacity: .6; cursor: not-allowed; }
.cookie-modal-save {
  margin-top: 1.25rem;
  width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { min-height: 380px; }
  .hero-content { padding: 3.5rem 1.25rem 3rem; }
  .subscribe-section { padding: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp .6s ease-out both;
}
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
