/*
Theme Name: Kadence Child - PeakFormGuide
Template: kadence
Version: 1.0
*/

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

:root {
  --peak-green: #2D5016;
  --peak-green-mid: #3D6B1F;
  --peak-green-light: #5A8F32;
  --peak-accent: #8BC34A;
  --peak-gold: #C8A84B;
  --peak-bg: #FAFAF8;
  --peak-text: #1A1A1A;
  --peak-muted: #6B7280;
  --peak-border: #E5E7EB;
  --peak-white: #FFFFFF;
}

/* ——— BASE ——— */
body { font-family: 'DM Sans', sans-serif; background: var(--peak-bg); color: var(--peak-text); }
h1,h2,h3,h4 { font-family: 'DM Serif Display', serif; }

/* ——— REMOVER HERO "HOME" ——— */
.page-template-default .entry-hero,
.page-title-wrap, .kadence-hero-page-title,
body.home .entry-hero { display: none !important; }

/* ——— HEADER ——— */
.site-header, #masthead {
  background: var(--peak-white) !important;
  border-bottom: 2px solid var(--peak-green) !important;
  box-shadow: 0 1px 8px rgba(45,80,22,.08) !important;
}
.site-branding .site-title a,
.site-branding a { color: var(--peak-green) !important; font-family: 'DM Serif Display', serif !important; }
.main-navigation a, .nav-menu a {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--peak-text) !important;
}
.main-navigation a:hover { color: var(--peak-green-light) !important; }

/* ——— HOMEPAGE HERO ——— */
.home-hero {
  background: linear-gradient(135deg, var(--peak-green) 0%, var(--peak-green-mid) 60%, var(--peak-green-light) 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ——— POSTS / CARDS ——— */
.posts-container article, .entry-card {
  background: var(--peak-white);
  border: 1px solid var(--peak-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.posts-container article:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,80,22,.12); }

/* ——— SINGLE POST ——— */
.single .entry-title { font-family: 'DM Serif Display', serif; font-size: clamp(28px,4vw,48px); line-height: 1.2; color: var(--peak-green); }
.single .entry-content { font-size: 17px; line-height: 1.75; max-width: 760px; }
.single .entry-content h2 { font-family: 'DM Serif Display', serif; color: var(--peak-green); border-left: 4px solid var(--peak-accent); padding-left: 16px; margin-top: 2.5em; }
.single .entry-content h3 { font-family: 'DM Serif Display', serif; color: var(--peak-green-mid); }
.single .entry-content a { color: var(--peak-green-light); text-decoration: underline; text-underline-offset: 3px; }
.single .entry-content table { border-collapse: collapse; width: 100%; margin: 2em 0; }
.single .entry-content table th { background: var(--peak-green); color: white; padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.single .entry-content table td { padding: 10px 16px; border-bottom: 1px solid var(--peak-border); }
.single .entry-content table tr:nth-child(even) td { background: #F0F4EB; }

/* ——— BOTÕES / CTA ——— */
.wp-block-button__link, .button, .btn, a.button {
  background: var(--peak-green) !important;
  color: white !important;
  border-radius: 6px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  padding: 12px 24px !important;
  transition: background .2s !important;
}
.wp-block-button__link:hover { background: var(--peak-green-light) !important; }

/* ——— FOOTER ——— */
.site-footer { background: var(--peak-green) !important; color: rgba(255,255,255,.8) !important; }
.site-footer a { color: var(--peak-accent) !important; }
.site-footer .site-info { border-top: 1px solid rgba(255,255,255,.15) !important; padding-top: 16px !important; font-size: 12px !important; }

/* ——— AFFILIATES BOX ——— */
.affiliate-cta-box {
  background: linear-gradient(135deg, #F0F7E6, #E8F3D6);
  border: 2px solid var(--peak-accent);
  border-radius: 10px;
  padding: 24px;
  margin: 32px 0;
}

/* ——— POLL ——— */
.poll-container { background: var(--peak-white); border: 1px solid var(--peak-border); border-radius: 8px; padding: 24px; margin: 32px 0; }

/* ═══ HEADER-FIX-V1 ═══ */
.site-branding, .site-branding .custom-logo-link { background: transparent !important; }
.site-branding .site-title { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.site-branding .custom-logo { max-height: 55px; width: auto; background: transparent !important; }
.site-header-wrap, .site-header-inner-wrap { background: transparent !important; }
header.site-header .site-header-upper-wrap { background: #fff !important; border-bottom: 2px solid #2d6a2e; }
.header-navigation .menu > li > a { font-weight: 600; letter-spacing: 0.02em; }

/* ═══ HIDE-TITLE-V2 ═══ */
.site-title,
.site-branding .site-title,
.site-header .site-title,
h1.site-title,
p.site-title,
a.site-title,
.site-title a,
.custom-logo-link + .site-title,
.site-header-row .site-title,
#masthead .site-title,
.site-header-item .site-title {
    display: none !important;
    visibility: hidden !important;
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ═══ HIDE-TITLE-V3 ═══ */
.site-title-wrap {
    display: none !important;
}

/* ═══ LOGO-BG-FIX-V4 ═══ */
.site-branding,
.site-branding .brand,
.site-branding a.brand,
.site-branding .custom-logo-link,
.site-header-item[data-section="title_tagline"],
.site-header-focus-item[data-section="title_tagline"],
.branding-layout-standard,
.site-header-row-container-inner,
.site-header-main-section-left {
    background: transparent !important;
    background-color: transparent !important;
}
