/*
Theme Name: ilqvaro-main
Author: ilqvaro-team
Version: 3.4.5
Description: ilqvaro
*/

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

:root {
  --bg-primary: #FDF6EC;
  --bg-secondary: #F5ECDD;
  --bg-card: #FFFFFF;
  --text-primary: #2C2417;
  --text-secondary: #6B5D4D;
  --text-muted: #9A8C7A;
  --accent: #8B6914;
  --accent-hover: #A67F1E;
  --accent-light: #F0E4C8;
  --border: #E0D5C3;
  --border-light: #EDE5D8;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(44,36,23,0.06);
  --shadow-md: 0 4px 16px rgba(44,36,23,0.08);
  --shadow-lg: 0 8px 32px rgba(44,36,23,0.12);
  --radius: 6px;
  --max-w: 780px;
  --max-w-wide: 1120px;
  --transition: 0.3s ease;
}
*, *::before, *::after {box-sizing: border-box; margin:0; padding:0;}
body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.75;
}
img {max-width:100%; height:auto; border-radius: var(--radius);}

/* HEADER */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top:0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.site-logo:hover { color: var(--accent-hover); }
.header-nav { display:flex; gap:24px; align-items:center; }
.header-nav a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--accent); }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; font-size:1.5rem; color: var(--text-primary); }

/* BREADCRUMBS */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent); text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; }
.breadcrumbs span { margin: 0 6px; }

/* MAIN ARTICLE */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.article-wrap h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.article-meta .category {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 40px 0 16px;
  color: var(--text-primary);
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-secondary);
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  margin: 16px 0 18px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body .highlight-box {
  background: linear-gradient(135deg, var(--accent-light), #FFF8E8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}
.article-body .highlight-box strong { color: var(--accent); }

/* PHILOSOPHY INSERT */
.philosophy-insert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.philosophy-insert::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--accent-light);
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
}
.philosophy-insert h3 {
  font-family: var(--serif);
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.philosophy-insert p { color: var(--text-secondary); font-size: 0.95rem; }

/* READ ALSO */
.read-also {
  margin: 48px 0;
}
.read-also h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.read-also-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.read-also-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.read-also-card .card-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.read-also-card .card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.35;
}

/* SUBSCRIBE */
.subscribe-section {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.subscribe-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--sans);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--sans);
}
.subscribe-form button:hover { background: var(--accent-hover); }

/* FOOTER */
.site-footer {
  background: var(--text-primary);
  color: #C8BDA8;
  padding: 48px 24px 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-links { display:flex; flex-direction:column; gap:10px; }
.footer-links a {
  color: #C8BDA8;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: left;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #9A8C7A;
  text-align: center;
  line-height: 1.7;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.cookie-modal h4 {
  font-family: var(--serif);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.cookie-modal p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }
.cookie-btns { display:flex; gap:10px; }
.cookie-btns button {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--sans);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.cookie-accept { background: var(--accent); color:#fff; border-color: var(--accent)!important; }
.cookie-accept:hover { background: var(--accent-hover); }
.cookie-decline { background: transparent; color: var(--text-secondary); }
.cookie-decline:hover { background: var(--bg-secondary); }

/* LEGAL PAGES */
.legal-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.legal-wrap h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.legal-wrap h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.legal-wrap p { margin-bottom: 14px; color: var(--text-secondary); }

/* SUCCESS */
.success-wrap {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.success-wrap .check-icon {
  width: 80px; height:80px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.4rem;
  color: var(--accent);
}
.success-wrap h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.success-wrap p { color: var(--text-secondary); margin-bottom: 28px; }
.success-wrap a.btn-home {
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition);
}
.success-wrap a.btn-home:hover { background: var(--accent-hover); }

/* 404 */
.page-404 {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}
.page-404 .num-404 {
  font-family: var(--serif);
  font-size: 7rem;
  color: var(--accent-light);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}
.page-404 h1 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 12px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 28px; }

/* RESPONSIVE */
@media(max-width:768px){
  .header-nav { display:none; flex-direction:column; position:absolute; top:64px; left:0; right:0; background:var(--bg-card); border-bottom:1px solid var(--border); padding:16px 24px; gap:12px; box-shadow:var(--shadow-md); }
  .header-nav.active { display:flex; }
  .nav-toggle { display:block; }
  .article-wrap h1 { font-size: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .cookie-modal { left:20px; right:20px; max-width: none; }
  .read-also-grid { grid-template-columns: 1fr; }
}
