/* ============================================================
   Andalusite — home.css
   Clean, responsive homepage in the dualite.dev design language
   (fonts "Perfectly Nineties" / "Neue Montreal", white canvas, serif
   display, dark pill CTAs). No Framer-runtime dependency.
   ============================================================ */

.andl {
	--ink: #1d1d1d;
	--navy: #0a0330;
	--muted: #5b5b66;
	--line: #ebe5e1;
	--paper: #f6f3ec;
	--accent: #b7410e;
	--display: "Perfectly Nineties Regular", "Perfectly Nineties", Georgia, serif;
	--body: "Neue Montreal Regular", "Neue Montreal", system-ui, -apple-system, sans-serif;
	--wrap: 1200px;
	font-family: var(--body);
	color: var(--ink);
	background: #fff;
	overflow-x: clip;
}
.andl *, .andl *::before, .andl *::after { box-sizing: border-box; }
.andl img { max-width: 100%; display: block; }
.andl-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.andl section { position: relative; }

/* ---- Buttons ---- */
.andl-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1; padding: 14px 22px; border-radius: 999px; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.andl-btn-dark { background: var(--navy); color: #fff; }
.andl-btn-dark:hover { transform: translateY(-1px); background: #140a4d; }
.andl-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.andl-btn-ghost:hover { border-color: var(--ink); }

/* ---- Nav ---- */
.andl-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.andl-nav.is-scrolled { border-bottom-color: var(--line); }
.andl-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.admin-bar .andl-nav { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .andl-nav { top: 0; } }
.andl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.andl-logo-img { height: 28px; width: auto; }
.andl-brand-text { font-family: var(--display); font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.andl-menu { display: flex; align-items: center; gap: 28px; }
.andl-menu a { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .85; transition: opacity .2s; }
.andl-menu a:hover { opacity: 1; }
.andl-nav-cta { display: flex; align-items: center; gap: 12px; }
/* ---- Language switcher: flags dropdown ---- */
.andl-langs { position: relative; display: inline-flex; }
.andl-langs-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; font-family: var(--body); font-size: 13px; color: var(--ink); line-height: 1; }
.andl-langs-btn:hover { border-color: var(--ink); }
.andl-langs-code { letter-spacing: .04em; }
.andl-langs-caret { transition: transform .2s ease; }
.andl-langs.is-open .andl-langs-caret { transform: rotate(180deg); }
.andl-langs-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 172px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(10,3,48,.35); padding: 6px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .18s ease; z-index: 60; }
.andl-langs.is-open .andl-langs-menu { opacity: 1; transform: none; pointer-events: auto; }
.andl-langs-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.andl-langs-menu a:hover { background: var(--paper); }
.andl-langs-menu a.is-current { font-weight: 500; background: var(--paper); }

/* Flag swatches drawn with gradients (no external assets). */
.andl-flag { width: 21px; height: 14px; border-radius: 3px; display: inline-block; flex: 0 0 auto; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); }
.andl-flag-fr { background: linear-gradient(to right, #0b2d8a 0 33.33%, #fff 33.33% 66.66%, #d7242a 66.66% 100%); }
.andl-flag-es { background: linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%); }
.andl-flag-ar { background: #c1272d; }
.andl-flag-ar::after { content: "\2605"; position: absolute; inset: 0; display: grid; place-items: center; color: #006233; font-size: 9px; line-height: 1; }

@media (max-width: 760px) {
	.andl-nav-cta .andl-langs { display: inline-flex; }
	.andl-langs-code { display: none; }
	.andl-langs-btn { padding: 7px 9px; }
}
.andl-burger { display: none; position: relative; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.andl-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.andl-burger span:nth-child(1) { top: 14px; }
.andl-burger span:nth-child(2) { top: 20px; }
.andl-burger span:nth-child(3) { top: 26px; }
.andl-burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.andl-burger.is-open span:nth-child(2) { opacity: 0; }
.andl-burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---- Hero ---- */
.andl-hero { padding: 56px 0 40px; }
.andl-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.andl-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin-bottom: 22px; }
.andl-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.andl-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 20px; }
.andl-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.andl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.andl-hero-note { font-size: 14px; color: var(--muted); }
.andl-hero-media { border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper); box-shadow: 0 30px 80px -40px rgba(10,3,48,.45); }
.andl-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

/* ---- Section heading ---- */
.andl-sec { padding: 72px 0; }
.andl-eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.andl-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 18px; max-width: 18ch; }
.andl-sec-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 54ch; }
.andl-paper { background: var(--paper); }

/* ---- Value cards (Pourquoi) ---- */
.andl-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.andl-value { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.andl-value h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0 0 10px; }
.andl-value p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---- Research axes ---- */
.andl-axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.andl-axe { display: block; padding: 28px; border-radius: 18px; background: var(--navy); color: #fff; text-decoration: none; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s ease; }
.andl-axe:hover { transform: translateY(-4px); }
.andl-axe h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.andl-axe p { font-size: 14px; line-height: 1.5; color: #c9c6e0; margin: 0; }
.andl-axe .andl-axe-go { margin-top: 18px; font-size: 14px; color: #fff; opacity: .8; }

/* ---- Blog teaser: compact overlay cards ---- */
.andl-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.andl-post { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.andl-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .5s ease; }
.andl-post::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,3,48,.9) 6%, rgba(10,3,48,.28) 44%, rgba(10,3,48,0) 72%); }
.andl-post:hover img { transform: scale(1.06); }
.andl-post-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; }
.andl-post-body span { display: inline-block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #ffd9b0; margin-bottom: 6px; }
.andl-post-body h3 { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.12; margin: 0; color: #fff; }

/* ---- CTA band ---- */
.andl-cta { text-align: center; padding: 96px 0; }
.andl-cta .andl-h2 { margin-inline: auto; max-width: none; }

/* ---- Footer ---- */
.andl-footer { background: var(--navy); color: #fff; padding: 72px 0 36px; }
.andl-footer a { color: #c9c6e0; text-decoration: none; }
.andl-footer a:hover { color: #fff; }
.andl-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.andl-footer-brand .andl-brand-text { color: #fff; }
.andl-footer-tag { color: #9a97b8; font-size: 15px; margin-top: 16px; max-width: 28ch; }
.andl-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9a97b8; margin: 0 0 16px; }
.andl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.andl-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #9a97b8; }

/* ---- Reveal ---- */
.andl .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.andl .reveal.is-shown { opacity: 1; transform: none; }
html:not(.js) .andl .reveal { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.andl-values { grid-template-columns: repeat(2, 1fr); }
	.andl-axes { grid-template-columns: repeat(2, 1fr); }
	.andl-posts { grid-template-columns: repeat(2, 1fr); }
	.andl-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.andl-menu, .andl-nav-cta .andl-btn { display: none; }
	.andl-burger { display: block; }
	.andl-nav-inner { height: 64px; }
	.andl-hero-grid { grid-template-columns: 1fr; }
	.andl-hero-media { order: -1; }
	.andl-sec { padding: 56px 0; }
	.andl-values, .andl-axes { grid-template-columns: 1fr; }
	.andl-posts { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.andl-footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile menu: compact dropdown under the header ---- */
.andl-sheet { position: fixed; top: 72px; left: 12px; right: 12px; z-index: 45; background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -24px rgba(10,3,48,.35); padding: 10px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-10px) scale(.98); transform-origin: top center; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1); }
.andl-sheet.is-open { transform: none; opacity: 1; pointer-events: auto; }
.andl-sheet a { font-family: var(--body); font-size: 16px; color: var(--ink); text-decoration: none; padding: 13px 14px; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.andl-sheet a:hover, .andl-sheet a:active { background: var(--paper); color: var(--accent); }
.andl-sheet a:last-child { margin-top: 6px; background: var(--navy); color: #fff; text-align: center; }
.andl-sheet a:last-child:hover { background: #140a4d; color: #fff; }
