/*
 * Natas theme overrides
 * Palette slots mapped to match Kadence's actual usage:
 *   palette1 = accent/links/buttons
 *   palette2 = accent hover
 *   palette3 = heading colour + site title  → must be DARK
 *   palette4 = h4/h5 colour               → must be DARK
 *   palette5 = nav link colour            → must be DARK
 *   palette6 = muted text
 *   palette7 = light background tint
 *   palette8 = body background            → must be LIGHT
 *   palette9 = content background         → must be LIGHT
 */

:root {
  --global-palette1: #C4956A !important; /* terracotta – links, buttons */
  --global-palette2: #8B6F5E !important; /* brown – hover */
  --global-palette3: #2C1A0E !important; /* ink – headings, site title */
  --global-palette4: #3D2B1F !important; /* dark brown – h4/h5 */
  --global-palette5: #3D2B1F !important; /* dark brown – nav links */
  --global-palette6: #8B6F5E !important; /* medium brown – muted */
  --global-palette7: #E8DDD1 !important; /* beige – light bg tint */
  --global-palette8: #FDFAF6 !important; /* off-white – body bg */
  --global-palette9: #FDFAF6 !important; /* off-white – content bg */
}

/* ─── HIDE PAGE HERO TITLE BAR ─────────────────────────── */
.hero-container.site-container,
.entry-hero,
.entry-hero-layout-contained {
  display: none !important;
}

/* ─── BASE ─────────────────────────────────────────────── */
body {
  font-family: 'Lato', sans-serif !important;
  background: #FDFAF6 !important;
  color: #3D2B1F !important;
}

.content-bg,
body.content-style-unboxed .site,
.entry-content-wrap,
.content-container {
  background: #FDFAF6 !important;
}

a { color: #C4956A !important; text-decoration: none; transition: color .2s; }
a:hover { color: #8B6F5E !important; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  color: #2C1A0E !important;
  line-height: 1.2 !important;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem) !important; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; margin-top: 2.5rem !important; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem) !important; margin-top: 2rem !important; }

/* ─── HEADER ────────────────────────────────────────────── */
/* Override Kadence's hardcoded #ffffff on every header element */
#masthead,
#masthead .kadence-sticky-header,
.site-header-wrap,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-header-upper-inner-wrap,
.site-main-header-wrap,
.site-main-header-wrap .site-header-row-container,
.site-main-header-wrap .site-header-row-container-inner,
.site-header-row-container-inner,
.site-container {
  background: #F5DCC8 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Stack logo on top, nav centered below */
.site-main-header-inner-wrap {
  flex-direction: column !important;
  align-items: center !important;
  padding: 1.25rem 1rem 0 !important;
  min-height: auto !important;
  gap: 0 !important;
}

.site-header-main-section-left,
.site-header-main-section-right {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  max-width: 100% !important;
  flex: none !important;
}

/* Logo sizing and centering */
.site-header-main-section-left {
  padding-bottom: 0.75rem !important;
}

.site-branding { text-align: center !important; }
.site-branding .site-title { display: none !important; }
.custom-logo { max-height: 100px !important; width: auto !important; }

/* Nav row centered */
.site-header-main-section-right {
  border-top: 1px solid rgba(60,35,20,.15) !important;
  padding: 0.25rem 0 !important;
}

.header-navigation,
.site-header-item-main-navigation {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.primary-menu-container,
.header-menu-container {
  display: flex !important;
  justify-content: center !important;
}

#primary-menu {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* ─── NAVIGATION ────────────────────────────────────────── */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
  font-family: 'Lato', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  color: #3D2B1F !important;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  color: #C4956A !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* Dropdown */
.header-navigation .header-menu-container ul ul.sub-menu {
  background: #F5DCC8 !important;
  border: 1px solid #E8C4A8 !important;
  box-shadow: 0 8px 24px rgba(44,26,14,.1) !important;
}
.header-navigation .header-menu-container ul ul li.menu-item {
  border-bottom: 1px solid #E8C4A8 !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
  color: #3D2B1F !important;
  font-size: .9rem !important;
  text-transform: none !important;
  width: auto !important;
  min-width: 240px !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
  background: #EBC5A5 !important;
  color: #2C1A0E !important;
}

/* ─── BLOCKQUOTE ────────────────────────────────────────── */
.wp-block-quote,
blockquote {
  border-left: 3px solid #C4956A !important;
  background: #F0E6D8 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 1.4rem 1.75rem !important;
  margin: 2rem 0 !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-style: italic !important;
  color: #2C1A0E !important;
  line-height: 1.6 !important;
}
.wp-block-quote p { margin: 0 !important; color: #2C1A0E !important; }
.wp-block-quote cite {
  display: block !important;
  margin-top: .75rem !important;
  font-family: 'Lato', sans-serif !important;
  font-size: .78rem !important;
  font-style: normal !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #8B6F5E !important;
}

/* ─── LISTS ─────────────────────────────────────────────── */
.entry-content ul,
.page-content ul {
  list-style: none !important;
  padding-left: 0 !important;
}
.entry-content ul li,
.page-content ul li {
  padding-left: 1.4rem !important;
  position: relative !important;
  margin-bottom: .45rem !important;
}
.entry-content ul li::before,
.page-content ul li::before {
  content: "–" !important;
  position: absolute !important;
  left: 0 !important;
  color: #C4956A !important;
  font-weight: 700 !important;
}

/* ─── TABLES ────────────────────────────────────────────── */
.wp-block-table table { width: 100% !important; border-collapse: collapse !important; }
.wp-block-table td, .wp-block-table th { padding: .7rem 1rem !important; border: 1px solid #E8DDD1 !important; color: #3D2B1F !important; }
.wp-block-table thead th { background: #F5EFE6 !important; font-size: .78rem !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #8B6F5E !important; }
.wp-block-table tbody tr:nth-child(odd) td { background: #FDFAF6 !important; }
.wp-block-table tbody tr:nth-child(even) td { background: #F0E6D8 !important; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.wp-block-button__link,
.wp-element-button {
  font-family: 'Lato', sans-serif !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  background-color: #C4956A !important;
  color: #fff !important;
  border: 2px solid #C4956A !important;
  border-radius: 50px !important;
  padding: .75rem 2rem !important;
  transition: background .2s, border-color .2s !important;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
  background-color: #8B6F5E !important;
  border-color: #8B6F5E !important;
}
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #C4956A !important;
  border-color: #C4956A !important;
}
.is-style-outline .wp-block-button__link:hover {
  background: #C4956A !important;
  color: #fff !important;
}

/* ─── SEPARATOR ─────────────────────────────────────────── */
.wp-block-separator {
  border: none !important;
  border-top: 1px solid #E8DDD1 !important;
  margin: 2.5rem 0 !important;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
#colophon,
.site-footer-row-container,
.site-footer-row-container-inner {
  background: #2C1A0E !important;
  color: #E8DDD1 !important;
}
.site-footer-row-container * { color: #E8DDD1 !important; }
#colophon a, .site-footer-row-container a { color: #C4956A !important; }
#colophon a:hover { color: #F0E6D8 !important; }
.site-footer-row-container-inner { padding: 2rem 1.5rem !important; text-align: center !important; }
