/* Cannabis Kartell — static site styles. Brand: dark green #064626, Alvarado headings + Noto Sans body. */

/* --- Alvarado (heading font, matches live origin theme) --- */
@font-face { font-family: "Alvarado"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/alvarado_normal_300.woff") format("woff"); }
@font-face { font-family: "Alvarado"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/alvarado_normal_400.woff") format("woff"); }
@font-face { font-family: "Alvarado"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/alvarado_normal_500.woff") format("woff"); }
@font-face { font-family: "Alvarado"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/alvarado_normal_700.woff") format("woff"); }
@font-face { font-family: "Alvarado"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/alvarado_italic_400.woff") format("woff"); }
@font-face { font-family: "Alvarado"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/alvarado_italic_700.woff") format("woff"); }

:root {
    --green: #064626;
    --green-700: #0a5c32;
    --green-50: #eef4f0;
    /* live origin palette presets */
    --secondary: #1f8036;
    --tertiary: #3ba364;
    --contrast: #264733;
    --ink: #1a1a1a;
    --gray: #5a5a5a;
    --line: #e4e8e6;
    --bg: #ffffff;
    --max: 1120px;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(6, 70, 38, 0.08);
    --head: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }

/* --- buttons --- */
.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid var(--green);
    transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-700); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green-50); }
.btn--wa { background: #25d366; border-color: #25d366; color: #06351f; }
.btn--wa:hover { background: #1fbe5b; }

/* --- header --- */
.site-header {
    /* relative (not sticky): scrolls away with the page, but still anchors the
       absolute-positioned mobile dropdown nav below it. */
    position: relative; z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green); font-size: 18px; }
.brand img { height: 40px; width: auto; }
.footer-logo { height: 48px; width: auto; margin-bottom: 12px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a.btn { color: var(--green); }
.nav a.btn:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--green); }

/* --- hero (video cover) --- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: var(--green);
}
.hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(6,70,38,.30) 0%, rgba(6,38,21,.82) 100%);
}
.hero .container {
    position: relative; z-index: 2;
    min-height: 80vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding-top: 120px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 20px; max-width: 18ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; opacity: 0.95; margin: 0 0 28px; }
.hero .btn { background: #fff; color: var(--green); border-color: #fff; }
.hero .btn:hover { background: var(--green-50); }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); margin-left: 10px; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* --- stats --- */
.stats { background: var(--green-50); }
.stats .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 20px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--green); }
.stat .label { color: var(--gray); font-size: 0.98rem; }

/* --- sections --- */
section { padding: 72px 0; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.section-sub { text-align: center; color: var(--gray); max-width: 60ch; margin: 0 auto 44px; }

/* --- cards --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow);
}
.card .ic { font-size: 30px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--green); }
.card p { margin: 0; color: var(--gray); }

/* --- feature (two-column image + text, alternating) --- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 40px; }
.feature__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.feature--reverse .feature__media { order: 2; }
.feature__body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 16px; color: var(--green); }
.feature__body p { color: var(--gray); margin: 0 0 14px; font-size: 1.05rem; }
.feature__body .btn { margin-top: 10px; }
.feature--portrait .feature__media { max-width: 420px; margin: 0 auto; }

/* --- market chart --- */
.chart { text-align: center; }
.chart figure { margin: 0; }
.chart img { width: 100%; max-width: 980px; border-radius: var(--radius); border: 1px solid var(--line); }
.chart figcaption { color: var(--gray); font-size: 0.9rem; margin-top: 12px; }

/* --- final CTA band --- */
.cta-final { background: var(--tertiary); color: #fff; text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.cta-final p { opacity: .9; margin: 0 0 28px; font-size: 1.1rem; }
.cta-final .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn { background: #fff; color: var(--green); border-color: #fff; }
.cta-final .btn:hover { background: var(--green-50); }
.cta-final .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-final .btn--ghost:hover { background: rgba(255,255,255,.12); }
.cta-final .contact-lines { margin-top: 26px; font-size: 0.95rem; opacity: .85; line-height: 1.9; }

/* --- quote --- */
.quote { background: var(--tertiary); color: #fff; text-align: center; }
.quote blockquote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; max-width: 24ch; margin: 0 auto 14px; }
.quote cite { opacity: 0.8; font-style: normal; }

/* --- blog teaser / list --- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card a { text-decoration: none; color: inherit; }
.post-card .thumb { aspect-ratio: 16/10; background: var(--green-50); object-fit: cover; width: 100%; }
.post-card .body { padding: 20px; }
.post-card time { color: var(--gray); font-size: 0.85rem; }
.post-card h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.post-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* --- single post / page content --- */
.article { max-width: 760px; margin: 0 auto; }
.article--wide { max-width: none; }

/* --- maria-indika full-bleed video hero (sits flush under the nav) --- */
.mi-hero { width: 100%; background: #fff; }
.mi-hero .wp-block-cover {
    position: relative; margin: 0;
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center; /* center heading */
    overflow: hidden; background: #fff;
}
.mi-hero .wp-block-cover__background { display: none; } /* drop WP dim overlay */
.mi-hero .wp-block-cover__video-background {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; margin: 0;
    opacity: .7;
}
.mi-hero .wp-block-cover__inner-container {
    position: relative; z-index: 2; text-align: center; padding: 24px;
}
.mi-hero .wp-block-cover__inner-container h1 {
    color: #fff; margin: 0;
    font-size: 30px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.article header { margin-bottom: 30px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.article .meta { color: var(--gray); font-size: 0.95rem; }
.post-content { font-size: 1.08rem; }
.post-content p { margin: 0 0 1.1em; }
.post-content img, .post-content video { border-radius: 10px; margin: 1em 0; }
.post-content h2 { margin: 1.6em 0 .5em; }
.post-content ul { padding-left: 1.2em; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-content a { text-decoration: underline; }
.post-content .has-text-align-center { text-align: center; }
.post-content p.has-x-large-font-size { font-size: 40px; line-height: 1.25; }

/* --- WP media/text + column blocks (e.g. maria-indika): side-by-side, alternating --- */
.post-content .wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 48px 0;
}
.post-content .wp-block-media-text__media { margin: 0; }
.post-content .wp-block-media-text__media img {
    width: 100%; margin: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.post-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.post-content .wp-block-media-text__content > :first-child { margin-top: 0; }
.post-content .wp-block-media-text__content a { text-decoration: none; }

.post-content .wp-block-columns { display: flex; gap: 40px; align-items: center; margin: 48px 0; }
.post-content .wp-block-column { flex: 1; min-width: 0; }
/* Kill the browser's default 40px figure margin so the video fills its column edge-to-edge
   (same rendered width as the media-text images, which zero their figure margin above). */
.post-content .wp-block-column .wp-block-video { margin: 0; }
.post-content .wp-block-column video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }

@media (max-width: 760px) {
    .post-content .wp-block-media-text { grid-template-columns: 1fr; gap: 24px; }
    .post-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
    .post-content .wp-block-columns { flex-direction: column; gap: 24px; }
}
.back-link { display: inline-block; margin-bottom: 24px; color: var(--gray); }

/* --- apply form --- */
.apply-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.field input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 8px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #c0392b; }

/* --- footer --- */
.site-footer { background: #07251a; color: #cdddd4; padding: 56px 0 28px; }
.site-footer a { color: #cdddd4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.socials { display: flex; gap: 14px; margin-top: 14px; }
.socials a { font-size: 1.4rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 0.85rem; opacity: 0.8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* --- responsive --- */
@media (max-width: 860px) {
    .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px; }
    .nav.open { display: flex; }
    .nav-toggle { display: block; margin-left: auto; }
    .cards, .posts, .stats .container, .apply-wrap, .footer-grid { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; gap: 28px; }
    .feature--reverse .feature__media { order: 0; }
    .form-row { grid-template-columns: 1fr; }
    .hero .container { min-height: 70vh; }
}
