/*
Theme Name: farsimo-canvas
Author: farsimo-dev
Version: 1.9.2
Description: farsimo
*/

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
a { display: inline-block; text-align: center; }

:root {
  --primary: #6B8F71;
  --primary-dark: #4A6B4F;
  --primary-light: #A8C5AD;
  --secondary: #D4A373;
  --secondary-light: #E8C9A0;
  --accent: #E8C07D;
  --bg: #FBF7F0;
  --bg-alt: #F0EBE0;
  --bg-card: #FFFFFF;
  --text: #3D3D3D;
  --text-light: #7A7A7A;
  --text-heading: #2C3E2D;
  --white: #FFFFFF;
  --border: #E0D8CC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(74,107,79,0.08);
  --shadow-lg: 0 8px 40px rgba(74,107,79,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1140px;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-heading);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.4em; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HEADER ====== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ====== BREADCRUMBS ====== */
.breadcrumbs {
  padding: 16px 0 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  text-align: left;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }

/* ====== ARTICLE LAYOUT ====== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 30px 0 60px;
}

.article-main { min-width: 0; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.meta-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
}

.meta-time { display: flex; align-items: center; gap: 5px; }
.meta-time svg { width: 15px; height: 15px; }

.article-content p {
  margin-bottom: 1.2em;
  color: var(--text);
}

.article-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 2px solid var(--bg-alt);
}

.article-content h3 { margin-top: 1.5em; }

.article-content ul, .article-content ol {
  margin: 1em 0 1.5em 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
  padding-left: 4px;
}

.article-img {
  margin: 2em 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-img img { width: 100%; }

/* ====== HIGHLIGHT QUOTE ====== */
.highlight-quote {
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4e8d6 100%);
  border-left: 5px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2em 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary-dark);
  position: relative;
}

.highlight-quote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 12px;
  opacity: 0.2;
  color: var(--primary-dark);
}

/* ====== INFO BOX ====== */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2em 0;
  box-shadow: var(--shadow);
}

.info-box h3 {
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* ====== NUMBERED LIST STYLED ====== */
.steps-list {
  counter-reset: steps;
  list-style: none;
  margin: 1.5em 0;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  padding: 16px 16px 16px 60px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.steps-list li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ====== TRADITIONAL APPROACHES / REVIEW BLOCK ====== */
.review-block {
  background: linear-gradient(145deg, var(--bg-alt) 0%, #f5efe3 100%);
  border-radius: var(--radius);
  padding: 32px;
  margin: 2.5em 0;
}

.review-block h2 {
  border: none;
  margin-top: 0;
  padding-top: 0;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.review-card h4 {
  color: var(--secondary);
  margin-bottom: 8px;
}

/* ====== READ ALSO ====== */
.read-also {
  margin: 2.5em 0;
}

.read-also h3 {
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.read-also-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.read-also-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.read-also-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.read-also-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ====== SIDEBAR ====== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-alt);
}

.sidebar-card ul { list-style: none; padding: 0; }

.sidebar-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.sidebar-card ul li:last-child { border: none; }

.sidebar-card ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  text-align: left;
  transition: var(--transition);
}

.sidebar-card ul li a:hover { color: var(--primary-dark); }

.sidebar-about {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.sidebar-about h3 {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-about p {
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.6;
}

.sidebar-tip {
  background: linear-gradient(135deg, #FFF8ED 0%, #FEF0D5 100%);
  border-color: var(--accent);
}

.sidebar-tip h3 { color: var(--secondary); }

/* ====== SUBSCRIBE FORM ====== */
.subscribe-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 2.5em 0;
  color: var(--white);
}

.subscribe-section h2 {
  color: var(--white);
  border: none;
  margin-top: 0;
  padding-top: 0;
}

.subscribe-section p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: var(--transition);
}

.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form input[type="email"]:focus { border-color: var(--accent); background: rgba(255,255,255,0.22); }

.subscribe-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--text-heading);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: var(--transition);
}

.subscribe-form button:hover { background: #f0cc8d; transform: translateY(-2px); }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--text-heading);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo { color: var(--white); margin-bottom: 10px; }
.footer-brand .site-logo span { color: var(--secondary-light); }

.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 400px; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  font-size: 0.82rem;
  opacity: 0.6;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.84rem;
  opacity: 0.5;
}

/* ====== COOKIE MODAL ====== */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-modal h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.cookie-modal p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btns button {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: var(--transition);
}

.btn-accept {
  background: var(--primary);
  color: var(--white);
}

.btn-accept:hover { background: var(--primary-dark); }

.btn-decline {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-decline:hover { background: var(--border); }

/* ====== LEGAL PAGES ====== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-page h1 {
  margin-bottom: 1.2em;
  padding-bottom: 0.6em;
  border-bottom: 3px solid var(--primary-light);
}

.legal-page h2 {
  margin-top: 2em;
  padding-top: 0;
  border-top: none;
  color: var(--primary-dark);
}

.legal-page p {
  margin-bottom: 1em;
  color: var(--text);
}

.legal-page ul {
  margin: 0.8em 0 1.5em 1.5em;
}

.legal-page li { margin-bottom: 0.4em; }

/* ====== SUCCESS PAGE ====== */
.success-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2.5rem;
  color: var(--white);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.success-page h1 { font-size: clamp(2rem, 5vw, 3rem); }

.success-page p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 28px;
  max-width: 480px;
}

.btn-home {
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-home:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ====== 404 ====== */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.page-404 .big-404 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  opacity: 0.4;
}

.page-404 h2 { margin-top: -10px; }

.page-404 p { color: var(--text-light); margin: 12px 0 28px; }

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar { order: 2; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .mobile-toggle { display: block; }
}

@media (max-width: 600px) {
  .subscribe-section { padding: 28px 20px; }
  .review-block { padding: 24px 16px; }
  .cookie-modal { left: 12px; right: 12px; max-width: none; bottom: 12px; }
}
