/*
Theme Name: Dexmoro-prime
Author: Dexmoro-team
Version: 3.8.1
Description: Dexmoro
*/

:root {
  --color-primary: #827717;
  --color-primary-light: #FFFDE7;
  --color-accent: #283593;
  --color-dark: #F57F17;
  --color-text: #1C1C1C;
  --color-bg-alt: #FDFBF0;
  --font-main: Palatino, 'Palatino Linotype', serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; font-family: var(--font-main); color: var(--color-text); background: #fff; line-height: 1.7; }
main { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { background: #6a6010; box-shadow: 0 4px 14px rgba(130,119,23,0.25); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-nav { padding: 0.5rem 1.2rem; font-size: 0.95rem; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; padding: 0.8rem 0; }
.site-header.header-transparent { background: transparent; }
.site-header.scrolled, .site-header:not(.header-transparent) { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); letter-spacing: -0.03em; }
.site-header.header-transparent:not(.scrolled) .logo { color: #fff; }
.site-header.header-transparent:not(.scrolled) .main-nav a { color: rgba(255,255,255,0.9); }
.site-header.header-transparent:not(.scrolled) .btn-nav { background: #fff; color: var(--color-primary); }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { font-size: 0.97rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--color-primary); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: background 0.2s; }
.site-header.header-transparent:not(.scrolled) .burger span { background: #fff; }

/* ── HERO split_diagonal ── */
.hero { padding: 5rem 0 4rem; background: var(--color-primary); overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; min-height: 420px; }
.hero-text { padding: 2rem 2rem 2rem 0; position: relative; z-index: 2; }
.hero-tagline { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 1.8rem; max-width: 480px; }
.hero-image { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden; height: 100%; min-height: 420px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── STATS ── */
.stats-strip { background: var(--color-dark); padding: 1.5rem 0; }
.stats-strip .container { color: #fff; }
.stats-inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 1rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: #fff; display: block; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.82); }

/* ── ARTICLES SECTION ── */
#articles { padding: 4rem 0; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--color-text); margin-bottom: 2.5rem; text-align: center; }
.section-title span { color: var(--color-primary); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.article-card { background: #fff; border-radius: 12px; padding: 1.75rem; border-left: 4px solid var(--color-primary); box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.35; color: var(--color-text); }
.card-teaser { font-size: 0.97rem; color: #555; line-height: 1.65; flex: 1; margin-bottom: 1.2rem; }
.card-link { display: inline-block; color: var(--color-primary); font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.card-link:hover { border-color: var(--color-primary); }

/* ── TIPS ── */
.home-tips { background: var(--color-bg-alt); padding: 3.5rem 0; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.tip-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.2s; }
.tip-card:hover { transform: translateY(-3px); }
.tip-card-num { font-size: 2.2rem; font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 0.75rem; }
.tip-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.tip-card-text { font-size: 0.93rem; color: #555; line-height: 1.6; }

/* ── ABOUT timeline_steps ── */
#about { padding: 3.5rem 0; background: #fff; }
.about-timeline { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-top: 2rem; position: relative; }
.about-timeline::before { content: ''; position: absolute; top: 24px; left: 15%; right: 15%; height: 2px; background: var(--color-primary); z-index: 0; }
.timeline-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 1rem; }
.timeline-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.timeline-step-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.timeline-step-text { font-size: 0.88rem; color: #666; }

/* ── TESTIMONIALS ── */
.home-testimonials { background: var(--color-primary-light); padding: 3.5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.testimonial-card { background: #fff; border-radius: 12px; padding: 1.75rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.testimonial-quote { font-size: 2.8rem; color: var(--color-primary); line-height: 0.7; margin-bottom: 0.75rem; font-weight: 900; }
.testimonial-text { font-size: 0.97rem; color: #444; font-style: italic; line-height: 1.65; margin-bottom: 1rem; }
.testimonial-author { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); }
.testimonial-city { font-size: 0.82rem; color: #888; }

/* ── PRE-FOOTER NEWSLETTER ── */
.pre-footer-newsletter { background: var(--color-primary); padding: 3rem 0; text-align: center; }
.pre-footer-newsletter h2 { color: #fff; font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0; justify-content: center; max-width: 480px; margin: 0 auto; }
.newsletter-form input[type=email] { flex: 1; padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px 0 0 4px; font-family: var(--font-main); font-size: 1rem; background: rgba(255,255,255,0.95); color: var(--color-text); }
.newsletter-form input[type=email]:focus { outline: none; background: #fff; }
.newsletter-form .btn { border-radius: 0 4px 4px 0; background: var(--color-dark); white-space: nowrap; }
.newsletter-form .btn:hover { background: #e06f00; }

/* Article CTA newsletter */
.newsletter-cta { background: var(--color-bg-alt); border-radius: 12px; padding: 2rem; margin: 2rem 0; }
.newsletter-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--color-text); }
.newsletter-cta .newsletter-form input[type=email] { background: #fff; border-color: rgba(0,0,0,0.2); }
.newsletter-cta .newsletter-form .btn { background: var(--color-primary); border-radius: 0 4px 4px 0; }
.newsletter-cta .newsletter-form .btn:hover { background: #6a6010; }

/* ── FOOTER dark_4col ── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,0.85); padding: 3rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-col h4 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-dark); margin-bottom: 1rem; font-weight: 700; }
.footer-logo a { font-size: 1.5rem; font-weight: 900; color: #fff; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 0.6rem; line-height: 1.55; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-col.footer-info nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col.footer-info nav a { font-size: 0.92rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col.footer-info nav a:hover { color: #fff; }
.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.5; max-width: 680px; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.55); white-space: nowrap; }

/* ── ARTICLE PAGES ── */
.article-banner { padding: 2rem 0 1.5rem; border-bottom: 1px solid #eee; }
.breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.article-banner h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.25; color: var(--color-text); max-width: 760px; }
.article-meta { font-size: 0.85rem; color: #888; margin-top: 0.75rem; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; padding: 2.5rem 0; align-items: start; }

article { max-width: 100%; }
article h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.9rem; color: var(--color-text); }
article p { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.75; }
article ul, article ol { margin: 0.75rem 0 1.1rem 1.5rem; }
article li { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.65; }
article ul { list-style: disc; }
article ol { list-style: decimal; }

.article-top-image { margin: 1.5rem 0; }
.article-top-image img { width: 100%; height: auto; border-radius: 10px; }
.article-inline-img { margin: 1.75rem 0; }
.article-inline-img img { width: 100%; height: auto; border-radius: 10px; }

/* tip-block quote_style */
.tip-block { padding: 1rem 2rem; margin: 2rem 0; }
.tip-quote-mark { font-size: 4rem; line-height: 0.8; color: var(--color-primary); display: block; font-weight: 900; }
.tip-block p { font-style: italic; font-size: 1.05rem; color: #444; }

.article-disclaimer { background: var(--color-bg-alt); border-left: 4px solid var(--color-accent); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-top: 2rem; font-size: 0.88rem; color: #555; line-height: 1.6; }

/* ── ASIDE ── */
aside { display: flex; flex-direction: column; gap: 1.5rem; }
.toc-block { background: var(--color-bg-alt); border-radius: 10px; padding: 1.25rem; }
.toc-title { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary); margin-bottom: 0.75rem; }
.toc-list { padding-left: 0; list-style: none; }
.toc-list li { margin-bottom: 0.4rem; }
.toc-list a { color: var(--color-primary); text-decoration: none; font-size: 0.92rem; line-height: 1.4; display: block; }
.toc-list a:hover { text-decoration: underline; }
.related-articles { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 1.25rem; }
.related-articles h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary); margin-bottom: 0.75rem; }
.related-list { display: flex; flex-direction: column; gap: 0.6rem; }
.related-list a { font-size: 0.92rem; color: var(--color-text); text-decoration: none; line-height: 1.4; padding: 0.4rem 0; border-bottom: 1px solid #f0f0f0; transition: color 0.2s; }
.related-list a:last-child { border-bottom: none; }
.related-list a:hover { color: var(--color-primary); }

/* ── SUCCESS ── */
.success-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.success-page h1 { font-size: 2.2rem; font-weight: 800; color: var(--color-primary); margin-bottom: 1rem; }
.success-page p { font-size: 1.1rem; color: #555; margin-bottom: 2rem; max-width: 480px; }

/* ── 404 ── */
.page-404 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-number { font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 0.5rem; }
.page-404 h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.page-404 p { font-size: 1rem; color: #666; margin-bottom: 2rem; max-width: 440px; }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── POLICY pages ── */
.policy-hero { background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%); padding: 3rem 0; color: #fff; margin-bottom: 2.5rem; }
.policy-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; }
.policy-hero p { color: rgba(255,255,255,0.82); margin-top: 0.5rem; }
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding: 0 0 3rem; align-items: start; }
.policy-sidebar { position: sticky; top: 90px; }
.policy-toc { background: var(--color-bg-alt); border-radius: 10px; padding: 1.25rem; }
.policy-toc h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); font-weight: 700; margin-bottom: 0.75rem; }
.policy-toc ul { list-style: none; padding: 0; }
.policy-toc ul li { margin-bottom: 0.4rem; }
.policy-toc ul a { font-size: 0.9rem; color: var(--color-text); text-decoration: none; }
.policy-toc ul a:hover { color: var(--color-primary); text-decoration: underline; }
.policy-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-text); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--color-primary-light); }
.policy-content p { font-size: 0.97rem; line-height: 1.8; margin-bottom: 1rem; color: #444; }
.policy-content ul { margin: 0.5rem 0 1rem 1.5rem; list-style: disc; }
.policy-content ul li { font-size: 0.97rem; line-height: 1.7; margin-bottom: 0.4rem; color: #444; }

/* terms Q&A */
.terms-hero { background: var(--color-bg-alt); padding: 2.5rem 0; border-bottom: 3px solid var(--color-primary); margin-bottom: 2.5rem; }
.terms-hero h1 { font-size: 2rem; font-weight: 800; }
.terms-hero p { color: #666; margin-top: 0.5rem; }
.terms-content { max-width: 860px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.terms-qa { margin-bottom: 2rem; }
.terms-qa h2 { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.6rem; }
.terms-qa h3 { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.5rem; }
.terms-qa p { font-size: 0.97rem; line-height: 1.8; color: #444; margin-bottom: 0.75rem; }
.terms-qa ul { margin: 0.5rem 0 0.75rem 1.5rem; list-style: disc; }
.terms-qa ul li { font-size: 0.97rem; color: #444; line-height: 1.7; margin-bottom: 0.35rem; }

/* cookies numbered blocks */
.cookies-hero { background: var(--color-primary); padding: 3rem 0; color: #fff; margin-bottom: 0; }
.cookies-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; }
.cookies-hero p { color: rgba(255,255,255,0.85); margin-top: 0.5rem; }
.cookies-body { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.policy-block { margin-bottom: 2.5rem; padding: 2rem; border-radius: 12px; background: var(--color-bg-alt); }
.policy-block-num { font-size: 2.5rem; font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 0.5rem; }
.policy-block h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.policy-block p { font-size: 0.97rem; line-height: 1.8; color: #444; margin-bottom: 0.6rem; }
.policy-block ul { margin: 0.4rem 0 0.6rem 1.5rem; list-style: disc; }
.policy-block ul li { font-size: 0.97rem; color: #444; line-height: 1.7; margin-bottom: 0.3rem; }

/* ── RESPONSIVE ── */

/* cookies-content wrapper */
.cookies-content { padding: 2.5rem 0 3rem; }
.policy-list { padding-left: 1.5rem; list-style: disc; }
.policy-list li { font-size: 0.97rem; color: #444; line-height: 1.7; margin-bottom: 0.3rem; }
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { clip-path: none; min-height: 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .about-timeline::before { display: none; }
  .about-timeline { flex-direction: column; align-items: center; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); gap: 0.75rem; }
  .main-nav.open { display: flex; }
  .burger { display: flex; }
  .site-header { position: sticky; }
  .newsletter-form { flex-direction: column; border-radius: 4px; }
  .newsletter-form input[type=email] { border-radius: 4px; }
  .newsletter-form .btn { border-radius: 4px; }
  .cta-group { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
