html,body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* Layout: livro-razão com a barra "/" da logo como marcador; laranja e grafite da marca Agallys */
:root {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #2C2B2C;
  --muted: #5C5F66;
  --rule: #D9DFE7;
  --accent: #C05F12;
  --brand: #F58735;
  --accent-soft: #FDEBDC;
  --gold: #D9701C;
  --on-accent: #FFFFFF;
  --deep: #2C2B2C;
  --deep-fg: #F2F5F9;
  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1B1C; --surface: #252526; --ink: #ECEEF2; --muted: #A9ADB4;
    --rule: #37383A; --accent: #F8A060; --brand: #F58735; --accent-soft: #3A2919; --gold: #F58735; --on-accent: #1B1B1C;
    --deep: #111112; --deep-fg: #ECEEF2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1B1C; --surface: #252526; --ink: #ECEEF2; --muted: #A9ADB4;
  --rule: #37383A; --accent: #F8A060; --brand: #F58735; --accent-soft: #3A2919; --gold: #F58735; --on-accent: #1B1B1C;
  --deep: #111112; --deep-fg: #ECEEF2;
  color-scheme: dark;
}
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; display: inline-block; width: 9px; height: 14px; margin-right: 10px; vertical-align: -2px; background: var(--brand); transform: skewX(-24deg); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Cabeçalho */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }
header.top { border-bottom: 3px solid var(--brand); }
nav.menu { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; }
nav.menu a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
nav.menu a:hover { background: var(--accent-soft); color: var(--accent); }
nav.menu a.cta { background: var(--accent); color: var(--on-accent); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-block: 14px 20px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--accent); font-size: 1rem; font-family: var(--f-body); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 24px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ledger .head { display: flex; justify-content: space-between; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ledger dl { margin: 0; }
.ledger .row { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 500; text-align: right; }
.ledger .total { border-bottom: 3px double var(--ink); font-weight: 500; }
.ledger .total dd { color: var(--accent); }

section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }

/* História */
.historia { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.historia .txt { display: grid; gap: 16px; max-width: 62ch; min-width: 0; }
.nome { background: var(--accent-soft); border-radius: 10px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.nome .greek { font-family: var(--f-display); font-style: italic; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.nome .greek small { font-family: var(--f-mono); font-style: normal; font-size: .8rem; color: var(--muted); margin-left: 8px; }
.nome blockquote { margin: 0; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.35; }
.nome .refs { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

/* CEO */
.ceo { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.portrait { position: relative; margin: 0; aspect-ratio: 4/5; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--accent-soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 6px; background: var(--brand); }
.ceo .txt { display: grid; gap: 16px; max-width: 64ch; min-width: 0; }
.cargos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* Equipe */
.equipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.membro { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; align-content: start; min-width: 0; }
.membro .retrato { position: relative; margin: 0; aspect-ratio: 4/5; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--accent-soft); }
.membro .retrato img { width: 100%; height: 100%; object-fit: cover; display: block; }
.membro .retrato::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 6px; background: var(--brand); }
.membro h3 { font-size: 1.25rem; margin-top: 4px; }
.membro .role { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.membro p { font-size: .95rem; color: var(--muted); }
.membro .pendente { font-style: italic; }

/* Serviços */
.servicos { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.servico { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); padding-block: 36px; border-bottom: 1px solid var(--rule); align-items: start; }
.servico:nth-child(even) .foto { order: 2; }
.foto { position: relative; margin: 0; aspect-ratio: 4/3; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--accent-soft); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 6px; background: var(--brand); }
.foto.sem { display: grid; place-items: center; background: var(--deep); color: var(--brand); }
.foto.sem svg { width: 30%; height: auto; }
.servico .corpo { display: grid; gap: 12px; min-width: 0; }
.servico .cod { font-family: var(--f-mono); color: var(--gold); font-size: .85rem; letter-spacing: .08em; }
.servico ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .98rem; min-width: 0; }
.servico ul ul { margin-top: 6px; }
.servico h3 { font-size: 1.6rem; }
.extras-head { margin-top: 64px; margin-bottom: 24px; display: grid; gap: 10px; }
.extras-head h3 { font-size: 1.8rem; }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.extra { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.extra .foto { border-radius: 0; }
.extra .txt { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.extra h4 { margin: 0; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.extra p { font-size: .95rem; color: var(--muted); }
.nota { margin-top: 24px; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--accent); }

/* Missão / Visão */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv article { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.mv p { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; }
.compromisso { margin-top: 24px; color: var(--muted); max-width: 70ch; }

/* Valores */
.valores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; counter-reset: v; }
.valor { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ink); }
.valor h3 { font-size: 1.1rem; font-family: var(--f-body); font-weight: 700; }
.valor h3::before { counter-increment: v; content: counter(v, decimal-leading-zero) " "; font-family: var(--f-mono); font-weight: 400; color: var(--gold); font-size: .85rem; margin-right: 4px; }
.valor p { font-size: .95rem; color: var(--muted); }

/* Blog */
.blog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.blog-head .sec-head { margin-bottom: 0; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-3px); box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .post { transition: none; } .post:hover { transform: none; } }
.capa { position: relative; aspect-ratio: 16/9; background: var(--deep); color: var(--deep-fg); padding: 22px 24px; display: grid; align-content: space-between; overflow: hidden; }
.capa::before { content: ""; position: absolute; right: -6%; top: -20%; width: 34%; height: 140%; background: var(--brand); transform: skewX(-24deg); opacity: .95; }
.capa .tag { position: relative; justify-self: start; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); border: 1px solid var(--brand); border-radius: 999px; padding: 3px 10px; }
.capa .tema { position: relative; font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.05; max-width: 70%; }
.post .corpo { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post .meta { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.post h3 { font-size: 1.25rem; line-height: 1.25; }
.post p { font-size: .95rem; color: var(--muted); }
.post .ler { font-weight: 600; color: var(--accent); font-size: .95rem; margin-top: 4px; }
.mais { display: flex; flex-wrap: wrap; gap: 10px; }
.mais a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.mais a:hover { background: var(--accent-soft); }

/* Instagram */
#instagram { padding-block: clamp(48px, 6vw, 72px); }
.ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.ig-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ig-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--brand), var(--accent), var(--brand)); }
.ig-avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); border: 2px solid var(--bg); font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--accent); }
.ig-id h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ig-id .handle { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.ig-follow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ig-post { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 8px; overflow: hidden; padding: 14px; display: grid; align-content: space-between; text-decoration: none; background: var(--deep); color: var(--deep-fg); }
.ig-post:nth-child(3n+2) { background: var(--brand); color: #2C2B2C; }
.ig-post:nth-child(3n) { background: var(--accent-soft); color: var(--ink); }
.ig-post .k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; padding-right: 26px; }
.ig-post .t { font-family: var(--f-display); font-weight: 600; font-size: clamp(.95rem, 1.35vw, 1.1rem); line-height: 1.15; }
.ig-post svg { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; opacity: .7; }
.ig-post:hover { outline: 3px solid var(--brand); outline-offset: -3px; }

/* Contato */
.contato { background: var(--deep); color: var(--deep-fg); border-top: 6px solid var(--brand); }
.contato h2, .contato h3 { color: var(--deep-fg); }
.contato .eyebrow { color: var(--brand); }
.contato .lead { color: color-mix(in srgb, var(--deep-fg) 75%, var(--deep)); }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.ct { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--deep-fg) 30%, var(--deep)); }
.ct .lbl { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.ct .val { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; color: var(--deep-fg); text-decoration: none; }
.ct a.val:hover { color: var(--brand); }
.ct a { color: var(--brand); }
.copy { justify-self: start; background: transparent; color: var(--deep-fg); border: 1px solid color-mix(in srgb, var(--deep-fg) 40%, var(--deep)); border-radius: 6px; padding: 5px 12px; font: 500 .85rem var(--f-body); cursor: pointer; }
.copy:hover { border-color: var(--brand); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { text-decoration: none; color: var(--deep-fg); padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--deep-fg) 40%, var(--deep)); border-radius: 999px; font-size: .9rem; }
.social a:hover { border-color: var(--brand); color: var(--brand); }
footer { background: var(--deep); color: color-mix(in srgb, var(--deep-fg) 65%, var(--deep)); font-size: .85rem; }
footer .wrap { padding-block: 28px; border-top: 1px solid color-mix(in srgb, var(--deep-fg) 20%, var(--deep)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer img { height: 44px; width: auto; }

@media (max-width: 900px) {
  .hero .wrap, .historia, .ceo, .mv { grid-template-columns: 1fr; }
  .ceo .portrait { max-width: 220px; }
  .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; max-width: 560px; }
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .servico { grid-template-columns: 1fr; }
  .servico:nth-child(even) .foto { order: 0; }
  .servico .foto { max-width: 560px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .membro p { font-size: .9rem; }
  .valores { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-post .t { font-size: 1rem; }
}
