/* Cordyceps Sinensis
   Palette and typography recovered from the original Makali theme options
   (wp_options -> makali_opt): amber #FEC007 with a green accent.
   Typography is not the theme's — Sofia Sans for headings, Inter for everything else. */

:root {
    --amber:       #fec007;
    --amber-dark:  #e0a800;
    --green:       #3b9943;
    --green-link:  #389c3c;
    --green-hover: #04721c;

    --heading:     #3a3a38;
    --body:        #6a6a68;
    --muted:       #8a8a86;
    --rule:        #eeeeeb;
    --bg:          #ffffff;
    --bg-soft:     #fafaf8;
    --wrap:        1080px;

    --font-heading: "Sofia Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--green-link); text-decoration: none; }
a:hover { color: var(--green-hover); text-decoration: underline; }

/* Sofia Sans is narrower and taller than the body face, so headings carry a little
   more size and slightly tighter tracking than they would in Inter. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--heading);
}
h1 { font-size: 2.7rem; font-weight: 600; margin: 0 0 1.5rem; }
h2 { font-size: 1.85rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
h4 { font-size: 1.2rem; font-weight: 600; margin: 1.9rem 0 .6rem; }
h5, h6 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }

p { margin: 0 0 1.35rem; }
img { max-width: 100%; height: auto; display: block; }

/* A short amber rule under page titles — the theme's main accent gesture. */
h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-top: .9rem;
    background: var(--amber);
    border-radius: 2px;
}

/* ---- header ---- */

.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 104px; flex-wrap: wrap; }

.brand { display: block; flex: 0 0 auto; }
.brand img { height: 54px; width: auto; }

.nav-toggle, .nav-toggle-label { display: none; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.site-nav > ul > li > a {
    display: block;
    padding: 40px 0;
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--heading);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.site-nav > ul > li > a:hover { color: var(--green); border-bottom-color: var(--amber); }

.site-nav .has-children { position: relative; }
.site-nav .has-children > ul {
    position: absolute; top: 100%; left: -18px; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    min-width: 280px; z-index: 30; padding: 8px 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-top: 2px solid var(--amber);
    box-shadow: 0 10px 30px rgba(0,0,0,.055);
}
.site-nav .has-children:hover > ul,
.site-nav .has-children:focus-within > ul { display: flex; }
.site-nav .has-children > ul a {
    display: block; padding: 9px 18px;
    font-size: 13px; font-weight: 400; color: var(--body); text-decoration: none;
}
.site-nav .has-children > ul a:hover { color: var(--green); background: var(--bg-soft); }

/* ---- content ---- */

main { padding: 64px 20px 96px; }

.wp-block-columns { display: flex; gap: 44px; align-items: flex-start; margin: 0 0 2.5rem; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-image { margin: 0 0 1.4rem; }
.wp-block-image img { border-radius: 3px; }
.wp-block-image figcaption { font-size: .85rem; color: var(--muted); margin-top: .45rem; }

/* The theme's amber call-to-action, lightened to an outline so a page full of
   "Read more" links does not read as a stack of solid blocks. */
.read-more { margin: .5rem 0 2.25rem; }

.btn-yellow {
    display: inline-block;
    padding: 9px 22px;
    background: transparent;
    color: var(--heading);
    border: 1px solid var(--amber);
    border-radius: 2px;
    font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.btn-yellow:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--heading);
    text-decoration: none;
}

/* Homepage teaser cards, recovered from the theme's raw-HTML blocks. */
.blog_section, .right_blog_block { margin: 0 0 2.75rem; }
.right_blog_block { display: flex; gap: 26px; align-items: flex-start; }
.right_blog_image { flex: 0 0 190px; }
.right_blog_image img, .agri_blog_image img { border-radius: 3px; }
.agri_blog_image { margin-bottom: 1rem; }
.blog_section h3, .right_blog_content h3 { margin: 0 0 .45rem; font-size: 1.3rem; }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 0 0 2.5rem; border-radius: 3px; overflow: hidden; background: var(--bg-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- footer ---- */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--rule);
    margin-top: 80px;
    padding: 64px 0 32px;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
}
/* A grid rather than wrapping flex: four equal columns always line up, where
   flex-basis widths wrapped the last one onto a row of its own. */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    align-items: start;
}
.footer-brand img { height: 50px; width: auto; }

.site-footer h4 {
    margin: 0 0 1rem;
    font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
.site-footer p { margin: 0 0 .65rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .5rem; }

.copy {
    margin-top: 52px; padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-size: 13px; color: var(--muted);
}

/* ---- small screens ---- */

@media (max-width: 900px) {
    .site-header .wrap { min-height: 72px; }
    .brand img { height: 46px; }

    .nav-toggle-label {
        display: block; margin-left: auto; cursor: pointer;
        width: 36px; height: 36px; position: relative;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: ""; position: absolute; left: 6px; width: 24px; height: 2px;
        background: var(--heading); border-radius: 2px;
    }
    .nav-toggle-label span { top: 17px; }
    .nav-toggle-label span::before { top: -7px; left: 0; }
    .nav-toggle-label span::after  { top:  7px; left: 0; }

    .site-nav { flex-basis: 100%; margin-left: 0; display: none; }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
    .site-nav > ul > li { border-top: 1px solid var(--rule); }
    .site-nav > ul > li > a { padding: 12px 0; border-bottom: 0; }

    /* Submenus stay open on touch — hover cannot reveal them. */
    .site-nav .has-children > ul {
        position: static; display: flex;
        border: 0; border-left: 2px solid var(--amber);
        box-shadow: none; background: transparent;
        margin: 0 0 8px 2px; padding: 0 0 0 16px; min-width: 0;
    }
    .site-nav .has-children > ul a { padding: 7px 0; }

    .wp-block-columns, .right_blog_block { flex-direction: column; gap: 18px; }
    .right_blog_image { flex-basis: auto; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 560px) {
    .footer-cols { grid-template-columns: 1fr; gap: 32px; }
    .copy { line-height: 2; }
}
