/*
Theme Name: AlmanacIO
Theme URI: https://almanacio.com
Author: AlmanacIO
Description: Marketing one-pager for AlmanacIO — meeting management for trade shows and events.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: almanacio
*/

:root {
  --background: #faf7f0;
  --foreground: #1c2436;
  --card: #ffffff;
  --primary: #232f45;
  --primary-foreground: #faf7f0;
  --secondary: #efe9db;
  --secondary-foreground: #2a3346;
  --muted-foreground: #5c6478;
  --border: #e3ddcd;
  --amber: #e3a82b;
  --amber-foreground: #232f45;
  --radius: 0.5rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection { background: var(--amber); color: var(--amber-foreground); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted-foreground);
}

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.brand .io { color: var(--amber); }
.main-nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.main-nav a { text-decoration: none; transition: color 0.2s; }
.main-nav a:hover { color: var(--foreground); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s, background 0.2s;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); padding: 0.5rem 1.25rem; }
.btn-primary:hover { opacity: 0.9; }
.btn-lg { padding: 0.75rem 1.75rem; }
.btn-amber { background: var(--amber); color: var(--amber-foreground); padding: 0.75rem 2rem; }
.btn-amber:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--border); padding: 0.75rem 1.75rem; }
.btn-outline:hover { background: var(--secondary); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero .container {
  display: grid; gap: 3rem;
  padding-top: 4rem; padding-bottom: 5rem;
}
.hero-badge {
  display: inline-block; margin-bottom: 1rem;
  border: 1px solid var(--border); background: var(--secondary);
  border-radius: 9999px; padding: 0.25rem 1rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--secondary-foreground);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; text-wrap: balance; }
.hero p.lede { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-figure { overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up-delay { animation-delay: 150ms; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--primary); padding: 0.75rem 0; }
.marquee-track {
  display: flex; width: max-content; gap: 3rem; white-space: nowrap;
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary-foreground);
  animation: marquee 30s linear infinite;
}
.marquee-track .star { color: var(--amber); margin-left: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section h2 { margin-top: 0.75rem; max-width: 42rem; font-size: clamp(2rem, 4.5vw, 3rem); text-wrap: balance; }
.section .lede { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.section-alt { background: var(--secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
.card {
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--card); padding: 2rem;
}
.card h3 { margin-top: 1.25rem; font-size: 1.5rem; }
.card p { margin-top: 0.75rem; line-height: 1.7; color: var(--muted-foreground); }
.card-icon { width: 2rem; height: 2rem; color: var(--amber); }
.card-horizontal { display: flex; gap: 1.5rem; }
.card-horizontal h3 { margin-top: 0; }
.card-horizontal .card-icon { flex-shrink: 0; }

.stat-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--background); padding: 2rem; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--primary); }
.stat-card p { margin-top: 0.75rem; line-height: 1.7; color: var(--muted-foreground); }

.callout {
  margin-top: 3rem; border: 1px solid var(--border); border-radius: 1rem;
  background: var(--primary); color: var(--primary-foreground); padding: 2.5rem;
}
.callout-inner { display: flex; align-items: flex-start; gap: 1rem; }
.callout h3 { font-size: 1.5rem; }
.callout p { margin-top: 0.75rem; max-width: 48rem; line-height: 1.7; opacity: 0.9; }

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--border); background: var(--primary); color: var(--primary-foreground); text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .lede { margin-left: auto; margin-right: auto; color: inherit; opacity: 0.9; }
.cta-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-points {
  margin: 2.5rem auto 0; max-width: 36rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.75rem 2rem; font-size: 0.875rem; opacity: 0.9; list-style: none;
}
.cta-points li { display: flex; align-items: center; gap: 0.5rem; }
.cta-points svg { width: 1rem; height: 1rem; color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.site-footer .brand { font-size: 1.125rem; color: var(--foreground); }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .hero .container { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 6rem; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { flex-direction: row; }
}

/* ---------- Editable block layout (v2) ---------- */
.home-content > .wp-block-group, .home-content > * { margin-top: 0; }
.wp-block-columns.card-grid { margin-top: 3rem; gap: 1.5rem; display: flex; flex-wrap: wrap; }
.wp-block-columns.card-grid + .wp-block-columns.card-grid { margin-top: 1.5rem; }
.wp-block-columns.card-grid > .wp-block-column { flex: 1 1 16rem; margin: 0; }
.card h3 { margin-top: 0; }
.card h3::before { content: ""; display: block; width: 2rem; height: 3px; background: var(--amber); margin-bottom: 1.25rem; }
.stat-card .stat-source { font-size: 0.8rem; color: var(--muted-foreground); font-style: italic; }
.hero.container { padding-top: 4rem; padding-bottom: 5rem; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.hero-grid > .wp-block-column { flex: 1 1 22rem; }
.hero h1 { margin-top: 1rem; }
.hero-figure { margin: 0; }
.wp-block-buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 600; text-decoration: none; padding: .75rem 1.75rem;
  background: var(--primary); color: var(--primary-foreground); border: 1px solid transparent;
}
.wp-block-button.btn-outline .wp-block-button__link { background: transparent; color: var(--foreground); border-color: var(--border); }
.wp-block-button.btn-amber .wp-block-button__link { background: var(--amber); color: var(--amber-foreground); padding: .75rem 2rem; }
.wp-block-button .wp-block-button__link:hover { opacity: .9; }
.cta .wp-block-buttons { justify-content: center; }
.callout h3 { font-size: 1.5rem; }
.callout p { margin-top: .75rem; opacity: .9; line-height: 1.7; }
.cta-points { list-style: none; }
.wp-block-button.btn-primary, .wp-block-button.btn-outline, .wp-block-button.btn-amber { background: none; border: 0; padding: 0; }
.section h2 { line-height: 1.15; }
