/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

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

:root {
  --bg: #F4E8E2;
  --mid: #E8D1C9;
  --accent: #8B6F47;
  --accent-light: #b8956a;
  --accent-deep: #5c4530;
  --text: #3d2b1f;
  --text-light: #7a5c46;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(139,111,71,0.14);
  --shadow-deep: 0 20px 60px rgba(139,111,71,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.8;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.25;
  color: var(--accent-deep);
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }

/* COOKIE TOGGLE (CSS-only modal) */
.cookie-toggle { display: none; }
.cookie-toggle:checked ~ .cookie-banner { display: none !important; }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(244,232,226,0.97);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-deep);
  max-width: 340px;
  z-index: 9999;
  border: 1px solid var(--mid);
  animation: slideUp 0.4s ease;
}

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

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cookie-banner strong { color: var(--accent-deep); }

.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.cookie-accept {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.cookie-accept:hover { background: var(--accent-light); transform: translateY(-1px); }
.cookie-more { font-size: 0.8rem; color: var(--text-light); text-decoration: underline; }

/* HEADER */
.site-header {
  background: rgba(244,232,226,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(232,209,201,0.8);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  gap: 20px;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 7px 16px;
  border-radius: 30px;
  transition: background 0.25s, color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mid);
  color: var(--accent-deep);
}

/* HERO */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 40px 40px;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(244,232,226,0.78);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  border-radius: var(--radius);
  padding: 52px 44px;
  text-align: center;
  max-width: 700px;
  margin: 60px 24px;
  border: 1px solid rgba(232,209,201,0.6);
}

.hero-overlay h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  color: var(--accent-deep);
}

.hero-overlay p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(139,111,71,0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,111,71,0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent) !important;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff !important;
}

/* CONTENT LAYOUT (home) */
.content-wrap {
  max-width: 1120px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}

/* ARTICLE BODY */
.article-body {
  background: rgba(244,232,226,0.65);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,209,201,0.5);
}

.article-body h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 10px;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 32px 0 14px;
  color: var(--accent);
}

.article-body p { margin-bottom: 18px; font-size: 0.97rem; }
.article-body a { text-decoration: underline; }
.article-body strong { color: var(--accent-deep); }

.article-label {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article-label span {
  background: var(--mid);
  padding: 4px 12px;
  border-radius: 20px;
}

/* DISCLAIMER */
.disclaimer {
  background: linear-gradient(135deg, rgba(232,209,201,0.6), rgba(244,232,226,0.8));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 0.87rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
}

.disclaimer strong { color: var(--accent-deep); font-style: normal; }

/* ASIDE */
.articles-aside { display: flex; flex-direction: column; gap: 20px; }

.aside-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--accent-deep);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mid);
  margin-bottom: 4px;
}

.card {
  background: rgba(232,209,201,0.45);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,209,201,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: saturate(130%);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 18px; }
.card-tag { font-size: 0.75rem; font-weight: 500; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }

/* ABOUT SECTION */
.about-section {
  background: linear-gradient(135deg, var(--mid) 0%, var(--bg) 60%, rgba(244,232,226,0.6) 100%);
  border-radius: 32px;
  padding: 70px 44px;
  max-width: 1120px;
  margin: 20px auto 60px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(139,111,71,0.12), transparent 70%);
  border-radius: 50%;
}

.about-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
.about-section p { max-width: 620px; margin: 0 auto 30px; color: var(--text-light); font-size: 0.97rem; }

/* SUBSCRIBE SECTION */
.subscribe-section {
  background: linear-gradient(135deg, rgba(139,111,71,0.1) 0%, rgba(232,209,201,0.5) 100%);
  border-radius: 32px;
  padding: 64px 44px;
  max-width: 680px;
  margin: 0 auto 70px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,209,201,0.5);
}

.subscribe-section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
.subscribe-section > p { color: var(--text-light); margin-bottom: 36px; }

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-stack input {
  background: rgba(244,232,226,0.9);
  border: 1.5px solid var(--mid);
  border-radius: 30px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-stack input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,111,71,0.1);
}

.form-stack input::placeholder { color: var(--text-light); }

/* FOOTER */
.site-footer {
  background: linear-gradient(160deg, #3d2b1f 0%, #5a3e2b 100%);
  color: rgba(244,232,226,0.8);
  padding: 60px 0 28px;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244,232,226,0.1);
}

.footer-brand .site-logo { color: var(--mid); font-size: 1.6rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 12px; line-height: 1.7; opacity: 0.65; }

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--mid);
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(244,232,226,0.65); font-size: 0.88rem; transition: color 0.25s; }
.footer-col ul li a:hover { color: var(--mid); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.45;
}

/* ARTICLE PAGE HEADER */
.article-page-header {
  background: linear-gradient(145deg, var(--mid) 0%, var(--bg) 70%);
  padding: 90px 24px 64px;
  text-align: center;
  border-radius: 0 0 40px 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.article-page-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139,111,71,0.15), transparent 70%);
}

.article-page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.article-page-header .meta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
}

.meta-tag {
  background: rgba(139,111,71,0.12);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-full { background: rgba(244,232,226,0.6); border-radius: var(--radius); padding: 48px 52px; box-shadow: var(--shadow); border: 1px solid rgba(232,209,201,0.4); }
.article-full h2 { font-size: 1.9rem; margin-bottom: 22px; }
.article-full h3 { font-size: 1.3rem; margin: 36px 0 16px; color: var(--accent); }
.article-full p { margin-bottom: 18px; font-size: 0.97rem; line-height: 1.85; }
.article-full strong { color: var(--accent-deep); }
.article-full a { text-decoration: underline; }

.source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  background: var(--mid);
  padding: 5px 13px;
  border-radius: 20px;
  color: var(--accent-deep);
  font-weight: 500;
}

/* POLICY PAGES */
.policy-wrap {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.policy-box {
  background: rgba(244,232,226,0.65);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,209,201,0.4);
}

.policy-box h1 { font-size: 2.4rem; margin-bottom: 8px; }
.policy-box .policy-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 36px; }
.policy-box h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--accent); }
.policy-box p { font-size: 0.93rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }

/* SUCCESS PAGE */
.success-wrap {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-card {
  background: rgba(232,209,201,0.55);
  border-radius: 28px;
  padding: 70px 56px;
  box-shadow: var(--shadow-deep);
  max-width: 580px;
  text-align: center;
  border: 1px solid rgba(232,209,201,0.6);
}

.success-icon { font-size: 4rem; margin-bottom: 28px; }
.success-card h1 { font-size: 2.4rem; margin-bottom: 16px; }
.success-card p { color: var(--text-light); margin-bottom: 36px; font-size: 0.97rem; }

/* 404 PAGE */
.page-404-wrap {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.num-404 {
  font-family: 'Cormorant Garamond', serif;
  font-size: min(14rem, 28vw);
  color: var(--mid);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.page-404-wrap h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.page-404-wrap p { color: var(--text-light); margin-bottom: 36px; max-width: 420px; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .content-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links a { font-size: 0.82rem; padding: 6px 10px; }
  .hero-overlay { padding: 32px 22px; }
  .article-body, .article-full { padding: 28px 22px; }
  .about-section, .subscribe-section { padding: 44px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .policy-box, .success-card { padding: 36px 24px; }
}
