/*
Theme Name: Doseo
Theme URI: https://doseo.com.br
Author: Doseo
Description: Custom block theme matching the Doseo/Aconchego app — warm cream + terracotta, Fraunces serif display, Geist body. Marketing site + blog for doseo.com.br.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: doseo
*/

/* ---- tokens (mirror the app's globals.css) ---- */
:root {
  --background: oklch(0.985 0.008 78);
  --foreground: oklch(0.225 0.028 52);
  --card: oklch(1 0 0);
  --muted: oklch(0.955 0.014 72);
  --muted-foreground: oklch(0.5 0.024 58);
  --primary: oklch(0.62 0.16 35);
  --primary-hover: oklch(0.56 0.16 35);
  --primary-foreground: oklch(0.99 0.005 80);
  --secondary: oklch(0.94 0.038 78);
  --secondary-foreground: oklch(0.34 0.05 38);
  --accent: oklch(0.66 0.085 148);
  --border: oklch(0.9 0.018 68);
  --radius: 0.625rem;
  --shadow-rest: 0 1px 3px 0 oklch(0.22 0.025 50 / 0.06), 0 4px 8px -2px oklch(0.22 0.025 50 / 0.05);
  --shadow-soft: 0 1px 2px 0 oklch(0.22 0.025 50 / 0.05);
  --container: 1180px;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.font-heading, h1, h2, h3, h4 { font-family: Fraunces, ui-serif, Georgia, "Times New Roman", serif; letter-spacing: -0.02em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wp-site-blocks { overflow-x: hidden; }

/* ---- header ---- */
.doseo-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
}
.doseo-header .inner {
  max-width: var(--container); margin: 0 auto; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem;
}
.doseo-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.doseo-mark {
  height: 2.25rem; width: 2.25rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
  transition: transform .2s;
}
.doseo-brand:hover .doseo-mark { transform: rotate(-3deg); }
.doseo-mark svg { height: 1.25rem; width: 1.25rem; }
.doseo-wordmark { font-family: Fraunces, serif; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--foreground); }
.doseo-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.doseo-nav a { color: var(--foreground); }
.doseo-nav .ghost { color: var(--muted-foreground); }
.doseo-btn {
  display: inline-flex; align-items: center; gap: .45rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1; padding: .72rem 1.3rem; transition: background .15s, box-shadow .15s;
  border: 1px solid transparent; cursor: pointer;
}
.doseo-btn.primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.doseo-btn.primary:hover { background: var(--primary-hover); text-decoration: none; }
.doseo-btn.outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.doseo-btn.outline:hover { background: var(--muted); text-decoration: none; }
.doseo-btn.sm { padding: .5rem .9rem; font-size: .9rem; }
.doseo-btn svg { height: 1.15rem; width: 1.15rem; flex: none; }

/* ---- hero ---- */
.doseo-hero {
  position: relative;
  background:
    radial-gradient(60% 55% at 88% 8%, oklch(0.9 0.07 45 / 0.5), transparent 70%),
    radial-gradient(50% 50% at 4% 96%, oklch(0.88 0.06 150 / 0.35), transparent 70%),
    var(--background);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.doseo-hero .inner { max-width: var(--container); margin: 0 auto; padding: 5rem 1.5rem; }
.doseo-hero .grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
@media (min-width: 960px) { .doseo-hero .grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.doseo-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 85%, transparent);
  padding: .35rem .8rem; font-size: .8rem; color: var(--secondary-foreground); box-shadow: var(--shadow-soft);
}
.doseo-eyebrow .dot { color: var(--primary); }
.doseo-h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.02; margin: 1.4rem 0 0; font-weight: 600; }
.doseo-h1 .accent { color: var(--primary); display: block; }
.doseo-lead { margin: 1.5rem 0 0; max-width: 34rem; color: color-mix(in oklch, var(--foreground) 82%, transparent); font-size: 1.1rem; }
.doseo-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.doseo-subcta { margin-top: 1rem; font-size: .95rem; color: var(--muted-foreground); }
.doseo-stats { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 2.75rem; }
.doseo-stat .n { font-family: Fraunces, serif; font-size: 2rem; line-height: 1; font-weight: 600; }
.doseo-stat .l { margin-top: .35rem; font-size: .8rem; color: var(--muted-foreground); }

/* feature cards */
.doseo-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.doseo-card { background: var(--card); border: 1px solid color-mix(in oklch, var(--border) 80%, transparent); border-radius: 1rem; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-rest); display: flex; gap: 1rem; }
.doseo-ico { flex: none; height: 2.75rem; width: 2.75rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.doseo-ico svg { height: 1.4rem; width: 1.4rem; }
.doseo-ico.terra { background: oklch(0.94 0.05 40); color: var(--primary); }
.doseo-ico.sand { background: oklch(0.93 0.06 78); color: oklch(0.55 0.13 70); }
.doseo-ico.green { background: oklch(0.93 0.05 150); color: oklch(0.5 0.09 150); }
.doseo-card h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.doseo-card p { margin: 0; color: var(--muted-foreground); font-size: .95rem; line-height: 1.5; }

/* ---- closing band ---- */
.doseo-band { background: color-mix(in oklch, var(--muted) 70%, var(--background)); border-top: 1px solid color-mix(in oklch, var(--border) 55%, transparent); }
.doseo-band .inner { max-width: var(--container); margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.doseo-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.doseo-band p { margin: .9rem auto 0; max-width: 40rem; color: var(--muted-foreground); }

/* ---- footer ---- */
.doseo-footer { border-top: 1px solid color-mix(in oklch, var(--border) 55%, transparent); }
.doseo-footer .inner { max-width: var(--container); margin: 0 auto; padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted-foreground); }
.doseo-footer .dot { color: var(--accent); }
.doseo-footer nav { display: flex; gap: 1.25rem; }
.doseo-footer nav a { color: var(--muted-foreground); }

/* ---- blog ---- */
.doseo-page { max-width: var(--container); margin: 0 auto; padding: 3.5rem 1.5rem; }
.doseo-page-head { margin-bottom: 2.5rem; }
.doseo-page-head .eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.doseo-page-head h1 { font-size: clamp(2rem,4vw,3rem); margin: .3rem 0 0; }
.doseo-postcard { background: var(--card); border: 1px solid color-mix(in oklch, var(--border) 80%, transparent); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.doseo-postcard h2 { font-size: 1.4rem; margin: 0 0 .4rem; }
.doseo-postcard .meta { font-size: .8rem; color: var(--muted-foreground); }
