/*
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;1,600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --c-bg: #f5f0e8;
  --c-surface: #ffffff;
  --c-text: #1a1a1a;
  --c-text-light: #5a5a5a;
  --c-accent: #1a3a2a;
  --c-gold: #c8a96e;
  --c-gold-light: #e8d9b0;
  --c-divider: #d4cec2;
  --c-highlight: #f0e6d0;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-w: 820px;
  --max-w-wide: 1120px;
  --gap: clamp(1rem, 3vw, 2rem);
}

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

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

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

/* ─── HEADER / NAV ─── */
.site-header {
  background: var(--c-accent);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.site-header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem var(--gap);
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-gold);
  text-decoration: none;
  letter-spacing: .02em;
}
.site-logo:hover { opacity: .85; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .25s;
}
.site-nav a:hover { color: var(--c-gold); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-accent);
    flex-direction: column;
    padding: 1rem var(--gap);
    gap: .8rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { display: flex; }
}

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.8rem auto .5rem;
  padding: 0 var(--gap);
  font-size: .82rem;
  color: var(--c-text-light);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.breadcrumbs a {
  color: var(--c-accent);
  text-decoration: none;
  text-align: left;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .15rem; color: var(--c-divider); }

/* ─── ARTICLE ─── */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 3rem;
}
.article-meta {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: .82rem;
  color: var(--c-text-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.article-meta .cat {
  color: var(--c-gold);
  font-weight: 600;
  border: 1px solid var(--c-gold);
  padding: .15rem .7rem;
  border-radius: 2px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.article-intro {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 2rem;
  border-left: 3px solid var(--c-gold);
  padding-left: 1.2rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-accent);
  margin: 2.5rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--c-divider);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 2rem 0 .7rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body img {
  width: 100%;
  border-radius: 4px;
  margin: 1.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ─── PULL QUOTE ─── */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--c-accent);
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2.5rem 0;
  position: relative;
  line-height: 1.5;
}
.pull-quote::before,
.pull-quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--c-gold);
  margin: 0 auto 1rem;
}
.pull-quote::after { margin: 1rem auto 0; }

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  background: var(--c-highlight);
  border-left: 4px solid var(--c-gold);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.highlight-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .4rem;
  color: var(--c-accent);
}

/* ─── PRODUCT CARDS ─── */
.product-card {
  background: var(--c-surface);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid var(--c-divider);
  position: relative;
  transition: box-shadow .3s, transform .3s;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.product-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: .4rem;
}
.product-card h3 {
  margin-top: 0 !important;
  border: none;
}

/* ─── READ ALSO ─── */
.read-also {
  margin: 3rem 0 2rem;
  padding: 1.8rem;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: 6px;
}
.read-also h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--c-accent);
}
.read-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.read-also-card {
  padding: 1rem;
  background: var(--c-bg);
  border-radius: 4px;
  text-decoration: none;
  color: var(--c-text);
  transition: background .3s, transform .3s;
}
.read-also-card:hover {
  background: var(--c-highlight);
  transform: translateY(-2px);
}
.read-also-card .ra-cat {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: .3rem;
}
.read-also-card .ra-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

/* ─── SUBSCRIBE ─── */
.subscribe-section {
  background: var(--c-accent);
  color: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  margin: 3rem 0;
  text-align: center;
}
.subscribe-section h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-gold);
  margin-bottom: .5rem;
}
.subscribe-section p {
  font-size: .95rem;
  opacity: .85;
  margin-bottom: 1.2rem;
}
.subscribe-form {
  display: flex;
  gap: .6rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-gold);
  background: rgba(255,255,255,.15);
}
.subscribe-form button {
  padding: .75rem 1.8rem;
  background: var(--c-gold);
  color: var(--c-accent);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.subscribe-form button:hover {
  background: var(--c-gold-light);
  transform: translateY(-1px);
}

/* ─── AUTHOR BOX ─── */
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--c-surface);
  border-radius: 6px;
  border: 1px solid var(--c-divider);
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
}
.author-info { text-align: left; }
.author-info .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.author-info .bio {
  font-size: .85rem;
  color: var(--c-text-light);
}

/* ─── HR DIVIDER ─── */
.editorial-hr {
  border: none;
  height: 1px;
  background: var(--c-divider);
  margin: 2.5rem 0;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--c-accent);
  color: rgba(255,255,255,.7);
  padding: 2.5rem var(--gap) 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand .site-logo { font-size: 1.4rem; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
  transition: color .25s;
}
.footer-links a:hover { color: var(--c-gold); }
.footer-disclaimer {
  font-size: .78rem;
  line-height: 1.6;
  opacity: .6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-copy {
  font-size: .8rem;
  opacity: .5;
  margin-top: .8rem;
}

/* ─── COOKIE MODAL ─── */
.cookie-modal {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  max-width: 380px;
  background: var(--c-surface);
  border: 1px solid var(--c-divider);
  border-radius: 8px;
  padding: 1.4rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 9999;
  font-size: .88rem;
  line-height: 1.5;
  animation: slideUp .4s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--c-accent);
}
.cookie-modal p { margin-bottom: .8rem; color: var(--c-text-light); }
.cookie-modal .cookie-btns { display: flex; gap: .5rem; }
.cookie-modal .cookie-btns button {
  flex: 1;
  padding: .55rem 1rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: .25s;
}
.cookie-modal .btn-accept {
  background: var(--c-accent);
  color: #fff;
}
.cookie-modal .btn-accept:hover { background: #244d38; }
.cookie-modal .btn-decline {
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-divider);
}
.cookie-modal .btn-decline:hover { background: var(--c-divider); }

/* ─── POLICY / LEGAL PAGES ─── */
.legal-page {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 2rem var(--gap) 3rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--c-accent);
  margin: 2rem 0 .8rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--c-divider);
}
.legal-page p {
  margin-bottom: 1rem;
  color: var(--c-text-light);
}

/* ─── SUCCESS PAGE ─── */
.success-page {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  padding: 3rem var(--gap);
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--c-accent);
  margin-bottom: .8rem;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--c-text-light);
  margin-bottom: 2rem;
}
.btn-home {
  display: inline-block;
  padding: .85rem 2rem;
  background: var(--c-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: .25s;
}
.btn-home:hover { background: #244d38; transform: translateY(-2px); }

/* ─── 404 ─── */
.page-404 {
  max-width: 600px;
  margin: 5rem auto;
  text-align: center;
  padding: 3rem var(--gap);
}
.page-404 .num-404 {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
}
.page-404 h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--c-accent);
  margin: 1rem 0 .8rem;
}
.page-404 p {
  color: var(--c-text-light);
  margin-bottom: 2rem;
}

/* ─── HERO SECTION (HOME) ─── */
.hero-banner {
  background: linear-gradient(135deg, var(--c-accent) 0%, #2a5a40 100%);
  color: #fff;
  padding: 3.5rem var(--gap) 3rem;
  text-align: center;
}
.hero-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--c-gold-light);
  margin-bottom: .4rem;
}
.hero-banner p {
  font-size: 1rem;
  opacity: .75;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-container { animation: fadeIn .6s ease-out; }
.product-card { animation: fadeIn .5s ease-out both; }
.product-card:nth-child(2) { animation-delay: .08s; }
.product-card:nth-child(3) { animation-delay: .16s; }
.product-card:nth-child(4) { animation-delay: .24s; }
.product-card:nth-child(5) { animation-delay: .32s; }

@media (max-width: 600px) {
  .author-box { flex-direction: column; text-align: center; }
  .author-info { text-align: center; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { min-width: 100%; }
  .cookie-modal { left: .8rem; right: .8rem; max-width: none; }
}
